@charset "UTF-8";

body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #000; /* กันเหนียวถ้าเน็ตช้าภาพไม่มา จะได้เห็นสีดำแทน */
  }
.map-google{
  display: flex;
  justify-content: center; /* จัดกึ่งกลางแนวนอน */
  align-items: center;     /* จัดกึ่งกลางแนวตั้ง */  
}
.text-box{
  display: flex;
  text-align: center;
  justify-content: center; /* จัดกึ่งกลางแนวนอน */
  align-items: center; 
    color:#FFFFFF;
    background:rgba(0,0,0,0.4);
   border: 5px solid rgba(5,37,145,1);
border-radius: 15px;
box-shadow: 2px 2px 2px rgba(137,120,122,0.70); /* ใส่เงา */
}
        .slideshow-container {
            max-width: 900px;
            height: 500px;
            position: relative;
            margin: auto;
            overflow: hidden;
        }

        /* Absolute positioning stacks all slides directly on top of each other */
        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 2s ease-in-out; /* The core fade setting */
            z-index: 0;
        }

        /* Active slide becomes visible and moves to the foreground */
        .slide.active {
            opacity: 1;
            z-index: 1;
        }

        /* Responsive image scaling */
        .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

.image-button {
  background-image: url("img/buttonbg2.png");
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; 
  width: 150px;
  height:  40px;
  border: none;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}
.image-button:hover {
  opacity: 0.9;
}
.hide{
    display:flex;
    align-content: center;
    width: auto;
}

  .bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* ส่งไปไว้ข้างหลังเนื้อหา */
  }

  .bg-image {
    position: absolute;
    width: 100%;
    height:100%;
    background-size: cover;
    background-position: center;
  }

  /* รูปที่ 1 (อยู่ด้านล่าง) */
  .img1 {
    background-image: url('img/luckdeeBG.jpg');
  }

  /* รูปที่ 2 (อยู่ด้านบน และทำ Animation) */
  .img2 {
    background-image: url("img/luckdeeBG2.jpg");
    animation: crossfade 10s ease-in-out infinite;
  }

  @keyframes crossfade {
    0%, 100% { opacity: 1; }  /* เห็นรูปที่ 2 */
    50% { opacity: 0; }       /* จางหายไปจนเห็นรูปที่ 1 */
  }


.maincon{
    
    margin: 50px 0px;
    padding: 0;
    height: 100%;
   color:white;
}

.slideshow-container img{
display:block;
margin-left: auto;
margin-right: auto;
margin-top: 0px;
border: 5px solid rgba(5,37,145,1);
border-radius: 15px;
box-shadow: 2px 2px 2px rgba(137,120,122,0.70); /* ใส่เงา */
}

.newcon{
    display:flex;
    margin: 0;
    padding: 0;
    height: 100%;
   color:white;
}

.newcon img{
margin-left: auto;
margin-right: auto;
margin-top: 10px;
border: 5px solid rgba(5,37,145,1);
border-radius: 15px;
box-shadow: 2px 2px 5px rgba(37,0,150,0.70); /* ใส่เงา */
}

.center-box {
    position:relative;
    animation: slideIn 2s ease-in forwards;
}
.text-row {
    margin-left: 10%;
    width:80%;
    font-size: 0.85em;
    color:white;
    align-content: center;
    text-align:center;
    padding: 20px;
    background-color: rgba(1,1,1,0.59);
    border: 1px solid rgba(28,0,146,1.00);
    border-radius: 15px;
    box-shadow: 2px 2px 5px rgba(37,0,145,0.70); /* ใส่เงา */

}
.text-row p{
display: flex;
justify-content: center; /* จัดแนวนอน */
align-items: center;  
height:auto;    
}
.text-right{
  
     text-align: right;
    color:white;

}
.ulmenu{
    
    width:100%;
}
.content80{

    position:static ;  
    display: flex;
    justify-content: center;
                width: 100%; 
                top: 10%; 
                left: 10%; 
              
}
.framed-image {

  padding: 1px;
  border: 1px solid #ccc; 
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3); 
}

    @keyframes slideIn {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
   background: conic-gradient(from 0deg, #0034FF, #02003E);
  color: #0034FF;
}
.navbar a {
    corlor:white!important;
}

.nav-links {
  display: flex; 
  list-style: none;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
}
.navbar-nav  {
 color: white;
}
.nav-item a {
  color: white !important;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.nav-link {
    color: white;
}
#collapsibleNavbar{
    color: white;
}
#collapsibleNavbar .nav-link {
    color: #fff;
}
#collapsibleNavbar .nav-link:hover {
    color: #289C11;
}

