.owl-items {
    max-width: 220px;
    max-height: 220px;

}

.owl-items img {
    border-radius: 25px !important;
    animation: glow 2s infinite ease-in-out;
}

* {
    font-family: "Anuphan", sans-serif;
}
.img-game {
    margin-top: 1rem;
    width: 32px;
    border-radius: 0.5vh;
}

.des-game {
    font-size: 11px;
    color: #7d7d7d;
    margin-left: 2.5rem;
    margin-top: -1.2rem;
}

.game-dd {
    padding: 0.1rem 0.5rem;
    font-size: 10px;
    background-color: #ffb5b5;
    color: #ea5858;
    border-radius: 5px;
}
/* Custom */
.nav-link.active, .nav-link:hover{
    color: #D7B364 !important;
}
.dropdown-toggle::after{
    display: none !important;
}
.card-dz {
    background: linear-gradient(270deg, rgba(254, 221, 118, 0.15) 0%, rgba(215, 179, 100, 0.15) 100%);
    border-radius: 1vh;
    display: flex;
    gap: 15px;
}
.card-dz:hover{
    border: 1px solid #FFE38C;
}
.text-dz, .text-dz a:hover{
    text-decoration: none;
    color: #D7B364 !important;
    margin:0 !important;
}
.text-dz a{
    color:white;
}
.game-btn{
    text-decoration : none;
    border-radius: 1vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap:5px;
    height: 40px;
    border: 1px solid #D7B364;
    color:#D7B364;
}
.game-btn:hover {
    background: linear-gradient(270deg, #FFE38C 0%, #D7B364 100%);
}
.btnall{
    background: linear-gradient(270deg, #FFE38C 0%, #D7B364 100%);
    text-decoration : none;
    border-radius: 1vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap:5px;
    height: 40px;
}
.card-game{
    background: #1F1F1F;
    border-radius: 12px;
    width: 168px;
    height: 270px;
    max-height: 270px;
    position: relative;
}
.card-game:hover{
    border: 1px solid #D7B364;
}
.font-game {
    text-decoration : none;
    color:#ffffff;
}
.font-game:hover{
    color:#D7B364;
}
.card-img {
    width: 168px;
    height: 168px;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.card-img img{
    width: 168px;
    height: 168px;
    object-fit:cover;
}
.card-game p{
    white-space: nowrap;    
    overflow: hidden;         
    text-overflow: ellipsis;  
    max-width: 200px;
}

.text-gamespan {
    float: right;
    margin-top: 1rem;
}

.card-gameindex {
    text-decoration: none;
}
.img_game {
    width: 65px;
    border-radius: 10px;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px, rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
}
.card-title {
    font-size: 18px;
    font-weight: 500;
    color:#D7B364;
}
.card-text {
    margin-top: -5px;
    font-size:12px;
    color:#929292;
}
.card-gameindex-arrow {
    text-decoration: none;
}
/* gametopup */
.game-card {
    background:  #1F1F1F;
    border-radius: 12px;
}
.game-card:hover{
    border: 1px solid #FFE38C;
}
.bg-footer{
    background: linear-gradient(to bottom, rgba(215,179,100,0.4) 0%, rgba(0,0,0,1) 30%), 
            linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0) 50%, rgba(0,0,0,1));
background-blend-mode: multiply; 
}
.text-h-footer{
    background: linear-gradient(270deg, #FFFFFF 0%, #FEDD76 100%);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    font-weight: bold;
    font-size:48px;
}
.block-why{
    text-align: center;
}
.block-why p{
    color:  #ADADAD;
}
.footer-contact i{
    color:#D7B364;
}
.text-h{
    color:#D7B364;
}
.hr-footer{
    background: linear-gradient(to bottom, rgba(215, 179,100, 0.5) 0%, rgba(0,0,0,1) 30%), 
            linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0) 50%, rgba(0,0,0,1));
background-blend-mode: multiply; 
height: 15px;
margin-top: 15px;
margin-bottom: 15px;

}
.link-cor {
    text-decoration: none;
    color: #d3d3d3;
}

