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

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

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

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

body {
    font-family: 'Kanit', sans-serif;
    margin: 0;
    background: #FDC600;
}


.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;
}

a {
    text-decoration: none;
    margin: 0;
    padding: 0;
}

a,
p,
span,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Kanit', sans-serif;
    font-style: normal;
    margin: 0;
    padding: 0;
}

p {
    font-weight: 500;
}
@media (max-width: 768px) {
.DetailBodyTopAd03{width: 100vw;
    margin-left: -10px;}
}

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

.t_12 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.t_13 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.t_14 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

header {
    background: #FFDE3C;
    box-shadow: 0px 2px 8px 0px rgba(175, 154, 52, 0.40);
    padding: 10px 0;
}

header nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
}

header nav .logo a {
    color: #7030EF;
    font-family: "Squada One";
    font-size: 40px;
    font-weight: 400;
    line-height: 60px;
    text-decoration: none;
}

header nav .menu {
    display: flex;
    gap: 150px;
    border-radius: 100px;
    background: #7030EF;
    padding: 7px 60px 9px 60px;
    border-bottom: 5px solid #591ECD;
}

header nav .menu a {
    color: #FFF;
    font-family: Kanit;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    display: flex;
    gap: 8px;
}

section {
    padding-top: 32px;
}

.heading {
    color: #000;
    font-family: Kanit;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
    margin-bottom: 16px;
}

.heading img {
    width: 20px;
    margin-right: 4px;
    vertical-align: middle;
}

.grid {
    display: grid;
}


.games-1 .grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    align-items: center;
}

.games-1 .left-grid {
    grid-row: span 1;
    grid-column: span 2;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.games-1 .right-grid {
    grid-row: span 1;
    grid-column: span 3;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    border-radius: 16px;
    background: #FFDE3C;
    padding: 32px;
}

.games-1 .left-grid a,
.games-1 .right-grid a,
.games-3 .grid a,
.games-4 .grid a {
    display: block;
    grid-row: span 1;
    grid-column: span 1;
    position: relative;
}

.games-3 .grid a::after {
    content: '';
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    border-radius: 16px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 40%, rgba(0, 0, 0, 0.60) 100%);
}

.games-1 .left-grid a img,
.games-1 .right-grid a img,
.games-3 .grid a img,
.games-4 .grid a img {
    width: 100%;
    background-color: #d9d9d9;
    border-radius: 16px;
}

.games-1 .left-grid a {
    height: max-content;
}

.games-1 .left-grid a img {
    aspect-ratio: 1/0.8;
    display: block;
    object-fit: cover;
}

.games-1 .right-grid a img,
.games-4 .grid a img {
    aspect-ratio: 1/1;
    display: block;
    object-fit: cover;
}

.games-3 .grid a img {
    aspect-ratio: 1/0.6;
    display: block;
    object-fit: cover;
}

.games-1 .left-grid a p,
.games-1 .right-grid a p,
.games-3 .grid a p {
    position: absolute;
    bottom: 12px;
    display: none;
    padding: 12px 12px 0;
    border-radius: 0 0px 16px 16px;
    color: #fff;
    width: 100%;
    font-size: 18px;
    line-height: 22px;
    z-index: 9;
}

.games-3 .grid a span {
    position: absolute;
    bottom: 12px;
    left: 16px;
    background: #7030EF;
    border-radius: 100px;
    z-index: 99;
    color: #fff;
    padding: 4px 16px;
    font-size: 14px;
    line-height: 18px;
    text-transform: capitalize;
    font-weight: 500;
    display: none;
}

.games-1 a:hover p {
    display: -webkit-box;
}

.games-1 a:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    border-radius: 16px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 40%, rgba(0, 0, 0, 0.60) 100%);
}

.games-2 .grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 32px;
    padding: 32px;
    border-radius: 16px;
    background: #FFA100;
}

.games-2 .grid img {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #d9d9d9;
    border-radius: 16px;
}

.games-2 .grid p,
.games-4 .grid a p {
    color: #000;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    margin-top: 4px;
}

.games-3 .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.games-3 .grid a p {
    display: -webkit-box;
}

.games-3 .grid a:hover span {
    display: block;
}

.games-dt .dt-right a:hover p,
.games-3 .grid a:hover p {
    bottom: 42px;
}

.games-4 .grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 32px;
    padding: 32px;
    border-radius: 16px;
    background: #FFDE3C;
}

.games-2 .grid a:hover p,
.games-4 .grid a:hover p {
    color: transparent;
}

