body {
  margin: 0;
  padding: 0;
}
#map {
  position: relative;
  top: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
}
a {
  color: #ff147e;
}

.legend {
  display: flex;
  flex-flow: column;
}
.legend div {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  height: 20px;
  display: flex;
  margin: 2px;
  flex-flow: row nowrap;
  align-items: center;
  color: gray;
}
.legend div img {
  margin-right: 2px;
}

.map-overlay {
  font: 16px/20px "Avenir", "Source Sans Pro", Sans-serif;
  position: absolute;
  width: 325px;
  top: 0px;
  left: 0;
  padding: 10px;
}

.map-overlay .map-overlay-inner {
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  padding: 10px;
  margin-bottom: 10px;
}

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

.map-overlay .legend .bar {
  height: 10px;
  width: 100%;
  background: linear-gradient(to right, #fca107, #7f3121);
}

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

.map-overlay .radio-input input {
  background-color: transparent;
  width: 100%;
  margin: 0;
}

.legend-values {
  visibility: inherit;
  margin-left: 20px;
}

.legend-key {
  display: inline-block;
  font: 12px "Open Sans", Sans-serif;
  border-radius: 20%;
  width: 10px;
  height: 10px;
  margin-right: 5px;
}

 /* Popup styling */
.mapboxgl-popup-content {
  font: 400 15px/22px "Avenir", "Source Sans Pro", Sans-serif;
  padding: 0;
  width: 250px;
}

.mapboxgl-popup-close-button {
  color: #fff
}

.mapboxgl-popup-content h3 {
  background: rgb(61, 59, 59);
  text-align: center;
  color: #fff;
  margin: 0;
  display: block;
  padding: 8px;
  font-weight: 500;
  margin-top: 0px;
}

.mapboxgl-popup-content h4 {
  margin: 0;
  background: rgb(129, 129, 129);
  text-align: center;
  color: #fff;
  display: block;
  font-weight: 400;
}

.mapboxgl-popup-content p {
  margin: 0;
  background: rgb(124, 124, 124);
  color: #fff;
  padding-right: 5px;
  padding-left: 5px;
  font-weight: 400;
}

.mapboxgl-popup-content {
  font: 400 15px/22px "Source Sans Pro", "Helvetica Neue", Sans-serif;
  width: 275px;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  background: rgb(124, 124, 124);
}

.mapboxgl-popup-content div {
  margin-left: 10px;
  text-indent:-1.5em;
  padding-left: 1.5em;
}

.mapboxgl-popup-content h5{
  color:rgba(255, 255, 255, 0.92);
}

.mapboxgl-popup-content-wrapper {
  padding: 1%;
}

#toggle-legend {
  display: none;
}

.marker-icon {
  border-radius: 4px;
  margin-left: 20px;
}

@media (max-height: 700px), 
       (max-width: 700px) {

  #toggle-legend {
    display: block;
    font-size: 15px;
    margin: 2px;
    background-color:rgba(5, 5, 5, 0.95);
    color: white;
    padding: 10px 15px;
    border-radius: 3px;
    border: none;
  }

  #overlay-container {
    visibility: hidden;
    margin-top: 40px;
    padding-left: 3px;
    width: 300px;
  }
  .map-overlay-inner{
    font: 12px/18px "Avenir", "Source Sans Pro", Sans-serif;
  }
  .desktop {
    display: none;
  }
}
