/* ======================================= */
/* GENERAL & BOXED LAYOUT STYLING */
/* ======================================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    
    /* WARNA WALLPAPER / LATAR BELAKANG LUAR - DIUBAH MENJADI WALLPAPER */
    background-image: url('https://s12.gifyu.com/images/bESO7.jpg');
    background-color: #1a2a4b; 
    background-repeat: repeat;
    background-size: cover; 
    background-attachment: fixed;
    background-position: center -90px;
    
    color: #fff; 
}

/* KOTAK UTAMA YANG MEMBUNGKUS SEMUA KONTEN */
.main-wrapper {
    max-width: 1390px; 
    margin: 0 auto; 
    background-color: #0b1a37; 
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); 
    min-height: 80vh; 
    display: flex; 
    flex-direction: column; 
}

/* ======================================= */
/* HEADER STYLING */
/* ======================================= */
.main-header {
    background-color: #0b1a37; 
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);

/* === PROPERTI BARU UNTUK MEMBUAT HEADER STICKY === */
    position: sticky; /* Gunakan sticky untuk mengikuti scroll sampai top */
    top: 0;          /* Tetap di posisi 0 dari atas */
    z-index: 1000;   /* Pastikan header berada di atas konten lain saat di-scroll */
    width: 100%;     /* Pastikan header mengambil lebar penuh */
    /* ================================================= */    
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom:  none; 
    padding-bottom: 0px;
    margin-bottom: 0px;
}
.top-header .logo img {
    height: 80px; 
    vertical-align: middle;
    margin-top: -10px;
}
.top-header .top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px; 
}
.top-header .top-nav ul li a {
    color: #f9f9f9; 
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px; 
    transition: color 0.3s ease;
    font-weight: bold;
}
.top-header .top-nav ul li a:hover {
    color: #fff;
}

.bottom-header {
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    padding: 0 20px;
}
.bottom-header .main-nav {
    margin-right: auto;
    padding-right: 50px; 
}
.bottom-header .main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 80px; 
}
.bottom-header .main-nav ul li a {
    color: #dce7f3; 
    text-decoration: none;
    font-size: 18px;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px; 
    padding: 20px 0;
    transition: color 0.3s ease;
}
.bottom-header .main-nav ul li a:hover {
    color: #ccc;
}
.bottom-header .login-form {
    display: flex;
    align-items: center;
    gap: 5px; 
}

.bottom-header .login-form input[type="text"],
.bottom-header .login-form input[type="password"] {
    background-color: #fff; 
    border: 1px solid #ccc;
    border-radius: 20px; 
    padding: 10px 15px; 
    width: 110px; 
    font-size: 14px;
    color: #333;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    width: 195px; 
    box-sizing: border-box;
    
}

.bottom-header .login-form .login-button {
    background: linear-gradient(to right, #004085, #002751); 
    color: #fff;
    border: none;
    border-radius: 20px; 
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ======================================= */
/* SLIDESHOW & RUNNING TEXT STYLING */
/* ======================================= */

.slider-container {
    position: relative;
    max-width: none; 
    margin: 0 auto; 
    overflow: hidden;
    padding: 0; 
    height: 350px; 
    /* Bayangan yang lebih menonjol */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.05); 
    border-radius: 10px; /* Tambahkan sudut membulat untuk estetika */
}

.slider-wrapper {
    display: flex;
    /* Transisi EASE-OUT yang lebih halus */
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    height: 100%;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex; 
    height: 100%; 
}

/* Hilangkan border merah dari slide-content-wrapper, biarkan di slider-container */
.slide-content-wrapper {
    display: flex;
    width: 100%; 
    height: 100%;
    background-color: #1c273a;
    border: none; /* Hilangkan border ini */
    border-radius: 10px;
    overflow: hidden; 
}

.slide-media {
    position: relative;
    flex: 0 0 100%; 
    overflow: hidden;
    height: 100%; 
}

/* Efek Zoom in saat hover pada gambar (DURASI DIPERCEPAT 2 detik) */
.slide-media img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    /* Transisi untuk efek zoom (2 detik) */
    transition: transform 1s ease-in-out; 
}

