body {
    padding: 0;
    margin: 0;
	position: relative;
	overflow: hidden;
	background-color: #fff;
	font: 90% 'Open Sans', sans-serif;
	color: #313131;
}

html, body {
    height: 100%;
}

label, input, select {
	vertical-align: middle;
}

input.share {
	width: 90%;
}

th {
	font-weight: normal;
}

button {
	outline: none;
	border: 0;
	padding: 8px 16px;
	background-color: #d7d7d7;
	cursor: pointer;
}

.panel button, .controls button, .tab button {
	padding: 0;
	margin: 0;
	position: relative;
	width: 36px;
	height: 36px;
}

.layer-custom button {
	width: auto;
	padding: 0 16px;
}

button:hover, button.selected {
	background-color: #83d1f0;
	color: white;
}

button i {
	vertical-align: middle;
}

.leaflet-control.wz-layers-radar-control {
	margin-bottom: 0;
	margin-left: 0;

	background-color: #ebebeb;

	-webkit-box-shadow: 0px 0px 5px rgba(0,0,0,0.8);
	box-shadow: 0px 0px 5px rgba(0,0,0,0.8);
}

.wz-layers-radar-control>div {
	display: inline-block;
}

.wz-layers-radar-control-radars button {
	background-image: url('radar-dark.svg');
	background-repeat: no-repeat;
	background-size: 14px 14px;
	background-position: 4px center;
	padding-left: 24px;
}

.wz-layers-radar-control-radars button:hover, .wz-layers-radar-control-radars button.selected {
	background-image: url('radar.svg');
}

.wz-layers-radar-control>div:not(:first-child) button {
	margin-left: 1px;
}

.button-set {
	flex: 0 1 auto;
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}

.button-set li {
	flex: 0 1 auto;
	width: 36px;
	height: 36px;
	line-height: 36px;
	text-align: center;
}

.button-set li:not(:first-child) {
	margin-left: 1px;
}

.button-set li button {
	display: block;
	width: 100%;
	height: 100%;
}

select {
	margin-right: 16px;
	padding: 2px;
	border: 0;
	background-color: #d7d7d7;
	font: inherit;
}

select.non-default {
	background-color: #FFd7d7;
}

.map {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #333;
}

.initial {
	position: absolute;
	margin-top: 2em;
	width: 100%;
	height: 100%;
	text-align: center;
	color: white;
}

.authorised .initial {
	display: none;
}

.overmap {
	position: absolute;

	background-color: #ebebeb;
	
	-webkit-box-shadow: 0px 0px 5px rgba(0,0,0,0.8);
	box-shadow: 0px 0px 5px rgba(0,0,0,0.8);
}

.legend {
	float: left;
	width: 640px;
	
	bottom: 0;
	right: 0;
	
	z-index: 1045;
}

.legend>img {
	height: 20px;
}

.legend ul {
	float: left;
	width: 100%;
	list-style: none;
	margin: 2px;
	padding: 0;
}

.legend ul li {
	float: left;
	margin: 1px;
	padding: 2px 4px;
	background-color: #d7d7d7;
}

.legend>table, .legend>img {
	float: left;
	clear: left;
	margin: 2px;
}

.controls {
	bottom: 0;
	right: 0;

	z-index: 1050;

	transition-property: bottom;
	transition-duration: 0.1s;
}

.controls.hidden {
	bottom: -36px;
}

.controls>div:last-child {
	display: flex;
}

.controls .animation-options {
	padding: 8px;
}

.controls .with-select {
	flex: 0 1 auto;
	display: flex;
	align-items: center;
}

.controls select {
	width: 102px;
	margin: 0 8px;
}

.controls input[type=range] {
	flex: 0 1 auto;
	width: 128px;
	margin: 0 8px;
}

.controls .position, .controls .timestamp {
	flex: 0 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;

	width: 168px;
	height: 36px;
	
	background-color: #d7d7d7;
}

.controls .position {
	margin-right: 1px;
}

.panel, .tab {
	right: 0;
	top: 50px;
	z-index: 1040;

	transition-property: right;
	transition-duration: 0.1s;
}

.panel {
	width: 320px;
	padding-left: 2px;
}

.panel.hidden {
	right: -322px;
}

.tab.hidden {
	right: -48px;
}

.tab>header {
	padding: 12px 0 12px 12px;
}

