/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Global Styles */
body {
    font-family: "Poppins", Arial, sans-serif;
    text-align: center;
    background: linear-gradient(to bottom, #87CEEB, #4682B4); /* Light Sky Blue to Steel Blue */
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    transition: background 0.5s ease;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Main Container */
.container {
    width: 90%;
    max-width: 450px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Input Field */
input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    text-align: center;
}

/* Buttons */
button {
    width: 100%;
    padding: 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease-in-out;
}

button:hover {
    transform: scale(1.05);
    background-color: #0056b3;
}

/* Weather Result */
#weather-result {
    margin-top: 20px;
    font-size: 18px;
    transition: opacity 0.5s ease;
}

/* Weather Header */
#weather-result h3 {
    font-size: 26px;
    color: #fff;
    margin-bottom: 10px;
}

/* Weather Icon */
img {
    width: 80px;
    height: 80px;
    margin: 10px 0;
}

/* Weather Details */
#weather-result p {
    font-size: 18px;
    color: #f8f8f8;
    margin: 5px 0;
}

/* 5-Day Forecast Section */
#forecast-result {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 10px;
}

.forecast-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    width: 100px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.forecast-item p {
    margin: 5px 0;
    color: #fff;
    font-size: 14px;
}

.forecast-item img {
    width: 50px;
    height: 50px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    input {
        font-size: 14px;
        padding: 10px;
    }

    button {
        font-size: 14px;
        padding: 10px;
    }

    #weather-result h3 {
        font-size: 22px;
    }

    #weather-result p {
        font-size: 16px;
    }

    .forecast-item {
        width: 90px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 95%;
        padding: 10px;
    }

    input {
        font-size: 14px;
        padding: 8px;
    }

    button {
        font-size: 14px;
        padding: 8px;
    }

    #weather-result h3 {
        font-size: 20px;
    }

    #weather-result p {
        font-size: 14px;
    }

    .forecast-item {
        width: 80px;
        padding: 10px;
    }
}
/* Light Mode (Default) */
body {
    font-family: "Poppins", Arial, sans-serif;
    text-align: center;
    background: linear-gradient(to bottom, #87CEEB, #4682B4); /* Light Sky Blue to Steel Blue */
    color: #fff;
    transition: background 0.5s ease, color 0.5s ease;
}

/* Dark Mode */
body.dark-mode {
    background: linear-gradient(to bottom, #1a1a2e, #16213e); /* Dark Mode Colors */
    color: #f0f0f0;
}

/* Dark Mode Elements */
.dark-mode .container {
    background: rgba(0, 0, 0, 0.3);
}

.dark-mode button {
    background-color: #ffcc00;
    color: black;
}

.dark-mode button:hover {
    background-color: #ffb700;
}