.slide-media:hover img {
    transform: scale(1.05); /* Zoom sedikit saat kursor diarahkan */
}

.live-stream-tag {
    position: absolute;
    top: 15px; 
    left: 15px;
    background-color: #d9534f; 
    color: #fff;
    padding: 8px 15px; 
    border-radius: 8px;
    font-size: 16px; 
    font-weight: bold;
    z-index: 10;
    /* Bayangan teks agar lebih menonjol */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); 
}

/* ======================================= */
/* NAVIGASI SLIDER (BUTTONS) - MODIFIKASI AKHIR */
/* ======================================= */

.slider-nav {
    position: absolute;
    top: 50%;
    /* Gunakan transform Y -50% agar tetap di tengah vertikal */
    transform: translateY(-50%); 
    
    /* MODIFIKASI TAMPILAN SESUAI GAMBAR SEGI EMPAT MEMBULAT */
    background: rgba(0, 0, 0, 0.179); /* Latar belakang abu-abu semi-solid */
    color: #fff;
    border: none;
    
    width: 60px; /* Lebar tombol */
    height: 100px; /* Tinggi tombol */
    
    padding: 0;
    
    /* Sudut Membulat di sisi luar */
    border-radius: 10px; 
    
    cursor: pointer;
    font-size: 30px; /* Ikon panah lebih besar */
    font-weight: bold;
    z-index: 20;
    
    /* Pastikan ikon rata tengah */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* EFEK HOVER: SEMBUNYIKAN SECARA DEFAULT */
    opacity: 0; 
    transition: opacity 0.3s ease, background 0.3s ease;
}

/* Tampilkan tombol saat kursor diarahkan ke area slide */
.slider-container:hover .slider-nav {
    opacity: 1; /* Muncul penuh */
}

/* Efek saat kursor diarahkan ke tombol itu sendiri */
.slider-nav:hover {
    background: #00000094; /* Warna saat di-hover (merah sesuai tema) */
}

.prev-btn { 
    left: 0; /* Menempel di sisi kiri */
    /* Bulatkan sudut hanya di sisi kanan tombol */
    border-radius: 0 10px 10px 0; 
}
.next-btn { 
    right: 0; /* Menempel di sisi kanan */
    /* Bulatkan sudut hanya di sisi kiri tombol */
    border-radius: 10px 0 0 10px;
}

/* RUNNING TEXT */
.running-text-container {
    background-color: rgba(0, 0, 0, 0.7); 
    color: #fff;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden; 
    border-top: 2px solid #d9534f; 
    border-bottom: 2px solid #d9534f; 
}

.running-text {
    display: flex; 
    align-items: center;
    width: max-content; 
    animation: marquee 30s linear infinite; 
}

.running-text .fas.fa-bullhorn { color: #ffc107; margin-right: 10px; }

@keyframes marquee {
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } 
}

.slider-dots {
    text-align: center;
    margin-top: 15px;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #555;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s, width 0.3s, border-radius 0.3s;
    border: 1px solid #333; 
}

.dot.active {
    background-color: #d9534f;
    width: 30px;
    border-radius: 5px;
    border-color: #fff;
}

/* ======================================= */
/* KONTEN UTAMA DENGAN SIDEBAR KIRI (BARU) */
/* ======================================= */

.content-area {
    display: flex;
    gap: 10px; 
    padding: 10px;
    padding-bottom: 0;
    background-color: #1a2a4b; 
}

/* Kategori Game (SIDEBAR KIRI) */
.game-list-section {
    flex: 0 0 120px; 
    padding: 0; 
    max-width: 120px;
    background-color: transparent; 

/* === KODE INI YANG HARUS DIPASTIKAN ADA DAN DITAMBAHKAN === */
    position: sticky; 
    top: 10px;          /* Jarak dari atas layar saat dia menempel */
    z-index: 100;       /* Penting, agar tidak tertutup elemen lain */
    height: fit-content; /* Penting, membatasi tinggi elemen agar sticky berfungsi */
    /* ======================================================== */
}