.link-cor:hover {
    color: #D7B364;
}
/* ปรับขนาดของ Swiper และให้ภาพอยู่กลางสไลด์ */
.swiper {
    width: 100%;
    height: 400px;
    position: relative;
}
  .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.3; /* ตั้งค่าให้สไลด์ทั้งหมดจางลง */
    transition: opacity 0.3s ease; /* ใช้ transition เพื่อความนุ่มนวล */
  }
  .swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
    border-radius: 15px;
  }
  .swiper-slide-active {
    opacity: 1; /* สไลด์ตรงกลางจะสว่างขึ้น */
  }
  
  .swiper-button-next,
.swiper-button-prev {

    display: flex;
    align-items: center;
    justify-content: center;
}
.swiper-button-next:after, .swiper-button-prev:after{
    font-size: 24px !important;
    color: #D7B364 !important;
}

/* ตำแหน่งของ swiper-controls ตรงกลางของ Swiper */
.swiper-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* ระยะห่างระหว่างลูกศรกับ pagination */
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10; /* ทำให้คลิกได้ */
  }
  
  /* รูปแบบของปุ่มลูกศร */
  .swiper-button-prev,
  .swiper-button-next {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative !important;
  }
  
  /* รูปแบบของ pagination */
  .swiper-pagination {
    text-align: center;
    flex-grow: 1;
    max-width: 500px; /* กำหนดความกว้างสูงสุดของ pagination */
    display: flex;
    justify-content: center;
    position: relative !important;
  }
  
  .swiper-pagination-bullet {
    background: #3D3D3D !important;
  }
  
  .swiper-pagination-bullet-active {
    background: #D7B364 !important;
    width: 12px !important;
    height: 12px !important;
  }
  .footer-logo{
    width: 55%;
    white-space: nowrap;
  }
  .footer-contact{
    width: 55%;
    white-space: nowrap;
  }
  .footer-contact a{
    text-decoration: none;
    color:#d3d3d3
  }
  .footer-contact a:hover{
    color:#D7B364;
  }
  .footer-menu{
    width:51% ;
    white-space: nowrap;
  }
  

/* Phone Size */
@media only screen and (min-width:320px) and (max-width:359px){
    .swiper{
        height: 230px;
    }
    .card-dz img{
        width: 1.5rem;
    }
    .text-dz{
        font-size: .7rem !important;
    }
    .card-img, .card-img img{
        width: 90px;
        height: 90px;
    }
    .card-game{
        width: 90px;
        height: 180px;
    }
    .game-btn{
        font-size: 0.7rem;
        height: 30px;
    }
    .font-game {
        font-size: 12px;
    }
    .img_game {
        width: 35px;
    }
    .card-title {
        margin-top: -1rem;
        font-size:10px;
        font-weight: 500;
    }
    .card-text {
        margin-top: -9px;
        font-size:7px;
        color:#929292;
    }
    .card-gameindex-arrow {
        text-decoration: none;
        width:100%;
    }
    .game-card{
        height: 52px;
        white-space: nowrap;
    }
    .game-card .card-body{
        padding: 1.3rem 0.5rem;
    }
    .block-why img{
        width: 90px;
    }
    .footer-logo,.footer-contact,.footer-menu{
        margin-left: 0;
        width: 100%;
    }
    .footer-contact{
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
        margin-bottom: 15px;
    }
}
@media only screen and (min-width: 360px) and (max-width:393px){
    .swiper{
        height: 250px;
    }
    .text-dz{
        font-size: .8rem !important;
    }
    .card-img, .card-img img{
        width: 100px;
        height: 100px;
    }
    .card-game{
        width: 100px;
        height: 180px;
    }
    .game-btn{
        font-size: 0.8rem;
        height: 30px;
    }
    .font-game {
        font-size: 12px;
    }
    .img_game {
        width: 40px;
        text-align: center;
    }
    .card-title {
        margin-top: -1rem;
        font-size:12px;
        font-weight: 500;
    }
    .card-text {
        margin-top: -9px;
        font-size:8px;
        color:#929292;
    }
    .card-body {
        padding: 1rem .5rem;
    }
    .block-why img{
        width: 90px;
    }
    .footer-logo,.footer-contact,.footer-menu{
        margin-left: 0;
        width: 100%;
    }
    .footer-contact{
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
        margin-bottom: 15px;
    }
}
@media only screen and (min-width: 411px) and (max-width:430px) {
    .swiper{
        height: 265px;
    }
    .text-dz{
        font-size: .8rem !important;
    }
    .card-img, .card-img img{
        width: 115px;
        height: 115px;
    }
    .card-game{
        width: 115px;
        height: 200px;
    }
    .game-btn{
        font-size: 0.8rem;
        height: 30px;
    }
    .font-game {
        font-size: 12px;
    }
    .img_game {
        width: 50px;
    }
    .game-card .card-body{
        padding: 1rem 0.6rem;
        white-space: nowrap;
    }
    .card-title {
        margin-top: -1rem;
        font-size:14px;
        font-weight: 500;
    }
    .card-text {
        margin-top: -9px;
        font-size:10px;
        color:#929292;
    }
    .block-why img{
        width: 90px;
    }
    .footer-logo,.footer-contact,.footer-menu{
        margin-left: 0;
        width: 100%;
    }
    .footer-contact{
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
        margin-bottom: 15px;
    }
}
@media only screen and (width: 430px) {
    .swiper {
        height: 280px;
    }
    .footer-contact,.footer-menu{
        margin-left: 0;
    }
    .footer-contact{
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
        margin-bottom: 15px;
    }
}


