body{font-family: 'Kanit'; background-image: url('../img/bg01.jpg')!important;position: relative;}


body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255 255 255 / 50%);
    z-index: 0;
}





.contentnav{width: 100%;}
.contentnav-menu{width: 100%;box-shadow: 0px 0px 0px 1px #e8e8e8;}
.active{background-color: #f1f6f945;}
.topnav{    background-color: #f1f6f936;}
.sidenav01 {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background: linear-gradient(180deg, #03a7f0 0%, #9eccf0 35%, white 100%);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;

}

.hero {

  height: 20vh;
  position: relative;
  overflow: hidden;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;


}

.slide {
  width: 100%;
  object-fit: cover;
  position: absolute;
  opacity: 0;
  height: auto;
  border-radius: 8px;
  transition: opacity 1s ease-in-out;


}
.contentnav{position: relative;}
.slide.active {
  opacity: 1;
}

.slide {
  width: 100%;
  object-fit: cover;
  position: absolute;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  top: 49%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/*    .hero {
      height: 55vh;
      position: relative;
      overflow: hidden;
    }*/
    .games-gallery{
      flex-direction:unset;
      align-items: center;
  }

  .game-card {
   width: 200px;
   margin: 10px 10px;
}
.games-gallery{
    margin: 0px;
    background: #f2faff;
}
.product-card {
    padding: 10px 0px;
    margin: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

}

.games {
  display: flex;
  justify-content: space-around;
  padding: 20px;

}

.game-item {
  background-color: #eff5fb;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  flex: 1;
  margin: 0 10px;
  cursor: pointer;
}
.game-item:hover{background-color: #ddeaf7;}

.game-item img {
  max-width: 45%;
  height: auto;
  border-radius: 8px;
}

.game-item h3 {
  margin-top: 10px;
  font-size: 18px;
  color: #333;
}

.game-item.highlight {
  background-color: #FFA500;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {


  .games {
    flex-direction: column;
    align-items: center;
}

.game-item {
    margin: 10px 0;
    width: 90%;
}
}

/* Responsive styles */



.imgdetail{width: 100%;}
.menuMoobol{border: unset;}
.sidenav01 a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 18px;
  color: #f8f8f8;
  display: block;
  transition: 0.3s;
}
.fools{padding: unset;}
.sidenav01 a:hover {
  color: #f1f1f1;
}

.sidenav01 .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}
.detewl{    color: #0061ae;}
.css-19zivec {
    position: relative;
    padding-top: 56.25%;
    background: #f1f2f3;
    overflow: hidden;
    margin-bottom: 10px;
}
.imgmini{    width:99%;
    height: 108px;}
    .css-19zivec1 {
        position: relative;
        padding-top: 0.25%;
        background: #f1f2f3;
        overflow: hidden;
        margin-bottom: 10px;
    }
    .imgLogo{width: 50%;}
    #main {
      transition: margin-left .5s;
      padding: 16px;
  }
  .fromnews-d {
    display: grid;
    -webkit-column-gap: 30px;
    column-gap: 30px;
    row-gap: 30px;
    /* grid-template-columns: repeat(4,1fr);*/
    margin: 30px 0 0;
    padding: 10px;
}
.from-news-top{    box-shadow: 0px 0px 6px 1px #7ba8cd;
    border-radius: 5px;
    padding: 6px;}
    .topnewheder{ font-size: 23px;
        background: #2196f3;
        color: #fff;
        box-shadow: 0px 30px 0px 0px #e0ecf1;
        padding: 10px;}
        .content-listnews{background: linear-gradient(180deg, #cef0ff 0%, #f4f4f4 35%, white 100%)}
        .fromnews-d img {
            width: 100%;
            object-fit: cover;
            display: grid;
            position: absolute;
            top: 0;
            left: 0;
        }
        .loadnews{width: 100%;
            float: left;
            text-align: center;
            padding: 10px 0px;
            background: #0072c9;
            box-shadow: 0px 0px 0px 2px #ededed;
            margin-top: 15px;
            color: #fff;
            border-radius: 5px;cursor: pointer;}
            .search{
               width: unset!important;
               box-sizing: border-box!important;
               border: 1px solid #ccc!important;
               border-radius: 6px!important;
               font-size: 16px!important;
               background-color: white!important;
               background-position: 10px 10px!important;
               background-repeat: no-repeat!important;
               padding: 6px 6px 6px 30px!important;
               background-size: 13px!important;
               font-family: 'Kanit'!important;}
               .css-1nu7kld {
                width: 50%;float: left;   
            }
            .lismini{width: 100%;float: left;}
            .topics{display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;}
                .content-listnewsdetils{padding: 10px;}
                .content-listnewsdetils p img{width: 60%!important;height:unset!important;}
                .logo-img-foode{width: 36%;
                    padding: 0px 28px;}
                    .container-news-mini{padding: 10px;}
                    .menupc{display: none;}
                    .t-txt{font-size:20;}
                    .fromload{width: 94%;
                        margin: auto;}
                        @media screen and (max-height: 450px) {
                          .sidenav01 {padding-top: 15px;}
                          .sidenav01 a {font-size: 18px;}
                      }

                      .card-container {
                        display: flex;
                        flex-wrap: wrap;
                        justify-content: space-between;
                        gap: 20px;
                        padding: 20px;
                    }

                    .card {
                        background-color: #fff;
                        border-radius: 10px;
                        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
                        overflow: hidden;
                        width: calc(25% - 20px); /* 4 cards per row */
                        margin-bottom: 20px;
                        transition: transform 0.3s ease;
                    }

                    .card img {
                        width: 100%;
                        height: auto;
                        border-bottom: 1px solid #f1f1f1;
                    }

                    .card h3 {
                       font-size: 14px;
    margin: 15px;
    color: #424347;
    font-weight: 100;
                    }

                    .card p {
                        font-size: 1em;
                        color: #666;
                        margin: 15px;
                    }

                    .price-time {
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        padding: 0 15px 15px 15px;
                    }

                    .price {
                        font-size: 1.1em;
                        color: #004aa1;
                        background: #c1e8ff;
                        padding: 5px 5px;
                        border-radius: 8px;
                    }

                    .time {
                        font-size: 0.9em;
                        color: #999;
                    }

/* Media Queries สำหรับจอขนาดเล็ก (มือถือ) */
@media (max-width: 768px) {
    .card {
        width: calc(50% - 20px); /* 2 cards per row on small screens */
    }
}

@media (max-width: 480px) {
    .card {
        width: 75%;
        margin: auto; /* 1 card per row on very small screens */
    }
}
/*footer--------------------------------------------------------------*/

/* CSS */
.footer {
  background-color: #3d627b;
  padding: 30px 0;
  color: #fff;
  position: relative;
  
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.footer-column h3 {
  margin-bottom: 10px;
  border-bottom: 2px solid #d2e9ea;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-bottom {
  background-color: #4b4f54;
  text-align: center;
  padding: 15px 0;
  margin-top: 20px;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
  color: #d2e9ea;
}
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #d9d9d9;
  margin: 0 10px;
}

.divider-text {
  font-size: 25px;
  font-weight: bold;
  color: #043c62;
}

/* Responsive design */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
}

.footer-column {
    margin-right: 0;
    text-align: center;
}
}
.ulfooter li{float:unset!important;}
.ulfooter{float:unset!important;}
.ulfooter li a{padding: 0px 0px!important;}

@media screen and (min-width: 768px){

    .contendetail{width: 65%;
        margin: auto;}
        .imgmini{height: 245px;}
        .lismini{height: 322px;;}
        .detewl{font-size: 20px;}
        .css-1nu7kld{ height: 35%;}

        .t-txt{font-size: 30;}
    }
    .gmimg::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgb(255 255 255 / 92%);
        z-index: 0;
    }

    @media screen and (min-width: 1024px){
        .card{cursor: pointer;}
.game-card{cursor: pointer;}
.card img {
    width: 100%;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card:hover img {
    transform: scale(1.05);
}
        .slide {
            width: 1140px;
            height: 349px;
            object-fit: cover;
            position: absolute;
            opacity: 0;
            transition: opacity 1s ease-in-out;
            top: 49%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        .contentnav{width: 62%;margin: auto;}

        .menupc{display: block;}
        .imgLogo{width: 485px;}
        #main,#mySidenav01{display: none;}
        .fromload {width: 80%;}
        .contentfools{    width: 80%;
            margin: auto;}

            .fo-t{font-size: 17px;}
            .gmimg {
                position: relative;
                background-size: cover;
            }
        }
        @media screen and (min-width: 1200px){
            .css-1nu7kld{width: 25%;}
            .hero {
                height: 45vh;
                position: relative;
                overflow: hidden;
            }
            .css-1nu7kld{height: 25%;}
            .contentfools{width: 80%;margin: auto;}
            .logo-img-foode{padding: 3px 28px;}
            .logo-img-foode{width: 24%;}
            .fo-t{    font-size: 18px;
                padding: 9px 1px;}
                .from-news-top{padding: 26px;}
                .fools{width: 100%!important;}
                .contendetail {
                    width: 50%;
                    margin: auto;
                }
            }
            @media screen and (min-width: 1600px){
              .css-1nu7kld {
                height: 30%;
            }
            .logo-img-foode{width: 15%;}
            .fo-t {
                font-size: 14px;
            }
            .fools{width: 100%!important;}
        }
        @media screen and (min-width: 1800px){
            .css-1nu7kld {
                height: 35%;
            }
            .fromnews-d{width: 48%;
                float: left;}
                .content-listnews{    float: left;}
                .fromnews-d{margin: 12px 0 0;}
            }