
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Great Vibes', cursive;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://imagedelivery.net/2Pl1lXRUn8M5Vznk-l91dQ/381c59ee-60e5-4a09-94eb-03a7d2f17200/ramentoto') no-repeat center center/cover;
    background-size: cover;
    z-index: -3;
    /* Pastikan gambar latar belakang di bawah semuanya */
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Overlay hitam dengan transparansi */
    z-index: -2;
    /* Pastikan overlay di bawah canvas */
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Canvas di atas overlay */
    pointer-events: none;
}

/* Media query untuk HP (max-width: 768px) */
@media (max-width: 768px) {
    body::before {
        background: url('https://imagedelivery.net/2Pl1lXRUn8M5Vznk-l91dQ/62d34b5a-8bc8-4d93-a6cb-c31af73eb000/ramentoto') no-repeat center center/cover;
    }
}

.container {
    text-align: center;
    color: #ffffff;
    animation: fadeIn 2s ease-in-out;
    margin-top: -200px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.title {
    font-size: 2em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #fff, 0 0 20px #f00;
    animation: pulse 2s infinite;
    position: relative;
    bottom: 30px;
}

@keyframes pulse {

    0%,
    100% {
        text-shadow: 0 0 10px #fff, 0 0 20px #f00;
    }

    50% {
        text-shadow: 0 0 20px #ff0, 0 0 30px #f00;
    }
}

.tree img {
    width: 250px;
    height: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    animation: bounce 2s infinite;
    position: relative;
    bottom: 30px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-30px);
    }

    60% {
        transform: translateY(-15px);
    }
}



.loading-bar {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 30px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 2px solid #ccc;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.loading-bar-inner {
    height: 100%;
    width: 0;
    /* Awalnya 0% */
    background: linear-gradient(to right, #ff0000, #33ff00);
    border-radius: 15px;
}


@keyframes loading {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

.loading-text {
    font-size: 2em;
    font-weight: bold;
    text-shadow: 0 0 5px #ff0000, 0 0 10px #ff0;
    animation: textFade 1.5s infinite;
}

.loading-text::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0% {
        content: '';
    }

    33% {
        content: '.';
    }

    66% {
        content: '..';
    }

    100% {
        content: '...';
    }
}

/* customizable snowflake styling */
.snowflake {
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px #000;
}

.snowflake,
.snowflake .inner {
    animation-iteration-count: infinite;
    animation-play-state: running
}

@keyframes snowflakes-fall {
    0% {
        transform: translateY(0)
    }

    100% {
        transform: translateY(110vh)
    }
}

@keyframes snowflakes-shake {

    0%,
    100% {
        transform: translateX(0)
    }

    50% {
        transform: translateX(80px)
    }
}

.snowflake {
    position: fixed;
    top: -10%;
    z-index: 9999;
    -webkit-user-select: none;
    user-select: none;
    cursor: default;
    animation-name: snowflakes-shake;
    animation-duration: 3s;
    animation-timing-function: ease-in-out
}

.snowflake .inner {
    animation-duration: 10s;
    animation-name: snowflakes-fall;
    animation-timing-function: linear
}

.snowflake:nth-of-type(0) {
    left: 1%;
    animation-delay: 0s
}

.snowflake:nth-of-type(0) .inner {
    animation-delay: 0s
}

.snowflake:first-of-type {
    left: 10%;
    animation-delay: 1s
}

.snowflake:first-of-type .inner,
.snowflake:nth-of-type(8) .inner {
    animation-delay: 1s
}

.snowflake:nth-of-type(2) {
    left: 20%;
    animation-delay: .5s
}

.snowflake:nth-of-type(2) .inner,
.snowflake:nth-of-type(6) .inner {
    animation-delay: 6s
}

.snowflake:nth-of-type(3) {
    left: 30%;
    animation-delay: 2s
}

.snowflake:nth-of-type(11) .inner,
.snowflake:nth-of-type(3) .inner {
    animation-delay: 4s
}

.snowflake:nth-of-type(4) {
    left: 40%;
    animation-delay: 2s
}

.snowflake:nth-of-type(10) .inner,
.snowflake:nth-of-type(4) .inner {
    animation-delay: 2s
}

.snowflake:nth-of-type(5) {
    left: 50%;
    animation-delay: 3s
}

.snowflake:nth-of-type(5) .inner {
    animation-delay: 8s
}

.snowflake:nth-of-type(6) {
    left: 60%;
    animation-delay: 2s
}

.snowflake:nth-of-type(7) {
    left: 70%;
    animation-delay: 1s
}

.snowflake:nth-of-type(7) .inner {
    animation-delay: 2.5s
}

.snowflake:nth-of-type(8) {
    left: 80%;
    animation-delay: 0s
}

.snowflake:nth-of-type(9) {
    left: 90%;
    animation-delay: 1.5s
}

.snowflake:nth-of-type(9) .inner {
    animation-delay: 3s
}

.snowflake:nth-of-type(10) {
    left: 25%;
    animation-delay: 0s
}

.snowflake:nth-of-type(11) {
    left: 65%;
    animation-delay: 2.5s
}