.games-2 .grid a:hover p,
.games-4 .grid a:hover p {
    border-radius: 10px;
    background: #7030EF;
    height: 40px;
}

.games-2 .grid a:hover p::before,
.games-4 .grid a:hover p::before {
    content: "Play Now";
    color: #000;
    text-align: center;
    background-image: url(../images/play.svg);
    background-repeat: no-repeat;
    background-position: 20% center;
    background-size: 12px;
    width: 100%;
    display: flex;
    margin: auto;
    padding: 10px 0px 10px 30%;
    color: #fff;
    font-size: 16px;
}

.games-4 {
    position: relative;
}

.games-4 .grid {
    padding-bottom: 100px;
}

.games-4 #pageInfo {
    display: none;
}

.games-4 .pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 0);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 60px;
    width: max-content;
}

.games-4 .pagination .page {
    display: flex;
    align-items: stretch;
}

.games-4 .pagination #pageButtons button,
.games-4 .pagination #nextPage,
.games-4 .pagination #prevPage {
    border: none;
    border-radius: 4px;
    background: #FFA100;
    color: #fff;
    font-size: 16px;
    padding: 9px 15px;
    margin-right: 6px;
    margin-left: 6px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    line-height: 20px;
    font-family: Kanit;
}

.games-4 .pagination #nextPage {
    background-image: url(../images/right.svg);
    background-repeat: no-repeat;
    background-position: center;
    padding: 9px 20px;
}

.games-4 .pagination #prevPage {
    background-image: url(../images/left.svg);
    background-repeat: no-repeat;
    background-position: center;
    padding: 9px 20px;
}


.games-4 .pagination #pageButtons button:hover {
    background: #7030EF;
    color: #fff;
}

.games-4 .pagination #nextPage:hover {
    background: #7030EF;
    color: #fff;
    background-image: url(../images/right.svg);
    background-repeat: no-repeat;
    background-position: center;
    padding: 9px 20px;
}

.games-4 .pagination #prevPage:hover {
    background: #7030EF;
    color: #fff;
    background-image: url(../images/left.svg);
    background-repeat: no-repeat;
    background-position: center;
    padding: 9px 20px;
}

.games-4 .pagination #pageButtons button.active {
    background: #7030EF;
    color: #fff;
}

.desc h2 {
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    padding-bottom: 8px;
    padding-top: 8px;
}

.desc p {
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    padding-bottom: 8px;
}

.desc {
    padding-bottom: 100px;
}


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


.back-to-top {
    border: none;
    position: fixed;
    bottom: 160px;
    right: 65px;
    z-index: 99;
    cursor: pointer;
    display: none;
    border-radius: 50%;
    background-color: transparent;
}

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

footer {
    background: #FFDE3C;
    padding: 10px 0;
}

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

footer .share {
    display: flex;
    gap: 20px;
}

footer .share a {
    display: flex;
    background-color: #7030EF;
    padding: 6px;
    border-radius: 50%;
}

footer .ft {
    display: flex;
    gap: 30px;
}

footer .ft a {
    color: #000;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
}

