@charset "UTF-8";

@keyframes fadeout {
	0% {opacity: 1;}
	100% {opacity: 0;}
}

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

#full-screen {
	position: absolute;
	top: 25px;
	right: 25px;
	opacity: 0.5;
}

#full-screen:hover {
	text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
	opacity: 0.2;
	cursor: pointer;
}

.selection {
	width: 300px;
	height: 25px;
	background-color: #f0f0f0;
	border-bottom: 2px solid #13a538;
	padding: 0;
	clear: both;
	margin: 0 auto;
}

.selection-area {
	width: 275px;
	overflow: hidden;
	float: left;
}

.selection-icon {
	color: white;
	width: 25px;
	height: 25px;
	float: left;
	background-color: #777;
	text-align: center;
}

select {
	font-size: .9em;
    font-family: 'PT Serif', serif;
	background-color: transparent;
	border: none;
	width: 300px;
}

.info-bubble {
	border: 1px solid #13a538;
	border-radius: 4px;
	font-family: 'PT Serif', serif;
	font-size: .9em;
	padding: 5px;
	width: 100px;
	background-color: #ffffff;
	text-align: center;
	animation-name: fadeout;
	animation-duration: 1s;
	animation-delay: 5s;
	animation-iteration-count: 1;
	animation-fill-mode: forwards;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

#info-map {
	position: absolute;
	top: 15px;
	left: 40px;
}

#info-map:before {
	font-family: 'FontAwesome';
	content: "\f0d9";
	position: absolute;
	color: #13a538;
	top: 50%;
	left: -6px;
	transform: translateY(-50%);
}

#info-full-screen {
	position: absolute;
	top: 50px;
	right: 20px;
}

#info-full-screen:before {
	font-family: 'FontAwesome';
	content: "\f0d8";
	position: absolute;
	color: #13a538;
	top: -12px;
	right: 9px;
}

#map {
	height: 100%;
	width: 100%;
	display: inline-block;
}

#map-key {
    font-family: 'PT Serif', serif;
	width: 200px;
	height: 350px;
	position: absolute;
	left: 15px;
	bottom: 20px;
	display: none;
	background-color: #ffffff;
	border-radius: 5px;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

#map-key > header {
	font-size: 1em;
	text-align: center;
	font-weight: 700;
	border-bottom: 1px solid #333;
	margin-bottom: 15px;
}

#map-key > article {
	padding: 5px;
	width: 90%;
	clear: both;
	margin: 0 auto;
}

#map-key .color-field {
	width: 15px;
	height: 15px;
	background-color: gray;
	float: left;
	margin: 1px;
	margin-left: 45px;
	margin-right: 15px;
}

#map-key .data-field {
	font-size: .8em;
}

#fullScreenToggle {
    position: absolute;
    top: 15px;
    right: 25px;
    color: rgba(0,0,0,0.5);
}

#fullScreenToggle:hover {
    color: white;
    cursor: pointer;
}

#statistics {
    width: 100%;
	height: 100%;
    background-color: white;
	overflow: hidden;
	position: absolute;
	display: inline-block;
	right: 0;
	top: 0;
	padding: 0;
}

#statistics-content {
	width: 85%;
	height: 100%;
	overflow: auto;
	margin: 0 auto;
	position: relative;
}

#show-statistics {
	width: 35px;
	height: 100%;
	background-color: #777;
	position: absolute;
	left: 0;
	z-index: 999;
}

#show-statistics:hover {
	cursor: pointer;
}

#show-statistics > i {
	color: white;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

#statistics-content > header {
    text-align: center;
}

h2 {
    font-family: 'PT Serif', serif;
    margin: 15px 0;
    font-size: 1.6em;
}

#statistics-content > #area-name {
    text-align: center;
    font-family: 'PT Serif', serif;
    font-size: 1.2em;
}

#bar-chart {
    width: 95%;
    position: relative;
    margin-top: 25px;
    left: 50%;
    transform: translateX(-50%);
}

#bar-chart > table {
    width: 100%;
}

#bar-chart > table > thead,
#bar-chart > table > tbody,
#bar-chart > table > tfoot {
    font-family: 'PT Serif', serif;
    font-size: 1em;
}

#bar-chart > table td {
    text-align: center;
}

#bar-chart > table > tfoot > tr > td {
	font-size: .8em;
    border-top: #333 1px solid;
    background-color: #f7f7f7;
}

.carousel-header {
    font-family: 'PT Serif', serif;
	font-size: 1.2em;
	margin-left: 25px;
}

#first-vote {
	height: 175px;
	width: 90%;
	margin: 15px auto;
}

#second-vote {
	height: 175px;
	width: 90%;
	margin: 15px auto;
}

.party-bar {
    font-family: 'PT Serif', serif;
	width: 80px;
	height: 150px;
	margin: 2px;
	display: inline-block;
	position: relative;
}

.text {
	position: absolute;
	bottom: 0;
	width: 100%;
}

.bar {
	width: 100%;
	margin-bottom: 2px;
}

.result {
	width: 100%;
	padding: 4px 0;
	text-align: center;
	margin-bottom: 2px;
}

.name {
	text-align: center;
	padding: 4px 0;
	width: 100%;
	font-weight: 700;
	font-size: .8em;
}

