

/* body {
  display: grid;
  grid-template-rows: auto 1fr; 
  min-height: 100vh; 
  margin: unset;
} */

#map {
  /* min-height: 400px; */
    /* width: 100%;
    height: 100%; */
    /* height:400px; */
    /* position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0; */
    flex: 1;
}



#map {
  width: 100%;
  height: 100%;
}

.ol-popup {
    position: absolute;
    background-color: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 12px;
    left: -50px;
    /* min-width: 280px; */
    min-width: 400px;
  }
  .ol-popup:after, .ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
  }
  .ol-popup:after {
    border-top-color: white;
    border-width: 10px;
    left: 48px;
    margin-left: -10px;
  }
  .ol-popup:before {
    border-top-color: #cccccc;
    border-width: 11px;
    left: 48px;
    margin-left: -11px;
  }
  .ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 8px;
    right: 8px;
  }
  .ol-popup-closer:after {
    content: "✖";
  }

  #navigation-buttons{
    display: flex;
    flex-direction: row;
  }

  #navigation-buttons span{
    height: 20px;
    width: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #navigation-buttons span:hover{
    cursor: pointer;
  }

  .feature-count{
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #popup-content {
    height: 250px; 
    overflow:auto;
  }

  .monospace {
    font-family: monospace;
  }

  code, kbd, pre, samp {
    font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  }

  code {
    font-size: 87.5%;
    color: #e83e8c;
    word-wrap: break-word;
  }

 .no-select {
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
 }

 .dropdown-content{
    border-radius: 10px;
 }

 .select-wrapper {
    /* background: rgba(255,255,255,.8); */
    border-radius: 10px;
 }



.map-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}
/* Add media queries for responsiveness - when the screen is 500px wide or less, stack the links on top of each other */
/* @media screen and (max-width: 500px) {
  .header .logo{
    width: 80%;
  }
  .header{
    overflow: hidden;
    background-color: #f1f1f1;
    padding: 2px 5px;
    display: flex;
    justify-content: center
  }
  .sub-body-container{
    display: grid;
    grid-template-rows: 1fr 6fr;
    
  }
} */
/* 
.map-container{
  height: 80vh;
} */



/* body {
  margin: 0;
  font-family: Arial, sans-serif;
} */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.navbar {
  background-color: #333;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 1002;
  height: 60px; /* Adjust this value as needed */
  /* position: relative; */
}
.logo-container {
  color: white;
  font-size: 24px;
  text-decoration: none;
  z-index: 1003;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}
.logo{
  /* width: 47%; */
  height: 3em;
  /* width: 16% */
}
.nav-links {
  display: flex;
  z-index:1002
}
/* .nav-links a {
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px 4px;
  margin-left: 4px;
  align-content: center; 
  transition: .25s
}
.nav-links a:hover {
  background-color: #ddd;
  color: black;
  border-radius: 4px 4px;
}

.nav-links a.active {
  background-color: #ba0c2f;
  color: white;
} */
.nav-links a {
  color: white;
  background-color: #63666a;
  text-align: center;
  padding: 10px 12px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px 4px;
  /* margin-left: 12px; */
  margin: 0px 6px 0px 6px;
  align-content: center; 
  transition: .25s;
  border: none;
  border-radius: 4px;
  box-shadow: 
    2px 2px 5px rgba(0,0,0,0.5),
    inset 1px 1px 0px rgba(255,255,255,0.3),
    inset -1px -1px 0px rgba(0,0,0,0.3);
}
.nav-links a:hover {
  background-color: #bfbfbf !important;
  color: black;
  /* border-radius: 4px 4px; */
}

.nav-links a.active {
  background-color: #ba0c2f;
  color: white;
  box-shadow: 
    1px 1px 3px rgba(0,0,0,0.5),
    inset 1px 1px 0px rgba(0,0,0,0.3),
    inset -1px -1px 0px rgba(255,255,255,0.3);
  transform: translateY(1px);
}

.nav-links a.active:hover{
  background-color: #ba0c2fb9 !important;
}


#login-nav-button{
  background-color: #007a86;
}
.icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 1003;
}

.hamburger-icon {
  color: #bdbdbd;
}
/* .sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  right: 0;
  background-color: #111;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
} */
.sidenav-title{
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  text-align: center;
}
.sidenav {
  /* height: 100%; */
  border-radius: 3px;
  width: 0;
  position: fixed;
  top: 0;
  right: 0;
  background-color: #63666a;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 80px;
  z-index: 1000;
}
.sidenav .closebtn {
  position: absolute;
  /* top: 0; */
  right: 7px;
  font-size: 36px;
  margin-left: 50px;
  color: white;
  text-decoration: none;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
  /* margin: 10px; */
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.sidenav-content-section .switch-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0px 4px 0px;
} 
/* .sidenav-content-section .switch-container .switch-label{
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
} */

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
  /* box-shadow: 0 1px 4px rgb(0,0,0, 42%) */
  box-shadow: 
    2px 2px 5px rgba(0,0,0,0.5),
    inset 1px 1px 0px rgba(255,255,255,0.2),
    inset -1px -1px 0px rgba(0,0,0,0.2);
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #007a86;
}
input:checked + .slider:before {
  transform: translateX(16px);
}