.game-container-wrapper {
    display: flex;
    flex-direction: column; 
    gap: 5px; 
    padding: 0;
}

.game-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    background-color: #0b1a37; 
    border-radius: 10px; /* Diubah dari 20px agar cocok dengan ikon persegi */
    padding: 5px; /* Mengurangi padding luar */
    width: 100%; 
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
    border: 1px solid #1a2a4b; 
}

.game-box:hover {
    transform: none; 
    background-color: #1c273a; 
    border-color: #007bff; 
}

/* === PERUBAHAN UTAMA UNTUK ICON PERSEGI === */
.game-box img {
    /* Menjaga rasio 1:1, ukuran ikon */
    width: 130px; /* Diperkecil agar masuk dengan padding baru */
    height: 130px;
    margin: 0; /* Menghilangkan margin bawah */
    border-radius: 5px; /* DIUBAH MENJADI SUDUT MEMBULAT */
    padding: 0; /* Menghilangkan padding */
    background-color: transparent; /* Background gambar dihilangkan */
    object-fit: contain; /* Memastikan gambar full berada di kotak */
}
/* ======================================= */

.game-title {
    color: #fff;
    font-size: 12px; 
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap; 
}

/* Konten Tambahan/Utama (KANAN) */
.additional-content {
    flex-grow: 1; 
    background-color: #0b1a37; 
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
}

/* ======================================= */
/* GAME GRID STYLING (Konten Utama) */
/* ======================================= */

.game-grid-area {
    padding: 20px; 
}

.game-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; 
}

.grid-game-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    background-color: #1a2a4b; 
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 100%; 
    height: 0; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.grid-game-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6);
    border-color: #d9534f;
}

.grid-game-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    border-radius: 10px;
}

.game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7); 
    color: #fff;
    font-size: 11px; 
    font-weight: bold;
    padding: 5px 0;
    z-index: 5;
    text-transform: uppercase;
}

/* TAGS di pojok kiri atas */
.grid-game-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 10px 0 10px 0;
    z-index: 10;
    line-height: 1;
}

/* Styling untuk tag NEW/VIRAL/HOT */
.new-item::before {
    content: 'VIRAL';
    background-color: #ffc107; 
    color: #333;
}

.hot-item::before {
    content: 'HOT';
    background-color: #d9534f; 
}

.exclusive-item::before {
    content: 'EKSKLUSIF';
    background-color: #007bff; 
}

.top-item::before {
    content: 'TOP';
    background-color: #28a745; 
}

/* LIVE RESULT / LIVE DRAW Overlay */
.live-result {
    z-index: 5; 
}

.live-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.6); 
    color: #fff;
    z-index: 8; 
    padding-bottom: 20px; 
}

.live-info span {
    background-color: #d9534f;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.live-info p {
    margin: 0;
    font-size: 10px;
    line-height: 1.5;
}

/* ======================================= */
/* PROVIDER LOGOS STYLING */
/* ======================================= */
.provider-logos-section {
    background-color: #0b1a37; 
    padding: 15px 0;
    margin-top: 10px;
    border-top: 2px solid #1a2a4b; 
    border-bottom: 2px solid #1a2a4b; 
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.logo-wrapper {
    display: inline-block;
    animation: scroll-logos 40s linear infinite; 
    padding-left: 100%; 
}

.logo-wrapper img {
    height: 35px; 
    margin: 0 15px;
    opacity: 0.5;
    filter: grayscale(100%); 
    transition: opacity 0.3s, filter 0.3s;
}

.logo-wrapper img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); } 
}


/* ======================================= */
/* FOOTER STYLING (NEW STYLE) */
/* ======================================= */

.main-footer {
    /* Background mengikuti contoh gambar abu-abu kecoklatan */
    background-color: #252e37; 
    padding: 30px 20px;
    border-top: none;
    text-align: center;
    color: #ccc;
    font-size: 14px;
}

.footer-container {
    display: flex;
    justify-content: center; /* Rata tengah semua konten footer */
    align-items: center;
    flex-direction: column; 
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
}

/* 1. BAGIAN LISENSI */
.footer-lisensi-new {
    width: 100%;
    margin-bottom: 20px;
}