/* ซ่อนปุ่ม Hamburger ในหน้าจอคอมพิวเตอร์ */
.hamburger {
  display: none; 
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.line {
  width: 25px;
  height: 3px;
  background-color: black;
}
.logo {
    witdh:200px;
    background-image: url("img/logo/Logo-LD-png-3.png");
    animation: slideIn 2s ease-in forwards;
  
    
}

.gradient-border {
display: inline-block; 
border-bottom: 5px solid; /* กำหนดความหนา */
width:60%;
justify-content: center; /* จัดแนวนอน */
align-items: center;  
border-image: linear-gradient(to right,#000743 ,  #3475E8, #3300FF) 1; /* ไล่สีและกำหนดทิศทาง */

}
.row{
    
color:white;
padding:50%;
}
.row img{
border: 5px solid rgba(1,2,120,1.00);
border-radius: 15px;
box-shadow: 2px 2px 5px rgba(2,20,100,0.70); /* ใส่เงา */
}

  .grid-container {
 
    display: grid;
    align-items: center;
    justify-content: center; /* จัดกึ่งกลางแนวนอน */
  
    grid-template-columns: 20% 40%;
    /* แบ่ง 2 แถว แถวละ 100 พิกเซล (ปรับความสูงได้ตามต้องการ) */
    grid-template-rows: 400;
    gap: 10px; /* ระยะห่างระหว่างกล่อง */
  }
.grid-container img {
    width: 100px;
  
}

  .grid-item {
    color: aliceblue;
    background-color:transparent;
    border:0px solid #ccc;
    padding: 20px;
  }
/* กำหนดขนาดพื้นที่แสดงผล */


        .container {
            max-width: 1400px;
            margin: auto;
            padding: 0 20px;
            color:white;
        }

        h2 { 
            text-align: center; 
            margin-bottom: 40px; 
            color: #ffffff; }

        /* 2. ปรับแต่ง Swiper Container */
        .swiper {
            width: 100%;
            padding: 30px 0px 60px; /* เว้นล่างไว้ให้ Pagination */
        }



        .product-img {
            width: 100%;
            height: 50%;
             /* สีพื้นหลังกรณีไม่มีรูป */
            object-fit: cover;
        }

        .product-info {
            padding: 20px;
        }

        .product-name {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 10px;
            color: #fff;
        }

        .product-price {
            font-size: 1.3rem;
            color: #3300FF;
            font-weight: bold;
            margin-bottom: 15px;
        }

        .buy-btn {
            display: inline-block;
            background: #2f3542;
            color: white;
            padding: 10px 25px;
            border-radius: 25px;
            text-decoration: none;
            font-size: 0.9rem;
            transition: 0.3s;
        }

        .buy-btn:hover {
            background:#0066FF;
        }

        /* ปรับแต่งปุ่ม Navigation ให้ดูดีขึ้น */
        .swiper-button-next, .swiper-button-prev {
            width: 40px;
            height: 40px;
            background:  #0066FF;
            border-radius: 50%;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        .swiper-button-next::after, .swiper-button-prev::after {
            font-size: 16px;
            font-weight: bold;
            color:#FFFFFF;
        }

/* 1. ต้องมั่นใจว่าตัวเก็บรูปภาพมีการซ่อนส่วนที่เกินออกไป */
.product-card {
    background:  black;
    overflow: hidden; /* สำคัญมาก: เพื่อไม่ให้รูปที่ขยายล้นออกมานอกการ์ด */
    transition: 0.8s ease; /* เพิ่มเวลาให้ดูนุ่มนวลขึ้น */
    text-align: center;
  
    position: relative;
    border: 5px solid rgba(28,6,138,1.00);
    border-radius: 15px;
    box-shadow: 2px 2px 5px rgba(37,15,120,0.70); /* ใส่เงา */
}

/* 2. ตั้งค่าพื้นฐานให้รูปภาพ */
.product-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* ใช้ Bezier เพื่อความสมูท */
}

/* 3. สั่งให้รูปขยาย (Zoom) เมื่อเอาเมาส์วางบนตัวการ์ด */
.product-card:hover .product-img {
    transform: scale(1.15); /* ขยายขึ้น 15% */
}

/* (แถม) เพิ่ม Overlay สีจางๆ ตอน Hover เพื่อให้ชื่อสินค้าเด่นขึ้น */
.product-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.02);
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

.product-card:hover::after {
    opacity: 1;
}

.x-footer .-inner-wrapper .-list-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem
}
.x-footer .-inner-wrapper .-list-menu .-list-item {
  margin: 0 .25rem .5rem
}
.x-footer .-inner-wrapper .-list-menu .-list-item .-btn-link {
  display: block;
  padding: 5px 15px;
  min-width: 100px;
  color: #999;
  background: #2c2c2c;
  font-size: .875rem;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all .2s
}
.x-footer.-three-columns .-copyright-wrapper {
  margin-top: 1rem;
  padding: 10px;
  text-align: center;
  color: #999;
  background: #000
}
.x-footer .-copyright-wrapper {
  margin-top: 1rem;
  padding: 10px;
  text-align: center;
  color: #fafafa;
  background:  #0066FF
}
.side-popup-container {
    position: fixed;
    bottom: 50px; /* ระยะห่างจากด้านล่าง */
    right: -400px; /* เริ่มต้นให้ซ่อนอยู่ขวาสุด (ถ้าจะเอาไว้ซ้ายให้เปลี่ยนเป็น left: -400px) */
    width: 210px;
    background-color:rgba(62,62,62,0.50);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 9999;
    padding: 1px;
    transition: all 0.6s ease-in-out; /* ความสมูทตอนเด้งเข้า */
    border-left: 5px solid  rgba(48,136,0,0.76); /* แถบสีด้านข้างป้าย */
}

/* Class นี้จะถูกเพิ่มด้วย JavaScript เพื่อให้ป้ายเด้งออกมา */
.side-popup-container.show {
    right: 5px; /* ระยะที่ต้องการให้หยุด (ถ้าอยู่ซ้ายให้เปลี่ยนเป็น left: 20px) */
}

.close-btn {
    float: right;
    cursor: pointer;
    font-size: 22px;
    line-height: 15px;
    color: #999;
}

.close-btn:hover {
    color: #000;
}
.x-menu-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 11;
  width: 100%
}

