nav{
    background-color: rgb(255, 255, 255);
    box-shadow: 0 0px 2px rgb(203, 203, 203);
    display: none;
}
.navbar{
    z-index: 300;
}


html {
  scroll-behavior: smooth;
}

#weblogo {
  display: inline-block;
  width: 54px;
  height:54px;
  background-image: url('../images/weblogo.png'); /* Path to your logo */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.navbar .nav-link, 
.navbar .nav-link:focus, 
.navbar .nav-link:active {
    color: #211e1e !important; /* Set hover/focus color */
    background-color: transparent !important; /* Remove any background change */
    font-size: 14.5px;
    font-family: "Kanit", sans-serif;
    font-weight: 300;
     
}
#drobutton{
    color: white;
}
table{
    width: 100%;
    box-sizing: border-box;
}

.dark #loadingPopup{
    color: black;
}

.post_ad1 {
    background-image: linear-gradient(rgb(255, 162, 0), rgb(255, 140, 0));
    border-radius: 5px;
    padding: 7px 10px;
    color: white;
    display: inline-block;
    animation: zoomPulse 1.5s ease-in-out infinite;
}

/* Zoom in & out effect */
@keyframes zoomPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.post_ad1 a{
    color: #ffffff;
    text-decoration: none;
    font-family: "Kanit", sans-serif;
    font-weight: 300;
}
#post_ad2{
    display: none;
}

.secondline{
    position: relative;
    top: 4.48rem;
    display: flex;
    width: 100%;
    background-image:linear-gradient(rgb(255, 162, 0),rgb(255, 140, 0));
    width: 100%;
}

.dark .secondline{
    background-image:linear-gradient(rgba(255, 162, 0, 0.92),rgba(255, 140, 0, 0.916));
}

.dark h5{
    color: white;
}

.slogan{
    color: #ffffff;
    font-family: "Kanit", sans-serif;
    font-weight: 300;
    font-size: 16px;
    margin-left: 1rem;
    margin-top: 0.5rem;
    width: 30%;
}

.searcharea {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: 70%;
  margin: 0px 10px;
}

#searchinput{
    left:3rem ;
    border-radius: 0;
    border: 1px solid rgb(255, 255, 255);
    padding: 5px 10px;
    width: 100%;
    margin: 3px 0px;
    border-radius: 20px;
}


#searchicon{
    background-image:linear-gradient(rgb(255, 162, 0),rgb(255, 140, 0));
    color: #ffffff;
    border-radius: 0;
    margin: 0px -34px;
    border-radius: 50%;
    padding: 1;
    height: 33px;
    width: 33px;
}
#searchico{
    position: relative;
    top: -2px;
    left: -40%;
}
nav ::placeholder{
    font-family: "Kanit", sans-serif;
    font-weight: 300;
    padding: 0px 16px;
}


.lanuagebutton{
    background-image:linear-gradient(rgb(255, 162, 0),rgb(255, 140, 0));
    border-radius: 5px;
    padding: 8px 10px;
    margin: 0px 10px;
    z-index: 1;
    top: 0.5rem;
    color: white;
    border: 0;
    position: relative;
}

.languagedropdown{
    background-color: rgb(255, 255, 255);
    color: #000;
    font-family: "Kanit", sans-serif;
    font-weight: 300;
    border: 0;
    box-shadow: 0;
    border-radius: 5px;
    padding: 12px 12px;
    }

.toggle {
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 80px;
    margin: 0px -30px;
    border: 1px solid #1b1b1b;
    height: 40px;
    border-radius: 50px;
    transition: .2s;
}

.toggle i {
    width: 50%;
    line-height: 40px;
    text-align: center;
    font-size: 18px;
    z-index: 1;
    color: #1b1b1b;
}

.toggle .ball {
    position: absolute;
    width: 25px;
    height: 25px;
    margin: 6.5px 7px;
    border-radius: 50%;
    border: 1px solid #1b1b1b;
    transition: .3s ease-out;
}
.dark .embedhelp{
    color: white;
}

.darkbutton {
    display: none;
}

/*
    -- Light Mode --
*/

.light {
    background: #a04747;
}

.light .toggle {
    background: red;
    box-shadow: 3px 3px 4px #e6e6e6,
                -3px -3px 4px #ffffff;
}