.lisensi-wrapper {
    display: flex;
    justify-content: center; /* Rata tengah logo lisensi */
    gap: 30px;
    margin-bottom: 30px;
}

.lisensi-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 auto; 
}

.lisensi-item img {
    height: 60px; /* Logo lebih besar */
    margin-bottom: 8px;
    filter: brightness(1.2) grayscale(0%); 
}

.lisensi-item .caption {
    font-size: 13px;
    color: #fff;
    margin: 0;
    max-width: 150px;
    line-height: 1.3;
}

.pioneer-info {
    margin-top: 15px;
    padding: 0 20px;
}

.pioneer-info p {
    font-size: 12px;
    color: #a7b7d7;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

/* 2. BAGIAN INFO DAN KONTAK - Dibuat Rata Kanan */
.footer-info-group {
    display: flex;
    justify-content: flex-end; /* Rata kanan di desktop */
    width: 100%;
    max-width: 1000px; 
    padding-right: 20px;
    box-sizing: border-box;
}

.footer-info {
    padding: 0 20px;
    flex: 0 0 auto; 
    text-align: right; 
    padding-top: 0;
}

.footer-info.contact-only {
    display: flex;
    align-items: center; 
    gap: 20px;
}

.footer-info.about-us-only {
    display: flex;
    align-items: center; 
    gap: 20px;
    text-align: left; 
}


.contact-title, .about-title {
    color: #fff;
    font-size: 14px;
    margin: 0;
    font-weight: bold;
    white-space: nowrap;
}

.contact-title i {
    color: #d9534f;
    margin-right: 5px;
}

.footer-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* List link dibuat horizontal */
    gap: 15px; 
}

.footer-info ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
}

/* Tombol Kontak Horizontal */
.contact-buttons.horizontal-contact {
    display: flex;
    flex-direction: row; 
    gap: 5px; 
    margin-top: 0;
    align-items: center; 
    justify-content: flex-start;
}

.btn {
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s;
    /* Tambahan warna untuk tombol consult & line */
    background-color: #d9534f; /* Merah */
    color: #fff;
    width: 150px; 
}

.line-btn {
    background-color: #007bff; /* Biru */
}

.btn.small-btn {
    padding: 5px 12px; 
    border-radius: 20px; 
    font-size: 12px; 
    min-width: 80px; 
    width: auto;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn.small-btn i {
    margin-right: 0;
}
.line-btn.small-btn {
    background-color: transparent;
    border-color: #007bff;
    color: #007bff;
}


/* ======================================= */
/* RESPONSIVENESS */
/* *************************************** */
/* CATATAN: Media query untuk layout di bawah */
/* 1024px dan 768px telah dinonaktifkan/dihapus */
/* agar tampilan mobile mengikuti desktop. */
/* *************************************** */

@media (max-width: 1024px) {
    /* Slide Layout di Tablet */
    .slider-container {
        height: 450px; 
    }
    
    /* FOOTER RESPONSIVE (Tablet) */
    .lisensi-wrapper {
        flex-wrap: wrap;
        gap: 20px;
    }
    .footer-info-group {
        flex-direction: column; /* Jadikan kolom di tablet */
        align-items: center;
        padding-right: 0;
    }
    .footer-info.contact-only, 
    .footer-info.about-us-only {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 15px;
        gap: 10px;
    }
    .footer-info ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    .contact-buttons.horizontal-contact {
        justify-content: center;
    }

    .btn.small-btn {
        width: 100px;
    }
}

@media (max-width: 768px) {
    /* Header Responsive (TETAP DIBUTUHKAN AGAR FORM LOGIN TIDAK RUSAK) */
    .top-header, .bottom-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 15px;
        
    }
    .bottom-header .login-form {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }
    .bottom-header .login-form input,
    .bottom-header .login-form .login-button {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* FOOTER RESPONSIVE (Mobile) - TETAP DIBUTUHKAN UNTUK KETERBACAAN */
    .lisensi-wrapper {
        gap: 15px;
    }
    .lisensi-item {
        width: 45%;
        margin-bottom: 10px;
    }
    .lisensi-item img {
        height: 50px;
    }
    .lisensi-item .caption {
        font-size: 11px;
    }
    .footer-info ul {
        flex-direction: column; /* List link kembali vertikal di mobile */
        align-items: center;
    }
    .pioneer-info p {
        padding: 0 10px;
    }
    
    /* POP-UP IKLAN RESPONSIVE */
    .modal-content {
        max-width: 95%; 
    }
    .close-btn {
        top: 5px; 
        right: 5px;
        background-color: rgba(217, 83, 79, 0.8);
    }
}

/* ======================================= */
/* POP-UP IKLAN (BARU) */
/* ======================================= */

/* Latar Belakang Overlay yang Menutupi Layar */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Gelap transparan */
    display: none; /* Sembunyikan secara default */
    justify-content: center;
    align-items: center;
    z-index: 9998; /* Di bawah preloader, di atas konten lain */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex; /* Tampilkan flex saat kelas 'show' ditambahkan */
    opacity: 1;
}

