body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #74ebd5, #acb6e5);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.input-group {
    margin-bottom: 20px;
}

#cityInput {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 200px;
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.weather-info {
    display: none;
    margin-top: 20px;
}

.weather-info.active {
    display: block;
}

.weather-icon {
    width: 100px;
    height: 100px;
    margin: 10px 0;
}

.error-message {
    color: red;
    margin: 10px 0;
}

/* Weather Animation Styles */
.weather-icon.sunny {
    animation: bounce 1s infinite;
}

.weather-icon.cloudy {
    animation: float 2s infinite;
}

.weather-icon.rainy {
    animation: rain 1s infinite;
}

.weather-icon.snowy {
    animation: snow 1s infinite;
}

/* Animation Keyframes */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes rain {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(10px);
    }
}

@keyframes snow {
    0% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}