@font-face {
    font-family: 'Sriracha';
    src: url('../fonts/Sriracha-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Nunito', sans-serif;
    background: #04091D;
    background-image: url(../images/bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
}

.container {
    max-width: 1300px;
    margin: auto;
    padding: 0 15px;
    width: 100%;
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x))
}

.row>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y)
}

*,
::after,
::before {
    box-sizing: border-box;
}

.align-items-center {
    align-items: center;
}

.justify-content-space-between {
    justify-content: space-between;
}

.justify-content-space-around {
    justify-content: space-around;

}

.bg-1 {
    border-radius: 1274px;
    background: rgba(10, 40, 169, 0.20);
    filter: blur(200px);
    position: absolute;
    transform: translate(-30%, -50%);
    width: 60%;
    aspect-ratio: 1/1;
    z-index: 1;
    top: 0;
}

.bg-2 {
    border-radius: 1274px;
    background: rgba(10, 40, 169, 0.30);
    filter: blur(200px);
    position: absolute;
    top: 450px;
    width: 50%;
    right: 0;
    aspect-ratio: 1/1;
    z-index: 1;
}

.loading {
    background-image: url(../images/loading.svg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #d9d9d9;
}

.back-to-top {
    border: none;
    position: fixed;
    z-index: 99;
    cursor: pointer;
    display: none;
    /* 初始隐藏 */
    border-radius: 50%;
    padding: 0;
    bottom: 180px;
    right: 65px;
}

.back-to-top img {
    width: 40px;
    vertical-align: bottom;
}

/* header */
header {
    position: relative;
    height: 80px;
    z-index: 999;
}

header .navbar {
    display: flex;
    height: 80px;
    justify-content: space-between;
    align-items: center;
    font-family: Nunito;
    padding: 0px 20px;
    margin: auto;
    flex-wrap: nowrap;
    max-width: 1500px;
}

header .navbar .logo a {
    color: #BAE816;
    font-family: Sriracha;
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

header .navbar .nav-links {
    display: flex;
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    justify-content: space-evenly;
    padding: 0 5px;
}

header .navbar .nav-links li {
    padding: 0 20px;
}

header .navbar .nav-links li a {
    color: #8A8C99;
    font-feature-settings: 'liga' off;
    font-family: Nunito;
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    line-height: 28px;
    text-transform: capitalize;
}

header .navbar .nav-links li.home a {
    color: #fff;
}

header .navbar .nav-links li.category {
    border-radius: 12px;
    background-color: #BAE816;
    padding: 10px 30px;
}

header .navbar .nav-links li.category a {
    color: #333;
    font-size: 20px;
    font-weight: 700;
}

header .h5-search-menu,
header .burger {
    display: none;
}

header .search-main {
    width: 268px;
    height: 48px;
}

header .search-main .search {
    width: 100%;
    margin: auto;
    position: relative;
    display: flex;
}

header .search-main .search input {
    width: 100%;
    height: 48px;
    border-radius: 100px;
    background: #000;
    border: 2px solid #BAE816;
    padding-left: 60px;
    color: #fff;
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
    font-family: 'Nunito';
}

header .search-main .search input::placeholder {
    color: #FFF;
    font-family: 'Nunito';
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px;
}

header .search-main .search_btn {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translate(0, -50%);
}

@media (max-width:1200px) {
    header .navbar .logo a {
        font-size: 28px;
    }

    header .navbar .nav-links li {
        padding: 0 15px;
    }

    header .navbar .nav-links li a {
        font-size: 18px;
    }

    header .navbar .nav-links li.category {
        padding: 6px 25px;
    }


}
@media screen and (max-width: 1024px) {
.new-games .list{height: 260px;}
}
@media screen and (max-width: 992px) {
.new-games .list{height: 240px;}
    .search-main {
        display: none;
    }

    header,
    header .navbar {
        height: 68px;
    }

    header .navbar .nav-links {
        display: none;
    }

    header .burger {
        display: flex;
        margin-left: auto;
        margin-right: 28px;
    }

    header .h5-search-menu {
        display: block;
    }


}

@media (max-width:500px) {
    header .navbar .logo a {
        font-size: 22px;
    }

    header {
        height: 48px;
    }

    header .navbar {
        height: 48px;
        padding: 0px 15px;
    }

    header .burger {
        margin-right: 20px;
    }
}

/* main */
main {
    position: relative;
    z-index: 99;
}

section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.h2-28 {
    color: #FFF;
    font-family: 'Nunito';
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
}

.img-100 {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 24px;
    transition: 0.5s all
}

.item:hover .img-100 {
    transform: scale(1.08)
}

.top-game .left-list {
    width: 70%;
}

.top-game .right-list {
    width: 30%;
}

.top-game .left-list .item {
    width: 25%;
    margin-bottom: 32px;
}

.top-game .left-list .item img {
    margin-bottom: 12px;
}

.top-game .right-list .item {
    margin-bottom: 32px;
    width: 100%;
}

.top-game .right-list .item .img {
    flex: 0 0 37%;
}

.top-game .right-list .item .title {
    flex: 0 0 60%;
}



.heading {
    color: #FFF;
    font-family: 'Nunito';
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 48px;
    border-left: 9px solid #BAE816;
    text-transform: capitalize;
    padding-left: 20px;
    margin-bottom: 40px;
}

.new-games .container {
    position: relative;
}

.new-games .list {
    width: calc(100% - 60px);
    margin: auto;
}

.new-games .list {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    overflow: hidden;
height: 309px;
}

.new-games .list .item {
    flex: 0 0 calc(20% - 20px);
    display: flex;
    gap: 20px;
    margin-right: 0;
    float: none;
height: 100%;
}

.new-games .list .item a {
    padding: 12px 12px 20px;
    border-radius: 24px;
    border: 2px solid #1F244C;
    background: #101529;
    width: 100%;
}

.new-games .list .item img {
    margin-bottom: 20px;
}

.new-games .carousel-control-prev-icon {
    background-image: url(../images/left.svg);
    z-index: 999;
}

.new-games .carousel-control-next {
    background-image: url(../images/right.svg);
    z-index: 999;
}

.new-games .list::-webkit-scrollbar {
    display: none;
}

#prevBtn,
#nextBtn {
    background-color: #101529;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 26px;
    position: absolute;
    z-index: 99;
    top: 50%;
    transform: translate(0, calc(-50% + 48px));
    cursor: pointer;
}

#prevBtn {
    background-image: url(../images/left.svg);
    left: 10px;
}

