    body {
        max-width: 1140px;
        font-family: 'Roboto', sans-serif;
        background-color: #1d1b31;
        color: #ffffff;
        margin: auto;
        padding: 10px;
    }

    .header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
    }

    .header img.logo {
        max-width: 150px;
        margin-bottom: 20px;
    }

    .header img.banner {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .logo-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

.rtp-update {
    text-align: right;
    font-size: 0.85em;
    color: #ffcc00;
}

.header .buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    margin: 0 auto 20px;
}

.header .buttons a {
    background-color: #ff0000;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

.header .buttons a.daftar {
    background-color: #ffcc00;
    color: #000000;
}

.header .search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    width: 100%;
    margin: 0 auto 20px;
}

.header .search input {
    padding: 10px;
    border-radius: 5px;
    border: none;
    width: 100%;
}

.header .search button {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    background-color: #ffcc00;
    color: #000000;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

        .nav-wrapper {
            border: 12px solid #2c2c54;
            overflow-x: auto;
            max-width: 100%;
            margin: 0 auto;
        }
        .nav-container {
            display: grid;
            grid-template-rows: repeat(2, auto);
            grid-auto-flow: column;
            gap: 10px;
            background-color: #2c2c54;
            width: max-content;
        }

        .nav-menu {
            margin: 5px 0;
            padding: 10px 20px;
            color: #fff;
            text-decoration: none;
            font-weight: bold;
            border-radius: 20px;
            background-color: #3a3a78;
            transition: background-color 0.3s;
            white-space: nowrap;
            text-align: center;
        }

        .nav-menu:hover {
            background-color: #5656a3;
        }

/* Scrollbar untuk Webkit (Chrome, Safari) */
.nav-wrapper::-webkit-scrollbar {
    height: 8px;
}

.nav-wrapper::-webkit-scrollbar-track {
    background: #2c2c54; /* Warna track scrollbar */
}

.nav-wrapper::-webkit-scrollbar-thumb {
    background-color: #3a3a78; /* Warna thumb scrollbar */
    border-radius: 10px; /* Membuat ujung thumb menjadi bulat */
    border: 2px solid #2c2c54; /* Border untuk thumb agar terlihat rapi */
}

.nav-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: #5656a3; /* Warna thumb saat di-hover */
}

/* Scrollbar untuk Firefox */
.nav-wrapper {
    scrollbar-width: thin;
    scrollbar-color: #3a3a78 #2c2c54;
}
    .container {
        width: 100%;
        max-width: 1140px;
        margin: auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .game-card {
        background: #2b2e4a;
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        text-align: center;
    }

    .game-card img {
        width: 100%;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

    .game-title {
        background: #1e1f36;
        min-height: 24px;
        font-size: 0.7em;
        font-weight: bold;
        padding: 5px;
        color: #ffcc00;
        text-transform: uppercase;
        text-align: center;
        align-content: center;
    }

    .progress-bar-container {
        background: #373b69;
        border-radius: 8px;
        overflow: hidden;
        margin: 10px 0;
        position: relative;
    }

    .progress-bar {
        height: 18px;
        text-align: right;
        padding-right: 10px;
        color: transparent;
        line-height: 18px;
        border-radius: 8px 0 0 8px;
        font-size: 0.9em;
        width: 0;
        transition: width 1s ease-in-out;
        background-image: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.2) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.2) 75%,
            transparent 75%,
            transparent
        );
        background-size: 40px 40px;
        animation: moveBackground 1s linear infinite;
    }

    @keyframes moveBackground {
        0% {
            background-position: 0 0;
        }
        100% {
            background-position: 40px 40px;
        }
    }

    .progress-bar.green {
        background-color: #4caf50;
    }

    .progress-bar.orange {
        background-color: #ff9800;
    }

    .progress-bar.red {
        background-color: #f44336;
    }

    .progress-bar-text {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-weight: bold;
        font-size: 0.85em;
    }

    .game-info {
        min-height: 114px;
        background: #1e1f36;
        padding: 10px;
        border-radius: 8px;
        margin-top: 10px;
    }

    .game-info p {
        margin: 5px 0;
        font-size: 0.8em;
    }

    .gacor-time {
        color: #ffcc00;
        font-weight: bold;
    }

    .pola-slot {
        min-height: 84px;
        margin: 5px 0;
        font-size: 0.8em;
        color: #ffffff;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        flex-direction: column;
    }

    .pola-slot-table {
        width: 100%;
        border-collapse: collapse;
    }

    .pola-slot-table td {
        padding: 5px;
        text-align: left;
        font-size: 0.8em;
    }

    .pola-slot-table .pola-value {
        text-align: right;
        font-weight: bold;
    }

    .pola-slot-table .pola-result {
        text-align: center;
    }

    .pola-slot-table .pola-result span {
        display: inline-block;
        width: 16px;
        height: 16px;
        border-radius: 50%;
    }

    .pola-slot-table .pola-result .success {
        background-color: #4caf50;
    }

    .pola-slot-table .pola-result .fail {
        background-color: #f44336;
    }

    .pola-unavailable {
        color: #ff4444;
        font-weight: bold;
    }

    /* Media Query untuk tampilan mobile */
    @media screen and (max-width: 1024px) {
        .container {
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
            gap: 10px;
        }

        .game-card {
            padding: 10px;
        }

        .game-title {
            font-size: 0.9em;
        }

        .progress-bar {
            height: 16px;
            font-size: 0.8em;
        }

        .progress-bar-text {
            font-size: 0.8em;
        }

        .game-info p {
            font-size: 0.75em;
        }

        .pola-slot {
            font-size: 0.75em;
        }
    }

    /* Media Query untuk tampilan sangat kecil (smartphone) */
    @media screen and (max-width: 768px) {
        .container {
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); 
        }

        .game-card {
            padding: 8px;
        }

        .game-title {
            font-size: 0.8em;
        }

        .progress-bar {
            height: 14px;
            font-size: 0.75em;
        }

        .progress-bar-text {
            font-size: 0.75em;
        }

        .game-info p {
            font-size: 0.7em;
        }

        .pola-slot {
            font-size: 0.7em;
        }
    }
    
    /* Popup container - can be anything you want */