.panel>header {
	display: flex;
	align-items: center;
	/*justify-content: flex-end;*/
}

h1 {
	flex: 1 0 auto;
	height: 60px;
	margin: 0;
	padding: 0;
	text-indent: -9999px;
	/*background: url('logo.png') no-repeat scroll 8px center;*/
	background-image: url('logo.png');
	background-repeat: no-repeat;
	background-attachment: scroll;
	background-position: 8px center;
}

.panel>header .button-set {
	flex: 0 1 auto;
	display: flex;
	margin-right: 12px;
}

.panel>header .button-set li:not(:first-child) {
	margin-left: 8px;
}

.panel>header .button-set li.wider {
	width: 46px;
}

.panel>header .button-set li.wider button {
	background-color: transparent;
}

.panel>header .button-set li.wider button:hover {
	background-color: #83d1f0;
}

.panel>header .button-set li.wider button:hover * {
	color: white;
}

.panel>header .button-set li.wider button span {
	text-transform: uppercase;
	color: #1da2ce;
	font-size: 65%;
}

.panel>header .button-set li.wider button i {
	color: #83d1f0;
}

.panel .select-wrapper {
	padding: 12px 0;
	text-align: center;
	background-color: #83d1f0;
	color: white;
}

.panel>.button-set {
	width: 100%;
	margin: 2px 0;
	background-color: #cde1e8;
}

.panel>.button-set li {
	margin-left: 0;
	border-right: 2px solid #ebebeb;
}

.panel>.button-set button {
	background-color: #cde1e8;
	color: #1da2ce;
}

.panel>.button-set button:hover, .panel>.button-set button.selected {
	background-color: #83d1f0;
	color: white;
}

.panel .scrolling {
	max-height: 512px;
	overflow-y: scroll;
}

.panel div.dialog {
	display: none;
}

.panel div.dialog>div {
	background-color: white;
	padding: 8px;
}

.panel div.dialog input {
	width: 75%;
	padding: 4px;
}

.panel div.dialog button {
	width: auto;
	height: auto;
	padding: 6px;
}

.panel .layer-chooser>ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.panel .layer-chooser>ul li, .panel h2 {
	margin: 2px 0;
}

.panel h2 {
	text-transform: uppercase;
	font-size: 110%;
	padding: 8px;
	padding-left: 32px;
}

.panel .layer-chooser>ul li .layer-top {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	background-color: #d7d7d7;
}

.panel .layer-chooser>ul li .layer-top button {
	flex: 0 1 36px;
	color: #29a1d6;
}

.panel .layer-chooser>ul li .layer-top button:hover {
	background-color: white;
	color: #29a1d6;
}

.panel .layer-chooser>ul li .layer-top label {
	flex: 1 1 auto;
}

.panel .layer-chooser>ul li .layer-top .metadata {
	flex: 1 1 auto;
	text-align: right;
	color: #a1a1a1;
	margin-right: 2px;
}

.panel .layer-chooser>ul li .layer-top .metadata.loading {
	background-image: url('loading.gif');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center right;
	color: transparent;
}

.panel .layer-chooser>ul li .layer-top .cb-wrapper {
	flex: 0 1 36px;
	height: 36px;
	background-color: #83d1f0;
	text-align: center;
	line-height: 36px;
	margin-right: 8px;
}

.panel .layer-custom {
	display: none;
	background-color: white;
}

.panel .layer-custom select {
	width: 75%;
}

.panel table {
	width: 100%;
	border-collapse: collapse;
}

.panel table th, .panel table td {
	padding: 8px 4px;
}

.panel table th {
	width: 30%;
	padding-right: 16px;
	text-align: right;
}

.panel table td.with-slider {
	padding-right: 32px; 
	/*padding-left: 32px;*/
}

.panel table td.layers-value {
	width: 20%;
	color: gray;
	font-style: italic;
}

/* icons */

.layers-div-icon > div {
    display: flex;
}

.layers-div-icon .daily-forecast .icon {
    flex: 0 0 27px;
}

.layers-div-icon .name {
    flex: 1 0 64px;
	max-width: 72px;
	margin: 0 0.4em 0 0.2em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 1em;
	align-self: center;
}