/* Konten Pop-up Utama (Persegi Panjang) */
.modal-content {
    position: relative;
    width: 90%; /* Lebar maksimal di mobile */
    max-width: 800px; /* Lebar maksimal pop-up persegi panjang */
    height: auto;
    background-color: transparent; /* Background hilang, hanya gambar */
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: scale(0.8); /* Efek awal mengecil */
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1); /* Efek membesar saat tampil */
}

/* Gambar Iklan (Memastikan Gambar Rata ke Dalam Kotak) */
.ad-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Tombol Tutup (X Simpel Transparan) */
.close-btn {
    position: absolute;
    top: -15px; 
    right: -15px;
    
    /* Membuat Background Putih Transparan */
    background-color: rgba(255, 255, 255, 0.25); 
    backdrop-filter: blur(2px); /* Efek blur opsional agar lebih kaca */
    
    /* Warna Icon & Border */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    
    /* Membuat Bentuk Bulat Sempurna */
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    
    /* Posisi Icon di Tengah */
    display: flex;
    justify-content: center;
    align-items: center;
    
    font-size: 16px;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.5); /* Lebih putih saat dihover */
    transform: rotate(90deg); /* Efek putar sedikit saat dihover */
    border-color: #fff;
}

/* ======================================= */
/* EFEK SALJU TURUN (TAMBAHAN) */
/* ======================================= */

/* Kontainer untuk semua salju, penting untuk z-index agar berada di atas background tapi di bawah konten */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Memungkinkan interaksi dengan elemen di bawah salju */
    z-index: 1; /* DIATUR ke z-index rendah, agar tidak menutupi header/login form */
    overflow: hidden; /* Pastikan tidak ada scrollbar dari salju */
}

