@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900,200italic,300italic,400italic,600italic,700italic,900italic);

* {
	border: 0;
	margin: 0;
	padding: 0;
	font-family: Source Sans Pro;
}

html,
body {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

header {
	position: fixed;
	top: 0;
	width: 100%;
	height: 50px;
	background: #0B1B51;
	z-index: 1000;
}

header img.logo {
	display: inline-block;
	margin: 12px 2px 0 15px;
}

header h1 {
	display: inline-block;
	font-size: 18px;
	color: #FFF;
	font-weight: 400;
	font-style: italic;
}

header #error {
	display: none;
	position: absolute;
	width: 450px;
	line-height: 26px;
	background: #FFFBC8;
	border: 1px solid #FFF999; 
	left: 50%;
	top: 11px;
	margin-left: -235px;
	padding: 0 10px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}

main {
	width: 100%;
	height: 100%;
}

form#login {
	position: relative;
	width: 450px;
	height: 145px;
	background: #EEE;
	border: 1px solid #CCC;
	border-radius: 1px;
	margin: 100px auto 0 auto;
	padding: 30px 0 0 0;
	text-align: center;
	-webkit-box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.2);
	-moz-box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.2);
	box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.2);
}

form#login label {
	float: left;
	height: 24px;
	line-height: 24px;
	font-size: 14px;
	width: 160px;
	text-align: right;
	padding: 0 14px 0 0;
	margin-bottom: 12px;
	font-weight: 600;
}

form#login input {
	float: left;
	outline: 0;
	height: 24px;
	line-height: 24px;
	width: 175px;
	font-size: 12px;
	padding: 0 5px 0 5px;
	border: 1px solid #AAA;
	border-bottom: 1px solid #CCC;
	background-color: #FFF;
	vertical-align: text-bottom;
	margin-bottom: 12px;
	border-radius: 1px;
	-webkit-box-shadow: inset 0px 0px 2px 0px rgba(0,0,0,0.2);
	-moz-box-shadow: inset 0px 0px 2px 0px rgba(0,0,0,0.2);
	box-shadow: inset 0px 0px 2px 0px rgba(0,0,0,0.2);
}

form#login select {
	float: left;
	outline: 0;
	height: 24px;
	line-height: 24px;
	width: 175px;
	font-size: 12px;
	padding: 0 5px 0 5px;
	border: 1px solid #AAA;
	border-bottom: 1px solid #CCC;
	background-color: #FFF;
	vertical-align: text-bottom;
	margin-bottom: 12px;
	border-radius: 1px;
	-webkit-box-shadow: inset 0px 0px 2px 0px rgba(0,0,0,0.2);
	-moz-box-shadow: inset 0px 0px 2px 0px rgba(0,0,0,0.2);
	box-shadow: inset 0px 0px 2px 0px rgba(0,0,0,0.2);
}

form#login input[type=submit] {
	float: none;
	height: 28px;
	line-height: 28px;
	width: auto;
	font-size: 12px;
	font-weight: 600;
	padding: 0 10px;
	border: 1px solid #AAA;
	background-color: #DDD;
	border-radius: 1px;
	margin: 10px auto 0 auto;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

form#login input[type=submit]:hover {
	background-color: #CCC;
}

#loading {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255,255,255,0.65);
	z-index: 994;
	box-sizing: border-box;
}

#loading .middle {
	position: absolute;
	top: 50%;
	left: 0;
	margin-top: -49px;
	width: 100%;
	height: 50px;
	padding: 0 210px 0 402px;
	box-sizing: border-box;
	text-align: center;
}

#loading h3 {
	font-size: 24px;
}

#loading img {
	width: 50px;
	height: 50px;
}

#map {
	width: 100%;
	height: 100%;
	z-index: 990;
	margin-left: 100px;
}

#wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 500px;
	height: 100%;
	z-index: 995;
	font-size: 0;
	vertical-align: text-bottom;
	white-space: nowrap;
}

ul#controls {
	position: absolute;
	top: 20px;
	right: -120px;
	width: 200px;
	height: 100px;
	font-size: 0;
}

ul#controls li {
	display: inline-block;
	width: 26px;
	height: 26px;
	padding-right: 15px;
}

ul#controls li img {
	cursor: pointer;
	transition: all 0.25s;
}

ul#controls li img:not(#map_zoomin):not(#map_zoomout):hover {
	-webkit-transform: rotate(25deg); /* Chrome, Safari, Opera */
    transform: rotate(25deg);
}

#info {
	display: inline-block;
	width: 400px;
	height: 100%;
	border-right: 10px solid #0B1B51;
	border-radius: 0;
	background: linear-gradient(135deg, #F4F4F4 0%,#E8E8E8 45%,#E9E9E9 65%,#F8F8F8 100%);
	-moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.1);
	box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.1);
	box-sizing: border-box;
	vertical-align: text-bottom;
	text-align: center !important;
	z-index: 1005;
	overflow-y: auto;
}

