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

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://imagedelivery.net/2Pl1lXRUn8M5Vznk-l91dQ/766bf26d-52bb-4e7f-36ee-7c9ba724b400/exo123') no-repeat center center/cover;
    background-size: cover;
    z-index: -3;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -2;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Media query untuk mobile */
@media (max-width: 768px) {
    body::before {
        background: url('https://imagedelivery.net/2Pl1lXRUn8M5Vznk-l91dQ/766bf26d-52bb-4e7f-36ee-7c9ba724b400/exo123') no-repeat center center/cover;
        background-size: cover;
    }
    .container {
        margin: 20px;
    }
    main {
        padding: 15px;
    }
    .tree img {
        width: 200px;
    }
}

.container {
    text-align: center;
    color: #ffffff;
    animation: fadeIn 2s ease-in-out;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

main {
    max-width: 900px;
    margin: 20px auto;
    padding: 25px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    text-align: left;
}

h1, h2 {
    color: #fff;
    text-shadow: 0 0 12px #ff4444;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

h2 {
    font-size: 1.8em;
    margin-top: 20px;
}

p, ul {
    color: #fff;
    font-size: 1.1em;
    line-height: 1.6;
}

a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin: 10px 5px;
    padding: 10px 20px;
    background: #ff4444;
    border-radius: 8px;
    transition: background 0.3s;
}

a:hover {
    background: #ff6666;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.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: 20px auto;
    border: 2px solid #ddd;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

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

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

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

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

@keyframes dots {
    0% { content: ''; }
    33% { content: '.'; }
    66% { content: '..'; }
    100% { content: '...'; }
}

.Coin {
    color: #fff;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 0 5px #000;
}

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

@keyframes Coin-fall {
    0% { transform: translateY(0); }
    100% { transform: translateY(110vh); }
}

@keyframes Coin-shake {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(80px); }
}

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

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

.Coin:nth-of-type(0) { left: 1%; animation-delay: 0s; }
.Coin:nth-of-type(0) .inner { animation-delay: 0s; }
.Coin:first-of-type { left: 10%; animation-delay: 1s; }
.Coin:first-of-type .inner, .Coin:nth-of-type(8) .inner { animation-delay: 1s; }
.Coin:nth-of-type(2) { left: 20%; animation-delay: .5s; }
.Coin:nth-of-type(2) .inner, .Coin:nth-of-type(6) .inner { animation-delay: 6s; }
.Coin:nth-of-type(3) { left: 30%; animation-delay: 2s; }
.Coin:nth-of-type(11) .inner, .Coin:nth-of-type(3) .inner { animation-delay: 4s; }
.Coin:nth-of-type(4) { left: 40%; animation-delay: 2s; }
.Coin:nth-of-type(10) .inner, .Coin:nth-of-type(4) .inner { animation-delay: 2s; }
.Coin:nth-of-type(5) { left: 50%; animation-delay: 3s; }
.Coin:nth-of-type(5) .inner { animation-delay: 8s; }
.Coin:nth-of-type(6) { left: 60%; animation-delay: 2s; }
.Coin:nth-of-type(7) { left: 70%; animation-delay: 1s; }
.Coin:nth-of-type(7) .inner { animation-delay: 2.5s; }
.Coin:nth-of-type(8) { left: 80%; animation-delay: 0s; }
.Coin:nth-of-type(9) { left: 90%; animation-delay: 1.5s; }
.Coin:nth-of-type(9) .inner { animation-delay: 3s; }
.Coin:nth-of-type(10) { left: 25%; animation-delay: 0s; }
.Coin:nth-of-type(11) { left: 65%; animation-delay: 2.5s; }
