html, body {
	width:100%;
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: sans-serif;
	font-size: 1em;
	box-sizing: border-box;
}

div {
	box-sizing: border-box;
}

body.padding {
	padding: 1em;
}

body.nopull {
	overflow-y: hidden;
}

input, select, button {
	border:1px black solid;
	pointer-events: auto;
	font-size: 1em;
	padding:0.2em;
	margin:0.1em;
	flex: 1;
}


input[type=checkbox] + label {
	color: #000;
	background: url('box.png');
	background-size: 1.1em 1.1em;
	background-repeat: no-repeat;
	background-position: left center;
	background-color: #EEE;
	background-origin: content-box;
	flex: 1;
	display: inline-block;
}

input[type=checkbox]:checked + label {
	color: #CF6;
	background: url('boxchecked.png');
	background-size: 1.1em 1.1em;
	background-repeat: no-repeat;
	background-position: left center;
	background-color: #4080c0;
	background-origin: content-box;
	flex: 1;
	display: inline-block;
}

input[type=checkbox]:hover + label {
	background-color: #CF6;
	background-origin: content-box;
}


input[type=checkbox]:checked:hover + label {
	background-color: #037;
	background-origin: content-box;
}

input[type=checkbox] {
	display:none;
}

input[type=checkbox] + label:before {
	content: "";
	width: 1.3em;
	height: 1.1em;
	display: inline-block;
}

a, label {
	pointer-events: auto;
	min-height: 1em;
}

a {
	color: #4080c0;
}

a:active {
	color: #FFF;
	background-color: #4080c0;
}

fieldset {
    margin: 0 0.3em;
    text-align: center;
    padding: 0;
    border: none;
}

fieldset legend {
	position: relative;
	left:-0.3em;
	font-weight: bold;
	padding: 0 0 0.3em 0;
}

fieldset div.nowrap {
	margin: 0.2em 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
}

label, .nowrap {
	white-space: nowrap;
}

span.error {
	background-color: rgba(255,0,0,0.8);
	color: white;
}

div.section {
	background-color: rgba(255,255,255,0.8);
	padding: 0.2em;
	margin: 0.1em;
	display: block;
}

div.clear {
	clear: both;
}

div.mid {
	display:inline-block;
}

div.left {
	float: left;
	display:inline-block;
}

div.right {
	float: right;
	display:inline-block;
}

iframe.noframe {
	margin: 0;
	padding: 0;
	border: none;
	overflow: hidden;
}

iframe.chart {
	width:100%;
	height:100%;
	pointer-events: auto;
}

iframe.multichart {
	padding:1em;
	width:100%;
	height:30%;
	min-height:18em;
	box-sizing:border-box;
}

img.inline {
	height: 1.2em;
	vertical-align: middle;
}

.hide {
	display: none;
}

.centerpage-outer {
	width: 100%;
	height: 100%;
	display: table;
	position: absolute;
	padding: 0;
	margin: 0;
}

.centerpage-inner {
	vertical-align: middle;
	text-align: center;
	display: table-cell;
}

.center {
	margin:auto;
}

.left {
	text-align:left;
	float:left;
}

/* new way to center elements */
.center-container {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.expanded {
	height: 100%;
}



.flex {
	flex:1;
}

.infowindowcontent {
	margin:0;
	padding:0;
}

.touchable {
	pointer-events: auto;
}

.untouchable {
	pointer-events: none;
}

#map {
	position: absolute;
	top:0;
	right: 0;
	left:0;
	bottom: 0;
}
#panel {
	z-index: 1;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	position: absolute;
	pointer-events: none;
}

#control {
	transition: 0.4s;
	padding: 0;
	margin: 0;
	position: absolute;
	z-index: 3;
	width: 24em;
	height: 100%;
	max-width: 100%;
	background-color: #fff;
	box-shadow: 0 0 1em 0 #666;
	pointer-events: auto;
	display: flex;
	flex-direction: column;
}

#control.slideout{
	transform: translate(-100%, 0);
	visibility: hidden;
}

#control .controlhead {
	border-bottom: #666 solid 1px;
	background-color: #4080c0;
	display: flex;
	align-items: flex-start;
}

#control .controlfoot {
	border-top: #666 solid 1px;
	background-color: #4080c0;
	display: flex;
	align-items: center;
}

#control .controlfoot #update {
	margin: 0.5em;
	font-size: 1.5em;
	font-weight: bold;
	background-color: #CF6;
}

#control .controlbody {
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-y: contain;
	flex: 1;
}

.controlhead .hbg-bar1,
.controlhead .hbg-bar2,
.controlhead .hbg-bar3 {
	background-color: #FFF;
	box-shadow: none;
}

.controlbody a,
.controlbody label {
	padding: 0.3em;
}

