@import url('https://fonts.googleapis.com/css2?family=Mountains+of+Christmas&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Mountains of Christmas', serif;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(#a2000a, #cf0000);
}

.container{
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.container::before{
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 200px;
    background: url(images/tree.png);
    z-index: 1;
}

.container .circle{
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 350px;
    background: #fff;
    border-radius: 50%;
}

.container .circle::before{
    content: '';
    position: absolute;
    inset: -200px -300px;
    background: url(images/santa.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 600px;
    animation: animate 5s ease-in-out infinite;
}

@keyframes animate{
    0%,100%{
        transform: translateY(-25px);
    }
    50%{
        transform: translate(25px);
    }
}

.container .circle::after{
    content: 'Joyeux Noël !!';
    position: absolute;
    inset: -125px -200px;
    font-size: 4.5em;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    color: #fff;
}

.container .snow{
    position: relative;
    display: flex;
}

.container .snow span{
    position: relative;
    min-width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    margin: 0 1vw;
    box-shadow: -100px 20px 5px #fff, 100px 20px 10px #fff;
    animation: animateSnow 15s linear infinite;
    animation-duration: calc(75s / var(--i));
}

.container .snow span:nth-child(event){
    min-width: 10px;
    height: 10px;
}

.attribution{
    max-width: 600px;
    display: grid;
    place-items: center;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px;
    color: #fff;
    z-index: 1000;
    position: absolute;
    
}

.attribution p span{
    font-size: 18px;
    font-weight: 400;
}


@keyframes animateSnow {
    0%{
        transform: translateY(-10vh);
    }
    100%{
        transform: translateY(100vh);
    }
}

@media only screen and (max-width: 700px) {

    .container{
        width: 100%;
    }

    .container .circle{
        height: 150px;
        width:150px;
        margin: 20% 0;
    }

    .container .circle::before{
        background-size: 300px;
    }

    .container .circle::after{
        font-size: 3rem;
    }

    .attribution{
        width: 80%;
    }

}

@media only screen and (max-width: 425px){
    .container{
        width: 100%;
    }

    .attribution{
        width: 80%;
    }
}