#nextBtn {
    background-image: url(../images/right.svg);
    right: 10px;
}

#prevBtn:hover {
    background-color: #BAE816;
    background-image: url(../images/leftative.svg);
}

#nextBtn:hover {
    background-color: #BAE816;
    background-image: url(../images/rightactive.svg);
}

.featured-games .list {
    width: 100%;
}

.featured-games .item {
    flex: 0 0 33.33%;
    margin-bottom: 32px;
    display: flex;
}
.featured-games .item a{
    background: #1F244C;
    border-radius: 24px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.featured-games .item a img {
    width: 30%;
}

.featured-games .item a h2 {
    width: 65%;
}

.ViewBtn {
    padding-top: 60px;
    padding-bottom: 40px;
    text-align: center;
}

.ViewBtn a {
    color: #333;
    font-feature-settings: 'liga' off;
    font-family: Nunito;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
    border-radius: 12px;
    background: #BAE816;
    padding: 12px 40px;
}

.popular-games .category-list,
.popular-games .popular-list {
    width: auto;
}

.popular-games .grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    grid-auto-flow: dense;
    grid-auto-rows: minmax(100px, auto);
width: 100%;
}


.popular-games .category-list {
    grid-column: span 2;
    grid-row: span 5;
}

.popular-games .category-list ul,
.gamemain .rightgmae .category-list ul,
.gamemain .lfetgmae .category-list ul{
    border-radius: 24px;
    background: #1F244C;
    padding: 20px 20px 42px 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.popular-games .category-list ul li,
.gamemain .rightgmae .category-list ul li,
.gamemain .lfetgmae .category-list ul li {
    width: 100%;
    padding: 8px 0;
}

.popular-games .category-list ul li a,
.gamemain .rightgmae .category-list ul li a,
.gamemain .lfetgmae .category-list ul li a {
    color: #FFF;
    font-feature-settings: 'liga' off;
    font-family: Nunito;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
}

.popular-games .category-list ul li .down,
.gamemain .rightgmae .category-list ul li .down,
.gamemain .lfetgmae .category-list ul li .down {
    width: 14px;
    float: right;
    padding: 10px 0;
}

.popular-games .category-list .gamelist,
.gamemain .rightgmae .category-list .gamelist,
.gamemain .lfetgmae .category-list .gamelist {
    display: none;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 0 0;
}

.popular-games .category-list .gamelist li,
.gamemain .rightgmae .category-list .gamelist li,
.gamemain .lfetgmae .category-list .gamelist li{
    width: 100%;
    display: flex;
}

.popular-games .category-list .gamelist li .img,
.gamemain .rightgmae .category-list .gamelist li .img,
.gamemain .lfetgmae .category-list .gamelist li .img{
    width: 30%;
}

.popular-games .category-list .gamelist li .title,
.gamemain .rightgmae .category-list .gamelist li .title,
.gamemain .lfetgmae .category-list .gamelist li .title{
    width: 65%;
}

.popular-games .item {
    grid-column: span 1;
    grid-row: span 1;
display: flex;
}
.popular-games .item a{
    padding: 12px 12px 20px;
border-radius: 24px;
    border: 2px solid #1F244C;
    background: #101529;
    width: 100%;
    height: 100%;
    display: grid;
}

.popular-games .item img {
    margin-bottom: 20px;
}
.popular-games .item h2{
    word-wrap: break-word;
}

/* footer */
footer {
    background: #16192C;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
}

footer .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-logo {
    color: #BAE816;
    font-family: 'Sriracha';
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    width: 30%;
}

.footer-description {
    width: 60%;
    background-color: #b1e811;
    border-radius: 10px;
    padding: 40px 40px;
    color: #333;
    text-align: left;
}

.footer-description h3 {
    color: #333;
    font-family: Nunito;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 36px;
    margin-bottom: 10px;
}

.footer-description p {
    color: #333;
    font-family: 'Nunito';
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
}


footer .bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links {
    color: #fff;
    margin: 20px 10px 0;
}

.footer-link {
    margin: 20px 0 0;
}

.footer-links p {
    display: inline-block;
    color: #FFF;
    font-family: Nunito;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.footer-link p {
    padding: 0 20px;
    text-decoration: underline;
    text-underline-offset: 5px;
    display: inline-block;
    color: #FFF;
    font-family: Nunito;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    border-radius: 50%;
    background-color: #000;
    padding: 10px;
    display: inline-block;
    margin: 0 5px;
}

.footer-social a svg {
    vertical-align: sub;
}


#copy-message {
    position: fixed;
    z-index: 999;
    bottom: 30%;
    width: 60px;
    height: 30px;
    left: 50%;
    transform: translate(-50%, 0);
    background: #fff;
    border: 1px solid #E6E6E6;
    color: #000;
    font-size: 12px;
    text-align: center;
    line-height: 30px;
    border-radius: 20px;
}

.allcategoryname .item {
    width: 20%;
    margin-bottom: 40px;
}

.allcategoryname .item a {
    padding: 12px 18px;
    border-radius: 24px;
    display: block;
    background: #1F244C;
    width: 100%;
    color: #FFF;
    font-family: 'Nunito';
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    white-space: nowrap;
    display: flex;
    align-items: center;
text-transform: capitalize;
}

.allcategoryname .item img {
    max-width: 80px;
    margin-right: 10px;
    width: 35%;
border-radius: 12px;
}

.allgame .name {
    width: fit-content;
    border-radius: 12px;
    background: #BAE816;
    padding: 12px 20px 12px 12px;
    margin: 0 auto 40px;
}

.allgame .name p {
    width: 100%;
    color: #333;
    font-family: 'Nunito';
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    display: inline-flex;
    align-items: center;
text-transform: capitalize;
}

.allgame .name img {
    max-width: 80px;
    margin-right: 12px;
    width: 35%;
border-radius: 12px;
}

.allgame .item {
    flex: 0 0 20%;
    display: flex;
    margin-bottom: 20px;
}

.allgame .item a {
    padding: 12px 12px 20px;
    border-radius: 24px;
    border: 2px solid #1F244C;
    background: #101529;
width:100%
}

.allgame .item img {
    margin-bottom: 20px;
}

h2{    word-break: break-word;}

.gamemain .grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    grid-auto-flow: dense;
    grid-auto-rows: minmax(100px, auto);
}

