* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #00aaff, #00c2ff); /* Subtle gradient background */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #fff;
    overflow: hidden;
}

.weather-container {
    background-color: rgba(0, 0, 0, 0.75); /* Darker container for contrast */
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    width: 400px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-in-out;
}

.header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    animation: slideInFromTop 1s ease-out;
}

.header p {
    font-size: 18px;
    color: #ddd;
    animation: fadeIn 1.5s ease-in-out;
}

.main-info {
    margin-top: 20px;
    animation: fadeIn 1s ease-in-out;
}

.temperature h2 {
    font-size: 48px;
    font-weight: bold;
    color: #ffcc00; /* Yellow for temperature */
    animation: fadeInUp 1s ease-in-out;
}

.temperature p {
    font-size: 24px;
    color: #f0f0f0;
    animation: fadeInUp 1.2s ease-in-out;
}

.icon img {
    width: 80px;
    height: 80px;
    margin-top: 10px;
    transition: transform 0.3s ease-in-out;
    animation: fadeInUp 1.5s ease-in-out;
}

.icon img:hover {
    transform: scale(1.2);
}

.weather-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
    animation: fadeIn 1s ease-in-out;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease;
    opacity: 0;
    animation: fadeInUp 2s ease-in-out forwards;
}

.card:nth-child(1) {
    animation-delay: 0.3s;
}

.card:nth-child(2) {
    animation-delay: 0.5s;
}

.card:nth-child(3) {
    animation-delay: 0.7s;
}

.card:nth-child(4) {
    animation-delay: 0.9s;
}

.card:hover {
    transform: translateY(-10px) scale(1.05); /* Slight scale-up with upward movement */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.2); /* Light background color change on hover */
}

.card h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
}

.card p {
    font-size: 22px;
    color: #ffcc00;
}

.city-input-container {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    width: 300px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.city-input-container input, select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid #ccc;
    font-size: 16px;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
    animation-delay: 1s;
}

button {
    padding: 12px 20px;
    border-radius: 10px;
    background-color: #ffcc00;
    align-self: center;
    color: #000;
    border: none;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
    animation-delay: 1.2s;
}

button:hover {
    background-color: #ffb300;
}

.city-input-container button {
    padding: 12px 20px;
    border-radius: 10px;
    background-color: #ffcc00;
    color: #000;
    border: none;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
    animation-delay: 1.2s;
}

.city-input-container button:hover {
    background-color: #ffb300;
}

.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the screen */
    z-index: -1; /* Keeps it behind other content */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}