html,
body,
#viewDiv {
  padding: 0;
  margin: 0;
  position: fixed;
  top: 50px;
  bottom: 0;
  right: 0;
  left: 274px;
}


#header {
  position: fixed; 
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 12px;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px; 
  background: white;
  border-bottom: 2px solid #ccc; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
  z-index: 100; 
  font-size: clamp(16px, min(40px, 65vw / 25), 25px);
}

.header-image img{
  height: 45px;
  width: auto;
  vertical-align: middle;
}

.header-text {
  font-size: 23px;
  font-family: "Times New Roman", Times, serif;
  text-transform: uppercase;
  color: #5E5856;
  font-weight: 535;
  margin-top: 5px;
  margin-left: 5px;
}


#sidebar {
  position: fixed;
  top: 48px;
  left: 0px;
  bottom: 0px;
  background: #e5e6e5;
  padding: 10px;
  z-index: 2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 250px;
  border: 2px solid #ccc;
}

#sidebar-instructions {
  background-color: #ffffff;
  border: 2px solid #736F6E;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  padding: 10px;
  font-size: 14px;
  }

  
#formContainer {
  position: fixed;
  top: 240px;
  left: 13px;
  right: calc(100% - 10px);
  background: rgb(255, 255, 255);
  padding: 10px;
  z-index: 2;
  box-shadow: 0 4px 8px rgba(8, 8, 8, 0.2);
  width: 226.5px;
  height: 400px;
  border: 2px solid #736F6E;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start;
  align-items: stretch;
}

#formContainer[style*="display: none"] {
  display: none !important;
}

.spacer {
  flex-grow: 1;
}


#publiccomment {
  width: 220px;
  height: 125px !important;
}

#formContainer label {
  font-size: 14px !important;
}

#contact {
  width: 220px;
  font-size: 14px;
  height: 50px !important;
}

#yourneighborhood {
  width: 220px;
  font-size: 14x;
  height: 25px !important;
}


.button-container {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.custom-button {
  padding: 10px;
  border: none;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(8, 8, 8, 0.2);
  transition: background-color 0.3s ease;
}

.custom-button:hover {
  background-color: #0056b3;
}


#thankYouMessage {
  display: none;
  position: fixed;
  width: 350px;
  height: 200px;
  background: #ffffff; 
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 3px solid #736F6E;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  flex-direction: column;
}

#outOfBounds {
  display: none;
  position: fixed;
  width: 400px;
  height: 200px;
  background: #ffffff; 
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 3px solid #736F6E;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  flex-direction: column;
}

#overlayBlocker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparent;
  z-index: 999;
  display: none;
}


@media (max-height: 601px) and (orientation: portrait){
  html,
  body,

  #publiccomment {
    height: 25% !important;
  }

  
}

@media (min-height: 1000px) {
  html,
  body,

  #publiccomment {
    height: 45% !important;
  }
}

@media (orientation: landscape) and (max-height: 700px){
  html,
  body,

  #viewDiv {
    left: 249px;
  }

  #formContainer {
    overflow-y: auto;
    max-height: calc(100vh - 165px) !important;
    top: 135px;
    left: 12px;
    width: 201px;
  }

  #formContainer label {
  font-size: 12px !important;
  }

  .custom-button {
    font-size: 12px;
  }

  #sidebar {
    width: 225px;
  }

#sidebar-instructions {
  background-color: #ffffff;
  border: 2px solid #736F6E;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  padding: 10px;
  font-size: 12px;
  }

  #publiccomment{
   width: 195px;
   font-size: 10px !important;
   min-height: 50px !important;
  }
 
  #contact {
   width: 195px;
   font-size: 10px;
   min-height: 20px !important;
  }

  #yourneighborhood {
   width: 195px;
   font-size: 10px;
   height: 25px !important;
  }

  .esri-basemap-gallery {
    max-height: 50vh;
  }

  .esri-legend {
    max-height: 50vh;
    max-width: 85vw;
  }
}

@media (max-width: 719px) and (orientation: portrait) and (max-aspect-ratio: 751/1000) {
  html,
  body,


  #viewDiv {
    padding: 0;
    margin: 0;
    position: fixed;
    top: 16vh;
    bottom: 0;
    right: 0;
    left: 0;
  }

  #header {
    position: fixed; 
    display: flex;
    align-items: center;
    justify-content: center; 
    padding: 10px;
    top: 0;
    left: 0;
    width: 100%;
    height: 6vh; 
    background: white;
    border-bottom: 0px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.2); 
    z-index: 100; 
    font-size: clamp(1rem, 2.5vh, 3rem);
    box-sizing: border-box;
  }

  .header-image img{
    height: 5.5vh;
    width: auto;
    vertical-align: middle;
  }

  .header-text {
    font-size: 1em;
  }

  .esri-basemap-gallery {
    max-height: 50vh;
  }

  
  #sidebar {
    position: fixed;
    padding: 0px;
    top: 6vh;
    left: 0px;
    bottom: 84vh;
    background: #e5e6e5;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100vw;
    border: 2px solid #ccc;

  }


  #sidebar-instructions {
    position: fixed;
    padding: 2vh;
    top: 7vh;
    left: 1vh;
    right: 1vh;
    bottom: 85vh;
    background-color: #ffffff;
    border: 2px solid #736F6E;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-size: 2vh;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    }




    #formContainer {
      position: fixed;
      top: calc(14vh + (90vh - 65vh) / 2);
      left: 50%;
      transform: translateX(-50%);
      background: rgb(255, 255, 255);
      padding: 10px;
      z-index: 2;
      box-shadow: 0 4px 8px rgba(8, 8, 8, 0.2);
      width: 90vw;
      max-height: 60vh;
      min-height: 40vh;
      overflow-y: auto;
      border: 2px solid #736F6E;
      box-sizing: border-box;
      font-size: 4vw;
      display: flex;
      flex-direction: column;
    }

    .spacer {
      flex-grow: 1;
    }
    
    #publiccomment {
      height: 30% !important;
    }
  
  
    #formContainer textarea,
    #formContainer select {
      width: 80vw;
      margin: 0 auto 10px auto;
      font-size: 4vw;
      box-sizing: border-box;
      display: block;
    }

  .button-container {
    display: flex;
    gap: 50px;
    justify-content: center;
  }

  .custom-button {
    padding: 10px 15px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    bottom: 50vh;
    font-size: 4vw;
    box-shadow: 0 4px 8px rgba(8, 8, 8, 0.2);
    transition: background-color 0.3s ease;
  }

  .custom-button:hover {
    background-color: #0056b3;
  }

  #thankYouMessage {
    display: none;
    position: fixed;
    width: 90vw;
    height: 255px;
    box-sizing: border-box;
    background: #ffffff; 
    align-items: center;
    justify-content: center;
    font-size: 4vw;
    padding: 20px;
    border: 3px solid #736F6E;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
  }

    #outOfBounds {
      display: none;
      position: fixed;
      width: 90vw;
      max-width: 400px;  
      min-width: 280px;  
      max-height: 60vh;
      min-height: 35vh;  
      box-sizing: border-box;
      background: #ffffff; 
      display: flex;
      align-items: center;
      justify-content: flex-start; 
      font-size: 4vw;
      padding: 20px;
      border: 3px solid #736F6E;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      z-index: 1000;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      flex-direction: column;
      overflow-y: auto;   
    }

  textarea, input {
    width: 90%;
    margin-bottom: 10px;
  }



}