.gamemain .game-text {
    grid-column: 1/6;
    /* 列 */
    grid-row: span 2;
    /* 行 */
    display: flex;
}

.gamemain .game-text .text {
    width: 70%;
    padding-right: 30px;
}

.gamemain .game-text .text h2 {
    color: #FFF;
    font-family: 'Nunito';
    font-size: 32px;
    font-weight: 700;
    line-height: 48px;
    margin-bottom: 20px;
}

.gamemain .game-text .text p {
    color: #FFF;
    font-family: 'Nunito';
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
    max-height: 146px;
    overflow: auto;
    padding-right: 10px;
}

.gamemain .game-text .text p::-webkit-scrollbar {
    background-color: #1F244C;
    width: 6px;
}

.gamemain .game-text .text p::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: #e9ecef;
}

.gamemain .game-text .img {
    width: 30%;
}

.gamemain .DetailsAd01 {
    grid-column: 1/6;
    grid-row: span 2;
    background: #4B578A;
    text-align: center;
}

.gamemain .DetailsAd01 p,
.gamemain .DetailsAd02 p,
.gamemain .DetailsAd03 p,
.gamemain .DetailsAd04 p,
.gamemain .DetailsAd05 p,
.SearchAd p,
.CategoryAd p{
    color: #FFF;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
}

