body {
  margin: 0;
  padding: 0;
  font-family:
    -apple-system Roboto,
    Helvetica Neue,
    sans-serif;
  background: #e18339;
}

.header {
  position: absolute;
  top: 0;
  margin: 1rem auto;
  width: auto;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  z-index: 2;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  z-index: 2;
}

.logo {
  width: 9rem;
  height: 2rem;
  color: white;
  text-decoration: none;
  margin-left: 0.5rem;
}

.legend {
  border-radius: 0.5rem;
  margin: 2rem 1rem;
  padding: 1rem;
  max-width: 30rem;
  width: auto;
  height: auto;
  background-color: #f4f0e9;
  color: black;

  font-size: 1rem;
  line-height: 1.2rem;
  box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.1);
}

.legendHeader {
  display: inline-flex;
  justify-content: space-between;
  width: 100%;
  text-decoration: none;
}

.legendHeaderText {
  display: block;
}

.legendHeaderText > a {
  font-size: 1rem;
  color: black;
}

.legendSubHeader {
  margin-top: 2rem;
  display: none;
}

.subHeader {
  width: auto;
  color: #e18339;
  text-decoration: none;
  font-size: 1rem;
  /* margin-top: 2.8rem; */
}

.caretButton {
  height: 1rem;
  width: 1rem;
  background: transparent;
  margin: 0;
  padding: 0;
  border: none;
  align-self: center;
}

.caret {
  width: 1rem;
  height: 0.5rem;
}

.link {
  /* text-decoration: none; */
  color: white;
  font-size: 1rem;
  font-weight: 500;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}

.tooltipHeader {
  margin-top: 0;
  width: 90%;
}

.mapboxgl-ctrl-geocoder--input {
  z-index: 4;
}

.mapboxgl-popup-close-button {
  font-size: 1.5rem;
  color: white;
}

/* Dark popup */

.mapboxgl-popup-content {
  background-color: #202020;

  /* background: #E18339; */
  color: #fff;
  margin-left: 5px;
  margin-top: 2px;
  margin-bottom: 2px;
  margin-right: 5px;
  z-index: 1000;
}

.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
  border-top-color: #202020;
}

.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip,
.mapboxgl-popup-anchor-top .mapboxgl-popup-tip {
  border-bottom-color: #202020;
}

.mapboxgl-popup-anchor-right .mapboxgl-popup-tip {
  border-left-color: #202020;
}

.mapboxgl-popup-anchor-left .mapboxgl-popup-tip {
  border-right-color: #202020;
}

@media (max-width: 640px) {
  .footer {
    margin-bottom: 1rem;
  }
}

@media (max-width: 475px) {
  .mapboxgl-ctrl-top-right {
    width: 100%;
  }

  .mapboxgl-ctrl-top-right .mapboxgl-ctrl {
    margin: 10px auto;
    float: unset;
    background: none;
    width: 80%;
  }

  .mapboxgl-ctrl-geocoder--input {
    background: white;
  }

  /* .logo {
            width: 9rem;
            height: 2rem;
            color: white;
            text-decoration: none;
            margin-left: 0.5rem;
        } */
  .header {
    top: unset;
    bottom: 1.5rem;
    left: 0;
    margin: 10px auto;
  }

  .footer {
    margin-bottom: 0;
  }

  .legend {
    margin: 2.5rem 0.5rem;
    padding: 0.1rem 0.5rem;
    padding-bottom: 0.4rem;
    border-radius: 50%;
  }

  .legendHeaderText {
    display: none;
  }

  .caretButton {
    margin-top: 0.35rem;
  }
}