.mobile-filter-labels{
  display: none;
}

.modal-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  overflow: auto;
  z-index: 1003;
  transition: .5s;
}

.modal-overlay .modal-container {

  width: 30em;
  /* margin: 15% auto; */
  margin: 7% auto;
  background: white;
  padding: 20px;
  border-radius: 4px;
  max-height: 70%;
  overflow-y: auto;
}

.modal-close{
  float: right;
}

.modal-close:hover{
  cursor: pointer;
}

.modal-container .modal-content{
  clear:both;
}

.modal-title{
  text-align: center;
}

.modal-logo{
  max-height: 10em;
}

@media screen and (max-width: 950px) {
  .nav-links {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    /* transition: max-height 0.5s ease, opacity 0.5s ease, visibility 0s 0.5s; */
  }

  .icon {
    display: block;
  }

  .navbar.responsive .nav-links {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: #333;
    z-index: 1001;
    max-height: 100vh; /* Adjust this value based on your needs */
    opacity: 1;
    visibility: visible;
    transition: max-height 0.5s ease, opacity 0.5s ease, visibility 0s;
    padding: 9px;
    border-radius: 0px 0px 3px 3px;
  }

  .navbar.responsive .nav-links a {
    display: grid;
    text-align: left;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin-left: unset;
    margin-bottom: 7px;
  }

  .navbar.responsive .nav-links a:nth-child(1) { transition-delay: 0.1s; }
  .navbar.responsive .nav-links a:nth-child(2) { transition-delay: 0.2s; }
  .navbar.responsive .nav-links a:nth-child(3) { transition-delay: 0.3s; }
  /* Add more if you have more links */

  .navbar.responsive .nav-links a {
    opacity: 1;
    transform: translateY(0);
  }
  .logo{
    height: 2em;
  }

  .modal-logo{
    max-height: 7em;
  }
  /* .logo{ */
    /* width: 80%; */
    /* width: 40%; */
  /* } */
  .sidenav {
    width: 0;
    max-width: 100%;
    z-index: 1000;
  }
  .mobile-filter-labels{
    display: flex;
  }

  .modal-overlay .modal-container{
    width: 20em;
  }
  
  .layer-switcher{
    top: 4.5em !important;
  }

}

/* @media screen and (max-width: 950px) {
  .nav-links {display: none;}
  .icon {
      display: block;
  }
  .navbar.responsive .nav-links {
      display: flex;
      flex-grow: 1;
      flex-direction: column;
      position: fixed;
      top: 80px;  this needs to be 80 because the height of navbar is 60 and the padding is 10 on top and bottom. (60+10+10)
      left: 0;
      right: 0;
      background-color: #333;
      z-index: 1001;
      transition: 0.5s;
  }
  .navbar.responsive .nav-links a {
      display: block;
      text-align: left;
      transition: 0.5s;
  }
  .sidenav {
    width: 0;
    max-width: 100%;
    z-index: 1000;
  }

} */


.year-select-container {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background-color: #a7a8aa94;
  padding: 5px;
  border-radius: 4px;
  width: 13em;
}

.flex{
  display: flex;
}

.year-select-grid{
  display: grid;
  grid-template-columns: 1fr auto;
  grid-column-gap: 5px;

}

#year-select-icon{
  color: #63666a;
}

#year-select-icon:hover{
  cursor: pointer;
}

.col{
  display: flex;
  flex-direction: column;
}

.col.center {
  align-items: center;
  
}

.input-field {
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  outline: none;
  padding: .375rem .75rem;
  margin: 5px 0px 7px 0px;
  border: 1px solid #ced4da;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgb(0,0,0, 42%)
}

.input-field:focus{
  box-shadow: 0 0 3px 3px #007a86;
  /* padding: .375rem .75rem; */
  /* margin: 5px 0px 3px 0px; */
  /* border: 1px solid #007a86; */
  /* border-radius: 3px; */
}

#sidenav-content{
  width: 250px;
  margin-bottom: 1em;
  user-select: none;
}

.sidenav-content-section{
  color: white;
  padding: 0px .5rem 0px .5rem;
}

