/*
Theme Name: NSWxxx
Theme URI: https://nswxxx.io
Author: NSWxxx
Author URI: https://nswxxx.io
Description: Theme for NSWxxx.io - Nintendo Switch games, updates and guides.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: 1mod
*/
@font-face {
    font-family: 'SF Pro';
    src: url('fonts/sf-pro-display_light.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/*social_networks*/

.social-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-button {
    display: inline-flex;
    align-items: center;
    padding: 6px 20px;
    border-radius: 99px;
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: background-color 0.3s;
}
a.social-button:hover {
    color: #fff;
    text-decoration: none !important;
    scale: 1.1;
    transition: 1s;
}
.social-button i {
    margin-right: 8px;
}

.social-button:hover {
    opacity: 0.8;
}

/* Các màu sắc cho từng mạng xã hội */
.other-color {
    background-color: #9E9E9E;
}
.telegram-color {
    background-color: #409fff;
}

.facebook-color {
    background-color: #3b5998;
}

.twitter-color {
    background-color: #1da1f2;
}

.instagram-color {
    background-color: #e4405f;
}

.linkedin-color {
    background-color: #0077b5;
}

.youtube-color {
    background-color: #ff0000;
}

.tiktok-color {
    background-color: #000000; /* Màu đen cho TikTok */
}

/***
   GLOBAL
 */
html {
    height: 100%;
}

body {
    line-height: 1.6;
    top: 0 !important;
    margin: 0;
    text-align: left;
    outline: 0;
    font-size: 16px;
    font-weight: normal !important;
    -webkit-font-smoothing: antialiased;
    height: 100%;
    font-family: "SF Pro", sans-serif !important;
}

ol, ul {
    list-style: none;
    padding-left: 28px;
    line-height: 1.8;
}

blockquote:before, q:before {
    content: open-quote;
}

blockquote:after, q:after {
    content: close-quote;
}

blockquote, q {
    quotes:  "\201C" "\201D";
    font-style: italic;
}

:focus, :focus-visible {
    outline: 0;
}

blockquote:after, blockquote:before, q:after, q:before {
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

hr {
    background-color: #2e2e2e;
    border: 1px solid #2e2e2e !important;
}

pre {
    font-family: Consolas,Andale Mono,Ubuntu Mono,monospace!important;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    word-break: normal;
    align-items: center;
    background: #2e2e2e;
    border-radius: 6px;
    display: flex;
    overflow: auto;
    padding: 16px 24px;
    position: relative;
    white-space: pre-wrap;
    color: white;
}

picture {
    display: contents;
}

.wp-block-quote {
    word-wrap: break-word;
    background: #262626;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    hyphens: auto;
    padding: 16px 24px;
}

.wp-block-image {
    text-align: center;
}
.wp-block-image img {
    border-radius: 8px;
}
.bg-success {
    background-color: #29b829 !important;
}
a.bg-success:focus, a.bg-success:hover, button.bg-success:focus, button.bg-success:hover {
    background-color: #238318 !important;
}

.text-muted {
    color: #8e8e8e !important;
}

/***
    GENERAL
 */
a:hover, a:focus, a:active {
    outline: 0;
}

button, .button, .btn {
    align-items: center;
    appearance: none;
    border-radius: 6px;
    border-width: 0;
    cursor: pointer;
    display: flex;
    font-weight: 600;
    justify-content: center;
    line-height: 24px;
    padding: 12px 32px;
    text-align: center;
    text-decoration: none;
    transition: all .2s ease 0s;
    white-space: nowrap;
}
.button.green, button.green, .green {
    background: #29b829;
}
.button.green:hover, button.green:hover, .green:hover {
    background: #00ab00;
    color: white;
    text-decoration: none;
}

.button:active, button:active, .btn:active, .button:focus, button:focus, .btn:focus {
    opacity: .8;
    box-shadow: none;
}

#dle-content {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

main {
    padding-right: 40px;
    display: block;
    overflow: hidden;
    padding-bottom: 200px;
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
}

.bg_cover::before {
    content: "";
    z-index: 0;
    display: block;
    position: absolute;
    width: 100%;
    height: 500px;
    top: 0;
    right: 0;
    background: radial-gradient(50% 100% at 50% 0%, rgba(30, 30, 30, 0.5) 0%, #1E1E1E 100%), var(--bg-img);
    background-repeat: no-repeat;
    background-size: 100%;
}

article.page, section.page {
    max-width: 736px;
}

article .title a, section .title a {
    font-weight: 600;
    font-size: 12px;
    line-height: 20px;
    margin-top: 9px;
}

section.main-page .card-grid {
    margin-top: 0;
}
.title.page {
    display: flex;
    align-items: start !important;
    flex-direction: column!important;
}
.title.page {
    display: inline-flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 24px;
    align-items: center;
}

.title.page h1 {
    display: flex;
}

/****
Report
 */
#helpModal {
    z-index: 9999;
}

/***
 Typography
 */
h1 {
    font-weight: 600 !important;
    font-size: 24px;
    text-align: left;
    line-height: 40px;
}

h2 {
    font-weight: 600;
    font-size: 20px;
    line-height: 32px;
    letter-spacing: 0.02em;
}

h1.body-1, h2.body-1, p.body-1, span.body-1, div.body-1, a.body-1 {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.04em;
}

/*h1.body-2, h2.body-2, p.body-2, span.body-2, div.body-2, a.body-2 {*/
/*    font-weight: 600;*/
/*    line-height: 18px;*/
/*    letter-spacing: 0.04em;*/
/*}*/

h1.body-2.gray, h2.body-2.gray, p.body-2.gray, span.body-2.gray, div.body-2.gray, a.body-2.gray {
    color: #8e8e8e;
}

h1, h2, h3 {
    font-weight: 600;
}

h2, h3, h4, h5 {
    letter-spacing: .02em;
    line-height: 32px;
}

h2 {
    font-size: 20px;
}

h3 {
    font-size: 16px;
}

h4, h5 {
    font-size: 14px;
}

input {
    -webkit-appearance: textfield;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 24px;
    margin: 0;
    padding: 12px 16px;
    transition: all .2s ease 0s;
}

.wrapper {
    margin: 0 auto;
    max-width: 1440px;
    min-height: 100%;
    position: relative;
}

/**
    Marker
 */
.marker {
    border-radius: 2px;
    padding: 2px 4px;
    color: #fff;
    text-transform: uppercase;
    position: relative;
    top: 0;
    left: 0;
}

.marker.green {
    background: #00AA00;
}

.marker.red {
    background: #FF5050;
}

/**
    BADGE
 */

/***
Carousel - slider
 */
.screenshots {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
    overflow: auto;
    scroll-snap-type: x mandatory;
}

.screenshot {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-right: 15px;
    scroll-snap-align: center;
    margin-bottom: 15px;
}

.screenshot img {
    height: 160px;
    width: auto;
    border-radius: 8px;
    z-index: 9999;
}
.lg-outer {
    z-index: 9999;
}

.carousel .carousel-inner {
    border-radius: 10px;
}
.carousel .carousel-inner .carousel-item img {
    height: 420px;
    width: auto;
}

.carousel-control-next, .carousel-control-prev {
    width: 4%;
}

.carousel-control-next:hover, .carousel-control-prev:hover {
    background: #29292926;;
}

.slide {
    height: 400px!important;
    max-height: 400px!important;
    border-radius: 8px;
    background-color: #818da600;
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
}

.cs-item .cs-text {
    position: absolute;
    left: 0;
    top: 36px;
    padding: 0 0 0 32px;
    display: table;
}

/**
    Pagination
 */
.pagination .pagination-item .pagination-link {
    font-weight: 600;
    height: 40px;
    width: 40px;
    line-height: 24px;
    text-decoration: none;
    transition: all .2s ease 0s;
    margin-right: 4px;
    background-color: #e7e7e7;
    color: black;
    border-radius: 100px;
}

.pagination, .pagination .pagination-item, .pagination .pagination-item .pagination-link {
    align-items: center;
    display: flex;
    justify-content: center;
}

.pagination .pagination-item.active .pagination-link {
    align-items: center;
    color: #fff;
    display: flex;
    
    font-weight: 600;
    height: 40px;
    width: 40px;
    justify-content: center;
    line-height: 24px;
    background: #2e2e2e;
    border-radius: 100px;
    opacity: 1;
}

.pagination .pagination-item .pagination-link:hover {
    opacity: 1;
}


/**
Filters
 */
.filters {
    grid-gap: 16px;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.filters select {
    padding: 6px 45px 6px 12px !important;
    font-size: 12px;
    line-height: 20px;
}

/***
    ASIDE
 */

/***
    HEADER
 */

.search-input {
    display: none;
}

/***
    MAIN - single post
 */

/*.main-title .icon {*/
/*    display: flex;*/
/*    align-items: center;*/
/*}*/

.main-post {
    display: grid;
    grid-gap: 32px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    grid: auto-flow dense / 1fr 1fr 1fr;
    position: relative;
}

.main-post .right {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    max-width: 352px;
}

.main-post .right .info, .right .info {
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    border-radius: 8px;
    padding: 0;
    height: fit-content;
    overflow: hidden;
    position: relative;
}

.main-post .right .info::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    z-index: -1;
    width: calc(100% - 2px);
    border: 1px solid #e7e7e7;
}

.main-post .right .info .icon {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.main-post .right .info .icon .text h4 {
    margin-bottom: 4px;
}

.single-block {
    background: #262626;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 16px 24px;
}

.main-post .right .btn-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    margin-top: 8px;
    padding: 0;
}

.main-post .right .btn-block a {
    text-decoration: none;
}

.main-post .right .btn-block button {
    width: 100%;
}

.main-post .right .type {
    display: flex;
    align-items: start;
    margin-top: 8px;
}

.main-post .right .type a {
    color: #409FFF;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    margin-left: 4px;
}

.main-post .right .bottom {
    display: flex;
    width: 100%;
    margin-top: 8px;
    justify-content: space-between;
    align-items: center;
}

.main-post .right .bottom a {
    width: auto;
    color: #0d84fb;
    text-decoration: none;
}

.main-post .right .bottom a:hover {
    text-decoration: underline;
}

.main-post .content {
    grid-column: span 2;
    width: 100%;
}

.main-post .content ul, .tax-description ul {
    list-style: unset;
}

.main-post .content .content-block {
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 32px;
}

.main-post .content .content-block .ui-tabs-active {
    opacity: 1;
    border-bottom: 4px solid #0080FF;
}

.main-post .content .content-block .tabs-nav {
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #4E4E4E;
    width: auto;
    display: flex;
    gap: 32px;
    list-style: none;
}

.main-post .content .content-block .tabs-container .body-2 {
    padding: 16px 24px 24px;
    border-radius: 0 0 8px 8px;
    width: auto;
}

.main-post .content .content-block .tabs-container .readmore-section {
    padding: 16px 24px 0 !important;
    border-radius: 0 !important;
    overflow: hidden;
}

.main-post .content .content-block .tabs-container .readmore-collapsed {
    position: relative;
}

.main-post .content .content-block .tabs-container .readmore-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(38, 38, 38, 0) 0%, #f6f6f6 100%);
}

.main-post .content .content-block .tabs-container .readmore-toggle {
    border: 1px solid #4E4E4E;
    padding: 12px;
    text-align: center;
    opacity: 0.9;
    border-radius: 0 0 8px 8px;
    width: auto;
    
    line-height: 24px;
    font-weight: 600;
    text-decoration: none;
}

.main-post .content .content-block .tabs-container .readmore-toggle:hover {
    opacity: 1;
}

.main-post .content .help-block {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    margin-bottom: 32px;
}

.main-post .cover {
    position: relative;
    border-radius: 8px;
    height: 400px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    background: #262626;
}

.main-post .cover img {
    position: absolute;
    border-radius: 8px;
    width: 64px;
    height: 64px;
}

.main-post .container {
    display: grid;
    grid-gap: 32px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
}

.main-post .content h2, .main-post .content .h2 {
    font-size: 18px;
    font-weight: 600;
}

.main-post .content h3, .main-post .content .h3, .main-post .content h4, .main-post .content .h4, .main-post .content h5, .main-post .content h6, .main-post .content .h6 {
    
    font-weight: 600;
}

/***
 FAQs & Versions
 */
.faq-item .faq-title a {
    border-top: 1px solid #e7e7e7;
    display: flex;
    line-height: 24px;
    margin-bottom: 0;
    opacity: 1;
    padding: 16px 0;
    text-decoration: none;
    transition: all .2s ease 0s;
    justify-content: space-between;
}

.faq-item .faq-title a:hover {
    text-decoration: underline !important;
}

.faq-item .faq-content {
    line-height: 1.7;
}
/***
Button
 */
a, a button, a button:hover {
    text-decoration: none;
}

a:active, a:focus, a:hover {
    outline: 0;
}

a:hover {
    color: #c4000f;
    text-decoration: underline;
}

a {
    color: #e60012;
    cursor: pointer;
    transition: all .2s ease 0s;
}

/***
Main page
 */
article .title a, section .title a {
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    margin-top: 9px;
}

section.main-page .card-grid {
    margin-top: 0;
}

.card-grid, .page-grid #dle-content {
    grid-gap: 1rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
}

/***
App item
*/

.card-grid.more-col {
    grid-template-columns: repeat(4, 1fr);
}

.marker {
    border-radius: 2px;
    color: #fff;
    left: 0;
    padding: 2px 4px;
    position: relative;
    text-transform: uppercase;
    top: 0;
}

/***
Locked
 */
/**
    Win big item
 */

.win-big-item {
    position: relative;
    display: flex;
    margin: 0;
    padding: 0;
    background: #262626;
    border: 1px solid #2E2E2E;
    border-radius: 8px;
    text-decoration: none!important;
    transition: all .2s ease 0s;
    z-index: 99;
    overflow: hidden;
}

.win-big-item .container {
    display: block;
    width: 100%;
    text-align: center;
    position: relative;
    padding: 0;
    box-sizing: border-box;
}

.win-big-item .container h2 {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-wrap: wrap;
    text-align: left;
    padding: 0 10px;
    margin-bottom: 0;
}
.win-big-item .info {
    padding: 0 10px;
    margin-bottom: 6px;
    white-space: nowrap;
    text-align: left;
}
.win-big-item .icon {
    width: 100%;
    height: 160px;
    object-fit: cover;
    opacity: .95;
}

.card-grid .win-big-item:hover, .page-grid .win-big-item:hover {
    background: #2e2e2e;
    border: 1px solid #4e4e4e;
}

.card-grid .win-big-item:hover img, .page-grid .win-big-item:hover img {
    opacity: 1;
}

/***
    Soft item
 */

.page-grid:not(.page-list) .win-big-item .info .size, .card-grid .win-big-item .info .size {
    display: none;
}

.page-grid:not(.page-list) .win-big-item:hover .info .size, .card-grid .win-big-item:hover .info .size {
    display: block;
    position: absolute;
    right: 10px;
    top: 10px;
    margin-left: 0;
    height: fit-content;
    white-space: nowrap;
    margin-top: 0;
    cursor: pointer;
    pointer-events: none;
    background: #262626;
    color: #8E8E8E;
    font-size: 10px;
    padding: 2px 4px;
}

/**
    Page list
 */
.page-list #dle-content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 0;
}
/**
    Switch layout
 */
