@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: rgb(16, 16, 16);
}
body {
    font-family: "Hind Siliguri", sans-serif;
    margin: 0;
    overflow: hidden;
    user-select: none;
    --translate-base-1: -1180px;
    --translate-anim-1: 920px;
    --translate-base-2: 1150px;
    --translate-anim-2: 220px;
    --translate-base-3: -1180px;
    --translate-anim-3: 450px;
    --translate-base-4: 1150px;
    --translate-anim-4: 690px;
}

.container {
    height: 100%;
    margin-top: -100px;
    padding: 0;
    gap: 1em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.numbers-container {
    margin-top: -80px;
    padding: 0;
    height: 140px;
    transform: translateY(50px);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    overflow: hidden;
}

.new-year {
    display: flex;
    flex-direction: row;
    gap: 2em;
}

.happy, .new, .year, .numbers {
    margin: 0;
    opacity: 0;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.happy {
    font-size: 9em;
    /* -webkit-text-stroke: 1.5px rgb(236, 236, 236); */
    background-image: linear-gradient(to right, rgb(214, 82, 48), #D56E30ff, #DD8425ff, #E69A19ff, #EEB00Eff, #F7C602ff);
    background-clip: text;
    color: transparent;
    animation: fade-in 1s 1000ms ease forwards;
}

.new, .year {
    font-size: 9em;
    /* -webkit-text-stroke: 1.5px rgb(236, 236, 236); */
    background-image: linear-gradient(to right, rgb(26, 90, 0), #218B00ff, #1E9900ff, #1CA600ff, #19B400ff, #17C200ff);
    background-clip: text;
    color: transparent;
}

.new {
    margin-top: -50px;
    animation: fade-in 1s 2100ms ease forwards;
}
.year {
    animation: fade-in 1s 2400ms ease forwards;
    margin-top: -20px;
}

.numbers {
    margin-top: 10px;
    font-size: 9em;
    /* -webkit-text-stroke: 1.5px rgb(236, 236, 236); */
    background-image: linear-gradient(to right, rgb(0, 86, 167), rgb(130, 199, 255));
    background-clip: text;
    color: transparent;
    animation: fade-in 1s 3200ms ease forwards;
    display: flex;
    flex-direction: column;
}

.digit-1, .digit-2, .digit-3, .digit-4 {
    background-image: linear-gradient(to left, rgb(0, 86, 167), rgb(130, 199, 255));
    background-clip: text;
    color: transparent;
}

.digit-1 {
    transform: translateY(var(--translate-base-1));
    animation: new-year-1 2s 4900ms ease forwards;
}
.digit-2 {
    transform: translateY(var(--translate-base-2));
    animation: new-year-2 2s 4900ms ease forwards;
}

.digit-3 {
    transform: translateY(var(--translate-base-3));
    animation: new-year-3 2s 4900ms ease forwards;
}

.digit-4 {
    transform: translateY(var(--translate-base-4));
    animation: new-year-4 2s 4900ms ease forwards;
}

.confetti {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: transparent;
    opacity: 0;
    animation: fall linear 2s forwards;
}

@keyframes new-year-1 {
    to {
        transform: translateY(var(--translate-anim-1));
    }
}
@keyframes new-year-2 {
    to {
        transform: translateY(var(--translate-anim-2));
    }
}
@keyframes new-year-3 {
    to {
        transform: translateY(var(--translate-anim-3));
    }
}
@keyframes new-year-4 {
    to {
        transform: translateY(var(--translate-anim-4));
    }
}

@keyframes fall {
    0% {
      transform: translateY(-100vh) rotate(0deg);
      opacity: 1;
    }
    100% {
      transform: translateY(100vh) rotate(360deg);
      opacity: 1;
    }
}

@media screen and (max-width: 600px) {
    .happy { font-size: 7em;}
    .new, .year { font-size: 7em;}
    .numbers { font-size: 7em;}
    .numbers-container {
        margin-top: 1px;
        height: 100px;
    }
    body {
        --translate-base-1: -910px;
        --translate-anim-1: 720px;
        --translate-base-2: 900px;
        --translate-anim-2: 176px;
        --translate-base-3: -910px;
        --translate-anim-3: 354px;
        --translate-base-4: 900px;
        --translate-anim-4: 540px;
    }
}

/* @media screen and (max-width: 600px) {
    .happy { font-size: 5em;}
    .new, .year { font-size: 5em;}
    .numbers { font-size: 5em;}
    .numbers-container { height: 120px;}
    body {
        --translate-base-1: 144px;
        --translate-anim-1: -96px;
        --translate-base-2: 324px;
        --translate-anim-2: -276px;
        --translate-base-3: 624px;
        --translate-anim-3: -576px;
    }
} */

@media screen and (max-width: 460px) {
    .happy { font-size: 5em;}
    .new, .year { font-size: 5em;}
    .numbers { font-size: 5em;}
    .numbers-container {
        height: 70px;
        margin-top: -60px;
    }
    body {
        --translate-base-1: -640px;
        --translate-anim-1: 520px;
        --translate-base-2: 650px;
        --translate-anim-2: 130px;
        --translate-base-3: -640px;
        --translate-anim-3: 255px;
        --translate-base-4: 650px;
        --translate-anim-4: 388px;
    }
}