.gamemain .palygame {
    grid-column: 1/6;
    grid-row: span 5;
    border-radius: 24px;
    border-top: 8px solid #3A438D;
    border-bottom: 8px solid #3A438D;
}

.gamemain .palygame .palymain {
    position: relative;
    border-radius: 24px 24px 0 0;
    height: calc(100% - 80px);
    background: linear-gradient(90deg, #2C3997 0%, #000845 100%);
}

.gamemain .palygame .palybtn img {
    width: 120px;
    height: 120px;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -30%);
    border-radius: 24px;
}
.gamemain .palygame .palymain iframe{
    border-radius: 24px 24px 0 0;
}

.gamemain .palygame .palybtn button {
    position: absolute;
    top: calc(30% + 130px);
    left: 50%;
    transform: translate(-50%, -30%);
    border-radius: 100px;
    background: #BAE816;
    color: #333;
    font-family: 'Nunito';
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding: 10px 40px;
    cursor: pointer;
    width: max-content;
}
.gamemain .palygame .palybottom {
    height: 80px;
    background: #101529;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-radius:  0 0 24px 24px;
}

.gamemain .palygame .botton-love {
    background-image: url(../images/love.svg);
    background-repeat: no-repeat;
    background-position: 10px;
    width: 100px;
    height: 50px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    width: auto;
}