.grid-switch {
    background: #1e1e1e;
    border: 1px solid #2e2e2e;
    border-radius: 6px;
    display: flex;
}
.grid-switch .btn {
    border-radius: 6px;
    opacity: .5;
    padding: 6px;
    transition: all .5s ease 0s;
    background: transparent;
}
.grid-switch .btn.active {
    background: #2e2e2e !important;
    opacity: 1;
    color: white;
}
.grid-switch .btn:hover {
    color: white;
    opacity: 1;
}
/***
Article item
 */

/***
Plugin mini
 */

/***
Scrolls button
 */

#scroll_top_btn {
    border-radius: 40px;
    cursor: pointer;
    transition: all .2s ease 0s;
    z-index: 9999;
    height: auto;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px;
    text-decoration: none;
}

/**
    Download page
 */
#download-section {
    display: none;
}
#download-link {
    width: fit-content;
}
.progress-bar {
    width: 0%;
    animation: fillProgress 5s linear forwards;
}

@keyframes fillProgress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}
/**
    Tooltip
 */
.tooltip .tooltip-inner {
    background-color: #262626;
    padding: 8px 12px;
    max-width: 360px !important;
}

.tooltip .arrow::before {
    border-top-color: #262626;
    border-bottom-color: #262626;
}

/**
    Footer
 */

