@font-face {
	font-family: "Vollkorn";
	src: url("../fonts/Vollkorn-Regular.eot");
	src: url("../fonts/Vollkorn-Regular.woff2") format("woff2"), url("../fonts/Vollkorn-Regular.woff") format("woff"), url("../fonts/Vollkorn-Regular.ttf") format("truetype");
}
@font-face {
	font-family: "Vollkorn";
	font-weight: bold;
	src: url("../fonts/Vollkorn-Bold.eot");
	src: local("Vollkorn Bold"), url("../fonts/Vollkorn-Bold.woff2") format("woff2"), url("../fonts/Vollkorn-Bold.woff") format("woff"), url("../fonts/Vollkorn-Bold.ttf") format("truetype");
}		
body {
	font:11pt/20pt "Vollkorn"; 
	text-rendering: optimizeLegibility;
	font-variant-ligatures: common-ligatures;
	font-kerning: normal;
	font-feature-settings: "liga";
	background-color:#f2f2f2;
	color:#333;
	margin: auto;
	padding: 0;
	width:98%;
	line-height: 200%;
}
a, a:active, a:visited {
	color: #176fa1;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
.graphBlockContainer, .mapBlockContainer {
	width: calc(100% - 20px);
	vertical-align: middle;
	display: flex;
	padding-bottom: 15px;
	align-items: center;
}
.graphBlockContainerItem {
	display: inline-block;
}
.graphBlockContainerMatrix {
	width: calc(100% - 20px);
	vertical-align: middle;
	display: inline;
	padding-bottom: 15px;
	align-items: center;
}
.graphBlockContainerMatrix img{
	width: 98%;
	max-width: 600px;
}
.graphBlock {
	display: inline-block;
	width: 100%;
}
.graphBlockSpacer {
	display: inline-block;
	width: 47.5%;
	max-width: 400px;
}
.graphBlock img {
	width: 95%;
	max-width: 700px;
}
.graphBlock .piechart {
	width: 98%;
	max-width: 700px;
}
.mapBlock {
	display: inline-block;
	width: 100%;
	margin: auto;
}
.mapBlock img{
	width: 98%;
	max-width: 600px;
	padding-bottom: 15px;
}
.centerText {
	text-align: center;
}
.justifyText {
	text-align: justify;
}
.green {
	color: #008800;
}
.footer {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: white;
	z-index: 1;
}
h1 {
	border-bottom: 1px solid #d8d8d8;
	padding: 8px;
	font-size: 2.25em;
	margin: auto;
	letter-spacing: 0.05em;
	max-width: 900px;
}
h2 {
	padding: 8px;
	font-size: 1.75em;
	margin: auto;
	margin-top: 20px;
	letter-spacing: 0.05em;
	border-bottom: 1px solid #d8d8d8;
	max-width: 600px;
}
.navBar {
	background-color: #666;
	height: auto;
	position: fixed;
	right: calc(50% - 400px);
	top: 0px;
	z-index: 2;
}
.navDropdown {
	float: left;
	overflow: hidden;
	display: block;
}
.navButton {
	font-size: 16px;
	border: none;
	outline: none;
	color: white;
	padding: 10px 12px;
	background-color: inherit;
	font-family: inherit;
	margin: 0;
}
.navDropdown:hover .navButton {
	background-color: #176fa1;
}
.navLinks {
	display: none;
	position: absolute;
	background-color: #f9f9f9;
	min-width: 160px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
	z-index: 1;
	right: 0;
}
.navLinks a {
	float: none;
	color: black;
	padding: 12px 16px;
	text-decoration: none;
	display: block;
	text-align: left;
}
.navLinks a:hover {
	background-color: #ddd;
}
.navLinks a.region {    
	padding: 0px 16px;
	font-size: 13px;
}
.navLinks hr {
	border-bottom: 0;
}
.navDropdown:hover .navLinks {
	display: block;
}

svg#thuringiaMap {
	margin: 0 auto;
	width: 95%;
	max-width: 840px;
	max-height: 659px;
}

svg text {
	font-family: arial;
	text-align: center;
	text-anchor: middle;
}

svg #Districts_Color, svg #region_names tspan, svg #region_names text {
	cursor: pointer
}
svg #region_names tspan, svg #region_names text {
	font-size:18px;
}

svg #Districts_Color path {
	fill: none;
	stroke: #adadad;
	stroke-width: 1.25;
	stroke-linejoin: round;
	stroke-miterlimit: 4;
}

svg #State_borders .borderOverlay {
	fill:none;
	stroke: #a7ffad;
	stroke-width: 4;
	stroke-linejoin: round;
	stroke-miterlimit: 4;
	cursor: pointer;
}

svg #state_borders_path {
	fill: none;
	stroke: #444444;
	stroke-width: 3;
	stroke-linejoin: round;
	stroke-miterlimit: 3.8637;
}

div#selectorLinks {
	margin-top: 20px;
	margin-bottom: 10px;
}

div#selectorLinks span, div#toggle_region_labels span {
	margin: 0 10px;
	color: #176fa1;
	cursor: pointer;
	display: inline-block;
}
div#selectorLinks span.menu_focus {
	font-weight: bold;
}
#mapHeadline {
	font-size: 19px;
}
#needsJS {
	display:none;
}

@media (max-width: 800px) {
	body {  
		margin-top: 1em; 
	}
	h1 {
		max-width: 400px;
		font-size: 1.75em;
	}
	h2 {
		max-width: 400px;
		font-size: 1.5em;
		border-bottom: 0px;
	}
	.navBar {
		right: 5px;
	}
	.graphBlockContainer,  .mapBlockContainer, .graphBlockContainerMatrix {
		display: inline;
	}
	div#selectorLinks span, div#toggle_region_labels span {
		border: 1px solid black;
		border-radius: 3px;
		background-color: #fafafa;
		margin-bottom: 8px;
		padding: 7px;
		line-height: 12px;
	}
	div#selectorLinks span.menu_delimiter, div#selectorLinks br {
		display: none;
	}
	div#selectorLinks span.menu_focus {
		background-color: #ececec;
		font-weight: normal;
	}
	.navLinks a {
		padding: 8px 8px;
		line-height: 24px;
	}
	.navLinks a.region {
		padding: 0px 8px;
		font-size: 10px;
		line-height: 18px;
	}
	.graphBlockSpacer {
		display: none;
	}
}
@media (min-width: 800px) {
	h1 {
		padding-top: 20px;
	}
	.graphBlock img {
		width: 95%;
		max-width: 800px;
	}
	.graphBlock .piechart {
		width: 98%;
		max-width: 800px;
	}
	.navDropdown .navButton {
		display: none;
	}
	body {
		width: calc(98% - 300px);
		padding-left: 250px;
		padding-right: 50px;
	}
	svg#thuringiaMap {
		width: 60%;
	}
	.navLinks {
		display: inline;
		position: fixed;
		background-color: #f9f9f9;
		min-width: 160px;
		box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
		z-index: 56;
		left: 0;
		height: 100%;
		width: 190px;
		max-width: 190px;
	}
	.navLinks a {
		padding: 6px 16px;
	}
}