.gamemain .palygame .botton-love.active {
    background-image: url(../images/loveactive.svg);
    background-repeat: no-repeat;
    background-position: 10px;
    width: 100px;
    height: 50px;
    cursor: pointer;
    width: auto;
}
.gamemain .palygame .botton-love span{
    color: #BAE816;
    font-family: 'Nunito';
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    padding-left: 40px;
}
.gamemain .palygame .botton-full{
    background-image: url(../images/full.svg);
    background-repeat: no-repeat;
    background-position: 10px;
    background-size: 27px;
    width: 70px;
    height: 50px;
    cursor: pointer;
    background-color: transparent;
    border: none;
margin-left: 20px;
}
.gamemain .rightgmae {
    grid-column: 6/8;
    grid-row: span 5;
}

.gamemain .lfetgmae{
    grid-column: 1/3;
    grid-row: span 5;
}

.gamemain .DetailsAd02 {
    grid-column: 6/8;
    grid-row: span 6;
    background: #4B578A;
    text-align: center;
}

.gamemain .DetailsAd03 {
    grid-column: 6/8;
    grid-row: span 2;
    background: #4B578A;
    text-align: center;
}
.gamemain .DetailsAd04 {
    grid-column: 1/3;
    grid-row: span 2;
    background: #4B578A;
    text-align: center;
}

.gamemain .gameitem {
    grid-column: span 1;
    grid-row: span 2;
    display: flex;
}
.gamemain .gameitem a{
    padding: 12px 12px 20px;
    border-radius: 24px;
    border: 2px solid #1F244C;
    background: #101529;
width: 100%;
}
.gamemain .gameitem img {
    margin-bottom: 20px;
}
.gamemain .gameitem h2{
    color: #FFF;
    font-family: 'Nunito';
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px;
}

.DetailsAd05{
    margin-top: 60px;
    background: #4B578A;
    text-align: center;
padding-bottom: 10px;
}

.search-results{
    margin-top: 80px;
}

.search-results .item{
    margin-bottom: 20px;
    flex: 0 0 20%;
    display: flex;
    gap: 20px;
}

.search-results .item a{
    padding: 12px 12px 20px;
    border-radius: 24px;
    border: 2px solid #1F244C;
    background: #101529;
width:100%
}

.search-results .item img {
    margin-bottom: 20px;
}

.SearchAd,
.CategoryAd{
    background: #4B578A;
    min-height: 200px;
    text-align: center;
}

@media (max-width:1240px) {
    .allcategoryname .item img {
        max-width: 70px;
        margin-right: 12px;
    }

    .allcategoryname .item a {
        line-height: 70px;
        font-size: 18px;
    }

}

@media (max-width:1200px){
.new-games .list{height: 300px;}
}

