:root {
    --sub-text-color: rgba(255, 255, 255, .8);
    --main-text-color: #ff42a5;
    --p-text-color: rgba(255, 255, 255, 0.6);
}

body {
    background: #0a0a0a; /* nền chính (tối) */
    color: #fff;
}

/* Blob container */
body::before,
body::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(120px); /* làm mềm viền */
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* blob đỏ */
body::before {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle at center, #ff42a5 0%, transparent 70%);
}

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

a, .content-text li {
    color: var(--sub-text-color);
    text-decoration: none;
}

.content-text h3 {
    color: white;
}

p {
    color: var(--p-text-color);
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.2rem;
}

h3 {
    font-size: 1rem;
}

h4 {
    font-size: 0.75rem;
}

.logo {
    aspect-ratio: 512 / 160;
    width: 160px;
    max-width: 200px;
    height: auto;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('/assets/img/logo/nowgg-logo-w.png');
}

#search-mobile {
    display: none;
}

.fs-12 {
    font-size: 12px;
}

.fs-14 {
    font-size: 14px;
}

.form-control:focus {
    box-shadow: none;
}

/* Hover */
a:hover {
    color: var(--main-text-color);
    text-decoration: none;
    transition: transform 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.content-game-items a .card-thumb {
    transition: transform 0.2s ease-in-out, border 0.2s ease-in-out;
}

.content-game-items a:hover .card-thumb {
    transform: scale(1.05);
    border: 2px solid var(--main-text-color);
}

.content-category {
    border: 2px solid transparent;
    transition: border-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.content-category:hover {
    border-color: var(--main-text-color);
}
.view-more-btn {
    color: var(--sub-text-color);
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.view-more-btn::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px; /* hạ line xuống dưới chữ */
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 100%;
    height: 1px;
    background-color: white;
    transition: transform 0.3s ease-in-out;
}

.view-more-btn:hover::after {
    transform: translateX(-50%) scaleX(1);
}
.view-more-btn:hover {
    color: white;
}

/* Color*/
.color-title {
    margin-bottom: 0;
    color: white!important;
}

.view-more-btn, .color-title, .title-page {
    text-transform: capitalize;
}

/* Header */
#header-desktop {
    top: 0;
    z-index: 9999;
    width: 100%;
    position: fixed;
    background-color: #111;
    padding: 0 1rem;
    border-color: rgba(255, 255, 255, 0.1);
}

#header-mobile-search {
    top: 0;
    z-index: 999;
    width: 100%;
    position: fixed;
    background-color: #111;
    border-color: rgba(255, 255, 255, 0.1);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

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

/* Main */
.home {
    background-color: rgb(20, 22, 31);
    padding-top: 24px;
}

#main {
}

.sub-text-color {
    color: var(--sub-text-color);
}

.content-game-title {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-thumb, .explore-thumb {
    background-color: var(--main-text-color);
    overflow: hidden;
    border-radius: 12px;
    background-position: center;
    display: block;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    aspect-ratio: 1;
}

.explore-wrapper {
    position: relative;
    display: inline-block;
}

.explore-item {
    position: relative;
    padding: 0.5rem;
    border-radius: 10px;
    display: block;
    text-align: center;
    transition: border 0.3s ease;
}

.explore-item:hover {
    border: 1px solid var(--main-text-color);
}


.card-name {
    margin-top: 4px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.content-category {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 12px;
    padding: 6px 12px;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
}

.category-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-category-thumb {
    aspect-ratio: 1;
    background-position: center;
    width: 40px;
    height: 40px;
    background-size: cover;
    background-repeat: no-repeat;
}

.content-game-thumb {
    padding: 12px;
}

.content-games {
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.content-explore, .content-about {
    margin-bottom: 20px;
    margin-top: 86px;
}

.title-page {
    font-weight: 700;
    padding-bottom: 1rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(0.25turn, rgba(56, 2, 155, 0), rgb(255, 0, 128), rgba(56, 2, 155, 0)) 1 / 1 / 0 stretch;
    max-width: 1080px;
    margin: 0 auto;
}
.content-explore h1{
    font-size: 54px;
}

.content-explore h2{
    font-size: 48px;
}
/* Footer */
#footer {
    position: relative;
    background: #1a1a1a; /* nền tối */
    overflow: hidden;
}

#footer::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle at center, #ff42a5 0%, transparent 70%);
    filter: blur(100px);
}

/*#footer::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    bottom: -20%;*/
/*    right: -20%;*/
/*    width: 60%;*/
/*    height: 60%;*/
/*    background: radial-gradient(circle at center, #42a5ff 0%, transparent 70%);*/
/*    filter: blur(120px);*/
/*}*/

/* Canvas */
.offcanvas {
    visibility: hidden;
    opacity: 0;
    transform: translateX(-100%);
    transition: visibility 0s linear 0.25s, opacity 0.25s ease, transform 0.35s ease;
}

.offcanvas.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0s; /* show ngay */
}

.canvas-header, .btn-close-icon, .list-canvas {
    background-color: rgb(20, 22, 31);
}

.btn-close-icon {
    padding: 12px;
    border: none;
    color: white;
}

/* Pagination */
a.page-link {
    color: white;
    font-weight: 500;
    border-radius: 8px;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.1);
}

a.page-link:hover {
    color: white;
    border: 1px solid var(--main-text-color);
    background: unset;
}

.active>.page-link {
    background: unset;
    border: 1px solid var(--main-text-color);
}

.next-btn i, .prev-btn i {
    font-size: 14px;
}

a.next-btn, a.prev-btn {
    border-radius: 8px;
    padding: 5px 15px;
    background: var(--main-text-color);
}

a.next-btn:hover, a.prev-btn:hover {
    color: white;
}

@media (min-width: 1280px) {
    .row-cols-xl-9 > * { flex: 0 0 auto; width: calc(100% / 9); }
}

/* Play */
.about-game {
    background: #0D0C14;
}

.about-game-inner, .play-content-inner {
    max-width: 1550px;
}

.spacing-m {
    margin: 1rem 0;
}

.tag-game {
    border-radius: 1rem;
    background: rgba(255, 255, 255, .1);
    padding: 4px 12px;
}

.play-content {
    background: rgba(255, 255, 255, .1);
}

.error-page .btn:hover{
    color: white;
    background: var(--main-text-color);
}

.show-more {
    text-transform: capitalize;
    font-weight: bold;
    border: 1px solid transparent;
    outline: 1px solid var(--main-text-color);
    padding: 5px 20px;
    border-radius: 8px;
    color: var(--main-text-color);
}

.show-more:hover {
    outline-width: 2px;
}
@media (max-width: 992px) {
    .content-explore h1{
        font-size: 30px;
    }

    .content-explore h2{
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    #search-desktop {
        display: none;
    }
    #search-mobile {
        display: block;
    }
    .custom-pagination-wrapper {
        gap: 0.25rem !important;
        flex-wrap: wrap;
    }

    /* Ẩn bớt số trang trên mobile */
    .custom-pagination li.page-item:not(.active):nth-child(n+3):nth-last-child(n+3) {
        display: none;
    }

    /* Thu nhỏ nút */
    .custom-pagination .page-link,
    .custom-pagination-wrapper a {
        padding: 4px 12px;
        font-size: 0.875rem;
    }
}
