html, body, h1, h2, h3, h4, h5, h6, div, p, ul, li {
	margin: 0;
	padding: 0;
}
html, body {
	height: 100%;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	color: #262626;
}
#app {
	display: flex;
	flex-direction: column;
	height: 100%;
}
header {
	border-bottom: 1px solid #fff;
}
header h1 {
	background-color: #36c;
	color: #fff;
	text-align: center;
	font-size: 1em;
	line-height: 1.8em;
}
.info-icon {
	font-family: 'Courier New', Courier, monospace;
	font-weight: bold;
	display: inline-block;
	width: 1em;
	border-radius: 50%;
	border: 1px solid #fff;
	line-height: 1em;
	cursor: pointer;
	margin-left: 0.5em;
	padding: 4px 3px 2px;
	background-color: #2952a3;
}
img {
	max-width: 100%;
}
#map {
	flex-grow: 1;
}
#mask {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: #000;
	opacity: 0.5;
	z-index: 9998;
}
h2.legend-heading {
	color: #fff;
	background-color: #36c;
	padding-right: 0.5em;
	position: relative;
}
h2.legend-heading > span.icon-wrapper {
	position: absolute;
	right: 0;
	margin: 2px;
}
h2.text-heading {
	margin: 0.5em 0 0;
	font-size: 1.2em;
}
input[type=search] {
	font-size: 1.5em;
	border: 1px solid #ccc;
}
input[type=search]:focus {
	outline: 2px solid #36c;
}
div.custom-control > div {
	background-color: #fff;
	border: 1px solid #ccc;
}
button {
	border: 1px solid #36c;
	border-radius: 3px;
	color: #36c;
	cursor: pointer;
	margin: 0.3em;
	padding: 0.2em 0.5em;
	font-weight: bold;
	background-color: #eee;
}
button:hover {
	background-color: #d6e0f5;
}
input[readonly] {
	width: 16em;
}
#soilweb-control a {
	width: auto;
	padding: 0 5px;
}
.map-message {
	position: relative;
	margin-top: 5%;
	margin-right: auto;
	margin-left: auto;
	text-align: center;
	max-width: 22em;
	border: 2px solid #36c;
  border-radius: 0;
	background: #fff;
	padding: 10px;
	z-index: 9999;
	opacity: 0.9;
	font-size: 1rem;
}
.map-message.info-message {
	text-align: left;
	opacity: 1;
	max-width: 45em;
	max-height: 80%;
	overflow: auto;
}
.map-message p {
	margin: 5px 0;
}
#close-x {
	position: absolute;
	right: 0;
	top: 0;
	font-size: 1.2em;
	margin: 3px;
}
.leaflet-container.crosshair-cursor-enabled {
  cursor: crosshair;
}
#search-control {
	max-height: 80%;
}
#layer-control {
	margin-top: 1em;
	background-color: #fff;
	border: 1px solid #ccc;
	max-height: 100%;
	z-index: 500;
}
.layer-entry {
	display: flex;
	align-items: center;
	border: 1px solid #ccc;
	border-right: none;
	border-left: none;
	font-size: 1.2em;
	position: relative;
	min-width: 18em;
}
.layer-entry > div {
	padding: 5px;
}
.layer-entry-name {
	flex-grow: 1;
	line-height: normal;
}
#suggest-list {
	padding: 0;
	margin: 2px 0 0 0;
	border: 1px solid #eee;
	overflow: auto;
	position: absolute;
	z-index: 600;
	max-height: 85vh;
}
.suggest-item {
	list-style: none;
	text-align: left;
	padding: 4px 2px;
	cursor: pointer;
	background-color: #fff;
	font-size: 0.8rem;
}
.active-suggest-item {
	background-color: #d6ebff;
}
.remove-x {
	font-size: 1em;
	padding: 0 0.3em;
	background-color: #808080;
	color: #fff;
	font-weight: bold;
	cursor: pointer;
}
.bold { font-weight: bold; }
.center { text-align: center; }
.padded-5 { padding: 5px; }
.clickable { cursor: pointer; }
.download-link { 
	font-size: 0.85em; 
	text-decoration: none;
}
.fa-icon {
	width: 1em;
	height: 1em;
	color: #fff;
	vertical-align: -2px;
}
.icon-button {
	margin: 5px;
	border: 1px solid #ccc;
	padding: 5px 5px 3px;
	background-color: #fff;
	cursor: pointer;
	color: #666;
}
.icon-button:hover {
	background-color: #ccc;
}
.icon-button > .fa-icon {
	color: #36c;
	width: 1.5em;
	height: 1.5em;
	vertical-align: -0.3em;
}
.legend-slice {
	display: inline-block;
	height: 1.3em;
	width: 2px;
}
.legend-color {
	display: inline-block;
	width: 18px;
	height: 1.3em;
	margin: 5px;
}
.legend-color-option.active, .legend-color-option:hover {
	outline: 2px solid #36c;
}
.layer-legend-container {
	position: relative;
}
.layer-color-selector {
	position: absolute;
	top: 0;
	left: 30px;
	border: 1px solid #ccc;
	background: #fff;
	display: flex;
}
.opacity-slider {
  width: 100px;
	margin-left: 1em;
  position: relative;
	top: 3px;
}

/* Media queries for narrower screens */
@media (max-width: 600px) {
  .map-message.info-message {
		margin-top: 0;
		/* max-height: 100%; */
		max-height: calc(100% - 2em);
		
	}
}