.allcats .flex {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.allcats .flex .cats-item {
    border-radius: 16px;
    background: linear-gradient(90deg, #FFDD34 0%, #FFBF00 100%);
    border-bottom: 4px solid #FFAA00;
    padding: 16px 18px 16px 30px;
    position: relative;
    width: calc(25% - 30px);
}

.allcats .flex .cats-item a {
    display: flex;
    color: #000;
    font-size: 20px;
    line-height: 24px;
    z-index: 99;
    position: relative;
}

.allcats .flex .cats-item a p {
    text-align: center;
    width: 100%;
    text-transform: capitalize;
    font-size: 18px;
    line-height: 20px;
}

.allcats .flex .cats-item a img:nth-child(1) {
    width: 24px;
    position: absolute;
    left: 0;
}

.allcats .flex .cats-item:hover a {
    color: #7030EF;
    font-weight: 400;
    text-decoration: underline;
}

.allcats .flex .cats-item::after {
    content: '';
    position: absolute;
    display: block;
    top: 0;
    right: 0;
    background-image: url(../images/cats-bg.svg);
    background-position: right center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 100%;
    height: 100%;
}

.search-main .search {
    width: 100%;
    position: relative;
    margin-bottom: 20px;
}

.search-main .search input {
    border-radius: 100px;
    background: #FFDE3C;
    width: 100%;
    color: #000;
    font-size: 20px;
    line-height: 28px;
    padding: 8px 60px;
    border: none;
    outline: none;
    font-family: Kanit;
}

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

.search-main .search input::placeholder {
    color: #000;
    font-family: Kanit;
    font-size: 20px;
    line-height: 28px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.search-main .search .search_btn {
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 100px;
    background: #7030EF;
    border-bottom: 5px solid #591ECD;
    width: 150px;
    height: 100%;
}

.search-main .search .search_btn a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #FFF;
    font-size: 20px;
    line-height: 43px;
}

.games-dt .flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
}

.games-dt .dt-left {
    width: 15%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.games-dt .dt-main {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.games-dt .dt-right {
    width: 25%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.games-dt .dt-left a,
.games-dt .dt-right a {
    display: block;
    position: relative;
}

.games-dt .dt-left a img,
.games-dt .dt-right a img,
.game-desc #content-2 a img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background-color: #d9d9d9;
    border-radius: 16px;
    display: block;
}

.games-dt .dt-right a img {
    aspect-ratio: 1/0.6;
}

.games-dt .dt-left a p,
.games-dt .dt-right a p {
    position: absolute;
    bottom: 12px;
    display: none;
    padding: 12px 12px 0;
    border-radius: 0 0px 16px 16px;
    color: #fff;
    width: 100%;
    font-size: 18px;
    line-height: 24px;
    z-index: 9;
}

.games-dt .dt-left a:hover p {
    display: -webkit-box;
}

.games-dt .dt-right a p {
    display: -webkit-box;
}

.games-dt .dt-left a:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    border-radius: 16px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 40%, rgba(0, 0, 0, 0.60) 100%);
}

.games-dt .dt-right a::after {
    content: '';
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    border-radius: 16px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 40%, rgba(0, 0, 0, 0.60) 100%);
}

.dt-main .palygame .palymain {
    display: flex;
    align-items: center;
    justify-content: center;
}

#gameIframe {
    width: 100%;
    height: 100%;
    max-width: 50%
}

.dt-main .palygame {
    border-radius: 16px;
    border-bottom: 8px solid #FFA100;
    border-top: 8px solid #FFA100;
    overflow: hidden;
    background: #FDC600;
}

.dt-main .palygame .palymain {
    position: relative;
    background: #FFDE3C;
    width: 100%;
    aspect-ratio: 1/0.83;
    height: calc(100% - 60px);
}

.dt-main .palygame .palybtn .game-cover {
    width: 200px;
    height: 200px;
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -25%);
    border-radius: 16px;
    border: 4px solid #7030EF;
    background: #C4C4C4;
}

.dt-main .palygame .palybtn button {
    position: absolute;
    top: calc(25% + 180px);
    left: 50%;
    transform: translate(-50%, -25%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: Kanit;
    line-height: 20px;
    padding: 10px 40px;
    width: max-content;
    border-radius: 100px;
    background: #7030EF;
    cursor: pointer;
    border: none;
}

.dt-main .palygame .palybtn button img {
    vertical-align: middle;
    margin-right: 8px;
    width: 12px;
}

.dt-main .palygame .palybottom {
    height: 50px;
    display: flex;
    align-items: center;
    border-radius: 0 0 16px 16px;
    padding: 0 30px;
}


.dt-main .palygame .botton-love {
    background-image: url(../images/like.svg);
    background-repeat: no-repeat;
    background-position: 10px;
    background-size: 27px;
    height: 50px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    width: auto;
    margin-left: auto;
    margin-right: 20px;
}

.dt-main .palygame .botton-love.active {
    background-image: url(../images/likeactive.svg);
    background-repeat: no-repeat;
    background-size: 27px;
    background-position: 10px;
    height: 50px;
    cursor: pointer;
    width: auto;
    margin-left: auto;
}

.dt-main .palygame .botton-love span {
    color: #7030EF;
    font-size: 18px;
    font-family: Kanit;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    padding-left: 40px;
}

.dt-main .palygame .botton-full {
    background-image: url(../images/full.svg);
    background-repeat: no-repeat;
    background-position: 10px;
    background-size: 24px;
    flex: 0 0 60px;
    height: 50px;
    cursor: pointer;
    background-color: transparent;
    border: none;
}

.game-desc {
    border-radius: 16px;
    background: #FFDD34;
}

.game-desc .dt-header {
    display: flex;
    text-align: center;
}

.game-desc .dt-header p {
    color: #000;
    font-size: 16px;
    line-height: 24px;
    width: 50%;
    padding: 16px 0;
    cursor: pointer;
}

.game-desc .dt-header p.active {
    border-radius: 8px;
    background: #C89215;
    color: #FFF;
}

.game-desc #content {
    padding: 16px 32px;
}

