* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: "Nunito";
    src: url(/css/game49/fonts/Nunito-Medium.ttf) format("truetype");
}

:root {
    --primary-100: #805b00;
    --primary-200: #b38835;
    --primary-300: #ffffff;
    --accent-100: #ffc941;
    --accent-200: #926b00;
    --text-100: #d3f1ff;
    --text-200: #95cce7;
    --bg-100: #023047;
    --bg-200: #194058;
    --bg-300: #365973;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    font-family: "Nunito";
    background-color: var(--bg-100);
    color: var(--text-100);
    transition: all 0.3s ease-in-out;
}

img {
    width: 100%;
    aspect-ratio: 1/1;
}

ul, li {
    list-style-type: none;
}

a, a:link, a:visited, a:hover, a:active {
    text-decoration: none;
    color: #000000;
}

input {
    border: none;
    background: none;
    outline: none;
}

.svgIcon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 4px;
    vertical-align: middle;
    fill: var(--accent-100);
    stroke: #fff;
}

.svgIcon.category-title {
    width: 30px;
    height: 30px;
}

.svgIcon.star {
    width: 15px;
    height: 15px;
}

.flex-row {
    display: flex;
    flex-direction: row;
    column-gap: 10px;
}

.flex-col {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

main {
    flex: 1;
}

header{
    width: 100%;
    position: fixed;
    /*height: 4rem;*/
}

.headerContainer {
    background-color: var(--bg-200);
    width: 100%;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.headerContainer img{
    float: right;
    right: 1rem;
    width: 30px;
    height: 30px;
    position: absolute;
}

.previous_btn{
    float: left !important;
    left: 1rem;
    display: flex;
    align-items: center;
}



.back_previous{
    left: 1rem;
    width: 30px;
    height: 30px;
    position: absolute;
}

.header-top {
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    /*justify-content: center;*/
}

.header-top h1 {
    color: var(--text-100);
    font-family: "Freckle Face", system-ui;
    font-size:3rem;
}

.top-scroll-box {
    margin: 20px 0;
}

.top-nav {
    flex-wrap: nowrap;
    overflow-x: scroll;
    scrollbar-width: none;
    margin: 5rem 10px 0 10px;
}

.top-nav .nav-item {
    border-radius: 25px;
    min-height: 5px;
    color: var(--primary-300);
    padding: 10px;
}

.top-nav .nav-item span {
    white-space: nowrap;
    font-size: 14px;
}

.swiper-item {
    border-radius: 20px;
    height: 200px;
}

.swiper-item img {
    border-radius: 20px;
    object-fit: cover;
    height: 100%;
}

.swiper-slide-shadow-right {
    border-radius: 20px;
}

.game-box {
    border-radius: 20px;
    padding: 10px;
    margin: 10px;
    background-color: var(--bg-200);
}

.game-box h2 {
    font-size: 25px;
    color: var(--primary-300);
}

.game-item-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.game-item-list.grid-two {
    grid-template-columns: repeat(2, 1fr);
}

.game-item-list.grid-two .img-box {
    height: 150px;
}

.game-item-list a {
    height: 100%;
}

.game-item-list .img-box {
    width: 100%;
    height: auto;
    background-color: var(--bg-100);
    border-radius: 20px;
    flex-grow: 1;
}

.game-item-list img {
    border-radius: 20px;
    height: 100%;
    object-fit: cover;
}

.game-item-list.category a:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.game-item-list span {
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    white-space: normal;
    color: var(--text-200);
    overflow: hidden;
}

.g-title {
    column-gap: 0;
    align-items: center;
}

.game-brief-box {
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin-top: 4rem;
}

.game-brief {
    width: 100%;
}

.game-brief img {
    border-radius: 20px;
    width: 100px;
}

.classified {
}

.brief-intro h4 {
    font-size: 20px;
}

.brief-intro .star {
    white-space: nowrap;
}

.brief-intro a {
    display: inline-block;
    box-sizing: border-box;
    border: 2px solid var(--primary-200);
    color: var(--primary-300);
    border-radius: 5px;
    padding: 5px;
}

.play-btn {
    box-sizing: border-box;
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    text-align: center;
    background-image: linear-gradient(25deg, #0a0eea, #5e6bec, #74b4ec, #6dfee8);
    font-size: 20px;
    font-weight: bolder;
    margin-top: 10px;
}

.play-btn a {
    color: #fff;
}

.game-des {
    padding: 20px;
}

.nav-item {
    background-color: var(--bg-300);
    column-gap: 5px;
    justify-content: center;
    align-items: center;
}

.isActive {
    background-color: var(--primary-200);
}

.isActive span {
    color: #fff;
}

.mainContainer {
    max-width: 1468px;
    margin: 0 auto;
}

.footerContainer {
    background-color: var(--bg-200);
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
    column-gap: 0;
}

.footerContainer a {
    color: var(--text-100);
    padding: 0 20px;
}

/*.footerContainer a:first-child {*/
/*    border-right-color: #fff;*/
/*    border-right-style: solid;*/
/*    border-right-width: 2px;*/
/*}*/

.footerContainer p {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    color: var(--primary-300);
}

@media (min-width: 440px) and (max-width: 959px) {
    .game-item-list.category .img-box {
        height: 100px;
    }

    .game-item-list.category, .game-item-list.grid-two {
        grid-template-columns: repeat(4, 1fr);
    }

    .game-item-list.category a:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }

    .game-brief img {
        width: 200px;
    }

    .brief-intro h4 {
        font-size: 25px;
    }
}

@media (min-width: 960px) {
    /*.game-item-list.category .img-box {*/
    /*    height: 100px;*/
    /*}*/

    .game-item-list.category, .game-item-list.grid-two {
        grid-template-columns: repeat(6, 1fr);
    }

    .game-item-list.category a:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }

    .play-btn {
        width: 60%;
    }

    .game-brief {
        justify-content: center;
    }

    .game-brief img {
        width: 200px;
    }

    .brief-intro h4 {
        font-size: 25px;
    }
}

.detail_desc{
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
}

.desc_btn{
    width: 100px;
    height: 30px;
    margin: 1rem 0 0;
    background: #51595b;
    font-size: 1rem;
    font-weight: bold;
    color:#fff;
}

.search_content {
    width: 400px;
    height: 40px;
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
}

#search_view{
    width:100%;
    background-color: var(--bg-200);
}

.search_content input{
    width: 80%;
    height: 100%;
    color: #333;
    border: none;
    outline: none;
    padding-left:.8rem;
    background: aliceblue;
    margin-right: 1rem;
    border-radius: 20px;
}

.search_button{
    width: 40px;
    height:100%;
    background: #51595b;
}

.search_button img{
    width:50%;
    height:50%;
    margin:auto;

}

.back_to_top{
    position: fixed;
    right: 2rem;
    bottom: 6rem;
    z-index: 1;
    height: 50px;
    width: 50px;
    box-shadow: 0 0 28px #0000009c;
    cursor: pointer;
    display:flex;
    background: #51595b;
    border-radius: 50%;
}

.back_to_top img{
    width:80%;
    height:80%;
}

.adBox{
    width: calc(100% + 2rem - 20px);
    margin-left: calc(-1rem + 10px);
    border-radius: 8px;
    margin-top: 30px;
    margin-bottom: 30px;
    height: auto;
    display: flex;
    justify-content: center;
    background-color: #CCCCCC;
    color: #000;
}

.adBox0 {
    width: 100%;
    overflow: hidden;
    height: auto;
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
    padding: 15px 0 15px 0;
}