body {
    font-family: Arial, sans-serif;
    background-color: #0f0101;
    padding-top: 185px;
    padding-bottom: 60px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #5b0102;
    padding: 10px;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-menu {
    background: linear-gradient(to top, #670001, #df0002);
    position: relative;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0px 3px 12px 8px rgb(0 0 0 / 84%);
}

.footer {
    color: #fff;
    padding: 20px;
    text-align: justify;
}

.nav-menu {
    position: relative;
}

.nav-menu ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0 !important;
    list-style: none;
    max-height: 45px; /* Tinggi maksimum saat tertutup */
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.nav-menu.open ul {
    max-height: 1000px; /* Tinggi maksimum saat terbuka */
}

.nav-menu li {
    display: inline-block;
    width: 200px;
}

.toggle-menu {
    position: absolute;
    bottom: -25px;
    background-color: #e24b3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-menu i {
    transition: transform 0.3s ease;
}

.toggle-menu.open i {
    transform: rotate(180deg);
}

.logo img {
    max-width: 180px;
}

.nav-menu a {
    display: block;
    padding: 10px;
    background: linear-gradient(to top, #670001, #df0002);
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-menu a:hover {
    background: linear-gradient(to top, #df0002, #670001);
    transform: scale(1.05);
}

.nav-menu ul li a.active {
    background: linear-gradient(to top, #ffd108, #ffd108);
    text-decoration: underline;
    color: #000;
    font-weight: bold;
    border-radius: 5px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.main-kontent {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.main-card {
    width: 100%;
    max-width: 600px;
    height: auto;
    background-size: cover;
    background-position: center;
    position: relative;
}

.provider {
    position: absolute;
    top: 26%;
    left: 4%;
}

.main-card .provider img {
    width: 150px;
    height: 65px;
}

.date,
.time {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    color: white;
    font-size: 16px;
}

.dtp {
    bottom: 17%;
}

.dtp1 {
    bottom: 13.5%;
}

.main-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.main-description {
    display: flex;
    align-items: center;
    position: absolute;
    justify-content: center;
    top: 57.5%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    width: 100%;
    padding: 0 20px;
    gap: 20px;
}

.img-game {
    text-align: center;
    position: relative;
    background: linear-gradient(to top, #ffd108, #ffd108);
    border: 2px solid #ff0000;
    box-shadow: 0px 0px 8px 4px rgba(255, 0, 0, 0.575);
}

.img-game img,
.loading-spinner {
    width: 100%;
    height: 120px;
    width: 170px;
}

.diagram {
    margin: 2px 0 0 0;
    text-align: center;
    border: 1px solid #676767;
    border-radius: 10px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    position: relative;
}

.fill {
    height: 100%;
    background-color: #4caf50;
    border-radius: 10px 0 0 10px;
    animation: fillAnimation 3s ease-out forwards,
        gradientAnimation 2s linear infinite;
}

.percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.line {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.line.tbr {
    align-items: center;
}

.card-pola {
    padding: 0 5px 5px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

@keyframes fillAnimation {
    0% {
        width: 0%;
    }
    100% {
        width: 91%;
    }
}

@keyframes gradientAnimation {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: 0 0;
    }
}

.fill {
    background: linear-gradient(
        45deg,
        #4caf50 25%,
        #8bc34a 25%,
        #8bc34a 50%,
        #4caf50 50%,
        #4caf50 75%,
        #8bc34a 75%,
        #8bc34a 100%
    );
    background-size: 40px 40px;
}

.btn-load-more {
    background: linear-gradient(to top, #670001, #df0002);
    color: white;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn-load-more:hover {
    background: linear-gradient(to top, #df0002, #670001);
    transform: scale(1.05);
    color: white;
}

/* Loading Spinner Styles */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffd108;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-left-color: #ff0000;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Pagination Styles */
.pagination-container {
    margin: 20px 0;
}

.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.pagination .page-item {
    margin: 0 3px;
}

.pagination .page-link {
    background-color: #1e1e1e;
    color: #fff;
    border: 1px solid #444;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #333;
    border-color: #666;
}

.pagination .page-item.active .page-link {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    background-color: #1e1e1e;
    color: #666;
    cursor: not-allowed;
}

.header-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px 0;
}

.select-container {
    position: relative;
}

.custom-select {
    display: block;
    width: 100%;
    padding: 5px 10px;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    background-color: #c2c2c2;
    border: 2px solid #5b5b5b;
    border-radius: 5px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.custom-select:focus {
    outline: none;
    border-color: #ff0000;
}

/* .select-container::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
    pointer-events: none;
} */

/* Running Text Styles */
.running-text-container {
    background-color: #000;
    color: #fff;
    padding: 2px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.running-text-wrapper {
    width: 100%;
    overflow: hidden;
}

.running-text {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 60s linear infinite;
    padding-left: 100%;
}

.running-text-item {
    margin-right: 10px;
    font-size: 14px;
    color: #ffe600;
}

.running-text-separator {
    margin: 0 10px;
    color: #ff0000;
}

.footer-menu {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #670001, #df0002, #670001);
    padding: 5px 0;
    z-index: 1000;
    box-shadow: 0px 0px 20px 4px rgb(0 0 0 / 79%);
}

.footer-menu-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-menu-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-menu-link:hover {
    color: #df0002;
    text-decoration: none;
    transform: scale(1.05);
}

.footer-menu-icon {
    width: 25px;
    height: 25px;
}

.btn-masuk,
.btn-daftar {
    background: linear-gradient(to top, #670001, #df0002);
    color: white;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn-masuk:hover,
.btn-daftar:hover {
    background: linear-gradient(to top, #df0002, #670001);
    transform: scale(1.05);
    color: white;
}

@media (max-width: 1200px) {
    .pola,
    .turbo {
        font-size: 12px;
    }
}

@media (min-width: 1200px) {
    .main-card {
        max-width: 619px;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }

    body {
        padding-top: 180px;
    }
    .custom-select {
        font-size: 12px;
    }

    .header-menu {
        flex-direction: column;
        gap: 10px;
    }

    .select-container {
        width: 90%;
        margin: 0 auto;
    }

    .logo img {
        max-width: 120px;
    }

    .nav-menu a {
        font-size: 12px;
    }

    .nav-menu li {
        width: 150px;
    }

    .btn {
        font-size: 12px;
    }

    .main-kontent {
        display: flex;
        flex-direction: column;
    }

    .progress-bar {
        height: 15px;
    }

    .percentage {
        font-size: 12px;
    }

    .img-game {
        width: 80%;
    }

    .img-game img,
    .loading-spinner {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 590px) {
    .pola,
    .turbo {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .loading-spinner,
    .img-game img {
        height: 105px;
    }
}

@media (max-width: 525px) {
    .loading-spinner,
    .img-game img {
        height: 90px;
    }

    .main-card .provider img {
        width: 125px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    .date,
    .time {
        font-size: 12px;
    }

    .img-game img,
    .loading-spinner {
        height: 80px;
    }

    .progress-bar {
        height: 10px;
    }

    .percentage {
        font-size: 10px;
    }
}

@media (max-width: 430px) {
    .dtp1 {
        bottom: 13%;
    }

    .provider {
        left: 4%;
    }

    .main-card .provider img {
        width: 110px;
        height: 45px;
    }
}

@media (max-width: 425px) {
    .pola,
    .turbo {
        font-size: 10px;
    }
}

@media (max-width: 414px) {
    .dtp1 {
        bottom: 13%;
    }
}

@media (max-width: 412px) {
    .dtp1 {
        bottom: 13.1%;
    }
}

@media (max-width: 400px) {
    .loading-spinner,
    .img-game img {
        height: 60px;
    }

    .provider {
        left: 4%;
    }

    .main-card .provider img {
        width: 50px;
        height: 9px;
    }
}

@media (max-width: 390px) {
    .main-card .provider img {
        width: 100px;
        height: 48px;
    }
}

@media (max-width: 375px) {
    .dtp1 {
        bottom: 12.8%;
    }
}

@media (max-width: 374px) {
    .date,
    .time {
        font-size: 10px;
    }

    .loading-spinner,
    .img-game img {
        height: 50px;
    }

    .pola,
    .turbo {
        font-size: 8px;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