.controlbody > .section {
	margin: 0;
	padding: 0.8em;
	border-bottom: #666 solid 1px;
}
#closeicon {
	display: block;
	min-width: 3em;
	padding: 0.5em;
}

#toggleui {
	pointer-events: auto;
}

.hbg-container {
	display: inline-block;
	cursor: pointer;
}

.hbg-bar1, .hbg-bar2, .hbg-bar3 {
	width: 2.1em;
	height: 0.3em;
	background-color: #000;
	margin: 0.3em 0.5em;
	transition: 0.4s;
	box-shadow: -1px 0 0.1em 0 #fff, 0 1px 0.1em 0 #fff, 1px 0 0.1em 0 #fff, 0 -1px 0.1em 0 #fff;
}

.hbg-close .hbg-bar1 {
	transform: rotate(-45deg) translate(-0.435em, 0.45em);
}

.hbg-close .hbg-bar2 {
	opacity: 0;
}

.hbg-close .hbg-bar3 {
	transform: rotate(45deg) translate(-0.435em, -0.45em);
}

.hbg-left .hbg-bar1 {
	transform: rotate(-45deg) translate(-0.6em, -0.2em) scale(0.5,1);
}

.hbg-left .hbg-bar2 {
	transform: scale(0.8, 1)
}

.hbg-left .hbg-bar3 {
	transform: rotate(45deg) translate(-0.6em, 0.2em) scale(0.5,1);
}

#sensorlist legend.selected:after{
	content: " (" attr(selCount) ")";
}

#loading {
	font-weight: bold;
}

.titlebar-item {
	display: block;
	min-width: 3em;
	padding: 0.5em;
}

.titlebar-item > #loading {
	display: block;
	height: 2em;
	width: 2em;
}

.titlebar-item > h1 {
	display: inline-block;
	font-size: 2em;
	margin:0;
	text-shadow: -1px 0 0.1em #fff, 0 1px 0.1em #fff, 1px 0 0.1em #fff, 0 -1px 0.1em #fff;
	color:#000;
}

#titlebar {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: 0.4s;
}



#titlebar.solid{
	background-color: #ccff66;
	pointer-events: auto;
	box-shadow: 0 0 1em 0 #666;
}

#errors {
	text-align: right;
	color: white;
	margin: 0.2em;
	position: absolute;
	top: 3em;
	right: 0;
	z-index: 9;
}

#chart {
	position:absolute;
	top:0;
	bottom:0;
	left:0;
	right:0;
	padding:0;
	margin:0;
}

#chartcontrol {
	display: flex;
	flex-direction: column;
	position: absolute;
	height: 100%;
	width: 24em;
	max-width: 100%;
	margin: 0;
	padding: 1em;
	background-color: #fff;
	box-shadow: 0 0 1em 0 #000;
}

#charttitle {
	margin-left: 0.5em;
	flex: 1;
}

#chartpanel {
	display:flex;
	z-index: 1;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	position: absolute;
}

#dash-header,
#dash-footer {
	width: 100%;
	height: auto;
	display: block;
	text-align: center;
	padding:0.2em;
}
#dash-body {
	display:flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}
#dash-body > .item {
	width: 18em;
	height: 18em;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0.5em;
	border: 1px solid black;
}

#exportui {
	padding: 0;
	margin: 0;
	min-height: 100%;
	width: 100%;
	background-color: #fff;
	display: flex;
	flex-direction: column;
}

#exportui .controlhead {
	color:#fff;
	border-bottom: #666 solid 1px;
	background-color: #4080c0;
	display: flex;
	align-items: center;
	justify-content: center;
}

#exportui .controlfoot {
	border-top: #666 solid 1px;
	background-color: #4080c0;
	display: flex;
	align-items: center;
}


#exportui .controlfoot #download {
	margin: 0.5em;
	font-size: 1.5em;
	font-weight: bold;
	background-color: #CF6;
}

#exportui .controlbody {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

#exportui .flex-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

#exportui .flex-container div {
	margin: 0.2em;
	flex-basis: 18em;
	
}
#exportui .controlbody .section {
	flex-basis: 20em;
	border: none;
	flex-grow: 1;
}
#exportui .controlbody .section:first-of-type {
	flex-grow: 0;
}
#exportui .controlbody .section:last-of-type {
	flex-grow: 1;
}
.button5{
    background-color: white;
    color: black;
    width: 50%;
    margin: 10pt 0;
    border: 2px solid #008CBA;
}

.button {
  background-color: white;
  border: 1pt solid #008CBA;
  color: black;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
  cursor: pointer;
}

.button5:hover {
  background-color: #008CBA;
  color: white;
}

.btnClicked{
  background-color: #008CBA;
  color: white;
}