.game-desc #content h2 {
    font-size: 20px;
    line-height: 24px;
    font-weight: 500;
    margin-bottom: 8px;
}

.game-desc #content-1 p {
    height: 120px;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 8px;

}

.game-desc #content-1 p::-webkit-scrollbar {
    background-color: #E7E7E7;
    width: 4px;
}

.game-desc #content-1 p::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: #C89215
}

.game-desc #content span {
    text-transform: capitalize;
    border-radius: 100px;
    background: #C89215;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    color: #FFF;
    width: max-content;
}

.game-desc #content-2 {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(4, 1fr);
}

.game-desc #content-2 a {
    display: block;
    grid-row: span 1;
    grid-column: span 1;
    position: relative;
}

.game-desc #content-2 a p {
    color: #000;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    margin-top: 4px;
}

@media (max-width:1200px) {
    header nav .menu {
        gap: 50px;
    }

    .games-1 .grid,
    .games-1 .left-grid,
    .games-1 .right-grid,
    .games-2 .grid,
    .games-3 .grid,
    .games-4 .grid,
    .games-dt .flex,
    .games-dt .dt-left,
    .games-dt .dt-right,
    .games-dt .dt-main,
    .game-desc #content-2 {
        gap: 20px;
    }

    .games-1 .right-grid,
    .games-2 .grid,
    .games-4 .grid {
        padding: 20px;
    }

    .games-dt .dt-right a img,
    .games-3 .grid a img {
        aspect-ratio: 1/0.7;
    }

    .games-4 .grid {
        padding-bottom: 100px;
    }

    .games-2 .grid a:hover p::before,
    .games-4 .grid a:hover p::before {
        font-size: 14px;
    }

    .allcats .flex .cats-item {
        width: calc(33.33% - 20px);
    }

    .dt-main .palygame .palybottom {
        padding: 0 16px;
    }

    .dt-main .palygame .botton-love {
        margin-right: 12px;
    }

    .game-desc #content {
        padding: 16px;
    }
}

@media (max-width:992px) {
header nav .logo a{
font-size: 30px;
    font-weight: 400;
    line-height: 40px;
}
header nav .menu {
    padding: 7px 40px 7px 40px;
}

header nav .menu a{
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
}

    .games-2 .grid a:hover p::before,
    .games-4 .grid a:hover p::before {
        font-size: 14px;
        background-size: 10px;
        background-position: 18% center;
    }

    footer .container {
        flex-direction: column;
        gap: 20px;
    }

    .allcats .flex .cats-item {
        padding: 14px 18px 14px 18px;
    }

    .allcats .flex .cats-item a p,
    .games-dt .dt-left a p,
    .games-dt .dt-right a p,
    .game-desc #content-2 a p {
        font-size: 16px;
    }
}

@media (max-width:800px) {

    .games-2 .grid a:hover p::before,
    .games-4 .grid a:hover p::before {
        background-size: 8px;
        background-position: 15% center;
        padding: 10px 0px 10px 26%;
    }

    .allcats .flex .cats-item {
        padding: 14px 18px 14px 12px;
    }
}

@media (max-width:768px) {
    header nav .menu a span {
        display: none;
    }

    header nav .logo a {
                font-size: 26px;
        line-height: 30px;
    }
header nav .menu a img{
    width: 20px;
}
    header nav .menu {
        padding: 7px 40px 9px 40px;
    }

    section {
        padding-top: 24px;
    }

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

    .games-1 .left-grid,
    .games-1 .right-grid {
        grid-row: span 1;
        grid-column: span 1;
    }

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

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

    .games-1 .left-grid a img {
        aspect-ratio: 1/0.7;
        width: 100%;
        height: auto;
    }

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

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

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

    .games-4 .pagination #pageButtons button,
    .games-4 .pagination #nextPage,
    .games-4 .pagination #prevPage {
        padding: 6px 12px;
        font-size: 16px;
    }

    .games-4 .pagination #prevPage,
    .games-4 .pagination #nextPage {
        padding: 6px 15px;
    }

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

    .back-to-top {
        bottom: 140px;
        right: 50px;
    }

    .games-2 .grid a:hover p::before,
    .games-4 .grid a:hover p::before {
        background-position: 25% center;
        padding: 10px 0px 10px 35%;
    }

    .allcats .flex {
        display: flex;
        gap: 24px;
    }

    .allcats .flex .cats-item {
        width: calc(50% - 12px);
        padding: 14px 20px 14px 24px;
    }

    .games-dt .flex {
        flex-direction: column;
    }

    .games-dt .dt-left,
    .games-dt .dt-main,
    .games-dt .dt-right {
        width: 100%;
    }

    .games-dt .dt-main {
        order: -1;
    }

    .games-dt .dt-left,
    .games-dt .dt-right {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .games-dt .dt-left a {
        width: calc(25% - 15px);
    }

    .games-dt .dt-right a {
        width: calc(50% - 10px);
    }

    .games-dt .dt-right a:hover p,
    .games-3 .grid a:hover p {
        bottom: 22px;
    }

}

