body {
    margin: 0;
    background: #0f172a;
    color: white;
    font-family: Arial, sans-serif;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: auto;
    padding: 20px;
}

h1 {
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background: #1e293b;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    margin-bottom: 20px;
}

.weather-image {
    width: 100%;
    border-radius: 10px;
}

.rain-image {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 10px auto 30px auto;
    border-radius: 8px;
}

.rain-card h3 {
    text-align: center;
}

.current-weather-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {

    .current-weather-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

.weather-value {
    background: #334155;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.weather-title {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #cbd5e1;
}

.weather-time {
    text-align: center;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 8px;
}

.wind-details {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: normal;
}

#temp,
#humidity,
#dewpoint,
#rain,
#wind {
    font-size: 1.8rem;
    font-weight: bold;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.forecast-day {
    background: #334155;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.forecast-day .day {
    font-weight: bold;
    margin-bottom: 10px;
}

.forecast-day .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.forecast-day .temp-max {
    color: #fbbf24;
    font-weight: bold;
}

.forecast-day .temp-min {
    color: #93c5fd;
}

.forecast-day .rain {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #67e8f9;
}