.x-menu-footer.-default .-menu-wrapper {
  position: relative;
  display: flex
}
.x-menu-footer.-default .-menu-wrapper .-sub-menu-container {
  flex: 1;
  display: flex;
  position: relative
}
.x-menu-footer.-default .-menu-wrapper .-sub-menu-container .-lists-child-container {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  z-index: -1;
  width: 100%;
  background: linear-gradient(180deg, #000, #242c31);
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  transition: all .4s
}
.x-menu-footer.-default .-menu-wrapper .-sub-menu-container .-lists-child-container.open {
  z-index: 0;
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(-100%);
  transform: translateY(-100%)
}
.x-menu-footer.-default .-menu-wrapper .-sub-menu-container .-lists-child-container .-btn-item {
  padding-top: .25rem;
  border-bottom: 1px solid #535353
}
.x-menu-footer.-default .-menu-wrapper .-btn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 70px;
  padding: 0;
  font-size: .875rem;
  color: #f2f2f2;
  background: linear-gradient(180deg, #3d3d3d, #13100a);
  border-radius: 0;
  border: none;
  border-right: 1px solid #535353
}

.x-menu-footer.-default .-menu-wrapper .-btn-item .-text-image {
  width: 90px;
  height: auto
}
.x-menu-footer.-default .-menu-wrapper .-btn-item .-typo {
  margin-top: 2px;
  margin-bottom: 5px
}
.x-menu-footer.-default .-menu-wrapper .-btn-item .-ic-img, .x-menu-footer.-default .-menu-wrapper .-btn-item img {
  width: 32px;
  height: auto
}
.x-menu-footer.-default .-menu-wrapper .-btn-item:last-child {
  border-right: none
}
.x-menu-footer.-default .-menu-wrapper .-btn-item:hover {
  text-decoration: none
}
.x-menu-footer.-default .-menu-wrapper .-btn-item:focus {
  outline: none
}
.x-menu-footer.-default .-menu-wrapper .-btn-item.-horizontal {
  flex-direction: row;
  justify-content: center
}
.x-menu-footer.-default .-menu-wrapper .-btn-item.-horizontal .-text-image {
  margin-left: 8px
}
.x-menu-footer.-default .-menu-wrapper .-btn-item.-special {
  flex: 1.375
}
.x-menu-footer.-default .-menu-wrapper .-btn-item.-special img {
  width: 70px;
  height: auto;
  z-index: 1
}
.vex.vex-theme-plain .vex-content .vex-dialog-buttons .x-menu-footer.-ezs .-anon-menu-wrapper .-btn-container.-left .vex-dialog-button, .vex.vex-theme-plain .vex-content .vex-dialog-buttons .x-menu-footer.-ezs .-anon-menu-wrapper .-btn-container.-right .vex-dialog-button, .x-menu-footer.-ezs .-anon-menu-wrapper .-btn-container.-left .btn, .x-menu-footer.-ezs .-anon-menu-wrapper .-btn-container.-left .vex.vex-theme-plain .vex-content .vex-dialog-buttons .vex-dialog-button, .x-menu-footer.-ezs .-anon-menu-wrapper .-btn-container.-right .btn, .x-menu-footer.-ezs .-anon-menu-wrapper .-btn-container.-right .vex.vex-theme-plain .vex-content .vex-dialog-buttons .vex-dialog-button {
  background: linear-gradient(180deg, #c1e9fe 10%, #56aff0)
}
.x-menu-footer.-ezs .-anon-menu-wrapper .-btn-container.-left .-icon, .x-menu-footer.-ezs .-anon-menu-wrapper .-btn-container.-right .-icon {
  margin-top: -3.5rem
}


.x-menu-footer.-default .-menu-wrapper .-btn-item.-btn-predict-container .-img {
  position: relative;
  right: -15px;
  width: 54px
}
.x-menu-footer.-ezs .-btn-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  flex: 1
}
.x-menu-footer.-ezs .-btn-container .-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  border-radius: 0
}
.x-menu-footer.-ezs .-anon-menu-wrapper .-btn-container.-center .-btn {
  background: linear-gradient(180deg, #fedd5b 10%, #fe8c06)
}
.x-menu-footer.-ezs .-anon-menu-wrapper .-btn-container.-center .-btn .-img-container .-icon {
  width: 260px;
  height: auto;
  -webkit-animation: x-jello-horizontal 3s infinite both;
  animation: x-jello-horizontal 3s infinite both
}

.image-text-container {
  display: flex; /* จัดให้ลูกๆ เรียงซ้อนในแนวนอน */
  align-items: center; /* จัดให้รูปและข้อความอยู่กึ่งกลางแนวตั้ง */
  gap: 20px; /* ระยะห่างระหว่างรูปกับกล่องข้อความ */
  padding: 15px;
  background-color:transparent;
  border-radius: 8px;
  max-width: 600px;
}

.image-text-container img {
  width: 150px;
  height: auto;
  border-radius: 5px; /* ทำมุมรูปภาพให้โค้งมน */
}

.text-box {
  flex: 1; /* ให้ข้อความยืดขยายเต็มพื้นที่ที่เหลือ */
}

.text-box h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.text-box p {
  color: #555;
  line-height: 1.5;
}
    
/* --- สไตล์สำหรับมือถือ (จอแคบกว่า 768px) --- */
@media screen and (max-width: 768px) {

.maincon{
text-align: center;
padding: 0px 0;
width:100%;

}
            

.slideshow-container  img{   
width:100%;  
height:50%; 
margin-left: 0;
margin-right: 0;
margin-top: 0px;
}
    
.hide{
    display: none;
}
.side-popup-container{
display: none;
} 
.x-footer.-three-columns .-copyright-wrapper {
    padding: 8px;
    font-size: .8rem
    }
     .nav-links.active {
    display: flex;
  }

 #collapsibleNavbar .nav-link {
    color: #fff;
}
#collapsibleNavbar .nav-link:hover {
    color: #289C11;
}

    }
@media (min-width:992px) {
  .x-menu-footer {
    display: none
  }
}

