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

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

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: 85%;
	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;
}

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

.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%;
	/*max-width: 900px;*/
	text-align: center;
	margin: 2em auto;
	max-height: 550px;
}

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

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

.party-seat-count {
	font-size: 2.5em;
	display: block;
}

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

.party-seats h5, .london-party-seats h5 {
	font-size: 1.75em;
}

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

.labour-box {
	background-color: #CA3B2C;
	color: white;
}

.labour-min-box {
	background-color: #FE582C;
	color: white;
}

.con-box {
	color: white;
	background-color: #357ABE;
}

.con-min-box {
	color: white;
	background-color: #2EC4FF;
}

.noc-box {
	color: white;
	background-color: #000000;
}

.pc-box {
	background-color: #6CB082;
}

.ind-box {
	background-color: #e07ee6;
}

.ld-box {
	background-color: #EFA842;
	color: white;
}

.ld-min-box {
	background-color: #FFDE39;
	color: black;
}

.res-min-box {
	background-color: #A3D9C9;
}

.mpra-box {
	background-color: #8d3353;
}

.cch-min-box {
	background-color: #7C61A7;
}

.brx-box {
	background-color: #53B4CC;
}

.grn-box {
	background-color: #97BE6A;
}

.oth-box {
	background-color: #908e8e;
}

.hra-box {
	background-color: #5cd936;
}

.hirg-box {
	background-color: #575757;
}

.awap-box {
	background-color: #993636;
}

.snp-box {
	background-color: #efeab5;
	color: black;
}

.socialist-box {
	background-color: #ea4848;
}

.alba-box {
	background-color: #5191ce;
}

.ind-box {
	background-color: #A968C0;
}

.aspire-box {
	background-color: #ed6b48;
}

.wales-map{
}

.wales-map svg {
	width: 95%;
	max-height: 700px;
	margin-bottom: 20px;
}

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

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

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

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

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

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

.council-projection {
	width: 80%;
	max-width: 1000px;
	margin: 1em auto;
	display: block;
	text-align: center;
}

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

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


@media screen and (min-width: 1024px){
	#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;
	}
	
	.wales-map {
		margin: 0 auto;
		float: left;
		width: 50%;
	}
	
	.county-charts div {
		width: 45%;
		float: left;
		margin: auto;
		padding: 1em;
	}
	
	.seat-banner {
		font-size: 2.5em;
	}
	
	.standard-text {
		font-size: 1.45em;
	}
	
	.intro-para {
	float: left;
	width: 60%;
	padding: 1em;
}

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

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

@media screen and (min-width: 1880px){
	
	.party-seats{
		float: left;
		width: 14.28%;
	}
	
	.one-party-seats {
		float: left;
		width: 100%;
	}
	
	.two-party-seats{
		float: left;
		width: 50%;
	}
	
	.three-party-seats{
		float: left;
		width: 33%;
	}
	.four-party-seats{
		float: left;
		width: 25%;
	}
	
	body {
		padding: 0 10em;
	}
}