.light .toggle .bxs-sun {
    color: #811111;
}

.light .toggle .bx-moon {
    color: #61474e;
}

.light .toggle .ball {
    background: #d400ff;
}

/*
    -- Dark Mode --
*/

.dark nav{
    background: rgb(41, 41, 41);
}
.dark .shortline{
    background: rgba(18, 18, 18, 0.916);
}
/* Prevent Bootstrap nav links from turning black */
.dark .navbar .nav-link {
    color: #ffffff !important; /* Set your preferred text color */
}

.dark .toggle i{
    color: #ffffff;
}
.dark .navbar .nav-link:hover, 
.dark .navbar .nav-link:focus, 
.dark .navbar .nav-link:active {
    color: #ffffff !important; /* Set hover/focus color */
    background-color: transparent !important; /* Remove any background change */
}
.dark #weblogo {
  background-image: url('../images/darklogoweb.png'); /* Path to your logo */
}

.dark .dropdown-menu li a{
    color: #000;
    
}

.dark .addpagefunctions{   
    background-image: linear-gradient(rgba(255, 143, 7, 0.902),transparent);

    }
.navbar .nav-link.active {
    color: #000 !important; /* Keeps active links the same color */
    background-color: transparent !important;
    font-weight: bold; /* Optional: Keep active link highlighted */
}

.dark .topic h1, .dark .headerbout, .dark .headerh1{
    color: rgb(231, 231, 231);
}
.dark {
  overflow-x: hidden;
  background: linear-gradient(-15deg,  #000000,#17171796,#000000,#030303);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.dark p{
    color: rgb(226, 226, 222);
}

.dark .card{
    background-color: rgb(255, 255, 255);
}

.dark .review p, .dark .commentrow .comments p{
    color: white;
}
.dark .colcategory{
    box-shadow:1px 2px 10px 2px  rgba(113, 113, 113, 0.434)
}
.dark .review h3,.card-content p{
    color: white;
}

.dark .card-content p{
    color: rgb(0, 0, 0);
}



.dark .productpage .product p{
    color: white;
}

.dark .navbar-toggler-icon {
    filter: invert(100%); /* White color */
}

.dark li a{
   color: #ffffff;
}

.dark .toggle{
    border:1px solid white;
 }

.dark .toggle .ball {
   border:1px solid white;
}

.dark .toggle .bx-sun {
    color: #ffffff;
}

.dark .toggle .bxs-moon {
    color: #ffffff;
}

.dark .toggle .ball {
   
    transform: translateX(38.5px);
}

@media screen and (min-width:2200px) {
  .conatainbody{
    position: relative;
    top: 8.2rem;
   }
    #weblogo {
     width: 85px;
     height:85px;
   }   
   .navbar .nav-link, 
   .navbar .nav-link:focus, 
   .navbar .nav-link:active {
    font-size: 28.5px;
    margin: 0px 17px;
}

.toggle {
    width: 150px;
    height: 60px;
}

.toggle i {
    line-height: 60px;
    font-size: 34px;
}

.toggle .ball {
    position: absolute;
    width: 45px;
    height: 45px;
    margin: 6.5px 15px;
}
.dark .toggle .ball {
    transform: translateX(72px);
}
.post_ad1 {
    padding: 8px 28px;
    margin: 0px 12px;
    font-size: 25px;
}
.lanuagebutton{
   font-size: 26px;
   padding: 8px 12px;
}

.languagedropdown{
  font-size: 14px;
    }

.prev { font-size: 25px; }
.next { font-size: 25px; }
.dot {
    height: 15px;
    width: 15px;
}
.secondline{
    top: 6.40rem;
}

.slogan{
    font-size: 24px;
    margin-left: 1rem;
    margin-top: 0.3rem;
    width: 30%;
}

.searcharea {
  display: flex;
  align-items: center;
  width: 70%;
  margin: 4px 10px;
}

#searchinput{
    border-radius: 5;
    padding: 10px 10px;
    width: 100%;
    margin: 0px 0px;
}

#searchicon{
    margin: 0px -44px;
    height: 42px;
    width: 42px;
}
#searchico{
    top: -2px;
    left: -0%;
}
::placeholder{
    padding: 0px 16px;
    font-size: 16px;
}
}

