body {
  background-color: #d3d3d3;  /* Sets the overall page background color */
  }

  h1 { /* Styles the main page title: background, font, borders, alignment */
  background-color: #939799;
  color: Black;
  text-align: center;
  margin: 0;
  padding: 10px;
  font-family: "Cambria", serif;
  border: 3px solid #808080;
  border-radius: 0px
  }
  #header { /* Header container that holds the title and nav bar */
    background-color: #d3d3d3;
    width:100%;
    margin: auto;
    min-height: 80px;
    border-radius:0px; overflow: hidden;
  }

h3 { /* Subheading style used for labels/titles inside the map area */
  color:#36454f;
  text-align: left;
  margin: 0;
  font-family: "Cambria", serif;
  position: absolute;
  top: 100px;
  left: 50px;
}

div#nav { /* Navigation bar container: centers the buttons and controls spacing */
    display: inline-block;
    color: #0000ff;
    text-align: center;
    margin: auto;
    width: 100%;
    font-family: "Cambria", serif;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 15px;
  }

  #nav a { /* Styles the navigation buttons.*/
    display: inline-block;
    padding: 8px 18px;
    margin: 0 8px;
    background-color: Black;
    color: white;
    border-radius: 25px;
    text-decoration: none;
}

#toggleHeat {  /* Styles the heatmap button */
    z-index: 1000;
    background-color: white;
    border: 1px solid #888;
    border-radius: 4px;
    padding: 6px 12px;
    font-family: "Cambria", serif;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

div#footer { /* Styles the heatmap button */
  color: Black;
  font-family: "Cambria", serif;
  font-weight: bold;
  text-align: center;
  margin: auto;
}
#footer img { /* Makes Legends a normal size */
    width: 60%;
    height: auto;
}
#main {
  height: 70vh; /*adjusts height based on screen size*/
}
#viewDiv {
  height: 100%; /* Makes the map fully fill the #main container */
  width: 100%; /* Keeps the map at full width */
  border: 2px solid black; /* Border to help distingush between background*/
  border-radius: 8px;
}
#queryForm {
  position: absolute;
  top: 130px;          /* Distance from the top of the map */
  right: 20px;        /* Distance from the right edge of the map */
  width: 260px;
  background-color: rgba(255, 255, 255, 0.8); /* Light background for readability */
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;      /* Makes sure its on top of other map elements */
}

#queryFormElement {
  display: flex;        /* Makes inputs stack*/
  flex-direction: column;  /* Makes them stack vertically */
  gap: 10px;           /* Add space between form inputs */
}

#queryForm input {
  width: 150px;        /* Set width of input fields */
}

#queryForm button {
  padding: 8px;
  background-color: #808080; /* Add some color to the button */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#queryForm button:hover {
  background-color: #6e6e6e; /* Change button color on hover */
}