.popup {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.popup-container {
    padding: 20px;
    border: none;
    width: auto%;
}

/* Popup content */
.popup-content {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    max-width: 400px;
    margin: auto;
    text-align: center;
}
/* Judul */
.popup-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Input Fields */
.popup-content input[type="number"] {
    width: 100%;  /* Buat input memenuhi lebar yang tersedia */
    padding: 10px;
    margin-bottom: 15px; /* Spasi antara input dan tombol */
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;  /* Pastikan padding tidak mempengaruhi lebar total */
    background-color: #f9f9f9; /* Warna background input */
    transition: border-color 0.3s ease;
}

.popup-content input[type="number"]:focus {
    border-color: #564caf; /* Warna border saat input aktif */
    outline: none;
}

/* Tombol Simulasikan */
.popup-content button {
    width: 100%;  /* Buat tombol memenuhi lebar yang tersedia */
    background-color: #564caf;
    color: white;
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.popup-content button:hover {
    background-color: #564caf; /* Warna tombol saat dihover */
}
/* Hasil Simulasi */
.simulation-result-container {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    border-top: 1px solid #eee;
}

.simulation-result-container p {
    font-size: 16px;
    color: #333;
    margin: 10px 0;
}

/* Grafik dan Bar Chart */
.bar-chart {
    margin-top: 20px;
    width: 100%;
    background-color: #f1f1f1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 30px;
}

.bar {
    height: 100%;
    color: white;
    text-align: right;
    padding-right: 10px;
    line-height: 30px;
    white-space: nowrap;
    border-radius: 8px 0 0 8px;
    transition: width 0.4s ease-in-out;
}

.bar-chart .bar {
    background-color: #4CAF50;
}

/* Penjelasan */
.explanation {
    margin-top: 20px;
    text-align: left;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}
/* Close button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Simulasi button */
.simulasi-button {
    background-color: #ffcc00;
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
}

.simulation-result-container {
    text-align: center;
    padding: 20px;
}

.probability-text {
    font-weight: bold;
    color: #4CAF50; /* Hijau untuk hasil positif */
}

.winning-amount-text {
    font-weight: bold;
    color: #FF9800; /* Oranye untuk menyoroti potensi kemenangan */
}

.explanation {
    margin-top: 20px;
    text-align: left;
    color: #555;
    font-size: 0.9em;
}

.bar-chart {
    margin-top: 20px;
    width: 100%;
    background-color: #f1f1f1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 30px;
}

.bar {
    height: 100%;
    color: white;
    text-align: right;
    padding-right: 10px;
    line-height: 30px; /* Vertically center text */
    white-space: nowrap; /* Prevent text wrapping */
    border-radius: 8px 0 0 8px;
    transition: width 0.4s ease-in-out;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
    background-color: #2c2c54;
    border-radius: 5px;
    padding: 10px;
}

.running-text {
    flex: 1;
    color: #ffcc00;
    font-weight: bold;
    padding-right: 20px;
}

.filter-container {
    position: relative;
    display: inline-block;
    text-align: right;
}

.filter-container select {
    padding: 8px 12px;
    padding-right: 30px; /* Tambahkan padding kanan untuk panah */
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff; /* Hapus background default untuk panah */
}

.filter-container select:hover {
    border-color: #4CAF50;
}

.filter-container select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
    outline: none;
}

/* Tambahkan custom arrow menggunakan pseudo-element */
.filter-container::after {
    content: '\25BC'; /* Unicode untuk panah ke bawah */
    font-size: 12px;
    color: #333;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Agar panah tidak mengganggu klik */
}