.layers-div-icon .value {
    flex: 0 0 36px;
	display: flex;
	height: 27px;
    font-size: 1.1em;
	font-weight: bold;
	text-align: center;
}

.layers-div-icon .value span {
	flex: 1 1 auto;
	align-self: center;
}

/* icons - specifics */

.layers-div-icon .daily-forecast {
    background-color: #fff;
    box-shadow: -1px 1px 3px rgba(0,0,0,0.5);
}

/* range control */

input[type=range] {
	-webkit-appearance: none;
	background: transparent;
}
  
input[type=range]:focus {
	outline: none;
}
  
  /* webkit */
input[type=range]::-webkit-slider-thumb {
	width: 1em;
	height: 1em;
	border-radius: 128px;
	background: #6ed0f6;
	border: none;
	box-shadow: 0 0 2px rgba(0,0,0,0.5);
	margin-top: calc(max((0.4em - 1px - 1px) * 0.5,0px) - 1em * 0.5);
	cursor: pointer;
	-webkit-appearance: none;
}
  
input[type=range]::-webkit-slider-runnable-track {
	height: 0.4em;
	border-radius: 0.4em;
	background: #b7b7b7;
	border: 1px solid #b2b2b2;
	box-shadow: none;
}
  
/* mozilla */
input[type=range]::-moz-range-thumb {
	width: 1em;
	height: 1em;
	border-radius: 128px;
	background: #6ed0f6;
	border: none;
	box-shadow: 0 0 2px rgba(0,0,0,0.5);
	cursor: pointer;
}
  
input[type=range]::-moz-range-track {
	height: max(calc(0.4em - 1px - 1px),0px);
	border-radius: 0.4em;
	background: #b7b7b7;
	border: 1px solid #b2b2b2;
	box-shadow: none;
}
  
/* ms */
input[type=range]::-ms-fill-upper {
	background: transparent;
	border-color: transparent;
}
  
input[type=range]::-ms-fill-lower {
	background: transparent;
	border-color: transparent;
}
  
input[type=range]::-ms-thumb {
	width: 1em;
	height: 1em;
	border-radius: 128px;
	background: #6ed0f6;
	border: none;
	box-shadow: 0 0 2px rgba(0,0,0,0.5);
	margin-top: 0;
	box-sizing: border-box;
	cursor: pointer;
}
  
input[type=range]::-ms-track {
	height: 0.4em;
	border-radius: 0.4em;
	background: #b7b7b7;
	border: 1px solid #b2b2b2;
	box-shadow: none;
	box-sizing: border-box;
}

div.lightning-intensity-scale {
	display: inline-block;
	width: 255px;
	height: 12px;
	background: rgb(255,102,255);
	background: linear-gradient(90deg, rgba(255,102,255,1) 0%, rgba(170,153,255,1) 33%, rgba(255,255,255,1) 100%);
}

td.fdr {
	width: 20%;
	background-color: white;
	color: black;
	text-align: center;
	padding-left: 0.2em;
	padding-right: 0.2em;
}

td.fdr-moderate {
	background-color: #64bf30;
}

td.fdr-high {
	background-color: #fedd3a;
}

td.fdr-extreme {
	background-color: #f78100;
}

td.fdr-catastrophic {
	background-color: #ad0909;
	color: white;
}

/* LWP-style colours */
.local_grad_tdb_-25 { background-color: #FFFFFF; }
.local_grad_tdb_-20 { background-color: #FFFFFF; }
.local_grad_tdb_-15 { background-color: #FFFFFF; }
.local_grad_tdb_-10 { background-color: #FFFFFF; }
.local_grad_tdb_-5 { background-color: #E1F6FB; }
.local_grad_tdb_0 { background-color: #BCEEFB; }
.local_grad_tdb_5 { background-color: #B9ECD8; }
.local_grad_tdb_10 { background-color: #CADB92; }
.local_grad_tdb_15 { background-color: #FFEB88; }
.local_grad_tdb_20 { background-color: #FBC25E; }
.local_grad_tdb_25 { background-color: #FF9933; }
.local_grad_tdb_30 { background-color: #FF7B33; }
.local_grad_tdb_35 { background-color: #CD5B12; }
.local_grad_tdb_40 { background-color: #FF3C1C; }
.local_grad_tdb_45 { background-color: #FF3C1C; }
.local_grad_tdb_50 { background-color: #FF3C1C; }
