:root {
    --main-color: #E64C38;
    --border-color: #445560;
    --link-color: #47c1ec;
    --bs-border-color: var(--border-color);
    --text-color: #b1b8c8;
    --color-bg-header: #2d333b;
    --color-text-box: #2d333b;
    --color-text-header: rgba(205, 217, 229, 0.7);
}

img {
    max-width: 100%;
}
.game-img {
    width: 100%;
    max-width: 800px;
}

.row {
    --bs-gutter-x: 8px;
}
body, html {
    background: black;
    color: #FFFFFF;
}
a {
    text-decoration: none;
    color: white;
}
* {
    font-size: 16px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
h1 {
    font-size: 1.5rem;
}
h2 {
    font-size: 1.2rem;
}
h3 {
    font-size: 1rem;
}

h4 {
    font-size: 0.75rem;
}

.content-games {
    margin: 0;
    padding: 0 24px;
}
/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 9999;
}

.header-for-laptop {
    display: block;
}

.header-for-mobile {
    display: none;
}

.header-container,
.header-container-mobile {
    /*background-color: rgba(60, 25, 20, 0.9);*/
    background: var(--color-bg-header);
    display: flex;
    align-items: center;
    padding: 0 24px 0 24px;
}

.header-container-mobile {
    justify-content: space-between;
    position: relative;
}

.left-section {
    display: flex;
    align-items: center;
}

.logo-link {
    padding: 10px 0;
}

.logo-link img {
    height: 48px;
}

.right-icon {
    font-weight: bolder;
}

.search-bar-container {
    position: relative;
    margin-left: 4px;
    width: 194px;
}

.input-holder {
    width: 100%;
}

.search-input {
    padding: 0 2px 0 32px;
    color: var(--text-color);
    opacity: 1;
    outline: none;
    background: #3b3e4b;
    border-radius: 6px;
    max-width: 170px;
    height: 38px;
    border: none;
}

.search-icon-container {
    position: absolute;
    top: 8px;
    left: 8px;
    background: transparent;
    border: none;
}

.search-icon-container i {
    color: var(--link-color);
}

.search-icon {
    color: #fff;
    font-weight: 600;
    width: 20px;
    height: 20px;
}
.form-control {
    color: black !important;
}
.right-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}


.dropdown-item-link p {
    margin: 0;
}

.arrow-up-right-icon {
    margin-left: 4px;
}


.section-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.btn-category {
    border-radius: 5px;
    border: none;
    background-color: transparent;
    color: var(--color-text-header);
    font-size: 24px;
}

.list-icon {
    font-weight: bolder;
    display: block;
    padding: 8px;
}

.search-mobile-container {
    margin-left: 4px;
}

.search-mobile-icon {
    color: #fff;
    font-weight: 600;
    font-size: 20px;
    padding: 4px;
}


.search-input-container-mobile {
    width: 100%;
    display: none;
    animation: MobileSearchSideIn linear 0.4s;
}

.input-holder-mobile {
    padding: 12px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.search-input-mobile {
    width: 100%;
    padding: 6px 8px 6px 34px;
    border-radius: 4px;
    background-color: #3b3e4b;
    color: var(--link-color);
    border: 1px solid var(--border-color);
}

.search-label {
    padding: 8px;
    display: block;
}

.search-icon-container-mobile {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translate(0, -50%);
    background: transparent;
    border: none;
}

.header__search-checkbox {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 16px;
    left: 120px;
}

#search-checkbox:checked ~ .search-input-container-mobile {
    display: block;
}


/* Footer */

.footer {
    padding: 16px 0;
    background-color: #2e3340;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
}

