/* CSS Reset */
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}
body {line-height:1.5;}
table {border-collapse:separate;border-spacing:0;}
caption, th, td {text-align:left;font-weight:normal;}
table, td, th {vertical-align:middle;}
blockquote:before, blockquote:after, q:before, q:after {content:"";}
blockquote, q {quotes:"" "";}
a img {border:none;}

html, h2, button {
  font-family: 'Nunito', sans-serif;
  font-size: 10pt;
  color: #404040;
}

.mapboxgl-popup-content {
  font-family: 'Nunito', sans-serif;
  background-color: #bfbfbf;
}
.mapboxgl-popup-tip {
  border-top-color: #bfbfbf !important;
}

button {
  background: white;
  box-shadow: 1px 1px 1px #343332;
  cursor: pointer;
}

#play-button {
  border-radius: 4px;
  margin-right: 20px;
  width: 60px;
}

#period {
  font-size: 110%;
  color: white;
  background: #343332;
  padding: 2px 6px;
  border-radius: 4px;
}

#frequency-button {
  border-radius: 4px;
  margin-right: 20px;
  width: 120px;
}

#aggregate-button {
  border-radius: 4px;
  margin: 0 20px;
  width: 180px;
}

#map { 
  position:absolute;
  top:0;
  bottom:0;
  left: 0;
  width:100%;
}

.map-overlay {
  position: absolute;
  width: 800px;
  bottom: 0;
  left: 0;
  margin: 10px 110px;
}

.map-overlay .map-overlay-inner {
  background-color: #bfbfbf;
  box-shadow:0 1px 2px rgba(0, 0, 0, 0.20);
  border-radius: 3px;
  padding: 5px 5px 0 5px;
}

.map-overlay h2 {
  line-height: 24px;
  display: block;
}

.map-overlay input {
  background-color: transparent;
  display: inline-block;
  width: 100%;
  position: relative;
  margin: 0;
  cursor: ew-resize;
}

#attribution {
  font: 12px/20px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  position: absolute;
  z-index: 2;
  bottom: 20px;
  right: 0;
  padding: 0 5px;
  background-color: rgba(255, 255, 255, .5);
  margin: 0;
}

#menu {
  background: #bfbfbf;
  position: absolute;
  z-index: 1;
  top: 30px;
  left: 30px;
  border-radius: 3px;
  width: 80px;
  border: 1px solid rgba(0,0,0,0.4);
  font-family: 'Nunito', sans-serif;
}

#menu a {
  color: #404040;
  display: block;
  margin: 0;
  padding: 5px;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.25);
  text-align: center;
}

#menu a:last-child {
  border: none;
}

#menu a:hover, button:hover:enabled {
  background-color: #bfbfbf;
}

#menu a.active:enabled {
  background-color: #bfbfbf;
  color: #404040;
}

/*#menu a.active:hover {
  background: #343332;
  color: #ffffff;
}*/

/* Dropdown Button */
.dropbtn {
  border-radius: 4px;
  width: 292px;
  cursor: pointer;
}

/* Dropdown button on hover & focus */
.dropbtn:hover, .dropbtn:focus {
  background-color: #bfbfbf;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 80px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 5px;
  text-decoration: none;
  display: block;
  width: 280px;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #ddd}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {display:block;}

/* Slider */

input[type=range] {
  -webkit-appearance: none;
  margin: 10px 0;
  width: 100%;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  box-shadow: 1px 1px 1px #343332;
  background: #343332;
  border-radius: 8px;
  border: 0px solid #000000;
}
input[type=range]::-webkit-slider-thumb {
  box-shadow: 1px 1px 1px #000000;
  border: 1px solid #000000;
  height: 10px;
  width: 40px;
  border-radius: 8px;
  background: #FFFFFF;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -1.5px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
  background: #343332;
}
input[type=range]::-moz-range-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  box-shadow: 1px 1px 1px #343332;
  background: #343332;
  border-radius: 8px;
  border: 0px solid #000000;
}
input[type=range]::-moz-range-thumb {
  box-shadow: 1px 1px 1px #000000;
  border: 1px solid #000000;
  height: 10px;
  width: 40px;
  border-radius: 8px;
  background: #FFFFFF;
  cursor: pointer;
}
input[type=range]::-ms-track {
  width: 100%;
  height: 8px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
input[type=range]::-ms-fill-lower {
  background: #343332;
  border: 0px solid #000000;
  border-radius: 16px;
  box-shadow: 1px 1px 1px #343332;
}
input[type=range]::-ms-fill-upper {
  background: #343332;
  border: 0px solid #000000;
  border-radius: 16px;
  box-shadow: 1px 1px 1px #343332;
}
input[type=range]::-ms-thumb {
  margin-top: 1px;
  box-shadow: 1px 1px 1px #000000;
  border: 1px solid #000000;
  height: 10px;
  width: 40px;
  border-radius: 8px;
  background: #FFFFFF;
  cursor: pointer;
}
input[type=range]:focus::-ms-fill-lower {
  background: #343332;
}
input[type=range]:focus::-ms-fill-upper {
  background: #343332;
}