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

.large-link {
	margin: 20px 10px;
}

 /* Add a black background color to the top navigation */
.topnav {
  background-color: #333;
  overflow: hidden;
}

.title {
	padding-left: 15px;
}

.sub-title {
	font-family: Mokoko, Serif;
	font-size: 2em;
	width: 95%;
	margin-left: 2.5%;
	margin-right: 2.5%;
}

.candidate-subheadings {
	font-size: 1.4em;
	font-family: Mokoko, Serif;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 0px;
  text-decoration: none;
  font-size: 17px;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Add an active class to highlight the current page */
.topnav a.active {
  background-color: #3B4870;
  color: white;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
} 

@media screen and (min-width: 600px) {
	.topnav a {
		width: 12%;
	}
}

 /* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
} 

.image-links {
	width: 80%;
	max-width: 500px;
	display: block;
	margin: 0 auto;
}

.zoom{
	-webkit-transition: all 1s ease; /* Safari and Chrome */
    -moz-transition: all 1s ease; /* Firefox */
    -ms-transition: all 1s ease; /* IE 9 */
    -o-transition: all 1s ease; /* Opera */
    transition: all 1s ease;
}

.zoom:hover{
	-webkit-transform:scale(1.25); /* Safari and Chrome */
    -moz-transform:scale(1.25); /* Firefox */
    -ms-transform:scale(1.25); /* IE 9 */
    -o-transform:scale(1.25); /* Opera */
     transform:scale(1.25);
}

a {
	text-decoration: none;
}

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

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

.intro-text {
	font-size: 1.35em;
}

.updated {
	text-align: center;
	font-style: italic;
	font-family: Mokoko, Serif;
}

.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;
}

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

header h1 {
	font-family: mokoko, serif;
	font-weight: 500;
	font-style: normal;
	font-size: 2.5em;
	/*color: rgba(171,122,123,1.00)*/
}

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

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

.subheading {
	margin: 0.2em 0;
}

.seat-explanation a {
	color: #aaaaaa;
}

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;
}

h1 {
	/*font-family: kansasnew, serif;*/
	font-weight: 600;
}

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


#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: red;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
}

#myBtn:hover {
  background-color: #555;
}

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

.superscript {
	font-size: 0.4em;
}

.projection{
	background-color: rgba(200,30,30,1.00);
	text-align: left;
	height: auto;
	width: 90%;
	margin: 1em auto;
	font-family: maple-web, sans-serif;
	font-weight: 700;
	font-style: normal;
}

.projectionHeader {
	padding: 20px;
	text-align: center;
}

.party-icon {
	display: block;
	position: absolute;
	top: 50%;
	left: 25%;
	margin: 0 0 0 -25px;
	width: 150px;
}

.tooltip {
	visibility: hidden;
	width: 500px;
	background-color: black;
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 5px 0;

	/* Position the tooltip */
	position: absolute;
	z-index: 1;
}

#biscay-chart{
	display: none;
}

#gipuzkoa-chart{
	display: none;
}

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

#svg842 {
	width: 85%;
	max-width: 750px;
	text-align: center;
	margin: 0 auto;
}

.constituencytext {
	text-align: center;
	font-size: 1.5em;
}

#lastseat, #nextseat {
	padding: 0.05em 0.3em;
	display: inline-block;
	font-weight: 600;
	font-size: 1.2em;
	font-family: mokoko;
	width: auto;
	text-align: center;
	margin: 0 auto;
}

#lastseat {
	background-color: #2c5799;
}

#nextseat {
	background-color: #d43157;
}

.seat-count{
	font-size: 3em;
	margin-top: 0.5em;
}

.projection-header{
	font-size: 2em;
	margin-bottom: 0.5em;
}

.image-projection {
	position: relative;
	width: 49%;
	float: left;
}

.text-projection {
	width: 49%;
	float: right;
	text-align: center;
}

#currentChart{
	width: 90%;
}

#forecastChart{
	width: 90%;
}

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

