html, body, div, p, h1, h2, h3, h4, h5, h6, ul, li, table, form {
	margin: 0;
	padding: 0;
}

html { -webkit-text-size-adjust: none; } /* Prevent font scaling in landscape */

body {
	font-family: arial, helvetica, sans-serif;
	font-size: 100%;
}

ul { list-style: none; }
ul.bullet { 
	list-style: disc inside none; 
	margin: 0.3em;
	font-size: 0.9em;
}

ul.bullet li { 
	margin: 0.3em 0;
}

#header {
	color: #fff;
	background: #3366CC;
	height: 1.8em;
	line-height: 1.8em;
	border-bottom: 1px solid #fff;
}

#header h1 {
	font-size: 1em;
	text-align: center;
}

#info-icon {
	vertical-align: middle;
	margin-left: 0.5em;
	cursor: pointer;
}

#sidebar {
	position: absolute;
	top: 1.8em;
	left: 0;
	width: 300px;
	height: 100%;
	background: #F8F8FF;
}

#sidebar-content {
	margin: 0 0.5em;
}

#sidebar-toggler {
	display: none;
	position: absolute;
	top: 0.5em;
	left: 0.5em;
	height: 1em;
	line-height: 1em;
	padding: 0.25em 0.5em;
	background: #fff;
	border: 1px solid #ccc;
	cursor: pointer;
	color: #333;
	font-weight: bold;
	font-size: 0.7em;
}

#intro {
	font-size: 0.9em;
	padding-top: 0.5em;
}

#series-form {
	margin-top: 0.5em;
}

#series-toc {
	padding-top: 0.2em;
}

#series-text {
	width: 10em;
}

#multi-series {
	display: none;
	font-size: 0.8em;
}

#series-suggest {
	overflow: auto;
}

#series-suggest li {
	background: #fff;
	border: 1px solid #ccc;
	padding: 2px 5px;
	margin-bottom: -1px;
	cursor: pointer;
}

#series-suggest li.selected {
	background: #d6ebff;
}

#map-canvas {
	height: 100%;
	margin-left: 300px;
}

#map-canvas.active {
	cursor: crosshair;
}

#map-message {
	display: none;
	position: relative;
	top: 10%;
	margin-right: auto;
	margin-left: auto;
	text-align: center;
	max-width: 20em;
	border: 2px solid #3366cc;
	background: #fff;
	padding: 0.3em;
	z-index: 500;
	opacity: 0.85;
	filter: alpha(opacity=85);
}

#loader {
	display: none;
	position: absolute;
	left: 250px;
	right: 0;
	top: 10%;
	margin-top: 1.8em;
	margin-right: auto;
	margin-left: auto;
	text-align: center;
	padding: 0.8em;
	background: #fff;
	border: 3px solid #3366CC;
	z-index: 100;
	width: 8em;
	opacity: 0.85;
	filter: alpha(opacity=85);
}

#mask {
	display: none;
	z-index: 998;
	background: #000;
	opacity: 0.5;
	filter: alpha(opacity=50);
}

#popup {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: 5%;
	margin-top: 31px;
	margin-right: auto;
	margin-left: auto;
	text-align: left;
	padding: 1.3em 1em;
	background: #fff;
	border: 3px solid #3366CC;
	z-index: 999;
	width: 600px;
	max-height: 80%;
	overflow: auto;
	font-size: 1em;
}

#popup p { margin: 10px 0; }

#popup img {
	display: block;
	margin: auto;
}

#popup-close-x-wrapper {
	position: absolute;
	top: 3px;
	right: 1.8em;
}

#popup-close-x {
	position: fixed;
	width: 1em;
	font-size: 1.1em;
	text-align: center;
	color: #333;
	border: 1px solid #ccc;
	background: #e6e6e6;
	cursor: pointer;
}

#soilweb-control a {
	width: auto;
	padding: 0 5px;
}

table.help {
	text-align: center;
	background: #eee;
}

table.help th {
	background: #cecece;
}

a.blue-link, a.blue-link:visited {
	color: blue;
	text-decoration: none;
}

a.soilweb-link, a.soilweb-link:visited {
	text-decoration: none;
}

.fill-screen {
	position: absolute;
	top: 1.8em;
	left: 0;
	right: 0;
	bottom: 0;
}

.series-toc-item {
	position: relative;
}

.series-toc-item table {
	border: 3px solid #ccc;
	background: #fff;
	margin-bottom: 0.2em;
	width: 100%;
	padding: 0.4em 0.2em;
}

.series-info {
	padding-left: 0.8em;
	/*line-height: 1.1;*/
}

.legend-color-border {
	height: 0.8em;
	width: 0.8em;
	border-color: #000;
	border-width: 3px;
	border-style: solid;
	margin: auto;
}

.legend-color {
	height: 100%;
	width: 100%;
	opacity: 0.5;
	filter: alpha(opacity=50);
}

.legend-point-border {
	height: 0.5em;
	width: 0.5em;
	border-width: 2px;
	border-style: solid;
	margin: auto;
}

.legend-point {
	height: 100%;
	width: 100%;
}

a.kssl-info {
	color: #fff;
	font-weight: bold;
	text-decoration: none;
	background-color: #3366cc;
	padding: 0.1em 0.3em;
	border-radius: 30%;
	-webkit-border-radius: 30%;
}

.circle {
	border-radius: 50%;
	-webkit-border-radius: 50%;
}

.remove-x {
	font-size: 1em;
	padding: 0.1em 0.3em;
	background-color: #808080;
	color: #fff;
	font-weight: bold;
	cursor: pointer;
	position: absolute;
	top: 5px;
	right:5px;
}

.mono {font-family: monospace;}
.hidden {display: none;}
.bold {font-weight: bold;}
.center {text-align: center;}
.indented {text-indent: 4em;}
.smaller {font-size: 0.8em; }

/* this keeps the leaflet controls from floating above the mask */
.leaflet-top, .leaflet-bottom {
	z-index: 499;
}

/* --- Media Queries ----- */
@media only screen and (max-width: 480px) {
	#sidebar-toggler {
		display: block;
	}
	#header h1 {
		margin-left: 3em;
	}
	#sidebar {
		width: 100%;
		z-index: 1;
	}
	#map-canvas {
		z-index: 0;
		margin-left: 0;
	}
	#loader {
		left: 0;
	}
}

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

#popup {
	width: auto;
}

}

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

#header-logos { 
	display: none; 
}

}
