* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.6s ease-in-out;
}

/* Header & Footer */
header, footer {
    background: rgba(0, 51, 102, 0.9);
    color: white;
    text-align: center;
    padding: 15px;
}

/* Main */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.weather-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    width: 360px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Input */
.weather-box input {
    width: 90%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #aaa;
}

/* Button */
.weather-box button {
    margin-top: 10px;
    padding: 10px 25px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.weather-box button:hover {
    background: #0059b3;
}

/* Loader */
.loader {
    display: none;
    margin: 15px auto;
    border: 5px solid #ccc;
    border-top: 5px solid #003366;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Weather Result */
#result img {
    width: 80px;
}

/* Forecast */
.forecast {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.forecast div {
    background: #f2f2f2;
    padding: 6px;
    border-radius: 8px;
    width: 60px;
    font-size: 12px;
}

/* Suggestions */
#suggestions {
    width: 90%;
    margin: auto;
    background: white;
    border-radius: 5px;
    max-height: 120px;
    overflow-y: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

#suggestions div {
    padding: 8px;
    cursor: pointer;
}

#suggestions div:hover {
    background: #003366;
    color: white;
}
