/* Responsive styles for mobile optimization */
@media (max-width: 500px) {
    body {
        height: auto;
        min-height: 100vh;
        padding: 10px;
    }
    #weather-container {
        max-width: 95vw;
        padding: 10px;
        font-size: 16px;
    }
    input {
        width: 90vw;
        font-size: 14px;
        padding: 10px;
    }
    button {
        width: 90vw;
        font-size: 16px;
        margin-top: 10px;
        padding: 12px;
    }
    #weather-icon {
        width: 120px;
        height: 120px;
    }
    #hourly-forecast {
        margin-top: 20px;
        gap: 5px;
    }
    .hourly-item {
        width: 60px;
        font-size: 13px;
        margin-right: 5px;
    }
    .hourly-item img {
        width: 48px;
        height: 48px;
    }
    #city-suggestions {
        font-size: 14px;
        padding: 6px;
    }
    .suggestion-item {
        padding: 6px;
        font-size: 14px;
    }
}
body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #3b6a82; /* your background */
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.app-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer {
    margin-top: 30px;
    font-size: 14px;
    font-weight: bold;
    color: #f1ededff;
    text-align: center;
    opacity: 0.8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#weather-container {
    background: rgb(208, 217, 145);
    max-width: 340px;
    width: 96vw;
    padding: 25px;
    font-size: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 20px;
}

h2, label, p {
    color: #0a0909;
    margin: 4px 0;
}

h3 {
    margin: 4px 0 20px 0;
    font-size: 18px;
}

input {
    width: 330px;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid white;
    margin-top: 20px;
    border-radius: 10px;
    font-size: 15px;
}

button {
    background-color: rgb(110, 180, 221);
    color: black;
    padding: 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    width: 100px;
    font-size: 15px;
}

button:hover {
    background-color: rgb(111, 138, 154);
    color: black;
}

#temp-div {
    font-size: 60px;
    margin-top: -30px;
}

#weather-info {
    font-size: 20px;
}

#weather-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto 10px;
    margin-bottom: 0;
    display: none;
}

#hourly-forecast {
    margin-top: 50px;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
}

.hourly-item {
    flex: 0 0 auto;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 10px;
    color: black
}

.hourly-item img {
    width: 80px;
    height: 80px;
}

#hourly-heading {
    color: black;
    margin-top: 10px;
}

#city-suggestions {
    padding: 8px;
    box-sizing: border-box;
    border-radius: 10px;
    font-size: 15px;
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
    text-align: left;

}

.suggestion-item:hover {
    background-color: rgb(153, 160, 108);
    color: black;
}

