.carousel-preview {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px;
}

.button-99 {
    background: linear-gradient(to right, #E4E5E6, #00416A);
    border: 2px solid #fff;
    border-radius: 10px;
    padding: 5px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.button-99:hover {
    transform: scale(1.1);
    background-color: rgba(249, 245, 245, 0.1);
}

.button-99 img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.content-desktop,
.content-mobile {
    width: 100%;
}

.content-desktop.active,
.content-mobile.active {
    display: block;
    opacity: 1;
    animation: slideIn 0.5s ease-in-out;
}

.content-desktop.slide-out,
.content-mobile.slide-out {
    animation: slideOut 0.5s ease-in-out;
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hidden {
    display: none;
}

.active {
    display: block;
}

.pattern,
.pola {
    padding: 8px;
    border-top: 3px solid #000000;
    color: #000;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
}


.header,
.title {
    background: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.display-flex {
    display: flex;
    justify-content: center;
}

.featured__detail h1 {
    color: #fff;
    text-shadow: 3px 2px 0 #0060ce;
}

.game-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin: 0 auto;
    /* Center container */
    padding: 2px;
}

.game-image {
    width: 100%;
    border-radius: 10px;;
    height: 160px;
    object-fit: cover;
}

.gaming-card {
    width: calc(16.666% - 20px);
    /* Basis 6 card per baris */
    min-width: 180px;
    /* Minimum width untuk card */
    margin: 4px;
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden;
    padding: 5px;
    background-color: rgb(33, 66, 138);
    box-shadow: 0 4px 8px rgba(200, 200, 200, 0.1);
    display: flex;
    flex-direction: column;
}

.percentage {
    font-weight: bold;
    padding: 3px 0px;
    color: #000;
    text-align: center;
    /* margin-top: -3px; */
}

.percentage-bar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    height: 34px;
    position: relative;
    overflow: hidden;
}

.percentage-fill-green {
    background-color: rgb(162, 255, 184);
    background-image: linear-gradient(45deg, rgb(99, 255, 135) 25%, transparent 25%, transparent 50%, rgb(99, 255, 135) 50%, rgb(99, 255, 135) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    transition: width 0.5s ease;
    height: 100%;
}

.percentage-fill-yellow {
    background-color: rgb(255, 246, 148);
    background-image: linear-gradient(45deg, rgb(255, 238, 109) 25%, transparent 25%, transparent 50%, rgb(255, 233, 68) 50%, rgb(255, 233, 68) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    transition: width 0.5s ease;
    height: 100%;
}

.percentage-fill-red {
    background-color: rgb(255, 174, 174);
    background-image: linear-gradient(45deg, rgb(255, 125, 125) 25%, transparent 25%, transparent 50%, rgb(255, 125, 125) 50%, rgb(255, 125, 125) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    transition: width 0.5s ease;
    height: 100%;
}

.percentage-bar span {
    position: absolute;
    font-size: 1rem;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    text-shadow: 1px 0 0 #e0e0e0;
    z-index: 1;
    width: 100%;
    text-align: center;
}

.time-percentage-green {
    border-radius: 5px;
    background-color: rgb(162, 255, 184);
    background-image: linear-gradient(45deg, rgb(99, 255, 135) 25%, transparent 25%, transparent 50%, rgb(99, 255, 135) 50%, rgb(99, 255, 135) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    color: #000;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    margin: 2px 0px;
}

.time-percentage-yellow {
    border-radius: 5px;
    background-color: rgb(255, 246, 148);
    background-image: linear-gradient(45deg, rgb(255, 238, 109) 25%, transparent 25%, transparent 50%, rgb(255, 233, 68) 50%, rgb(255, 233, 68) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    color: #000;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    margin: 2px 0px;
}

.time-percentage-red {
    border-radius: 5px;
    background-color: rgb(255, 174, 174);
    background-image: linear-gradient(45deg, rgb(255, 116, 116) 25%, transparent 25%, transparent 50%, rgb(255, 116, 116) 50%, rgb(255, 116, 116) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    color: #000;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    margin: 2px 0px;
}

.row-pattern .child-row {
    display: block;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    font-size: 11px;
    font-weight: bold;
    color: #000;
}


/* Responsive Breakpoints */
@media (max-width: 1400px) {
    .gaming-card {
        width: calc(20% - 20px);
        /* 6 cards per row */
    }
}

@media (max-width: 1200px) {
    .gaming-card {
        width: calc(25% - 20px);
        /* 4 cards per row */
    }
}

@media (max-width: 992px) {
    .gaming-card {
        width: calc(33.333% - 20px);
        /* 3 cards per row */
    }
}

@media (max-width: 768px) {
    .gaming-card {
        width: calc(33.333% - 10px);
        /* 3 cards per row */
    }

    .game-container {
        gap: 15px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .gaming-card {
        width: calc(30% - 10px);
        /* 3 cards per row */
        min-width: 100px;
    }

    .game-container {
        gap: 0px;
        padding: 0px;
    }

    .percentage-bar span {

        font-size: 0.8rem;
    }

    .time-percentage-green,
    .time-percentage-yellow,
    .time-percentage-red {
        font-size: 10px;
    }

    .row-pattern .child-row {
        display: block;
        font-size: 9px;
    }

    .pola {
        font-size: 12px;
    }

    .child-row {
        font-size: 10px;
        display: block;
    }

    .game-image {
        height: 100px;
    }


}

@media (max-width: 768px) {

    .child-row {
        font-size: 11px;
    }
}


@media (max-width: 768px) {
    .featured__detail h1 {
        font-size: 1.8rem;
    }

    .carousel-preview {
        gap: 10px;
    }

    .button-99 {
        width: 40px;
        height: 40px;
    }

    .nav_title_mobile {
        text-align: center;
        font-size: 23px;
        margin-top: -2px;
        font-weight: bold;
        text-shadow: 3px 2px 0 #0060ce;
    }
}
