/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;

}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

h1 span {
    color: #ffdd57;
}

.container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: center;
    text-align: center;
}

.weather-input {
    text-align: center;
    margin-bottom: 20px;
}
#i {
    height: 60px;
    margin-bottom: 10px;
}

.weather-input h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffdd57;
}

.city-input {
    width: 80%;
    max-width: 400px;
    padding: 10px;
    border: none;
    border-radius: 25px;
    outline: none;
    font-size: 1rem;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
}

.search-btn,
.location-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: #ffdd57;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 5px;
}

.search-btn:hover,
.location-btn:hover {
    background: #ffcc00;
}

.separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 20px 0;
}

.weather-data {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.current-weather {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in-out;
}

.current-weather .details h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffdd57;
}

.current-weather .details h4 {
    font-size: 1.2rem;
    margin: 5px 0;
}

.current-weather .icon {
    text-align: center;
}

.current-weather .icon h4 {
    font-size: 1.5rem;
    margin-top: 10px;
}

.days-forecast {
    width: 100%;
}

.days-forecast h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    color: #ffdd57;
}

.weather-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    list-style: none;
}

.card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    flex: 1 1 calc(20% - 20px);
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card h4 {
    font-size: 1.1rem;
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .current-weather {
        flex-direction: column;
        text-align: center;
    }

    .weather-card {
        flex-direction: column;
    }

    .card {
        flex: 1 1 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}