.party-seats, .london-party-seats{
	width: 90%;
	text-align: center;
	margin: 2em 2.5%;
	height: auto;
}

.translation {
	font-style: italic;
	font-weight: 200;
	font-size: 1.5em;
	padding: 0 1px;
}

.translation-mobile {
	font-style: italic;
	font-weight: 200;
	font-size: 1.2em;
}

.party-seats img, .london-party-seats img {
	width: 300px;
	padding: 1em;
}

.party-seats h4, .party-seats h5 {
	margin: 1px 0;
}

.party-seats div, .london-party-seats div {
	padding: 0.5em 0;
}

.party-seat-count {
	font-family: "gabriella", sans-serif;
	font-size: 5em;
	font-weight: 900;
	font-style: normal;
	margin: 0;
}

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

.party-name {
	font-size: 2.5em;
	font-family: protipo, sans-serif;
	height: auto;
	margin: 0;
}

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

.bng-box{
	background-color: #cfcfff;
}

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

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

.sumar-box{
	background-color: #cf647d;
}

.do-box{
	background-color: #f1d888;
	color: black;
}

.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;
}

.wales-map svg {
	max-height: 1200px;
}

.wales-map img {
	max-height: 700px;
}

#scotland-map {
	max-height: 700px;
	max-width: 600px;
}

.first_wales_maps {
	width: 100%;
	float: left;
	text-align: center;
}

.tooltip_templates{
	display: none;
}

.tooltip-content{
	width: auto;
	max-width: 600px;
}

.tooltip-content h2 {
	text-align: center;
	padding: 10px;
	line-height: 40px;
}

.tto_forecast_header {
	text-align: center;
	float: left;
}

.constituency-projection {
	height: 100px;
	margin: 0 auto;
}

.constituency-projection-div {
	width: auto;
	text-align: center;
}

.tooltip-charts {
	float: left;
	clear: both;
	margin: 10px auto 20px auto;
	width: 590px;
}

.percentage-chart{
	height: 400px;
}

.party-seats-tooltip {
	width: 50%;
	float: left;
}

.party-seats-tooltip img {
	width: 300px;
}

.wales-map {
	margin: 0 auto;
	float: left;
	width: 100%;
}

.wales-map img {
	width: 100%;
	max-width: 700px;
}

.wrapper {
	width: 100%;
	float: left;
}

.seat-box {
	width: 90%;
	max-width: 900px;
	margin: 2em auto;
	padding: 0.2em 1em;
}

.seat-forecast {
	font-size: 1.75em;
	min-width: 200px;
	width: 90%;
	margin: 1em auto;
	border-bottom: solid 8px;
}

.labour-border {
	border-color: #CA3B2C;
}

.con-border {
	border-color: #357ABE;
}

.snp-border {
	border-color: #efeab5;
}

.ld-border {
	border-color: #EFA842;
}

.seat-map {
	width: 80%;
	max-width: 800px;
	display: block;
	margin: 1em auto;
	clear: both;
}

.mayor-map {
	margin: 0 auto;
	float: left;
	width: 100%;
}

.mayor-map svg {
	max-height: 500px;
	max-width: 700px;
	margin: 0 auto;
}

.seat-box h2 {
	text-align: center;
}

.seat-banner {
	font-size: 1.8em;
	min-width: 280px;
	width: 40%;
	margin: 1em auto;
	filter: drop-shadow(5px 5px 4px black);
	border: none;
}

.seat-box h5 {
	background-repeat: no-repeat;
	float: left;
	background-position: center;
	background-size: contain;
	width: 30%;
	text-align: center;
	font-size: 1em;
	padding: 0.5em 0;
	margin: 0.5em auto;
}

.majority-text {
	text-align: center;
	font-size: 1.5em;
}

.pie-charts h2 {
	width: 95%;
	max-width: 500px;
	text-align: center;
	margin: 50px auto 0 auto;
}

