.primary-container {
  width: 96vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: auto;
  margin-right: auto;
}

.maplibregl-popup-content {
  width: max-content;
  max-width: 100vw;
  background: #F0F0F0 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.5) !important;
}

#map {
  height: 81vh;
}

.info-container {
  width: 25%;
  height: 100%;
  text-align: center;
}

.container-new {
  display: flex;
  width: 95%;
  position: relative;
  line-height: 3vh;
  margin-left: auto;
  margin-right: auto;
}

.container-new a {
  color: #8C3032;
  font-weight: 600;
}

#expand-controls {
  display: none;
}

#mobile-title {
  display: none;
}

.map-container {
  width: 75%;
  height: 100%;
  position: relative;
}

.info-container-title {
  font-weight: 100;
  font-size: 2.1vw;
  margin: 1vh;
  line-height: 6vh;
}

.info-container-text {
  padding: 0;
  font-size: 2.4vh;
  line-height: 4vh;
  opacity: 0.6;
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
}

.primary-webmap {
  height: 100%;
  width: 100%;
}

.legend-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 0;
  font-weight: 200;
  font-size: 1.2vw;
  background-color: white;
  z-index: 100000;
}

.legend-subcontainer {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legend-container span {
  display: inline-block;
  height: 1.5vw;
  width: 1.5vw;
  vertical-align: middle;
  margin: 0.2vw 1vw;
  opacity: 1;
}

.legend-pair {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.legend-pair p {
  display: inline;
  margin: 0.5vh 0;
  opacity: 0.8;
}

.save-map {
  font-size: 1.6vh;
  width: max-content;
  height: max-content;
  padding: 2vh;
  background-color: gray;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 0 4px grey;
  letter-spacing: 2px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 4vh;
  margin-bottom: 2vh;
  margin-left: auto;
  margin-right: auto;
}

.save-map:hover {
  background-color: #4d4d4d;
}

.sm-icons {
  width: max-content;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
}

.sm-icons img {
  display: inline;
  -moz-box-shadow: 0 0 4px grey;
  -webkit-box-shadow: 0 0 4px grey;
  box-shadow: 0 0 4px grey;
  border-radius: 1vh;
  width: 4vh;
  margin-top: 2vh;
  margin-left: 1.2vh;
  margin-right: 1.2vh;
}

#blank-text {
  display: none;
  position: absolute;
  top: 42%;
  width: 100%;
  text-align: center;
  font-size: 4vh;
  font-weight: bold;
  font-style: italic;
}

.slider-container {
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 1.3vw;
  font-weight: 500;
  margin: 0;
  background-color: white;
  z-index: 100000;
}

.slider-title {
  margin: 1vh;
  opacity: 0.8;
  font-size: 2.7vh;
}

.slider-date {
  width:96%;
  margin-left:auto;
  margin-right:auto;
  display:block;
  -webkit-appearance: none;
  height: 1vh;
  border-radius: 0.4vw;
  background: #333333;
  outline: none;
  opacity: 1;
  -webkit-transition: .2s;
  transition: opacity .2s;
  margin-bottom: 0px;
}

.slider-date::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 3.5vh;
  height: 3.5vh;
  border-radius: 50%;
  background: white;
  border: 0.8vh solid #333333;
  cursor: pointer;
}

.slider-date::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 4px solid #333333;
  cursor: pointer;
}

.search-container {
    position: relative;
}

#location-input {
  flex-grow: 1;
  height: 5%;
  padding: 1vh;
  font-size: 2.2vh;
  border-radius: 0px;
  border-color: #828282;
  border-style: solid;
  opacity: 0.6;
}

#report-location-input {
  flex-grow: 1;
  height: 5%;
  padding: 1vh;
  font-size: 1vw;
  border-radius: 0px;
  border-color: #828282;
  border-style: solid;
  opacity: 0.6;
}

.autocomplete-container {
  position: absolute;
  top: 100%;
  left: 20%;
  width: 60%;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  display: none;
  color: rgba(0,0,0,0.6);
  z-index: 10000000;
}

.autocomplete-item {
  font-size: 2vh;
  padding: 10px;
  cursor: pointer;
}

.autocomplete-item:hover {
  background-color: #f0f0f0;
}

#layers-div {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.layer-pair {
  display: block;
  flex-grow: 1;
}

.layer-item {
  opacity: 0.6;
  margin-top: 1.5vh;
  margin-bottom: 0;
  font-style: italic;
  font-size: 2.2vh
}

.checkbox-wrapper-8 {
  display: flex;
  justify-content: center;
}

