@charset "UTF-8";
/* CSS Document */


/******************************************/
/*Universial tags*/
/******************************************/

a {
	text-decoration: none;
}

/* unvisited link */
a:link {
  color: white;
}

/* visited link */
a:visited {
  color: white;
}

header h1 {
	font-family: mokoko, serif;
	font-weight: 500;
	font-style: normal;
	font-size: 2.35em;
}

h2 {
	text-align: center;
	font-size: 2em;
	width: 85%;
	margin: 1em auto;
	border-bottom: 2px solid lightgrey;
}

footer {
	text-align: center;
	width: 100%;
	float: left;
	padding-top: 2em;
}

body {
	font-family: protipo, sans-serif;
	font-weight: 400;
	font-style: normal;
	background-color: #242F51;
	color: white;
}

svg {
	display: block;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/***************************************************************/

/******************************************/
/*Classes*/
/******************************************/

.pollcat-heading {
	font-size: 3.5em;
	padding: 0;
	margin: 0.25em 0;
	font-family: flegrei, sans-serif;
	color: #f2a071;
}

.pollcat-logo {
	width: 40px;
	height: 40px;
	float: left;
	margin: 1em;
}

.party-seats, .four-party-seats, .party-seats-five, .seven-party-seats{
	width: 90%;
	text-align: center;
	margin: 2em auto;
	max-height: 550px;
}

.party-seats img, .four-party-seats img, .party-seats-five img, .seven-party-seats img {
	width: 200px;
	padding: 1em;
}

.party-seats div, .four-party-seats div, .party-seats-five div, .seven-party-seats div {
	padding: 0.5em 0;
}

.party-seat-count {
	font-size: 2.5em;
	display: block;
	margin-top: 10px;
	margin-bottom: 10px;
}

.party-seat-count em {
	font-size: 0.8em;
}

.party-seats h5, .four-party-seats h5, .party-seats-five h5, .seven-party-seats h5 {
	font-size: 1.75em;
}

.party-name {
	font-size: 2.1em;
	height: 30px;
}

.mobile-table {
	width: 100%;
	text-align: center;
	border-collapse: collapse;
	height: 20px;
}

.mobile-table tbody {
	height: 20px;
}

.mobile-table td {
	padding: 0;
	height: 20px;
}

.mobile-table tr {
	height: 20px;
}

.mobile-table img {
	width:100%;
	max-width: 160px;
}

.mobile-icon {
	width: 35%;
}

.mobile-seats {
	font-size: 3em;
	width: 32.5%;
}

.mobile-change {
	font-size: 2em;
	font-style: italic;
	width: 32.5%;
}

.mobile-div {
	text-align: center;
}

.mobile-div h3 {
	font-size: 1.5em;
}

.line-one, .line-two {
	display: none;
}

.table-mobile-hide {
	display: none;
}

.updated {
	text-align: center;
	font-style: italic;
}

.forecast-banner {
	width: 95%;
	max-width: 900px;
	display: block;
  	margin-left: auto;
  	margin-right: auto;
}

.standard-text  {
	font-size: 1.45em;
}

.spain-map-mobile {
	margin: 0 auto;
	max-width: 2000px;
}

.percentage-average {
	font-style: italic;
	font-size: 1.2em;
	margin: 0;
}

/*Municaplity titles*/

.municipal-title {
	text-align: center;
	font-size: 2.5em;
	font-style: italic;
  	padding: 5px 15px; 
  	box-shadow: 5px 5px 5px #333333; 
	max-width: 350px;
	margin: 0 auto;
}

.pp-title {
	background-color: #1f569e; 
}

.bec-title {
	background-color: #d6655c; 
}

.cc-title {
	background-color: #dc844b;
}

.psoe-title {
	background-color: #d22c22;
}

.eaj-title {
	background-color: #308327;
}

.prc-title {
	background-color: #c2cb45;
}

/*Box Colours*/

.pp-box{
	background-color: #5082c3;
}

.mm-box {
	background-color: #a5f5c3;
}

.psoe-box {
	background-color: #dc736d;
}

.vox-box {
	background-color: #a4cf8b;
}

.cs-box {
	background-color: #db886a;
}

.bec-box {
	background-color: #e19b95;
}

.junts-box {
	background-color: #8bdfd9;
}

.erc-box {
	background-color: #fbedb4;
	color: black;
}

.podemos-box {
	background-color: #a99adf;
}

.cup-box {
	background-color: #f4ec6c;
	color: black;
}

.cc-box {
	background-color: #dca17b;
}

.aa-box {
	background-color: #8ddca8;
}

.zec-box {
	background-color: #c65252;
}

.para-box {
	background-color: #f0dd4f;
	color: black;
}

.cha-box {
	background-color: #934641;
}

.mct-box {
	background-color: #b8d5d7;
}

.mes-box {
	background-color: #f0f375;
}

.nca-box {
	background-color: #a0c16f;
}

.cocan-box {
	background-color: #8fbee8;
}

.uxgc-box {
	background-color: #ddd084;
	color: black;
}

.eaj-box {
	background-color: #73a96d;
}

.ehbildu-box {
	background-color: #6da9ac;
}

.iu-box {
	background-color: #cf6466;
}

.te-box {
	background-color: #64997b;
}

.foro-box {
	background-color: #6799c4;
}

.elpi-box {
	background-color: #a0c2b9;
}

.mxme-box {
	background-color: #377878;
}

.asg-box {
	background-color: #be4e46;
}

.prc-box {
	background-color: #d2db64;
}

.pr-box {
	background-color: #9bbf6a;
}

.mcr-box {
	background-color: #a4537a;
}

.upn-box {
	background-color: #e2645a;
}

.gbai-box {
	background-color: #d15a49;
}

.cz-box {
	background-color: #dff4f6;
	color: black;
}

/*Radio Buttons*/

.radio-toolbar {
	text-align: center;
}

.radio-toolbar input[type="radio"] {
  display: none;
}

.radio-toolbar label {
  background-color: #515D83;
  display: inline-block;
  padding: 4px 11px;
  font-size: 1.3em;
  cursor: pointer;
}

.radio-toolbar input[type="radio"]:checked+label {
  background-color: #071234;
}


/*******************************************/
/*ids*/
/*******************************************/

#currentChart{
	width: 90%;
}