@media screen and (max-width: 991.5px){

#weblogo {
  width: 45px;
  height:42px;
}
.lanuagebutton{
    margin: 0px -30px;
}
.toggle {
    margin: 0px 0px;

}

#post_ad2 {
background-image:linear-gradient(rgb(255, 153, 0),rgb(249, 165, 86));
border-radius: 5px;
padding: 3px 12px;
z-index: 1;
display: grid;
margin: 0px 12px;
position: relative;
display: inline-block;
animation: zoomPulse 1.5s ease-in-out infinite;
}



/* Zoom in & out effect */
@keyframes zoomPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}



#post_ad2 a{
    color: #ffffff;
    text-decoration: none;
    font-family: "Kanit", sans-serif;
    font-weight: 300;
    font-size: 16px;
}
.post_ad1{
    display: none;
}
.toggle {
    top: -0.41rem;
    width: 80px;
    height: 34px;
}
.toggle i {
    line-height: 35px;
    font-size: 17px;
}
.toggle .ball {
    width: 23px;
    height: 23px;
    margin: 5.5px 7.8px;
    border-radius: 50%;
    border: 1px solid #1b1b1b;
    transition: .3s ease-out;
}
.dark .toggle .ball {
    transform: translateX(39px);
}

.secondline{
    top: 3.67rem;
}

}

@media screen and (max-width: 900px){

   .slogan{
    width: 40%;
    font-size: 15px;
   }
   
   .searcharea {
     width: 60%;
   }
}

@media screen and (max-width: 580px){
.searcharea {
  margin-left: auto;
  display: flex;
  align-items: center;
 width: 50%;

}
.slogan{
    width: 50%;
    font-size: 15px;
   }

#searchinput{
    left:0rem ;
    position: relative;
    border-radius: 0;
    border: 1px solid rgb(255, 255, 255);
    padding: 5px 10px;
    width: 100%;
    margin: 3px 0px;
    border-radius: 20px;
}
#searchicon{
    background-color: rgb(255, 162, 0);
    color: #ffffff;
    border-radius: 0;
    margin: 0px -35px;
    border-radius: 50%;
    padding: 1;
    position: relative;
    height: 33px;
    width: 33px;
}
nav ::placeholder{
   font-size: 15px;
   padding: 0px 10px;
}
}

@media screen and (max-width: 470px){
.searcharea {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: 96%;

}
.slogan{
    display: none;
   }

#searchinput{
    left:0rem ;
    position: relative;
    border-radius: 0;
    border: 1px solid rgb(255, 255, 255);
    padding: 3.5px 10px;
    width: 100%;
    margin: 3px 0px;
    border-radius: 20px;
}
#searchicon{
    background-color: rgb(255, 162, 0);
    color: #ffffff;
    border-radius: 0;
    margin: 0px -32px;
    border-radius: 50%;
    padding: 1;
    position: relative;
    height: 31px;
    width: 31px;
}
#searchico{
    position: relative;
    top: -4px;
    left: -60%;
    font-size: 14px;
}
}

@media screen and (max-width: 400px){
.navbar-toggler-icon{
    font-size: 14px;
}
    #post_ad2 {
    padding: 7px 10px;
    margin: 0px 12px;
}
#post_ad2 a{
    color: #ffffff;
    text-decoration: none;
    font-family: "Kanit", sans-serif;
    font-weight: 300;
    font-size: 13px;
}


.searcharea {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: 97%;

}
.slogan{
    display: none;
   }

#searchinput{
    left:0.3rem ;
    position: relative;
    border-radius: 0;
    border: 1px solid rgb(255, 255, 255);
    padding: 3.5px 10px;
    width: 100%;
    font-size: 16px;
    margin: 3px 0px;
    border-radius: 20px;
}
#searchicon{
    background-color: rgb(255, 162, 0);
    color: #ffffff;
    border-radius: 0;
    margin: 0px -28px;
    border-radius: 50%;
    padding: 1;
    position: relative;
    height: 31px;
    width: 31px;
}
#searchico{
    position: relative;
    top: -4px;
    left: -60%;
    font-size: 14px;
}
}

