/* Body */
body {
    padding: 0px;
    margin: 0px;
    height: 100%;
}

html {
	height: 100%;
}

h1, h2, h3 {
	line-height: 30px;
}

a {
	transition: all 0.2s ease-out; 
}

.btn {
	-webkit-user-select: none;  /* Chrome all / Safari all */
    -moz-user-select: none;     /* Firefox all */
    -ms-user-select: none;      /* IE 10+ */
    -o-user-select: none;
    user-select: none;
}


/* Social links */
#share ul {
	margin: 0px;
}

#share li {
	list-style: none;
}

.float_left {
	float: left;
}

.social_links {
	width: 100%;
}

.info {
	padding: 6px 8px;
	font: 14px/16px Arial, Helvetica, sans-serif;
	background: white !important;
	background: rgba(255,255,255,1.0) !important;
	box-shadow: 0 0 15px rgba(0,0,0,0.2) !important;
	border-radius: 5px !important;
	height: auto;
	width: auto;
}
.info h4 {
	margin: 0 0 5px;
	color: #777;
}
.einfo {
	padding: 6px 8px;
	font: 14px/16px Arial, Helvetica, sans-serif;
	background: white;
	background: rgba(255,255,255,1.0);
	box-shadow: 0 0 15px rgba(0,0,0,0.2);
	border-radius: 5px;
}
.einfo h4 {
	margin: 0 0 5px;
	color: #777;
}

.opcntl {
	padding: 6px 8px;
	font: 14px/16px Arial, Helvetica, sans-serif;
	background: white;
	background: rgba(255,255,255,0.8);
	box-shadow: 0 0 15px rgba(0,0,0,0.2);
	border-radius: 5px;
}
.opcntl h4 {
	margin: 0 0 5px;
	color: #777;
}

.legend {
	text-align: left;
	line-height: 18px;
	color: #555;
	padding: 6px 8px;
	font: 14px/16px Arial, Helvetica, sans-serif;
	background: white;
	background: rgba(255,255,255,1.0);
	box-shadow: 0 0 15px rgba(0,0,0,0.2);
	border-radius: 5px;
}
.legend i {
	width: 18px;
	height: 18px;
	float: left;
	margin-right: 8px;
	opacity: 0.7;
}
#loading-image {
  position: absolute; 
  top: 45%; 
  left: 45%; 
  bottom:45%;
  z-index: 10000;
}
#help-mode {
  z-index: 10001;
}
#modalContainer {
	background-color:rgba(0, 0, 0, 0.3);
	position:absolute;
	width:100%;
	height:100%;
	top:0px;
	left:0px;
	bottom:0px;
	z-index:10000;
	background-image:url(tp.png); /* required by MSIE to prevent actions on lower z-index elements */
}

#alertBox {
	position:relative;
	width:300px;
	min-height:100px;
	margin-top:50px;
	border:1px solid #666;
	background-color:#fff;
	background-repeat:no-repeat;
	background-position:20px 30px;
}

#modalContainer > #alertBox {
	position:fixed;
}

#alertBox h1 {
	margin:0;
	font:bold 0.9em verdana,arial;
	background-color:#3073BB;
	color:#FFF;
	border-bottom:1px solid #000;
	padding:2px 0 2px 5px;
}

#alertBox p {
	font:0.7em verdana,arial;
	height:50px;
	padding-left:5px;
	margin-left:55px;
}

#alertBox #closeBtn {
	display:block;
	position:relative;
	margin:5px auto;
	padding:7px;
	border:0 none;
	width:70px;
	font:0.7em verdana,arial;
	text-transform:uppercase;
	text-align:center;
	color:#FFF;
	background-color:#357EBD;
	border-radius: 3px;
	text-decoration:none;
}
#table-sparkline {
	margin: 0 auto;
    border-collapse: collapse;
    width:100%;
}
#progress {
    display: none;
    position: absolute;
    z-index: 1000;
    left: 50%;
    top: 50%;
    width: 200px;
    height: 20px;
    margin-top: -20px;
    margin-left: -100px;
    background-color: #fff;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    padding: 2px;
}

#progress-bar {
    width: 0;
    height: 100%;
    background-color: #76A6FC;
    border-radius: 4px;
}
th {
    font-weight: bold;
    text-align: left;
}
td, th {
    padding: 5px;
    border-bottom: 1px solid silver;
    height: 20px;
}

thead th {
    border-top: 2px solid gray;
    border-bottom: 2px solid gray;
}
.highcharts-tooltip>span {
	background: white;
	border: 1px solid silver;
	border-radius: 3px;
	box-shadow: 1px 1px 2px #888;
	padding: 8px;
}


