/* Common styles for all screen sizes */
body {
    font-family: Arial, sans-serif;
    background-color: #161616;
    margin: 0;
    padding: 0;
    color: white;
    overflow: hidden;
}

.top-section {
    text-align: center;
    padding: 1.2px; /* Adjusted padding */
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    min-height: 30px; /* Adjusted height */
}

.top-section button, #getWeatherButton {
    background-color: #FFF200;
    border: none;
    color: #161616;
    padding: 6px 12px; /* Adjusted padding */
    font-size: 10px; /* Adjusted font size */
    cursor: pointer;
    border-radius: 5px;
    margin: 3px; /* Adjusted margin */
}

.location {
    font-size: 1.5em;
    margin: 10px 0 !important;
}

#weatherDescription {
    font-size: 20px;
    margin-top: 5px !important;
}

#icon-container {
    text-align: center;
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    gap: 10px; /* Add some space between the icon and temperature extremes */
    /* Specifically for the icon container, if it's too large */
    width: auto; /* Adjust width as needed */
    height: 80px; /* Reduce height to bring elements closer */

}

#tempExtremes {
    display: flex; /* Use flexbox */
    flex-direction: column; /* Stack the temperatures vertically */
    align-items: center; /* Align items to the center */
    justify-content: center; /* Center items vertically */
}

#tempExtremes p {
    margin: 2px 0; /* Reduce margin to bring "Hi:" and "Lo:" closer together */
}



#weatherIcon {
    width: 125px;
    height: 125px;
    vertical-align: top;
}

.container {
    text-align: center;
    margin: 20px auto;
}

#hourlyForecast img {
    width: auto !important;
    max-width: 60px !important;
    height: auto !important;
}

#temperature-container {
    background-color: transparent; /* Removed background color */
    text-align: center;
    padding: 10px 5px;
    border-radius: 5px;
    color: #FFF200; /* Changed text color */
    font-size: 32px;
    margin-top: 10px;
    margin-bottom: 5px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 30px;
}

/* Apply color directly to the temperature text */
#temperature {
    color: #FFF200; /* Ensure this overrides any other color */
}

#hourlyForecast {
    margin: 20px auto;
    width: fit-content;
    overflow-x: auto;
}

#hourlyForecast td {
    padding: 5px;
    border: none;
    color: white;
}


#zipcodeInput {
    width: auto; /* Adjust back to auto to control size with padding or use a specific width */
    max-width: 300px; /* Set a max-width to better fit the content size */
    padding: 8px 10px; /* Adjust padding to better fit the content */
    font-size: 16px; /* Adjust font size for readability */
    margin: 0 auto; /* Center the input box */
    display: block; /* Ensure it takes its own line */
}


/* Adjust the button to ensure it's on a new line */
#getWeatherButton {
    width: auto; /* Adjust if you want to control the width */
    padding: 10px 20px; /* Adjust padding as needed */
    display: block; /* Ensures the button takes a new line */
    margin: 0 auto; /* Centers the button below the input box */
}

/* Geoapify */

.autocomplete-container {
    position: relative;
}

.autocomplete-container input {
    width: calc(100% - 43px);
    outline: none;
    
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 10px;
    padding-right: 31px;
    font-size: 16px;
  }

  .autocomplete-items {
    position: absolute;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0px 2px 10px 2px rgba(0, 0, 0, 0.1);
    border-top: none;
    background-color: #555;
    z-index: 99;
    top: calc(100% - 34px);
    left: 0;
    right: 0;
  }
  
  .autocomplete-items div {
    padding: 10px;
    cursor: pointer;
  }
  
  .autocomplete-items div:hover {
    /*when hovering an item:*/
    background-color: rgba(0, 0, 0, 0.1);
  }

  .clear-button {
    position: absolute;
    margin-top: -32px;
    color: black;
    margin-left: 272px;
  }