@media (max-width:550px) {
    header nav .logo a {
        font-size: 24px;
        line-height: 26px;
    }

    header nav .menu a img {
        width: 16px;
        height: 16px;
    }

    header nav .menu {
        gap: 32px;
    }

    header nav .menu {
        padding: 6px 22px 6px 22px;
    }

    header {
        padding: 8px 0;
    }

    section {
        padding-top: 10px;
    }

    .heading {
        font-size: 20px;
        line-height: 26px;
        margin-bottom: 12px;
    }

    .games-1 .grid,
    .games-1 .left-grid,
    .games-1 .right-grid,
    .games-2 .grid,
    .games-3 .grid,
    .games-4 .grid,
    .game-desc #content-2,
    .games-dt .dt-right,
    .games-dt .dt-left {
        gap: 12px;
    }

    .games-1 .right-grid,
    .games-2 .grid,
    .games-4 .grid {
        padding: 12px;
    }

    .games-1 .right-grid,
    .games-2 .grid,
    .games-4 .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .games-1 .left-grid a p,
    .games-1 .right-grid a p,
    .games-3 .grid a p,
    .games-2 .grid p,
    .games-4 .grid a p {
        font-size: 14px;
        line-height: 18px;
    }

    .games-1 .left-grid a p,
    .games-1 .right-grid a p,
    .games-3 .grid a p {
        bottom: 8px;
        padding: 8px 8px 0;
    }

    .games-2 .grid a:hover p,
    .games-4 .grid a:hover p {
        height: 36px;
    }

    .games-2 .grid a:hover p::before,
    .games-4 .grid a:hover p::before {
        background-position: 20% center;
        padding: 10px 0px 10px 30%;
    }

    p {
        font-weight: 400;
    }

    .games-4 .grid {
        padding-bottom: 100px;
    }

    .games-3 .grid a span {
        bottom: 8px;
        left: 8px;
        font-size: 12px;
        line-height: 16px;
        padding: 2px 16px;
    }

    .games-3 .grid a:hover p {
        bottom: 32px;
    }

    .desc h2 {
        font-size: 16px;
        font-weight: 500;
        line-height: 22px;
    }

    .desc p {
        font-size: 14px;
        line-height: 20px;
    }

    .desc {
        padding-bottom: 50px;
    }

    footer .container {
        gap: 12px;
        text-align: center;
    }

    .games-4 .pagination #pageButtons button,
    .games-4 .pagination #nextPage,
    .games-4 .pagination #prevPage,
    .games-4 .pagination #nextPage:hover,
    .games-4 .pagination #prevPage:hover,
    .games-dt .dt-right a p,
    .games-dt .dt-left a p {
        font-size: 12px;
        padding: 4px 10px;
        margin-right: 10px;
        line-height: 18px;
    }

    .allcats .flex .cats-item {
        padding: 10px 12px 10px 10px;
        width: calc(50% - 8px);
    }

    .allcats .flex {
        display: flex;
        gap: 16px;
    }

    .allcats .flex .cats-item a p {
        font-size: 14px;
    }

    .allcats .flex .cats-item a img:nth-child(1) {
        width: 20px;
    }

    .search-main .search input {
        font-size: 16px;
        line-height: 24px;
        padding: 6px 50px;

    }

    .search-main .search .searchstar {
        position: absolute;
        top: 50%;
        left: 17px;
    }

    .search-main .search .search_btn a {
        font-size: 16px;
        line-height: 34px;
    }

    .search-main .search .search_btn {
        width: 110px;
    }

    #gameIframe {
        max-width: 100%;
    }

    .dt-main .palygame .palymain {
        min-height: 400px;
    }

    .dt-main .palygame .palybtn .game-cover {
        width: 120px;
        height: 120px;
        top: 35%;
        transform: translate(-50%, -35%);
    }

    .dt-main .palygame .palybtn button {
        top: calc(35% + 110px);
        font-size: 14px;
        font-weight: 400;
        padding: 4px 20px;
        transform: translate(-50%, -35%);
    }

    .dt-main .palygame .palybtn button img {
        vertical-align: middle;
        margin-right: 8px;
        width: 10px;
    }

    .dt-main .palygame .botton-full,
    .dt-main .palygame .botton-love.active,
    .dt-main .palygame .botton-love {
        background-size: 20px;
    }

    .dt-main .palygame .botton-love span {
        padding-left: 30px;
    }

    .dt-main .palygame .botton-love {
        margin-right: 5px;
    }

    .dt-main .palygame .botton-full {
        flex: 0 0 30px;
        height: 30px;
    }

    .game-desc .dt-header p {
        padding: 6px 0;
    }

    .game-desc #content-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-dt .dt-left a {
        width: calc(33.33% - 8px);
    }

    .games-dt .dt-right a {
        width: calc(50% - 6px);
    }

    .games-dt .dt-left a p,
    .games-dt .dt-right a p {
        bottom: 6px;
    }

    .dt-main .palygame .palybottom {
        padding: 0 8px;
    }


}