/**
Responsive
 */
/* Large Desktop >= 1200px */

/* Normal Desktop 992px - 1199px */
@media (max-width: 1199px) {
    .card-grid, .page-grid:not(.page-list) #dle-content {
        grid-template-columns: repeat(3,1fr)!important;
    }
    
}

/* Tablet (Portrait) */
@media (max-width: 991px) {
    .card-grid, .page-grid:not(.page-list) #dle-content {
        grid-template-columns: repeat(2,1fr)!important;
    }

    .main-post {
        grid-gap: 0;
        grid-template-columns: repeat(1,1fr);
        margin-top: 0;
    }

}

/* Mobile Devices */
@media (max-width: 768px) {
    main {
        padding: 0 18px 96px!important;
    }
    .title.page h1 {
        flex-shrink: 0;
        width: 100%;
        margin: 0;
    }
    h1 {
        font-size: 22px;
        font-weight: 600;
        line-height: 24px;
        text-align: left;
    }
    .mobile-title-cat {
        align-items: start!important;
        flex-direction: column!important;
        gap: 16px!important;
    }

    #slidesPost {
        background-color: rgba(129,141,166,0);
        border-radius: 0!important;
        display: block;
        height: 320px!important;
        margin: 0 -18px;
        width: calc(100% + 36px);
        z-index: 100;
    }
    
}
/* Mobile Devices */

a.btn {
    background-color: gray;
    color: white;
    /* ... các thuộc tính còn lại ... */
}

a.btn:hover {
    background-color: #555;
}