* {
    margin: 0;
    padding: 0;
    font-family: "Nunito", sans-serif;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #1a0533, #3813c2, #1a0533);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;  
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.title {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
 
}

.title h1 {
    font-size: 26px;
    color: white;
}

.card {
    width: 90%;
    max-width: 500px;
    background: linear-gradient(145deg, #ff6fd8, #3813c2);
    color: #fff;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 20px;
    padding: 40px 35px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.search {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search input {
    border: 0;
    outline: 0;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    height: 50px;
    border-radius: 30px;
    flex: 1;
    margin-right: 16px;
    font-size: 18px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search button {
    border: 0;
    outline: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search button:hover {
    background: rgba(255, 255, 255, 0.5);
}

.search button img {
    width: 30px;
}

.weather-icon {
    width: 100px;
    margin-top: 30px;
}

.weather h1 {
    font-size: 50px;
    font-weight: 500;
    margin-top: 15px;
}

.weather h2 {
    font-size: 40px;
    font-weight: 400;
    margin-top: 10px;
}

.details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-top: 50px;
}

.details {
    gap: 40px;
}

.col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.col img {
    width: 40px;
    margin-right: 10px;
}

.humidity,
.wind {
    font-size: 28px;
    margin-top: -5px;
}

.forecast-container {
    width: 90%;
    max-width: 500px;
    margin-bottom: 20px;
}

.forecast-title {
    color: white;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 12px;
}

.forecast-grid {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.forecast-day {
    flex: 1;
    background: linear-gradient(145deg, rgba(255, 111, 216, 0.35), rgba(56, 19, 194, 0.45));
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 14px 8px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

.forecast-day:hover {
    transform: translateY(-4px);
    background: linear-gradient(145deg, rgba(255, 111, 216, 0.5), rgba(56, 19, 194, 0.6));
}

.forecast-day .day-name {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.forecast-day img {
    width: 38px;
    height: 38px;
}

.forecast-day .day-temp {
    font-size: 18px;
    font-weight: 700;
}

.forecast-day .day-desc {
    font-size: 11px;
    opacity: 0.75;
    text-align: center;
    line-height: 1.3;
}

footer {
    color: white;
}

footer a {
    color: white;
}

.label {
    font-size: 14px;
    opacity: 0.8;
}