@media (max-width:992px) {
    .new-games .list {
        height: 240px;
    }
.popular-games .grid{grid-template-columns: repeat(5, 1fr);}
    section {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .heading {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 30px;
    }

    .h2-28 {
        font-size: 18px;
        line-height: 26px;
    }

    .ViewBtn {
        padding-top: 40px;
        padding-bottom: 30px;
    }

    .footer-logo {
        width: 100%;
        font-size: 28px;
        margin-bottom: 20px;
    }

    .footer-description {
        width: 100%;
        padding: 20px;
    }

    footer {
        padding: 20px;
    }

    footer .top {
        margin-bottom: 20px;
    }

    .footer-description h3 {
        font-size: 20px;
        line-height: 28px;
    }

    .footer-link {
        order: 1;
    }

    .footer-social {
        order: 2;
    }

    .footer-links {
        order: 3;
        width: 100%;
    }

    .footer-link p:first-child {
        border-right: 1px solid #fff;
    }

    .footer-link p,
    .footer-links p {
        font-weight: 500;
    }

    .allcategoryname .item {
        width: 50%;
        margin-bottom: 20px;
    }
    .gamemain .grid{
        grid-template-columns: repeat(6, 1fr);
    }
    .gamemain .game-text,
    .gamemain .DetailsAd01,
    .gamemain .palygame {
        grid-column: 1 / 5;
    }
    .gamemain .DetailsAd02,
    .gamemain .rightgmae,
    .gamemain .DetailsAd03{
        grid-column: 5 / 7;
    }
    .gamemain .game-text .text p{
        max-height: 122px;
        font-size: 18px;
        line-height: 24px;
    }
    .gamemain .game-text .text h2 {
        font-size: 26px;
        line-height: 38px;
    }

}

@media (max-width:768px) {
.new-games .list{height: 220px;}
    .h2-28 {
        font-size: 16px;
        line-height: 20px;
        font-weight: 600;
    }

    .allgame .item img {
        margin-bottom: 12px;
    }

    .allgame .item a {
        padding: 8px 8px 12px;
    }

    .allgame .item h2 {
        -webkit-line-clamp: 3;
    }

    .top-game .left-list .item h2,
    .new-games .list .item h2 {
        -webkit-line-clamp: 3;
    }

    .top-game .left-list .item img {
        margin-bottom: 4px;
    }

    .top-game .left-list .item,
    .top-game .right-list .item {
        margin-bottom: 10px;
    }

    .top-game .left-list {
        width: 65%;
    }

    .top-game .right-list {
        width: 35%;
    }

    .new-games .list {
        gap: 0px;
    }

    .new-games .list .item {
        padding: 8px 8px 12px;
    }

    .new-games .list .item img,
    .popular-games .popular-list .item img {
        margin-bottom: 12px;
    }

    .new-games .list .item {
        flex: 0 0 20%;
    }

    .new-games .list {
        width: calc(100% - 40px);
    }

    #prevBtn,
    #nextBtn {
        width: 40px;
        height: 40px;
        background-size: 20px;
    }

    .featured-games .item {
        margin-bottom: 16px;
    }

    .heading {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 6px;
    }
    .gamemain .rightgmae .category-list .gamelist,
    .gamemain .lfetgmae .category-list .gamelist{
        gap: 10px;
        padding: 10px 0 0;
    }
    .gamemain .rightgmae .category-list ul li,
    .gamemain .lfetgmae .category-list ul li{
        padding: 7px 0;
    }
    .popular-games .category-list ul li a,
    .gamemain .rightgmae .category-list ul li a,
    .gamemain .lfetgmae .category-list ul li a {
        font-size: 18px;
        line-height: 22px;
        font-weight: 600;
    }

    .popular-games .category-list ul,
    .gamemain .rightgmae .category-list ul,
    .gamemain .lfetgmae .category-list ul {
        padding: 20px 20px 42px 20px;
        gap: 16px;
    }

    .popular-games .grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .allcategoryname .item a {
        padding: 8px 12px;
    }

    .allgame .name img {
        width: 70px;
    }

    .allgame .name p {
        font-size: 18px;
    }

    .allgame .name {
        padding: 8px 12px;
        margin: 0 auto 20px;
    }

    .allgame .item {
        flex: 0 0 25%;
        padding: 0 5px;
        margin-bottom: 12px;
    }
    .gamemain .grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }
    .gamemain .game-text, .gamemain .DetailsAd01, .gamemain .palygame {
        grid-column: span 5;
    }
    .gamemain .DetailsAd02, .gamemain .rightgmae, .gamemain .DetailsAd03{
        grid-column: span 2;
    }
    .gamemain .gameitem img{
        margin-bottom: 8px;
    }
    .gamemain .gameitem a {
        padding: 8px 8px 12px;
    }