.result.cdu {
	background-color: #333;
}

.bar.cdu {
	background-color: #555;
}

.cdu {
	color: white;
	background-color: black;
}

.result.spd {
	background-color: #e32d43;
}

.bar.spd {
	background-color: #e35b6b;
}

.spd {
	color: white;
	background-color: #e2001a;
}

.result.gruene {
	background-color: #5d964a;
}

.bar.gruene {
	background-color: #739668;
}

.gruene {
	color: white;
	background-color: #46962b;
}

.result.linke {
	background-color: #ff3333;
}

.bar.linke {
	background-color: #ff6666;
}

.linke {
	color: white;
	background-color: #ff0000;
}

.result.fdp {
	background-color: #fff133;
}

.bar.fdp {
	background-color: #fad52a;
}

.fdp {
	color: #009ee3;
	background-color: #face00;
}

.result.piraten {
	background-color: #ffa033;
}

.bar.piraten {
	background-color: #ffb866;
}

.piraten {
	color: white;
	background-color: rgb(255,136,0);
}

.result.afd {
	background-color: #2dabe0;
}

.bar.afd {
	background-color: #5ab8e0;
}

.afd {
	color: white;
	background-color: rgb(0,158,224);
}

.result.diepartei {
	background-color: #b91a2c;
}

.bar.diepartei {
	background-color: #b92d3d;
}

.diepartei {
	color: #ffffff;
	background-color: #B91023;
}

.result.tierschutz {
	background-color: #165699;
}

.bar.tierschutz {
	background-color: #225c99;
}

.tierschutz {
	color: #ffffff;
	background-color: #013e7e;
}

.result.freie {
	background-color: #3ca29c;
}

.bar.freie {
	background-color: #2ca29c;
}

.freie {
	color: #ffffff;
	background-color: #00827b;
}

.result.npd {
	background-color: #7e471a;
}

.bar.npd {
	background-color: #7e522e;
}

.npd {
	color: #ffffff;
	background-color: #5c2900;
}

.result.dm {
	background-color: #196cb6;
}

.bar.dm {
	background-color: #397bb6;
}

.dm {
	color: #ffffff;
	background-color: #00498a;
}

.result.bge {
	background-color: #41a0c5;
}

.bar.bge {
	background-color: #5aa7c5;
}

.bge {
	color: #ffffff;
	background-color: #3989a8;
}

.result.mlpd {
	background-color: #e34b51;
}

.bar.mlpd {
	background-color: #e3464d;
}

.mlpd {
	color: #ffffff;
	background-color: #e32129;
}

.result.dkp {
	background-color: #e32038;
}

.bar.dkp {
	background-color: #e3374c;
}

.dkp {
	color: #ffffff;
	background-color: #e3001c;
}

.result.oedp {
	background-color: #ff7319;
}

.bar.oedp {
	background-color: #ff8536;
}

.oedp {
	color: #ffffff;
	background-color: #ff6400;
}

.result.vpartei3 {
	background-color: #c4dc29;
}

.bar.vpartei3 {
	background-color: #cadc53;
}

.vpartei3 {
	color: #ffffff;
	background-color: #a5be00;
}

.result.dib {
	background-color: #e97465;
}

.bar.dib {
	background-color: #e9887c;
}

.dib {
	color: #ffffff;
	background-color: #e95d4c;
}

.show-party-map {
	width: 100%;
	font-size: .7em;
	border: none;
	padding: 8px;
	border-radius: 4px;
	margin-top: 5px;
}

.show-party-map:hover {
	cursor: pointer;
	box-shadow: 1px 1px 5px rgba(0,0,0,0.5);
	background-color: #fff;
	color: #13A538;
}

button.show-on-map {
	float: right;
	font-size: .7em;
	border: none;
	background-color: #13a538;
	padding: 8px;
	color: white;
	border-radius: 4px;
}

button.show-on-map:hover {
	cursor: pointer;
	box-shadow: 1px 1px 5px rgba(0,0,0,0.5);
	background-color: #fff;
	color: #13A538;
}

.info-window {
	width: 350px;
	overflow: hidden;
}

.info-window .icon,
.info-window .name,
.info-window .percent {
	float: left;
	width: auto;
	height: 30px;
	padding: 0 2px;
}

.info-window .name,
.info-window .percent {
}

.info-window > header {
	font-size: 1.2em;
	font-weight: 700;
	margin: 10px 0;
}

#parish-first-vote,
#parish-second-vote {
	margin: 5px 0;
}

#parish-first-vote > header,
#parish-second-vote > header {
	font-weight: 700;
	margin: 5px;
	border-bottom: 1px solid #333;
}

#parish-first-vote > article,
#parish-second-vote > article {
	width: 100%;
	height: 30px;
	clear: both;
}

@media screen and (min-width: 640px) {
	#statistics {
		width: 70%;
	}
	
	.info-bubble {
		display: none;
	}
}

@media screen and (min-width: 800px) {
	#statistics {
		width: 60%;
	}
}

@media screen and (min-width: 1024px) {
	#statistics {
		width: 50%;
	}
}

@media screen and (min-width: 1280px) {
	#statistics {
		width: 35%;
	}
}