@font-face {
	font-family: "cf";
	src: url("../../fonts/notosans/noto-sans-tc-v11-latin-regular.woff") format("woff"),
	url("../../fonts/notosans/noto-sans-tc-v11-latin-regular.woff2") format("woff2");
}

html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: 1200px;
	height: 95vh;
	margin: 1vh auto 0 auto;
	font-size: 15px;
	background-color: #4F3E6A;
	color: #f0f0f0;
	font-family: cf;
}

svg text {
	fill: #f0f0f0;
}

select {
	font-size: 1.2em;
}

.menu {
	text-align: center;
}

#container {
	width: 95%;
	height: 100%;
	min-height: 550px;
	max-height: 650px;
	margin: 0 auto;
	position: relative;
}

a:link, a:visited {
	color: #f0f0f0;
	text-decoration: none;
}

a:hover, a:active {
	color: #ffffff;
}

.footer {
	width: 95%;
	font-size: 0.8em;
	max-width: 550px;
	margin-top: 3em;
	margin-bottom: 1em;
}

.vis {
	width: 100%;
	height: 100%;
	display: flex;
	flex-flow: row wrap;
}

.map {
	flex-grow: 1;
}

.map, .sidebar {
	height: 100%;
}

.sidebar {
	width: 100%;
}
	
svg {
	width: 100%;
	height: 100%;
}

.bezirke {
	fill: transparent;
	stroke: silver;
	stroke-width: 3px;
	stroke-dasharray: 10, 4;
}

.bdiv {
	margin-bottom: 1em;
	border: 2px solid transparent;
}

.inner {
	font-size: 9px;
}

.marker {
	stroke-width: 2px;
	stroke-opacity: 0.2;
}

.marker.hl {
	stroke-opacity: 1;
	stroke-width: 4px;
}

.labels {
	font-size: 0.8em;
}

.highlighted {
	font-weight: bold;
	border-color: #664F7B;
}

.axis {
	height: 15px;
	margin-bottom: 0.5em;
}

.ticks {
	text-anchor: middle;
	font-size: 9px;
}

.nums {
	pointer-events: none;
}

.grid {
	stroke-dasharray: 8, 2;
	stroke: #664F7B;
}

.legende.outer {
	position: absolute;
	top: 35px;
	left: 50%;
	transform: translate(-50%, 0);
	max-width: 200px;
	font-size: 0.7em;
	text-align: center;
	border: 2px solid #664F7B;
	padding: 0.5em;
}

.legende > svg {
	width: 200px;
	height: 70px;
}

.legende.normal {
	stroke: silver;
	stroke-width: 2px;
	stroke-dasharray: 10, 4;
	fill: none;
}

.legende.won {
	stroke: #7ad151;
	fill: none;
}

.legende.lost {
	stroke: #F65F18;
	fill: none;
}

.won {
	padding: 0 0.15em;
	background-color: #7ad151;
	color: #191919;
}

.lost {
	padding: 0 0.15em;
	background-color: #F65F18;
	color: #191919;
}

.ibk {
	text-anchor: middle;
	font-size: 0.7em;
}

@media screen and (min-width: 1024px) {
	.sidebar {
		width: 300px;
	}
	
	.vis {
		flex-flow: row nowrap;
	}
	
	.legende.outer {
		top: auto;
		bottom: -50px;
		left: 0;
		transform: translate(0, 0);
	}
}