.search-results .item{    flex: 0 0 25%;}
}
@media (max-width:600px) {
    .new-games .list {
        height: 190px;
    }
    .gamemain .grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .gamemain .game-text, .gamemain .DetailsAd01, .gamemain .palygame {
        grid-column: span 4;
    }
    .gamemain .game-text .text h2 {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 12px;
    }
    .gamemain .game-text .text p {
        max-height: 90px;
        font-size: 16px;
        line-height: 22px;
    }
    .gamemain .rightgmae,
    .gamemain .lfetgmae{
        grid-row: span 2;
    }
    .gamemain .palygame{
        grid-row: span 4;
    }
    .gamemain .rightgmae .category-list ul,
    .gamemain .lfetgmae .category-list ul{
        gap: 0;
        padding: 8px 20px 8px 20px;
    }
    .gamemain .palygame .palybtn button{
        font-size: 22px;
    }
    .gamemain .palygame .botton-love span{
        font-size: 18px;
    }
    .gamemain .rightgmae .category-list .gamelist,
    .gamemain .lfetgmae .category-list .gamelist{
        gap: 0;
    }
    .gamemain .gameitem img {
        margin-bottom: 4px;
    }
    .gamemain .game-text{
        grid-row: span 1;
    }
    .DetailsAd05 {
        margin-top: 40px;
    }
    footer{
        margin-top: 20px;
    }
    .footer-link,
    .footer-social{
        width: 100%;
    }
    .gamemain .gameitem{
        grid-row: span 1;
    }
}

@media (max-width:550px) {
.new-games .list{height: 190px;}
  .new-games .list .item {
        padding: 0;
    }
    .allgame .item {
        flex: 0 0 33.33%;
    }

    .allgame .name img {
        width: 50px;
    }

    .allgame .name p {
        font-size: 14px;
    }

    .allcategoryname .item {
        margin-bottom: 12px;
    }

    .allcategoryname .item img {
        max-width: 50px;
        margin-right: 8px;
    }

    .allcategoryname .item a {
        line-height: 50px;
        font-size: 14px;
    }

    .h2-28 {
        font-size: 12px;
        line-height: 16px;
        font-weight: 600;
    }

    .top-game .left-list {
        width: 100%;
    }

    .top-game .right-list {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-content: center;
    }

    .top-game .right-list .item {
        flex: 0 0 50%;
    }

    .top-game .right-list .item .title {
        padding-left: 0
    }

    section {
        padding-top: 0px;
        padding-bottom: 0px;
    }

    .heading {
        font-size: 18px;
        line-height: 24px;
        border-left: 5px solid #BAE816;
        padding-left: 12px;
    }

    .new-games .list .item {
        flex: 0 0 calc(33% - 4px);
    }

    .new-games .list {
        gap: 8px;
    }

    #prevBtn,
    #nextBtn {
        top: 43%;
        width: 30px;
        height: 30px;
    }

    .new-games .list {
        width: calc(100% - 31px);
    }

    .featured-games .item {
        flex: 0 0 50%;
        margin-bottom: 12px;
    }
    .featured-games .item a{
        padding: 8px;
    }

    .ViewBtn {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .ViewBtn a {
        font-size: 14px;
        line-height: 20px;
        padding: 8px 24px;
    }

    .popular-games .item {
        padding: 2px;
    }

    .popular-games .category-list ul{
        padding: 8px 8px 16px 8px;
        gap: 12px;
    }

    .popular-games .category-list ul li a ,
    .gamemain .rightgmae .category-list  ul li a,
    .gamemain .lfetgmae .category-list ul li a {
        font-size: 14px;
        line-height: 16px;
    }

    .popular-games .category-list ul li .down,
    .gamemain .rightgmae .category-list ul li .down,
    .gamemain .lfetgmae .category-list ul li .down {
        padding: 5px 0;
    }

    .popular-games .category-list ul li,
    .gamemain .rightgmae .category-list ul li,
    .gamemain .lfetgmae .category-list ul li {
        padding: 4px 0;
    }
    .gamemain .rightgmae .category-list ul li,
    .gamemain .lfetgmae .category-list ul li{
        padding: 4px 0 6px;
    }

    .back-to-top {
        right: 40px;
    }

    .back-to-top img {
        width: 30px;
    }

    .footer-logo {
        font-size: 22px;
        line-height: 1;
    }

    footer {
        padding: 20px 0;
    }

    .footer-description h3 {
        font-size: 14px;
        line-height: 18px;
        margin-bottom: 8px;
    }

    .footer-description p,
    .footer-link p,
    .footer-links p {
        font-size: 12px;
        line-height: 16px;
    }

    .footer-link p {
        padding: 0 5px;
    }

    .footer-social a {
        padding: 5px;
        margin: 0;
    }

    footer .top {
        margin-bottom: 0;
    }

    .footer-link,
    .footer-links,
    .footer-social {
        margin: 15px 0 0;
    }

    .popular-games .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }
.popular-games .item a {
    padding: 8px 8px 10px;
}

    .popular-games .item img {
        margin-bottom: 8px;
    }
    .gamemain .DetailsAd02{
        grid-row: span 3
    }
    .gamemain .rightgmae .category-list ul,
    .gamemain .lfetgmae .category-list ul{
        gap: 4px;
        padding: 8px 12px 8px 12px;
    }
    .gamemain .gameitem a {
        padding: 4px 8px 8px;
    }
    .row{
        margin-right: calc(-.2* var(--bs-gutter-x));
        margin-left: calc(-.2* var(--bs-gutter-x));
    }
    .row>* {
        padding-right: calc(var(--bs-gutter-x)* .2);
        padding-left: calc(var(--bs-gutter-x)* .2);
    }
    .search-results .item a {
        padding: 8px 8px 12px;
    }
    .search-results .item{
        flex: 0 0 33.3%;
    }
    .search-results .item img {
        margin-bottom: 8px;
    }
    .search-results {
        margin-top: 60px;
    }
}

@media (max-width:450px) {
.new-games .list{height: 180px;}
    .gamemain .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .gamemain .game-text, .gamemain .DetailsAd01, .gamemain .palygame {
        grid-column: span 3;
    }
    .gamemain .game-text .text {
        padding-right: 18px;
    }
    .gamemain .game-text .text p {
        max-height: 70px;
    }
    .gamemain .game-text .text p::-webkit-scrollbar{
        width: 4px;
    }
    .gamemain .palygame .botton-full{
        width: 60px;
        background-size: 20px;
    }
    .gamemain .palygame .botton-love,
    .gamemain .palygame .botton-love.active{
        background-size: 26px;
    }
    .gamemain .palygame .palybottom {
        height: 60px;
    }
    .gamemain .palygame {
        grid-row: span 3;
    }
    .gamemain .palygame .palymain{
        height: calc(100% - 60px);
    }
    .gamemain .palygame .palybtn img {
        width: 100px;
        height: 100px;
        top: 25%;
        left: 50%;
        transform: translate(-50%, -25%);
        border-radius: 24px;
    }
    .gamemain .palygame .palybtn button{
        font-size: 18px;
        top: calc(30% + 90px);
    }
    .gamemain .gameitem h2{
        font-size: 14px;    line-height: 18px;
    }
    .gamemain .palygame .botton-love span {
        font-size: 16px;
    }
}

@media (max-width:420px) {
.new-games .list{height: 160px;}
.popular-games .grid {
        grid-template-columns: repeat(3, 1fr);
}
    .footer-link,
    .footer-links,
    .footer-social {
        width: 100%;
    }
.allcategoryname .item img{    width: 30%;}
    .allcategoryname .item a {
        line-height: normal;
        font-size: 12px;
    }
 
    .gamemain .game-text .text h2 {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 8px;
    }
    .gamemain .game-text .text p{
        font-size: 14px;
        line-height: 17px;
        max-height: 53px;
    }
.popular-games .item a {
    padding: 8px 8px 10px;}
.popular-games .category-list .gamelist,
.popular-games .grid{
    gap: 0px;}
}
@media (max-width:320px) {
  .allcategoryname .item{width: 100%;}
.top-game .left-list .item {
    width: 33.3333%;}

}