.leaflet-control-layers-toggle{ 
    width:auto;
    background-position:3px 50% ;
    padding:3px;
    padding-left:36px;
    text-decoration:none;
    line-height:36px;

}

/* bottstrap overrides */
#helpModal {display:none;}


/* Map */
#map {
	/* background-color: #08304a; */
	position: absolute;
	top: 0;
	height: 100%;
	width: 100%;
}


/* Pop-up information */
.popup_box_header {
    font-size: 16px;
}

hr {
	margin: 5px 0 5px 0;
}


/* Credits */
#credits {
	display: none;
}

#credits p {
	font-size: 9px;
}


/* 'About this map' button, description box */
/* Mobile only */
.toggle_description {
	display: none;
	z-index: 9;
	position: relative;
	float: right;
    right: 0%;
    top: 0%;
}

.description_box_cover {
	display: none;
	z-index: 12;
	position: absolute;
	top: 0%;
	width: 100%;
	height: 100%;
    background-color: #333333;
    background-color:rgba(33,33,33,0.9);
}

.description_box {
	position: absolute;
	display: none;
	z-index: 13;
	height: 96%;
	width: 96%;
	left: 1%;
    padding-left: 1%;
    padding-right: 1%;
    padding-top: 1%;
    top: 1%;
    background-color: #FFFFFF;
	background-color:rgba(255, 255, 255,0.9);
    border: 1px solid #999;
 }   

.description_box h3 {
	padding-bottom: 0px;
	line-height: 15px;
}

.description_box_content {
	width: 96%;
	height: 80%;
	position: fixed;
	overflow: auto;
}

.x_button {
	width: 15px;
}

/* Caption box in description box */
#caption_box {
	font-size: 12px;
	font-style: italic;
}


/* 'Scroll more' text in description box */
/* Only visible on wide screens */
#scroll_more {
	display: none;
	color: #0088CC;
	padding-bottom: 10px;
}


/* Leaflet controls */
.leaflet-control-zoom a, .leaflet-control-zoom a:hover {
    text-decoration: none;
}

.leaflet-top {
	z-index: 8;
}

.leaflet-right {
	left: 0;
	right: 100;
}

.leaflet-bottom {
    pointer-events: none;
    z-index: 8;
}


/* Styles for smaller screens */
@media (max-width: 700px) {
	h2 {
		font-size: 24px;
	}

	h3 {
		font-size: 18px;
	}
	
	p {
		font-size: 13px;
	}
}

/* Styles from mobile devices */
@media (max-width: 625px) {
	/* Headers */
	h1, h2, h3 {
    	line-height: 20px;
	}


	/* Map */
	#map {
		cursor: default;
		border: 0px solid #737373;
		top: 0%;
		bottom: 0%;
		height: 100%;
		width: 100%;
	}
	

	/* Social buttons */
	#share {
		display: none;
	}
	
	
	/* Sidebar */
	#sidebar {
		position: relative;
		border-width: 0 0 1px;
		border-bottom: 1px solid #FFFFFF;
		margin-top: 0%;
		float: left;
		left: 0%;
		right: 0%;
		top: 0%;
		padding-left: 2%;
		padding-right: 2%;
		width: 96%;
		height: auto;
	}

	#sidebar h3 {
    	line-height: 15px;
    	font-size: 20px;
	}

	.sidebar_content {
		display: none;
	}

	.description_box_header h3 {
		line-height: 25px;
	}

	.toggle_description {
		display: inline;
	}

	
	/* Leaflet controls */
	.leaflet-top {
    	margin-top: 55px;
	}

	.leaflet-right {
		display: none;
	}

	.leaflet-container .leaflet-control-attribution, .leaflet-container .leaflet-control-scale {
		font-size: 10px;
		width: 80%;
	}

	.leaflet-bar {
		box-shadow: 0 0 0 rgba(0,0,0,0.4);
	}
}


/* Special attributes for small, wide screens */
@media (max-height: 500px) {
	#scroll_more {
		display: block;
	}

	.sidebar_content {
		height: 60%;
	}

	.description_box_content {
		height: 75%;
	}
}

@media (max-height: 400px) {
	#scroll_more {
		display: block;
	}

	.sidebar_content {
		height: 60%;
	}

	.description_box_content {
		height: 75%;
	}

	.info {
		max-height: 350px;
	}
}

@media (max-height: 320px) {
	.sidebar_content {
		height: 40%;
	}

	.description_box_content {
		height: 65%;
	}

	.info {
		max-height: 350px;
	}

}