#info h1 {
	font-size: 24px;
	font-weight: 600;
	width: calc(100% - 32px);
	padding: 15px 4px 10px 4px;
	margin: 0px 16px;
	box-sizing: border-box;
	text-align: left;
	background-image: url('../images/mpin_green.png');
	background-repeat: no-repeat;
	background-size: 22px 40px;
	background-position: right 12px;
	cursor: pointer;
}

#info h1.yellow {
	background-image: url('../images/mpin_yellow.png');
}

#info h1.orange {
	background-image: url('../images/mpin_orange.png');
}

#info h1.red {
	background-image: url('../images/mpin_red.png');
}

h2 {
	position: relative;
	font-size: 20px;
	font-weight: 300;
	width: calc(100% - 32px);
	padding: 22px 0 5px 4px;
	margin: 0px 20px;
	border-bottom: 1px solid #BBB;
	box-sizing: border-box;
	text-align: left;
	background-repeat: no-repeat;
	background-size: 20px 20px;
	background-position: right 26px;
}

h2.heat {
	background-image: url('../images/heat.svg');
}

h2.carbon {
	background-image: url('../images/ratio.svg');
}

h2.fuel {
	background-image: url('../images/meter.svg');
}

h2.boiler {
	background-image: url('../images/boiler.svg');
}

#registerread {
	padding-top: 10px;
	height: 26px;
	width: 100%;
	text-align: center;
}

#registerread span {
	height: 26px;
	display: inline-block;
	font-size: 16px;
	font-weight: 600;
	line-height: 26px;
	vertical-align: top;
}

h3 {
	position: relative;
	font-size: 42px;
	font-weight: 300;
	width: 100%;
	padding: 7px 0 7px 0;
	text-align: center;
	box-sizing: border-box;
}

h3.loading {
	font-size: 0 !important;
	line-height: 52px;
}

h3.loading:after {
	content: "";
	position: absolute;
	top: 24px;
	left: 50%;
	width: 32px;
	height: 32px;
	margin-left: -15px;
	background-image: url('../images/loader.gif');
	background-repeat: no-repeat;
	background-size: contain;
}

h3 span.uom {
	font-size: 20px;
	font-weight: 600;
}

h3.loading span {
	font-size: 0;
}

h5 {
	font-size: 14px;
	font-weight: 400;
	color: #777;
	width: 100%;
	text-align: center;
}

.bar {
	position: relative;
	width: 80%;
	height: 20px;
	border: 1px solid #999;
	margin: 0 auto 10px auto;
	background: #DDD;
	text-align: left;
}

.bar span {
	display: block;
	height: 20px;
}

#heatbar span {
	background: linear-gradient(180deg, #F65B65 0%,#E7565E 100%);
}

#heatbar:after {
	position: absolute;
	top: -5px;
	right: 20%;
	content: "";
	width: 0;
	height: 30px;
	border-left: 1px solid #666;
}

#carbonbar span {
	background: linear-gradient(180deg, #444444 0%,#555555 100%);
}

#fuelbar span {
	background: linear-gradient(180deg, #31773B 0%,#296433 100%);
}

#satellite {
	width: calc(100% - 40px);
	height: 200px;
	border: 1px inset #AAA;
	margin: 10px 20px 5px 20px;
	box-sizing: border-box;
	background: #EEE;
}

#status {
	width: 80%;
	line-height: 32px;
	border: 1px solid #AAA;
	border-radius: 3px;
	margin: 22px auto 14px auto;
	font-weight: 600;
	font-size: 16px;
	background: linear-gradient(180deg, #CCC 0%,#C0C0C0 100%);
	color: #777;
	word-wrap: normal;
	white-space: normal;
}

#status:after {
	content: "UNKNOWN";
}

#status.ok {
	background: linear-gradient(180deg, #6EE978 0%,#67DB6F 100%);
	color: #000;
}

#status.ok:after {
	content: "OK";
}

#status.fault {
	background: linear-gradient(180deg, #F65B65 0%,#E7565E 100%);
	color: #FFF;
}

#status.fault:after {
	content: "";
}

#logos {
	position: absolute;
	bottom: 86px;
	right: 235px;
	width: 400px;
	height: auto;
	box-sizing: border-box;
	vertical-align: text-bottom;
	z-index: 995;
	text-align: right;
}

#logos img {
	display: none;
}

.marker {
	font-family: Source Sans Pro !important;
	font-size: 18px;
	font-weight: 600;
}

#ticker {
	position: absolute;
	bottom: 15px;
	left: 0;
	width: calc(100% - 650px);
	height: 54px;
	background: rgba(11,27,81,0.9);
	z-index: 1050;
	margin: 0 300px 0 415px;
	box-sizing: border-box;
	text-align: center;
}

#ticker span {
	color: #FFF;
	font-size: 24px;
	line-height: 54px;
	font-weight: 200;	
}