/* Gaya untuk setiap butir salju */
.snowflake {
    color: #ffffff;
    font-size: 1.5em; /* Ukuran salju */
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    position: absolute;
    top: -10%; /* Mulai dari atas layar */
    opacity: 0.8;
    
    /* Animasi utama: jatuh (fall) */
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Keyframes untuk membuat salju jatuh */
@keyframes fall {
    to {
        /* Gabungkan translasi Y (jatuh) dan sedikit X (angin/goyang) */
        transform: translateY(105vh) translateX(50px);
    }
}

/* Keyframes untuk membuat salju berputar/goyang (opsional, jika ingin lebih dinamis) */
@keyframes sway {
    0% { transform: translateX(0); }
    50% { transform: translateX(50px); }
    100% { transform: translateX(0); }
}

/* Pengaturan unik untuk variasi (posisi, kecepatan, dan ukuran) */
/* Dibuat lebih banyak agar efeknya lebih penuh di layar */

.snowflake:nth-child(1) { left: 3%; animation-duration: 10s; animation-delay: 0s; font-size: 1.2em; }
.snowflake:nth-child(2) { left: 10%; animation-duration: 10s; animation-delay: 2s; font-size: 1.8em; animation-name: fall, sway; animation-timing-function: linear, ease-in-out; }
.snowflake:nth-child(3) { left: 15%; animation-duration: 12s; animation-delay: 4s; font-size: 0.9em; }
.snowflake:nth-child(4) { left: 20%; animation-duration: 9s; animation-delay: 6s; font-size: 2em; }
.snowflake:nth-child(5) { left: 25%; animation-duration: 14s; animation-delay: 1s; }
.snowflake:nth-child(6) { left: 30%; animation-duration: 11s; animation-delay: 3s; font-size: 1.5em; animation-name: fall, sway; animation-timing-function: linear, ease-in-out; }
.snowflake:nth-child(7) { left: 40%; animation-duration: 13s; animation-delay: 5s; }
.snowflake:nth-child(8) { left: 50%; animation-duration: 16s; animation-delay: 7s; font-size: 1.1em; }
.snowflake:nth-child(9) { left: 55%; animation-duration: 8s; animation-delay: 0.5s; font-size: 1.3em; }
.snowflake:nth-child(10) { left: 60%; animation-duration: 10s; animation-delay: 2.5s; font-size: 0.9em; }
.snowflake:nth-child(11) { left: 70%; animation-duration: 17s; animation-delay: 5s; font-size: 1.7em; animation-name: fall, sway; animation-timing-function: linear, ease-in-out; }
.snowflake:nth-child(12) { left: 75%; animation-duration: 12s; animation-delay: 6s; font-size: 2.2em; }
.snowflake:nth-child(13) { left: 80%; animation-duration: 9s; animation-delay: 1s; font-size: 1em; }
.snowflake:nth-child(14) { left: 90%; animation-duration: 11s; animation-delay: 3s; font-size: 1.6em; }
.snowflake:nth-child(15) { left: 95%; animation-duration: 15s; animation-delay: 8s; font-size: 1.3em; }

/* ATURAN SALJU TAMBAHAN (16-30) UNTUK EFEK LEBIH BANYAK */
.snowflake:nth-child(16) { left: 1%; animation-duration: 13s; animation-delay: 1s; font-size: 1.5em; }
.snowflake:nth-child(17) { left: 6%; animation-duration: 9s; animation-delay: 4s; font-size: 0.8em; animation-name: fall, sway; animation-timing-function: linear, ease-in-out; }
.snowflake:nth-child(18) { left: 18%; animation-duration: 15s; animation-delay: 7s; font-size: 1.9em; }
.snowflake:nth-child(19) { left: 28%; animation-duration: 8s; animation-delay: 0s; font-size: 1.1em; }
.snowflake:nth-child(20) { left: 35%; animation-duration: 12s; animation-delay: 3s; font-size: 2.1em; animation-name: fall, sway; animation-timing-function: linear, ease-in-out; }
.snowflake:nth-child(21) { left: 45%; animation-duration: 10s; animation-delay: 5s; font-size: 1.4em; }
.snowflake:nth-child(22) { left: 52%; animation-duration: 14s; animation-delay: 8s; font-size: 0.7em; }
.snowflake:nth-child(23) { left: 58%; animation-duration: 9s; animation-delay: 2s; font-size: 1.6em; }
.snowflake:nth-child(24) { left: 65%; animation-duration: 11s; animation-delay: 6s; font-size: 1.2em; animation-name: fall, sway; animation-timing-function: linear, ease-in-out; }
.snowflake:nth-child(25) { left: 72%; animation-duration: 13s; animation-delay: 9s; font-size: 1.8em; }
.snowflake:nth-child(26) { left: 78%; animation-duration: 8s; animation-delay: 1s; font-size: 0.9em; }
.snowflake:nth-child(27) { left: 83%; animation-duration: 10s; animation-delay: 3s; font-size: 2em; }
.snowflake:nth-child(28) { left: 88%; animation-duration: 16s; animation-delay: 5s; font-size: 1.1em; animation-name: fall, sway; animation-timing-function: linear, ease-in-out; }
.snowflake:nth-child(29) { left: 92%; animation-duration: 14s; animation-delay: 7s; font-size: 1.5em; }
.snowflake:nth-child(30) { left: 98%; animation-duration: 9s; animation-delay: 0s; font-size: 1.7em; }