/* 
 * Always set the map height explicitly to define the size of the div element
 * that contains the map. 
 */
#map {
  height: calc(100% - 37px);
  position: relative;
  top: 37px;
}

/* 
 * Makes the page fill the window. 
 */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

div#topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background-color: rgb(81, 80, 129);
  box-shadow: 0px 1px 5px 0px rgb(0, 0, 0, 40%);
  height: 37px;
  overflow: hidden;
  transition: all .1s linear;
  font-size: 20px;
  color: #fff;
}

div#topbar span.filtertext {
  padding: 5px 15px;
}

div#topbar span.filtertext .glyphicon {
  display: inline-block;
}

div#topbar div#mobile_filter_click {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 15;
  height: 37px;
  width: 200px;
}

div#topbar div#checkboxes_container {
  display: inline-block;
}

div#topbar input[type=checkbox] {
  transform : scale(150%);
  position: relative;
  top: 0px;
  margin: 0 5px;
}

div#topbar span#helpicon {
  position: absolute;
  top: 0;
  right: 0;
  padding: 5px 15px;
  font-size: 24px;
  cursor: pointer;
  z-index: 15;
}

div.modal-body p {
  font-size: 16px;
}

div.modal-body p.credit {
  font-size: 12px;
  text-align: center;
  margin-top: 30px;
}

/* Desktop, tablet */
@media screen and (min-device-width: 768px) {
  div#topbar div#checkboxes_container label.checkbox-inline {
    display: inline-block;
    width: 300px;
    margin-left: 10px;
    overflow-y: auto;
  }
}

/* For Mobile Portrait View */
@media screen and (max-device-width: 480px) and (orientation: portrait) {
  div#topbar div#checkboxes_container {
    display: block;
    margin-top: 10px;
    max-height: 270px;
    overflow-y: auto;
  }
  div#topbar div#checkboxes_container label.checkbox-inline {
    display: block;
    margin-left: 0;
  }
}

/* For Mobile Landscape View */
@media screen and (max-device-width: 640px) and (orientation: landscape) {
}