/* Ipad */
@media only screen and (width: 1024px) {
    .swiper {
        height: 250px;
    }
}
@media only screen and (min-width: 768px) and (max-width:820px) {
    .swiper {
        height: 270px;
    }
    .card-game {
        width: 200px;
        margin-left: 15px;
    }
    .card-img img {
        width: 200px;
    }    
    .card-img{
        width: 200px;
    }
    .section-footer{
        flex-direction: row !important;
        justify-content: space-between;
    }
    .block-why img{
        width: 90px;
    }
    .footer-logo,.footer-contact,.footer-menu{
        margin-left:0px;
        text-align: left;
        width: auto;
    }
}
@media only screen and (width: 912px){
    .swiper {
        height: 300px;
    }
    .card-game {
        width: 200px;
        margin-left: 15px;
    }
    .card-img img {
        width: 200px;
    }    
    .card-img{
        width: 200px;
    }
    .block-why img{
        width: 90px;
    }
    .section-footer{
        flex-direction: row !important;
        justify-content: space-between;
    }
    .footer-logo,.footer-contact,.footer-menu{
        margin-left:0px;
        text-align: left;
        width: auto;
    }
}
@media only screen and (width:540px) {
    .swiper{
        height: 350px;
    }
    .text-dz{
        font-size: .8rem !important;
    }
    .card-img, .card-img img{
        width: 150px;
        height: 150px;
    }
    .card-game{
        width: 150px;
        height: 230px;
    }
    .game-btn{
        font-size: 0.8rem;
        height: 30px;
    }
    .font-game {
        font-size: 12px;
    }
    .game-card .card-body{
        padding: 1rem 0.6rem;
    }
    .card-title {
        margin-top: -1rem;
        font-size:14px;
        font-weight: 500;
    }
    .card-text {
        margin-top: -9px;
        font-size:10px;
        color:#929292;
    }
    .block-why img{
        width: 90px;
    }
    .section-footer{
        flex-direction: row !important;
        justify-content: space-between;
    }
    .footer-logo,.footer-contact,.footer-menu{
        margin-left:0px;
        text-align: left;
        width:auto;
    }
}
@media only screen and (width:853px) {
    .swiper{
        height: 280px;
    }
    .section-footer{
        flex-direction: row !important;
        justify-content: space-between;
    }
    .block-why img{
        width: 90px;
    }
    .footer-logo,.footer-contact,.footer-menu{
        margin-left:0px;
        text-align: left;
        width:auto;
    }
}