body {
    margin: 50px 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle, #243b55, #141e30);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #f0f0f0;
}

.weatherForm {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    animation: fadeIn 1.5s ease;
}

.cityInput {
    padding: 15px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    outline: none;
    width: 280px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 500;
    backdrop-filter: blur(5px);
    transition: box-shadow 0.3s ease;
}

.cityInput::placeholder {
    color: #ddd;
}

.cityInput:focus {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.weatherForm button {
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    background: linear-gradient(to right, #ff8c42, #ff3d81);
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.weatherForm button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 61, 129, 0.5);
}

.card {
    text-align: center;
    padding: 40px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    width: 320px;
    animation: fadeIn 2s ease;
}

.card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.cityDisplay {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #fefefe;
    text-shadow: 0 0 10px rgba(198, 198, 198, 0.7);
    margin-top: 0;
}

.small-icon {
    font-size: 0.5em;
    vertical-align: 0.3em;
}

.tempDisplay {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px 0 20px 0;
    color: #00d2ff;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.7);
}

.humidityDisplay .feelsLikeDisplay .windDisplay .sunriseSunsetDisplay{
    font-size: 1rem;
    margin-bottom: 30px;
    text-transform: capitalize;
    color: #f0f0f0;
    opacity: 0.9;
}

.descDisplay {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 10px;
    text-transform: capitalize;
    color: #f0f0f0;
    opacity: 0.9;
}

.weatherEmoji {
    font-size: 3rem;
    margin: 20px 0;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.errorDisplay {
    font-size: 1rem;
    font-weight: bold;
    color: #ff4c4c;
    margin-top: 10px;
    animation: shake 0.3s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-5px);
    }
}

@media screen and (max-width: 480px) {
    .cityInput {
        width: 220px;
    }

    .card {
        padding: 25px 15px;
    }

    .cityDisplay {
        font-size: 2rem;
    }

    .tempDisplay {
        font-size: 2.5rem;
    }

    .weatherEmoji {
        font-size: 3rem;
    }
}


.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