.footer-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.footer-item {
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.img-pogo-footer {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.footer-item-link {
    text-decoration: none;
    color: var(--text-color);
    padding: 4px;
    margin: 0 8px;
    font-size: 13px;
    border-bottom: 1px solid transparent;
}

.footer-item-link:hover {
    color: var(--main-color);
}

@media (max-width: 749px) {
    .content-games {
        padding: 12px;
    }
    .header-for-laptop {
        display: none;
    }

    .header-for-mobile {
        display: block;
    }

    .header-container-mobile {
        padding: 0.5rem;
        display: flex;
        flex-wrap: wrap;
    }

    .logo-link {

    }

    .content-games-item .card-body {
        padding: 6px;
        display: block;
    }

    .card-title-link {
        font-size: 11px;
        text-align: center;
    }

    .btn-play-games {
        display: block;
    }

    .category-nav .for-laptop {
        display: none;
    }

    .category-nav .for-mobile {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    .category-nav .for-mobile .category-subnav {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    .footer-wrap {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tag-game, .instruction-text {
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .search-laptop, .hidden-lg{
        display: none !important;
    }
}

@media (min-width: 750px) and (max-width: 1000px) {

    .search-icon {
        display: block;
        font-size: 18px;
        padding-bottom: 24px;
    }
}

/*#wrapper .content {*/
/*    margin-top: 70px;*/
/*}*/

/* Search input */
.search-input-custom {
    background-color: #FFFFFF;
    border-radius: 999px;
    padding-left: 1.5rem;
    padding-right: 2.5rem;
    height: 42px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Search icon */
.search-icon-custom {
    color: black;
}

/* Button: Categories */
.btn-categories {
    background-color: #E64C38;
    color: #FFFFFF;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease-in-out;
}

.btn-categories:hover {
    background-color: #c03b2b;
}

.search-input-custom:focus {
    border-color: #E64C38 !important;
    box-shadow: none !important;
    outline: none;
    background-color: #FFFFFF !important;
    color: black;
}

.search-input-custom::placeholder {
    color: silver;
}

.btn-categories i {
    font-size: 1rem;
    line-height: 1;
}

/*Button: header*/
.button-main-color.active, .button-main-color:hover, .category-in-menu:hover {
    background-color: black;
    border-radius: 8px;
}

/*List canvas*/
.offcanvas {
    transition: transform 0.3s ease-in-out;
}

.scroll-hover {
    max-height: 100vh;
}

.scroll-hover:hover {
    overflow-y: auto;
}

/* Scrollbar đẹp cho Chrome */
.scroll-hover::-webkit-scrollbar {
    width: 6px;
}

.scroll-hover::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.scroll-hover:hover::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.4);
}

.offcanvas {
    transition: transform 0.3s ease-in-out;
}

.offcanvas-start {
    left: 0;
    transform: translateX(-100%);
}

.offcanvas.show {
    transform: translateX(0);
}
.list-canvas {
    border-radius: 0.5rem;
    margin: 0.5rem;
    background-color: var(--color-text-box);
}

.btn-close-icon {
    border: none;
    padding: 12px;
    background-color: var(--color-bg-default);
}
.category-in-menu {
    color: var(--navbar-color);
    gap: 10px;
    text-transform: capitalize;
}

.canvas-categories-icon {
    color: white;
    width: 25px;
    height: 25px;
}

.canvas-item-title {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 16px;
}

.header-for-laptop .canvas-item-title {
    font-size: 16px;
}
.category-in-menu-inner {
    border-radius: 5px;
    color: white;
    background-position: center;
    width: 30px;
    height: 30px;
    background-size: cover;
    background-repeat: no-repeat;
}

/*Card Thumb*/
.card-name {
    position: absolute;
    color: white;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 10px 0;
    opacity: 0;
    font-size: 12px;
    transition: opacity 0.3s;
    background: linear-gradient(0deg, black, transparent);
}

.card-thumb:hover .card-name, .card-thumb-bottom:hover .card-name {
    opacity: 1;
}

.card-thumb-bottom, .card-thumb, .category-thumb {
    background-color: white;
    overflow: hidden;
    border-radius: 1.5rem;
    background-position: center;
    display: block;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    aspect-ratio: 1;
}

.content-games-item {
    padding: 0.5rem;
}
/*Title*/
.list-header {
    padding: 8px;
    margin: 16px 0;
}

.category-title {
    border-radius: 10px;
    align-items: end;
    justify-content: center;
    width: 100%;
    display: flex;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
}

.list-title {
    margin: 0;
    text-transform: capitalize;
}

.list-link {
    font-size: 16px;
}

.main-color, .content-text strong  {
    color: var(--main-color);
}

/*instruction*/
.block-game-info {
    gap: 0.5rem;
    padding-bottom: 12px;
    border-bottom: 1px solid gray;
    margin-bottom: 12px;
    align-items: center;
}
.block-game-info:last-child {
    border-bottom: none !important;
}

.block-game-info .block-title {
    position: relative;
    padding-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.block-game-info .block-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 30px;
    background-color: #ff7f00; /* Cam đậm */
    border-radius: 2px;
}
.block-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text-default);
    text-transform: capitalize;
}

.tag-game {
    text-transform: capitalize;
    background: var(--main-color);
    border-radius: 2rem;
    padding: 5px 10px;
}

/*Pagination*/
.custom-pagination-wrapper {
    margin: 16px 0;
    gap: 10px;
    font-size: 1.1rem;
}

.custom-pagination-wrapper .prev-btn,
.custom-pagination-wrapper .next-btn {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.custom-pagination-wrapper .prev-btn:hover,
.custom-pagination-wrapper .next-btn:hover, .custom-pagination .page-item .page-link:hover {
    background-color: var(--main-color);
}

.custom-pagination .page-item .page-link {
    color: white;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    border-radius: 6px;
    transition: 0.3s;
    font-weight: 500;
}

.custom-pagination .page-item.active .page-link {
    background-color: var(--main-color);
    color: white;
}

.card-thumb:hover, .card-thumb-bottom:hover {
    transform: scale(1.06);
}

.custom-button-dark {
    background-color: black;
}
.button-404{
    border: none;
    padding: 8px 16px;
    background: var(--main-color);
    border-radius: 16px;
}