#forecastChart{
	width: 90%;
}

#coalitionChart {
	clear: both;
	width: 90%;
	margin: 0 auto;
}



/*******************************************/
/*@media tags*/
/*******************************************/

@media screen and (min-width: 500px){
	.seat-box h5 {
		font-size: 1.8em;
	}
}


@media screen and (min-width: 900px){
	.spain-map-mobile {
		max-width: 60%;
	}
}


@media screen and (min-width: 1024px){
	
	.line-one, .line-two {
		display: block;
	}
	
	#forecastChart{
		width: 100%;
		float: left;
	}
	
	#currentChart{
		width: 100%;
		float: left;
	}

	.pollcat-heading {
		font-size: 6em;
	}
	
	.pollcat-logo {
		width: 80px;
		height: 80px;
	}
	
	.pie-charts {
		width: 50%;
		float: left;
	}
	
	.mobile-div {
		display: none;
	}

}

@media screen and (min-width: 1024px) and (max-width: 1880px){
	.line-one{
		float: left;
		width: 100%;
	}
	
	.line-one .party-seats{
		width: 33.3%;
		float: left;
	}
	
	.line-one .party-seats-five{
		width: 50%;
		float: left;
	}
	
	.line-one .seven-party-seats {
		width: 33.3%;
		float: left;
	}
	
	.line-two {
		float: left;
		width: 100%;
	}
	
	.line-two .party-seats {
		float: left;
		width: 33.3%;
	}
	
	.line-two .party-seats-five {
		float: left;
		width: 33.3%;
	}
	
	.line-two .seven-party-seats {
		width: 25%;
		float: left;
	}
	
	
}

@media screen and (min-width: 1024px) and (max-width: 2040px){
	.four-party-seats {
		float: left;
		width: 25%
	}	
}

@media screen and (min-width: 1880px){
	
	.line-one {
		clear: both;
	}
	
	.party-seats{
		float: left;
		width: 16.66%;
	}
	
	.party-seats-five {
		float: left;
		width: 20%;
	}
	
	body {
		padding: 0 10em;
	}
	.wales-map svg {
		max-height: 1200px;
		width: 50%;
		float: left;
		padding: 3em 0;
	}
	.overview-text{
		width: 50%;
		float: right;
	}
	table {
		clear: both;
	}
	
	.circonscription-svg {
		width: 45%;
		float: left;
	}
	
	.circonscription-chart {
		width: 55%;
		float: right;
	}
	
	.seven-party-seats {
		float: left;
		width: 14.28%;
	}
}

@media screen and (min-width: 2040px){
	.four-party-seats {
		float: left;
		width: 12.5%;
	}

}