html,
body {
  padding: 0;
  margin: 0 auto;
  height: 100%;
  width: 100%;
}

#map {
  width: 100vw;
  height: 100vh;
  visibility: hidden;
}

h3 {
  padding: 0px 4px;
  margin: 0;
  font-size: 0em;
  font-family: impact;
}

h5 {
  margin: 0;
  font-size: 1.0em;
  font-weight: normal;
}

h6 {
  margin: 0;
  font-size: 1.2em;
  background: black;
  color: #ffffff;
  box-shadow: 0 0px 70px 80px rgb(0 0 0);
}

.intro-popup .leaflet-popup-content-wrapper {
  background: 0;
  box-shadow: 0 1px 5px rgb(0 0 0 / 0%);
  position: inherit;
  left: -700px;
  top: 50px;
}

.intro-popup .leaflet-popup-content {
  min-width: 1400px;
}

.intro-popup .leaflet-popup-tip-container {
  width: 0;
  height: 0;
}

.pointer {
  cursor: pointer;
}

.leaflet-control-custom {
  padding: 6px 8px;
  background: #000000;
  box-shadow: 0 1px 5px rgba(233, 227, 227, 0);
  color: #ffffff;
  border-radius: 5px;
}

.leaflet-control-geocoder {
  z-index: 9999;
}

form {
  margin-top: 0px;
}

.btn {
  border: 0px;
  background: none;
  padding: 0px;
  font-size: 30px;
  font-family: "Impact";
  cursor: pointer;
  margin: 10px;
  transition: 0.12s;
  position: relative;
  overflow: hidden;
  color: black;
}
.btn:hover{
 color: #fff;
}
.btn::before{
 content: "";
 position: absolute;
 left: 0px;
 right: 0px;
 width: 100%;
 height: 0%;
 background: #050000;
 z-index: -1;
 transition: height 0.4s;
 top: 0px;
 border-radius: 0% 0% 0% 0%;;
}
.btn:hover::before{
 height: 100%;
}

#container {
  position: absolute;
  top: 0%;
  right: 0%;
  padding: 0px 9px 0px 9px;
  z-index: 400;
  text-align: left;
  }

  /* Custom CSS to position the search control in the middle right*/
.leaflet-control-search {
      position: absolute;
      top: 40%; /* Center vertically */
      right: 5px; /* Adjust this value based on your layout */
      transform: translateY(35%); /* Adjust the vertical position */
  }
  .leaflet-control-search input {
    width: 300px; /* Set a specific width */
    height: 40px; /* Adjust height */
    font-size: 20px; /* Increase font size */
    padding: 2px; /* Increase padding */
    color: rgb(0, 0, 0);
  }
  .leaflet-control-search .search-button {
    height: 30px; /* Match the height of the input */
    font-size: 30px; /* Increase button font size */
    padding: 0px 4px; /* Adjust button padding */
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
  }

/* Customize the default tooltip appearance */
.custom-tooltip {
  position: absolute; /* Use absolute positioning to follow the mouse */
  background-color: rgba(114, 4, 4, 0.801); /* Background color of the tooltip */
  color: rgb(255, 255, 255); /* Text color of the tooltip */
  padding: 5px;
  border-radius: 5px;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0.9;
  pointer-events: none; /* Ensure the tooltip doesn't interfere with mouse events */
}

.polygons-legend-scale {
  margin-top: 4px;
  padding-top: 7px;
  border-top: dotted 3px #0000;
}

.polygons-legend-scale i {
  width: 18px;
  height: 18px;
  float: left;
  margin-right: 8px;
}

.leaflet-popup-content {
  min-width: 100px;
}

.leaflet-popup-content img {
  width: 100%;
  margin: 5px 0 5px 0;
}

.geojson-point-marker {
  radius: 3;
}

.loader,
.loader:before,
.loader:after {
  background: #000;
  -webkit-animation: load1 1s infinite ease-in-out;
  animation: load1 1s infinite ease-in-out;
  width: 1em;
  height: 4em;
}
.loader:before,
.loader:after {
  position: absolute;
  top: 0;
  content: '';
}
.loader:before {
  left: -1.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
.loader {
  color: #000;
  text-indent: -9999em;
  position: absolute;
  left: 50vw;
  top: 45vh;
  font-size: 11px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
.loader:after {
  left: 1.5em;
}
@-webkit-keyframes load1 {
  0%,
  80%,
  100% {
    box-shadow: 0 0;
    height: 4em;
  }
  40% {
    box-shadow: 0 -2em;
    height: 5em;
  }
}
@keyframes load1 {
  0%,
  80%,
  100% {
    box-shadow: 0 0;
    height: 4em;
  }
  40% {
    box-shadow: 0 -2em;
    height: 5em;
  }
}

/* Technically there are two map titles, on the left and on the right,
 * at all times. On a big screen, map title in the right column is not
 * displayed. On a mobile device, title in the right column is shown with 0
 * opacity, so that search, locate, and zoom buttons do not overlay the title,
 * creating an effect as if the title is located on top, and not the left column.
 */
.leaflet-right .map-title { display: none; }

@media only screen and (max-width: 760px) {
  .leaflet-right .map-title {
    display: block;
    opacity: 0;
  }

  .leaflet-left .map-title {
    width: 98%;
  }
}

#mobile-intro-popup {
  position: absolute;
  bottom: 5vh;
  left: 10vw;
  width: 70vw;
  z-index: 1000;
  background: #ffffff00;
  padding: 1vh 5vw;
  opacity: 0.9;
  border: 5px #ddd solid;
  border-radius: 5px;
  font-family: "Helvetica Neue", Impact;
}

#mobile-intro-popup p {
  margin: 10px 0 10px 0;
  max-height: 80vh;
  overflow-y: scroll;
  overflow-x: hidden;
}

#mobile-intro-popup-close {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 30px;
  background: #bbb;
  color: red;
  font-size: 1.4em;
  text-align: center;
  border-radius: 5px;
  opacity: 0.8;
}

#polygonSelect {
  width: 100%;
}

.polygon-label {
  position: absolute;
  left: 0;
  color: #ff0000;
  font-weight: bold;
  opacity: 1;
  pointer-events: none !important;
}

.color-line {
  display: inline-block;
  vertical-align: middle;
  height: 3px;
  width: 20px;
}

.markers-legend-icon {
  height: 0px;
  vertical-align: middle;
}

.map-title {
  margin-top: 0 !important;
  margin-bottom: px;
  max-width: 154px;
}

.leaflet-top.leaflet-left {
  padding-top: 5px;
}

/* Map Table */
div.dataTables_scrollBody {
  border: 0 !important;
}

div.dataTables_scrollHead {
  color: #eee !important;
}

.dataTable * {
  font-family: "Helvetica Neue", el messiri;
  border: 0 !important;
}

div.dataTables_scrollHead table.display {
  background-color: #000;
  color: #eee;
}

select {
  font-size: 1.2em;
  font-weight: bold;
}

.div-center {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
}

span.legend-arrow {
  color: rgb(255 255 255);
  position: absolute;
  right: 8px;
  top: 5px;
}

span.legend-icon {
  color: #ffffff;
  margin-right: 5px;
}

.ladder {
  width: 155px;
  margin-top: 0 !important;
  overflow: hidden;
  background-color: #0a1047;
  color: white;
}

.ladder h6.minimize ~ div,
.ladder h6.minimize ~ form,
.ladder h6.minimize ~ section {
  display: none !important;
}
.ladder form, .ladder div {
  display: block;
}
