@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

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


body {
    background: linear-gradient(to right, #2b5876, #4e4376);
    color: white;
    text-align: center;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 1s ease-in-out;
    overflow: hidden;
}


body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://i.gifer.com/3R5H.gif') repeat-x;
    opacity: 0.3;
    z-index: -1;
    animation: moveClouds 60s linear infinite;
}


.container {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}


input {
    width: 80%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 16px;
    text-align: center;
    outline: none;
}


button {
    padding: 12px 20px;
    border-radius: 8px;
    background: #ffcc00;
    color: black;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0px 0px 10px rgba(255, 204, 0, 0.7);
}

button:hover {
    background: #e6b800;
    box-shadow: 0px 0px 20px rgba(255, 204, 0, 1);
}


#weather-info {
    margin-top: 20px;
}

#weather-icon {
    width: 100px;
    display: none;
}


.clear {
    background: url('https://source.unsplash.com/1600x900/?sunny,sky') no-repeat center center/cover;
}

.cloudy {
    background: url('https://source.unsplash.com/1600x900/?cloudy,sky') no-repeat center center/cover;
}

.rainy {
    background: url('https://source.unsplash.com/1600x900/?rain,storm') no-repeat center center/cover;
}

.snowy {
    background: url('https://source.unsplash.com/1600x900/?snow,winter') no-repeat center center/cover;
}

.thunderstorm {
    background: url('https://source.unsplash.com/1600x900/?thunderstorm,lightning') no-repeat center center/cover;
}


@keyframes moveClouds {
    from {
        background-position: 0;
    }
    to {
        background-position: -2000px;
    }
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 14px;
}