.past-elections h4 {
	text-align: left;
	font-size: 1.5em;
	padding: 0.5em 0 0 0;
	border-bottom: solid 2px lightgrey;
	width: 45%;
	min-width: 110px;
}

.labour-bg {
	color: white;
	background-image: url("../graphics/labour-bg.png");
}

.pc-bg {
	color: white;
	background-image: url("../graphics/pc-bg.png");
}

.ind-bg {
	color: white;
	background-image: url("../graphics/ind-bg.png");
}

.con-bg {
	color: white;
	background-image: url("../graphics/con-box.png");
}

.snp-bg {
	color: black;
	background-image: url("../graphics/snp-box.png");
}

.ld-bg {
	color: white;
	background-image: url("../graphics/ld-bg.png");
}


.noc-bg {
	color: white;
	background-image: url("../graphics/noc-box.png");
}

.leading-text {
	height: 80px;
}

.past-elections {
	clear: both;
	display: block;
}

.seat-explanation {
	clear: both;
	font-size: 1.25em;
}

/*.past-election-box {
	background-color: blue;
	width: 30%;
	float: left;
}*/

.seat-right-side {
	display: block;
}

.england-maps {
	max-width: 800px;
	margin: 2em auto;
	font-family: maple-web, sans-serif;
}

.county-charts div {
	padding: 10px 0;
	height: 500px;
}

.pie-charts {
	width: 100%;
}

.iframecontainer {
	text-align: center;
}

.opinion-poll-chart {
	width: 80%;
	max-width: 1300px;
	margin: 0px auto;
}

.picture-links {
	text-decoration: underline;
}

.copyright-text {
	font-size: 0.73em;
}

.copyright-text h2 {
	border-bottom: 0px;
}

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

@media screen and (min-width: 1024px) and (max-width: 1700px){
	.smaller-text {
		font-size: 1.25em;
	}
}

@media screen and (max-width: 1024px){
	.line-one, .line-two{
		display: none;
	}

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

	.candidate-subheadings {
		border-color: white;
		width: 80%;
		margin: 50px auto 0 auto;
		border-bottom: 2px solid lightgrey;
	}

	.opinion-poll-chart {
		width: 100%;
	}
}

@media screen and (min-width: 1024px){
	#forecastChart{
		width: 100%;
		float: left;
	}
	
	#currentChart{
		width: 100%;
		float: left;
	}

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

	.map-charts {
		width:  50%;
		float: left;
		margin-bottom: 1.5em;
		height: 720px;
	}

	.map-charts p {
		margin: 0.5em;
	}

	.map-charts h2 {
		text-align: center;
		margin: auto;
		width: 65%;
	}

	.map-charts svg {
		margin: auto;
	}

	.wales-map {
		margin: 0 auto;
		float: left;
		width: 100%;
	}
	
	.county-charts div {
		width: 45%;
		float: left;
		margin: auto;
		padding: 1em;
	}
	
	.seat-banner {
		font-size: 2.5em;
	}
	
	.standard-text {
		font-size: 1.45em;
		margin-left: 5%;
		margin-right: 5%;
	}
	
	.intro-para {
	float: left;
	width: 60%;
	padding: 1em;
	}

	.twitter-timeline {
		float: left;
		width: 25%;
	}
}

@media screen and (min-width: 1024px){
	.line-one{
		float: left;
		width: 100%;
		text-align: center;
	}
	
	.line-one .party-seats{
		width: 45%;
		max-width: 500px;
		margin: 15px 20px; /* Create equal spacing on both sides of each box */
		display: inline-block; /* Maintain inline-block behavior */
		border-radius: 10px;
	}

	.line-two{
		float: left;
		width: 100%;
		text-align: center;
	}

	.line-two .party-seats{
		width: 45%;
		max-width: 300px;
		margin: 15px 20px; /* Create equal spacing on both sides of each box */
		display: inline-block; /* Maintain inline-block behavior */
		border-radius: 10px;
		font-size: 0.8em;
	}
}

@media screen and (min-width: 2300px){
	
	body {
		padding: 0 10em;
	}
}