.sselect-container{
  margin-left: .25em;
  margin-right: .25em;
  box-shadow: 0 1px 4px rgb(0,0,0, 42%)

}

.input-button {
  color: white;
  background-color: #007a86;
  /* font-family: Poppins; */
  padding: 2px 12px 2px 12px;
  margin: -3px;
  border-style: none;
  border-width: 1px;
  border-radius: 3px;
  cursor: pointer;
  max-width: max-content;
  border-color: #688fb1;
  margin: 2px;
  /* box-shadow: 0 1px 4px rgb(0,0,0, 42%); */
  box-shadow: 
  2px 2px 5px rgba(0,0,0,0.5),
  inset 1px 1px 0px rgba(255,255,255,0.3),
  inset -1px -1px 0px rgba(0,0,0,0.3);
}
.input-button.grey{
  background-color: #a7a8aa;
}

.input-button:disabled {
  color: #b5b5b5;
  background-color: #4b4f52;
  border-color: #4b4f52;
  cursor: not-allowed;
}

.input-button:active {
  background: #4b4f52;
  color: rgb(181, 181, 181);
  -webkit-box-shadow: inset 0px 0px 5px #202122;
  -moz-box-shadow: inset 0px 0px 5px #202122;
  box-shadow: inset 0px 0px 5px #202122;
  outline: none;
  /* box-shadow: 
  1px 1px 3px rgba(0,0,0,0.5),
  inset 1px 1px 0px rgba(0,0,0,0.3),
  inset -1px -1px 0px rgba(255,255,255,0.3); */
}


.input-button:disabled,
.input-button:disabled:active {
  background-color: rgba(239, 239, 239, 0.3);
  color: rgba(16, 16, 16, 0.3);
  border-color: rgba(118, 118, 118, 0.3);
  cursor: unset;
  /* cursor: not-allowed; */
  -webkit-box-shadow: unset;
  -moz-box-shadow: unset;
  box-shadow: unset;
  outline: none;
}

.shadow{
  box-shadow: 0 1px 4px rgb(0, 0, 0, 42%);
}

.pronounced-shadow{
  box-shadow: 0 2px 4px rgb(0, 0, 0, 62%);
}

.ol-overviewmap{
  left: 0.5em;
  bottom: 2em;
}

.layer-switcher {
  position: absolute;
  top: 2.5em;
  right: .5em;
  z-index: 2;
  color: #666666;
  background: white;
  padding: 2px;
  /* width: 1em; */
  /* height: 1em; */
  border-radius: 3px;
  background: rgb(125,125,125, 40%);
}


.layer-switcher-button{
  float: right;
  padding: 5px;
  background: white;
  border-radius: 3px;
}


.layer-switcher-button:hover{
  cursor: pointer;
}

.layer-switcher .panel{
  list-style: none;
  padding: 0.25em;
  margin: 0;
  overflow: hidden;
  clear: both;
}


.layer-switcher .panel.closed{
 display: none;
}

.layer-switcher .panel li{

  /* padding: 0.25em 1em; */
  padding: .25em 1em .25em .5em;
  border-left: solid 1.5em #63666a;
  background-color: white;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  font-size: larger;
  margin: 1px;
  border-radius: 4px;
}
.layer-switcher .panel li.visible{
  /* background-color: #007a86;
  color: white; */
  /* background-color: #007a86;
  color: white; */
  border-left: solid 1.5em #007a86;
}
.layer-switcher li:hover{
  cursor: pointer;
  /* background-color: #007a86;
  color: white; */
}



.layer-legend {
  position: absolute;
  bottom: 2.5em;
  left: .5em;
  z-index: 2;
  color: #666666;
  background: white;
  padding: 2px;
  /* width: 1em; */
  /* height: 1em; */
  border-radius: 3px;
  background: rgb(125,125,125, 70%);
}


.layer-legend-button{
  float: left;
  padding: 5px;
  background: white;
  border-radius: 3px;
}


.layer-legend-button:hover{
  cursor: pointer;
}

.layer-legend .panel{
  list-style: none;
  padding: 0.25em;
  margin: 5px;
  overflow: hidden;
  clear: both;
  background: white;
  border-radius: 3px;
}


.layer-legend .panel.closed{
 display: none;
}

.layer-legend .panel li{

  padding: 0.25em 1em;
  background-color: white;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  font-size: larger;
  /* margin: 1px; */
  border-radius: 4px;
}
.layer-legend .panel li.visible{
  background-color: #007a86;
  color: white;
}
.layer-switcher li:hover{
  cursor: pointer;
  /* background-color: #007a86;
  color: white; */
}

.legend-item{
  display: flex;
  justify-content: space-between;
}
.legend-square{
  width:32px;
  height: 32px;
}