body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
    flex-direction: column;
    background: #f0f0f0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: background 0.5s ease;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.search-box {
    margin-bottom: 20px;
}

input {
    padding: 10px;
    font-size: 1rem;
}

button {
    padding: 10px;
    font-size: 1rem;
    cursor: pointer;
}

.weather-card {
    font-size: 1.2rem;
    color: #444;
    font-weight: bold;
}

.weather-icon img {
    width: 100px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
}

.location {
    font-size: 1.5rem;
    font-weight: bold;
}

.description {
    font-size: 1.2rem;
}

.datetime {
    font-size: 1.2rem;
    color: #555;
}

.rain-drop {
    position: absolute;
    width: 2px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    animation: rain 1s infinite linear;
}

@keyframes rain {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100vh);
    }
}

.sun {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: yellow;
    border-radius: 50%;
}

.moon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #ddd;
    border-radius: 50%;
}

/* Thunderstorm styles */
body.thunderstorm {
    background-color: #333; /* Darker background for thunderstorm */
}

body.lightning-flash {
    background-color: rgba(255, 255, 255, 0.8); /* Quick flash */
    transition: background-color 0.1s ease; /* smooth flash transition*/
}

/* Thunderstorm icon adjustments */
.weather-icon img[alt*="thunderstorm"] {
    filter: drop-shadow(4px 6px 8px rgba(0, 0, 0, 0.5));
}

/* rain container style */
.rain-container{
    pointer-events: none;
    z-index: 10000;
}