#searchmap {
	position: absolute;
	top: 15px;
	right: 235px;
	padding: 10px;
	z-index: 995;
	width: 275px;
	font-size: 17px;
	border: 1px solid #AAA;
	border-radius: 2px;
	background-image: url('../images/search.svg');
	background-size: 24px 24px;
	background-position: right+10px center;
	background-repeat: no-repeat;
	box-shadow: 0 0 3px 0 #AAA;
}

#searchmap.watermark {
	font-style: italic;
	color: #777;
	font-weight: 300;
}

#searchmap.searching {
	background-image: url('../images/loader.gif');
	background-size: 24px 24px;
	background-position: right+10px center;
	background-repeat: no-repeat;
}

.ui-autocomplete.ui-menu li {
	padding: 8px !important;
	font-size: 17px !important;
	font-family: Source Sans Pro !important;
}

/*----------WEATHER----------*/

ul#weather {
	position: absolute;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: column;
	flex-direction: column;
	-webkit-justify-content: space-around;
	justify-content: space-around;
	top: 0;
	right: 0;
	width: 220px;
	height: 100%;
	background: rgba(11,27,81,0.9);
	z-index: 996;
	-webkit-box-shadow: 0px 0px 5px 0px rgba(11,27,81,0.7);
	-moz-box-shadow: 0px 0px 5px 0px rgba(11,27,81,0.7);
	box-shadow: 0px 0px 5px 0px rgba(11,27,81,0.7);
	list-style: none;
	text-align: center;
}

ul#weather li {
	text-align: center;
}

ul#weather li.spacer {
	border: 0;
}

ul#weather li.seperator {
	margin: 0 25px;
	border-bottom: 1px solid #FFF;
}

ul#weather h1 {
	display: block;
	color: #FFF;
	font-size: 50px;
	font-weight: 300;
	text-align: center;
	padding: 0;
	margin: 0;
}

ul#weather h1 span {
	font-size: 28px;
	font-weight: 500;
	text-align: center;
}

ul#weather h2 {
	display: block;
	color: #FFF;
	font-size: 24px;
	font-weight: 500;
	text-align: center;
	border: 0;
	padding: 0;
	margin: 0 auto;
}

ul#weather img {
	display: block;
	width: 80px;
	height: 80px;
	margin: 0 auto;
}

#legend {
	display: inline-block !important;
	width: auto !important;
	margin: 0;
	box-sizing: border-box;
	z-index: 1015;
	list-style: none;
}

#legend li {
	text-align: left !important;
}

#legend img {
	display: inline-block !important;
	width: 20px !important;
	height: 38px !important;
	vertical-align: text-bottom;
}

#legend h4 {
	display: inline-block !important;
	line-height: 40px;
	margin-left: 10px;
	color: #FFF;
	vertical-align: text-bottom;
}

<!---->

.dialog {
	display: none;
	height: auto;
	text-align: center;
	width: 100%;
}

.dialog h2 {
	font-size: 15px;
	width: 100%;
	font-weight: 600;
	line-height: 32px;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #999;
}

.dialog h2.disabled {
	color: #BBB;
	font-weight: normal;
}

.dialog select {
	float: right;
	font-size: 12px !important;
	border: 1px solid #555;
	margin: 5px 0 0 0;
}

/*---------------------MEDIA QUERIES--------------------*/

@media screen and (max-width: 1300px) {

	#map {
		margin-left: 0;
	}
	
	#loading .middle {
		padding-right: 5px !important;	
	}
	
	#controls {
		right: -70px !important;
	}
	
	#info {
		width: 350px;
	}
	
	ul#weather {
		right: -210px;
		background: rgba(11,27,81,1);
	}
	
	#logos {
		right: 20px;
	}
	
	#legend {
		right: 15px;
	}

	#ticker {
		width: calc(100% - 390px);
		margin: 0 200px 0 365px;
	}

	#searchmap {
		right: 25px;
	}

}

@media screen and (max-height: 950px) {
	
	#info #satellite{
		height: 150px;
	}

}

@media screen and (max-height: 890px) {
	
	#info h2 {
		padding-top: 10px;
		background-position: right 15px;
	}

	#info h3 {
		padding-top: 10px;
	}

}

@media screen and (max-height: 850px) {
	
	#info h5 {
		display: none;
	}
	
}

@media screen and (max-width: 1024px) {

	#map {
		margin-left: 0;
	}
	
	#loading .middle {
		padding-right: 5px !important;	
	}
	
	#info {
		width: 350px;
	}
	
	ul#weather {
		display: none;
	}
	
	#logos {
		right: 10px;
	}

	#ticker {
		width: calc(100% - 380px);
		margin: 0 200px 0 365px;
	}
	
	#info {
		overflow-y: scroll;
	}
	
	#info h1 {
		font-size: 22px;
	}

	#info h3 {
		padding-top: 4px;
	}

	
	#info h3 span.value {
		font-size: 28px;
	}

}

