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

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

body {
	font-family: helvetica, sans-serif;
	font-size: 14px;
	overflow-x: hidden;
}

table.legend {
	background-color: #fff;
	font-size: 0.9em;
	color: #000;
	margin: auto;
	margin-top: 5px;
}

table.legend td.legend-color {
	width: 40px;
	border: 1px solid #999;
}

table.legend td { font-weight: normal }

table.legend.legend-spaced {
	border-spacing: 10px 2px;
}

table.equation { font-style: italic; }

ul { list-style: none; }

ul.bullet-list {
	list-style: disc;
	margin-left: 20px;
}

ul.spaced li {
	margin: 5px;
}

img.logo { 
	margin: 3px 10px; 
}

textarea {
  resize: none;
}

#header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 30px;
	color: #fff;
	background: #3366CC;
	line-height: 30px;
	border-bottom: 1px solid #fff;
}

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

#header-logos {
	height: 24px;
	background: #fff;
	position: absolute;
	top: 3px;
	right: 10px;
}

#header-logos img {
	height: 20px;
	border: 2px solid #fff;
}

#sidebar-toggler {
	position: absolute;
	top: 3px;
	left: 5px;
	height: 22px;
	line-height: 22px;
	border: 1px solid #ccc;
	padding: 0 10px;
	background: #fff;
	cursor: pointer;
	color: #333;
	font-weight: bold;
	font-size: 0.8em;
}

.slider-control {
	width: 120px;
	background: #fff;
	border: 1px solid #ccc;
	margin: 5px;
	text-align: center;
	font-size: 0.9em;
}

#noUiSlider {
	height: 10px;
	margin: 8px 10px;
}

#sidebar {
	position: absolute;
	top: 31px;
	left: 0;
	width: 350px;
	background: #fff;
	overflow: auto;
	z-index: 1;
}

div.nav-tab-content h2 {
	color:  #3366cc;
	font-size: 1.3em;
	margin-bottom: 5px;
}

#map-canvas {
	margin-left: 350px;
	z-index: 0;
}

.custom-control {
	padding: 5px;
	cursor: pointer;
	background-color: #fff;
}

div.tabs-container {
	border-bottom: 1px solid #666;
}

ul.tabs {
	padding: 5px 0 4px 0;
	margin: 5px 0 0 10px;
}

ul.tabs li {
	display: inline;
}

ul.tabs li a  {
	border: 1px solid #666;
	border-bottom: none;
	font-weight: bold;
	color: #666;
	text-decoration: none;
	background: #f5f5f5;
	padding: 4px 8px;
}

ul.tabs li a:hover  {
	color: #3366cc;
	background: #EBF0FA;
}

ul.tabs li a.active {
	color: #000;
	background: #fff;
	border-bottom: #fff;
	padding: 4px 8px 5px;
	cursor: auto;
}

div.expandable-content {
	display: none;
}

li.expandable h2 {
	background: #D6EBFF;
	padding: 3px 5px;
	margin: 2px 0 0 0;
	cursor: pointer;
	
}

li.expandable h2:hover {
	background: #CCE6FF;
}

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

.modal {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: 10%;
	margin-top: 31px;
	margin-right: auto;
	margin-left: auto;
	text-align: left;
	padding: 20px 10px 10px;
	background: #fff;
	border: 3px solid #3366CC;
	z-index: 100;
	width: 420px;
	max-height: 80%;
	overflow: auto;
}

.modal.expanded {
	top: 5%;
	width: 750px;
}

.modal p { margin: 10px 0; }

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

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

#flag-modal {
	z-index: 500;
	width: 320px;
}

#flag-postsubmit-buttons { display: none; }

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

#clear-map {
	position: absolute;
	right: 10px;
	color: #333;
	font-size: 0.7em;
	font-weight: normal;
	border: 1px solid blue;
	background: #EBF0FA;
	padding: 2px 4px;
	cursor: pointer;
	display: none;
}

#clear-map:hover {
	color: blue;
}

.tab-content {
	display: none;
}

.nav-tab-content {
	padding: 10px;
	display: none;
}

.nav-tab-content p {
	margin: 10px 0;
	line-height: 130%;
}

div.property {
	text-align: center;
	padding: 5px;
	border: 1px solid #888;
	margin-bottom: -1px;
	cursor: pointer;
	background: #f5f5f5;
}

div.property:hover {
	background: #EBF0FA;
}

div.property:hover h3.property-name {
	color: #3366cc;
}

div.property.active {
	cursor: auto;
	border: 3px solid #3366cc;
	background: #fff;
}

h3.property-name {
	color: #666;
}

div.property.active h3.property-name {
	color: #000;
}
	
div.legend-container {
	display: none;
}

div.agg-schematics {
	display: none;	
}

a.moreless {
	text-decoration: none;
	color: blue;
}

a.moreless:hover {
	text-decoration: underline;
}

p.no-margin {
	margin: 0;
}

.leaflet-container.crosshair-cursor-enabled {
    cursor:crosshair;
}

.popup-content span.property {
	font-size: 1.2em;
	font-weight: bold;
	color: #3366cc;
}

.popup-content span.value {
	font-size: 1.2em;
	font-weight: bold;
}

.fill-screen {
	position: absolute;
	top: 31px;
	left: 0;
	right: 0;
	bottom: 0;
}

.button {
	font-weight: bold;
	cursor: pointer;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	padding: 0.3em 0.6em;
	background: #D6EBFF;
	color: #3366cc;
	border: 1px solid #b3daff;
}

.help-icon {
	border: 1px solid #0033cc;
	padding: 0 5px;
	color: #fff;
	background: #3366cc;
}

img.soil-texture-image {
	margin-top: 10px;
}

/* override leaflet draw elements */
.leaflet-touch .leaflet-bar a.leaflet-draw-draw-rectangle {
	background-image: none;
	width: auto;
	height: auto;
	line-height: normal;
	padding: 5px;
}
.leaflet-touch .leaflet-bar a.leaflet-draw-draw-rectangle::before {
	content: 'Flag an error'
}
/* end leaflet draw override */

.hidden {display: none;}
.bold {font-weight: bold;}
.center {text-align: center;}
.sub-text {font-size: 0.8em;}
.subdued-text {color: #666;}
.margin-left { margin-left: 0.5em; }
.success { color: #006600; }
.failure { color: #800000; }
.error { color: #333; }

/* --- Media Queries ----- */
@media only screen and (max-width: 480px) {
#sidebar {
	width: 100%;
}

#header h1 { 
	margin-left: 35%;
}
#map-canvas {
	margin-left: 0;
}

.modal {
	width: auto;
}

}

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

#modal.expanded {
	width: auto;
}

}

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

#header-logos { 
	display: none; 
}

}
