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

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

.snow-container {
    background-image: url("./image/snow.jpg");
    width: 100%;
    height: 100vh;
    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.snow-container::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top:0%;
    left:0%;
    background-color: black;
    opacity: 0.2;
    
}

.snow-container h1 {
    font-size: 8rem;
    color:white;
    z-index: 2;
    position: absolute;
    text-shadow: 3px 3px rgba(0, 0, 0, 0.2);
}

.snow {
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    animation: snowFall 10s linear;
    z-index: 1;
}

@keyframes snowFall {
    0% {
        opacity: 0;
        top:0;
        transform: translateY(5px);
    }

    10%{
        opacity: 1;
        transform: translateY(-5px);
    }

    20% {
        transform: translateY(5px);
    }

    90%{
        opacity: 1;
    }

    100%{
        opacity: 1;
        top:100vh;
    }
}

@media only screen and (max-width: 750px) {
    .snow-container h1 {
        display:block;
        width: 100%;
        text-align: center;
        font-size: 400%;

    }
}