@media (max-width:360px) {
    .allcats .flex .cats-item {
        padding: 10px 12px 10px 10px;
        width: 100%;
    }

    .games-2 .grid a:hover p::before,
    .games-4 .grid a:hover p::before {
        background-position: 12% center;
        padding: 10px 0px 10px 24%;
        font-size: 12px;
    }

    header nav .menu {
        padding: 6px 16px 6px 16px;
    }

    header nav .menu {
        gap: 22px;
    }
}

.h5game {
    display: none;
}

@media (max-width:768px) {

.container{padding: 0 10px;}

    .pcgame,
    .games-dt .dt-left,
    .games-dt .dt-right {
        display: none !important;
    }
.games-dt .dt-main{gap: 10px;}

    .h5game {
        display: block;
        border-radius: 12px;
        position: relative;
        padding: 20px;
        border-bottom: 8px solid #FFDE3C;
        border-top: 8px solid #FFDE3C;
    }

    .h5game::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.16);
        backdrop-filter: blur(16px);
        z-index: 0;
        border-radius: 12px;
    }


    .h5-play-main .top {
        display: flex;
        align-items: center;
        margin-bottom: 16px;
        z-index: 99;
        position: relative;

    }

    .h5-play-main .top img {
        display: block;
        width: 100px;
        height: 100px;
        margin-right: 20px;
        border-radius: 12px;
        border: 2px solid #7030EF;
        background: #C4C4C4;
    }

    .h5-play-main .top h2 {
        font-size: 16px;
        font-weight: 700;
        line-height: 24px;
        margin-bottom: 20px;
        color: #FFF;
    }

    .h5-play-main .top h2:hover {
        color: #fff !important;
        text-decoration-color: #fff;
    }

    .h5-play-main .top .text {
        width: 100%;
    }

    .h5-play-main .top .catename {
        font-size: 12px;
        font-weight: 600;
        line-height: 14px;
        color: #000;
        border-radius: 63.766px;
        background: #FFDE3C;
        padding: 4px 12px;
    }

    .h5-play-main .top .love {
        margin-left: auto;
        float: right;
    }

    /* .h5-play-main .top .botton-love {
        background-image: url(../images/like.svg);
        background-repeat: no-repeat;
        background-position: 10px;
        background-size: 27px;
        height: 50px;
        cursor: pointer;
        background-color: transparent;
        border: none;
        width: auto;
        margin-left: auto;
        margin-right: 20px;
    }
    .h5-play-main .top .botton-love span {
        color: #7030EF;
        font-size: 18px;
        font-family: Kanit;
        font-style: normal;
        font-weight: 600;
        line-height: 20px;
        padding-left: 40px;
    } */
    .h5-play-main .btn {
        z-index: 99;
        position: relative;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #fff;
        padding: 8px;
        font-size: 18px;
        font-weight: 600;
        line-height: 24px;
        border-radius: 100px;
        background: #7030EF;
        border-bottom: 8px solid #591ECD;

    }

    .h5-play-main .btn img {
        background: transparent;
        width: 18px;
        height: 18px;
        border-radius: 0;
        object-fit: contain;
    }

}