.checkbox-wrapper-8 .tgl {
  display: none;
}
.checkbox-wrapper-8 .tgl,
.checkbox-wrapper-8 .tgl:after,
.checkbox-wrapper-8 .tgl:before,
.checkbox-wrapper-8 .tgl *,
.checkbox-wrapper-8 .tgl *:after,
.checkbox-wrapper-8 .tgl *:before,
.checkbox-wrapper-8 .tgl + .tgl-btn {
  box-sizing: border-box;
}
.checkbox-wrapper-8 .tgl::-moz-selection,
.checkbox-wrapper-8 .tgl:after::-moz-selection,
.checkbox-wrapper-8 .tgl:before::-moz-selection,
.checkbox-wrapper-8 .tgl *::-moz-selection,
.checkbox-wrapper-8 .tgl *:after::-moz-selection,
.checkbox-wrapper-8 .tgl *:before::-moz-selection,
.checkbox-wrapper-8 .tgl + .tgl-btn::-moz-selection,
.checkbox-wrapper-8 .tgl::selection,
.checkbox-wrapper-8 .tgl:after::selection,
.checkbox-wrapper-8 .tgl:before::selection,
.checkbox-wrapper-8 .tgl *::selection,
.checkbox-wrapper-8 .tgl *:after::selection,
.checkbox-wrapper-8 .tgl *:before::selection,
.checkbox-wrapper-8 .tgl + .tgl-btn::selection {
  background: none;
}
.checkbox-wrapper-8 .tgl + .tgl-btn {
  outline: 0;
  display: block;
  width: 8vh;
  height: 4vh;
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.checkbox-wrapper-8 .tgl + .tgl-btn:after,
.checkbox-wrapper-8 .tgl + .tgl-btn:before {
  position: relative;
  display: block;
  content: "";
  width: 50%;
  height: 100%;
}
.checkbox-wrapper-8 .tgl + .tgl-btn:after {
  left: 0;
}
.checkbox-wrapper-8 .tgl + .tgl-btn:before {
  display: none;
}
.checkbox-wrapper-8 .tgl:checked + .tgl-btn:after {
  left: 50%;
}

.checkbox-wrapper-8 .tgl-skewed + .tgl-btn {
  overflow: hidden;
  transform: skew(-10deg);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  transition: all 0.2s ease;
  font-family: sans-serif;
  background: #888;
}
.checkbox-wrapper-8 .tgl-skewed + .tgl-btn:after,
.checkbox-wrapper-8 .tgl-skewed + .tgl-btn:before {
  transform: skew(10deg);
  display: inline-block;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
  position: absolute;
  line-height: 4vh;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
.checkbox-wrapper-8 .tgl-skewed + .tgl-btn:after {
  left: 100%;
  content: attr(data-tg-on);
}
.checkbox-wrapper-8 .tgl-skewed + .tgl-btn:before {
  left: 0;
  content: attr(data-tg-off);
}
.checkbox-wrapper-8 .tgl-skewed + .tgl-btn:active {
  background: #888;
}
.checkbox-wrapper-8 .tgl-skewed + .tgl-btn:active:before {
  left: -10%;
}
.checkbox-wrapper-8 .tgl-skewed:checked + .tgl-btn {
  background: #86d993;
}
.checkbox-wrapper-8 .tgl-skewed:checked + .tgl-btn:before {
  left: -100%;
}
.checkbox-wrapper-8 .tgl-skewed:checked + .tgl-btn:after {
  left: 0;
}
.checkbox-wrapper-8 .tgl-skewed:checked + .tgl-btn:active:after {
  left: 10%;
}

.location-info-container {
  height: 80vh;
  width: 96vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3vh;
  position: relative;
  border: 1px solid black;
}

.date-info-container {
  position: relative;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}

.date-info-container img {
  position: absolute;
  width: 6%;
  height: auto;
  top: -0.5vh;
  right: -1.8vh;
  cursor: pointer;
  opacity: 0.8;
}

.date-info-container img:hover {
  opacity: 0.6;
}

#date-info-text {
  display: none;
  position: absolute;
  background-color: white;
  bottom: 8vh;
  right: 5vw;
  width: 60vw;
  height: max-content;
  padding: 2vh;
  box-shadow: 0 0 1vh gray;
  font-size: 2.5vh;
  text-align: center;
  color: rgb(0,0,0,0.7)
}

@media screen and (max-width: 1024px) {
  .primary-container {
    display: block;
    width: 92vw;
  }

  .info-container {
    display: none;
    width: 100%;
  }

  .info-container-title {
    display: none;
  }

  #location-input {
    height: 3vh;
    margin-left: auto;
    margin-right: auto;
  }

  .autocomplete-container {
      position: absolute;
      top: 100%;
      left: 21vw;
      width: 50vw;
  }

  #expand-controls {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 80%;
    padding: 0.5vh;
    background-color: lightgray;
    border-radius: 1vh;
    margin: 3vh auto;
    font-size: 2vh;
  }

  #mobile-title {
    display: block;
    font-size: 4vh;
    font-weight: bold;
    text-align: center;
    margin: 0;
  }

  .map-container {
    width: 100%;
  }

  .legend-container {
    font-size: 1.6vh;
    display: block;
    padding: 0.5vh 0;
  }

  .legend-subcontainer {
    width: 100%;
    position: relative;
    padding: 0.5vh 0;
  }

  .legend-subcontainer div {
    width: 33%;
  }

  .legend-subcontainer span {
    height: 3vw;
    width: 3vw;
    margin: 0.2vw 3vw;
  }

  .legend-pair {
    display: block;
  }

  .legend-pair p {
    font-size: 1.3vh;
  }

  .container-new {
    flex-direction: column;
  }

  #date-info-text {
    width: 80vw;
    right: 3vw;
  }
}

@media screen and (max-width: 480px) {
  #date-info-text {
    width: 80vw;
    right: 2vw;
  }
}
