@import url('https://fonts.googleapis.com/css2?family=Faster+One&family=Monoton&family=Righteous&family=Tilt+Warp&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Faster+One&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Monoton&family=Righteous&family=Tilt+Warp&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Agbalumo&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Aladin&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Sansation:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Unna:ital,wght@0,400;0,700;1,400;1,700&display=swap');


*{
  margin: 0;
  padding: 0;
}
body {
  overflow-x: hidden;
  background: linear-gradient(-45deg,  #ffffff,#ffffff19,#e6e5e37a,#ffffffcc);
  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%;
  }
}

.conatainbody{
    position: relative;
    top: 4.4rem;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 42vh;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;   
}

.slide {
    min-width: 100%;
    transition: opacity 1s;
}

.slide img {
    width: 100%;
    height: 40vh;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.prev { left: 10px; }
.next { right: 10px; }


/* Dots */
.dots {
    text-align: center;
    padding: 0px;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #5a5f5d;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.5s;
}

.dot.active {
    background-color: #ffffff;
}


.topic h1{
    color: rgb(30, 30, 30);
    text-align: center;
    font-size: 2rem;
    padding: 16px 1px;
    font-family: "Kanit", sans-serif;
    font-weight:1300;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.6s ease-out;
}

.topic h1.visible {
  opacity: 1;
  transform: translateY(0);


}

.rowcategory{
    width: 45%;
    top: 1rem;
    align-items:center ;
    position: relative;
    display: flex;  
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.6s ease-out;
}

.rowcategory.visible {
  opacity: 1;
  transform: translateY(0);
}


.colcategory:hover {
    transform: scale(1.05);
}

.colcategory{
    background-color: rgba(255, 255, 255, 0.836);
    box-shadow:1px 2px 10px 2px  rgba(188, 185, 185, 0.434);
    padding: 12px 2px;
    margin: 32px 18px;
    position: relative;
    border-radius: 6px;
    transition: transform 0.2s;
}

.rowcategory img{
    width: 45%;
    position: relative;   
   
}

.rowcategory strong{
    color: rgb(19, 18, 18);
    position: static;  
}
a{
    text-decoration: none;
}
.backimg{
    width: 100%;
    display: none;
}

.aboutrow{
   background:url(../images/wave\ \(7\).png);
   background-repeat: no-repeat;
   background-size: 100%;

}

.secodnrow td{
    position: relative;
}

.about{
    display: flex;
    width: 100%;
    top: 3.3rem;
    position: relative;
}

.aboutimg{
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    z-index: 1;
    transition: opacity 0.5s ease-out, transform 0.6s ease-out;
}

.aboutimg.visible {
  opacity: 1;
  transform: translateX(0);

}

.aboutpara{
    width: 70%;
    position: relative;
    top: 2rem;
       z-index: 1;

    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.5s ease-out, transform 0.6s ease-out;
}
.headerbout{
    font-family: "Kanit", sans-serif;
    font-weight:1300;
}

.aboutpara.visible {
  opacity: 1;
  transform: translateX(0);
}

.aboutpara p{
    color: #000;
}
.yt{
   background:url(../images/wave\ \(26\).png);
   position: relative;
   background-repeat: no-repeat;
   background-size: 100%; 
   width: 100%;
}

.ytarea{
    position: relative;
    display: flex;
    top: 3rem;

}

#ythead{
    color: #ffffff;
}

.ytvideo{
    width:45%;
    height: 35rem;
    position: relative;
    padding: 20px 10px;
    box-shadow:   1px 2px 12px 2px  rgba(49, 47, 47, 0.434);
    border-radius: 2px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease-out, transform 0.6s ease-out;
}

.ytvideo.visible {
  opacity: 1;
  transform: translateY(0);


}
.ytarea p{
    width: 50%;
    color: rgb(21, 21, 21);
    padding: 0px 25px;
    left: 5%;
    position: relative;
}

.ytarea a{
   text-decoration: none;
   padding: 9px 12px;
   color: #E8F6EF;
   box-shadow: 0px 2px 2px 2px rgba(0, 0, 0, 0.055);
  background-image:linear-gradient(rgb(255, 162, 0),rgb(255, 140, 0));
   border-radius: 4px;
}
.description{
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.6s ease-out;
}

.description.visible {
  opacity: 1;
  transform: translateX(0);
}
/* Initial hidden state */
.commentrow {
  opacity: 0;
  top: 5rem;
  position: relative;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;

}

/* Visible state when scrolled to */
.commentrow.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Specific styling for your elements */
.commentrow .topic h1 {
  text-align: center;
  color: #333;
  padding: 15px 0;
  font-size: 1.5rem;
}

.commentrow .comments {
  padding: 20px;
  border-radius: 8px;
}

.commentrow .comments p {
  width: 80%;
  margin: 0 auto;
  top: -1rem;
  position: relative;
  text-align: justify;
  line-height: 1.6;
  color: rgb(21, 21, 21);
  font-size: 1.1rem;
}

.commentrow .comments button {
  background-image:linear-gradient(rgb(255, 162, 0),rgb(255, 140, 0));
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 4px;
  font-size: 1rem;
  margin-top: 15px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.commentrow .comments button:hover {
  background-color: #c0392b;
}

/* Remove center tags styling - we'll handle this with CSS */
.commentrow center {
  display: block;
  text-align: center;
}
@media screen and (min-width:2200px) {
   .slider-container {
    height: 50vh;
    top: -1.8rem;
    }
    
    .slide img {
        width: 100%;
        height: 50vh;
    }
    .headerabout{
        font-size: 40px;
        left: 0%;
    }
    .topic h1, .headerbout{
    font-size: 2.8rem;
    }
    .aboutpara{
        top: 10rem;
        position: relative;
    }

    .about p , #comment, .description{
        font-size: 24px;
        max-width: 60%;
    }
    .description{
        font-size: 24px;
        max-width: 40%;
    }
    .ytvideo{
        height: 62rem;
    }
    #lasthead{
            font-size: 2.8rem;
    }
}
@media screen and (max-width:2199.6px) {
   .slider-container {
    height: 50vh;
    }
    .slide img {
        width: 100%;
        height: 50vh;
    }
    .headerabout{
        font-size: 40px;
        left: 0%;
    }
    .topic h1, .headerbout{
    font-size: 1.8rem;
    }
    .aboutpara{
        top: 10rem;
        position: relative;
    }

    .about p , #comment, .description{
        font-size: 16px;
    }
    .ytvideo{
        height: 40rem;
    }
    #lasthead{
            font-size: 1.8rem;
    }
}

@media screen and (max-width:1500px) {
    
    .headerabout{
        top: 2rem;
    }
    .aboutpara{
        top: 1rem;
    }
    .about p , #comment, .description{
        font-size: 16px;
    }
    .aboutimg{
        top: 3rem;
    }
    .about p{
     top: 2rem;
    }

    
}
@media screen and (max-width:1385px) {
    .rowcategory{
       width: 70%;
    }
    
    .colcategory{
        min-width:80%; 
        width: 80%;
        margin: 12px 0px;              
    }

    .yt{
        top: 0rem;
    }
    .aboutrow{
        z-index: 0;
    }
    
}

@media screen and (max-width:1060px) {
    
    .headerabout{
        top: 1rem;
    }
    .ytrow{
        top: -4.4rem;
    }
    .aboutimg{
        top: 1rem;
    }
    .about p{
     top: -1rem;
    }
    .ytvideo{
        height: 30rem;
    }
    .ytdescriptiion p{
        top: 4rem;
    }
    
}

@media screen and (max-width:1050px) {
    .rowcategory strong{
       font-size:15px;
    }

}

@media screen and (max-width: 1000px) {
    thead, tbody, td, tr {
         display: block; /* Make everything block elements */
         width: 100%;
     }
 .rowcategory strong{
       font-size:13px;
    }
.aboutpara{
    top: -1rem;
}
#ythead{
    top: 2rem;
    position: relative;
}
     .ytdescriptiion p{
        left: 13%;
        top: 9rem;
     } 

     .ytdescriptiion button{
      position: relative;
    }
     .headerbout{
        top: 1.2rem;
        font-size: 24px;
        position: relative;
     }
     .ytvideo{
        height: auto;
     }
    }
    @media screen and (max-width: 991.5px){
    .conatainbody{
    position: relative;
    top: 3.65rem;
}
}
@media screen and (max-width:886px) {
  
  .aboutrow{
    background-position-y: 1rem;
  }
    .aboutpara b{
    top: 1.7rem;
    position: relative;
   }
}
@media screen and (max-width:850px) {
    .rowcategory{
       width: 60%;
    }
    
    .colcategory{
        min-width:40%; 
        width: 70%;
        margin: 12px 9px;              
    }
    .rowcategory img{
        width: 30%;
    }
    
    .rowcategory strong{
       font-size:10px;
    }
    .comments p{
        width: 90%;       
    
    }
}
@media screen and (max-width:840px) {
  
  .aboutrow{
    background-position-y:2.7rem;
  }
   
}
@media screen and (max-width:821px) {
  
  .aboutrow{
    background-position-y:3rem;
  }
   
}

@media screen and (max-width:808.5px) {
  
  .aboutrow{
    background-position-y:3.4rem;
  }
   
}
@media screen and (max-width:790px) {
      .colcategory{
        min-width:90%; 
        width: 90%;
        margin: 12px 0px;              
    }
  .aboutrow{
    background-position-y:3.6rem;
  }
   
}
@media screen and (max-width:782px) {
.slider-container {
    height: 30vh;
}
.slide img {
    width: 100%;
    height: 30vh;
}
    .rowcategory img{
        width: 50%;
    }
.yt{
    background: none;
}
.ytarea{
    top: 1rem;
}

.yt p{
        color: #000;
        width: 100%;
        top: 2rem;
}

#ythead{
    color: #000;
    font-family: "Kanit", sans-serif;
    top: -3.5rem;
}

.dark #ythead{
    color: white;
}
.topic h1{
    top: 0rem;
    position: relative;
}
.middlebodycards1{
    position: relative;
    top: -1.6rem;
}
.about, .ytarea{
    display: block;
    top: -2rem;
    position: relative;
}

.aboutrow{
background:none;
background-repeat: no-repeat;
background-position-y: 9rem;
background-size:contain;
}
.aboutrow::before{
background: url(../images/svg\ \(14\).png);
background-repeat: no-repeat;
background-position-y: 9rem;
background-size:contain;
}
.headerbout{
    text-align: center;
    font-family: "Kanit", sans-serif;
    font-weight:1300;
    font-size: 1.5rem;
    top: -0.05rem;
}
.aboutpara{
    width: 90%;
    height: 50%;
    left:5%;
    text-align: center;
    top:-1.3rem;
}

.ytvideo{
    width: 95%;
    height: 350px;
    left: 3%;
    top: -1rem;
}
.ytarea p{
    text-align: center;
    left: 0%;
    font-size: 14px;
    top: 0.71rem;
    position: relative;
}

.aboutpara p{
    top: -1.1rem;
    position: relative;
    text-align: justify;
    font-size: 14px;
}
.yt{
    position: relative;
    top: -1.4rem;
}
.commentrow{
    top: -2.5rem;
}
#comment{
    top: -1.7rem;
    position: relative;
    text-align: justify;
    font-size: 14px;

}
.commentrow .comments button {
  position: relative;
  top: -1.5rem;
    font-size: 0.7rem;

}

}

@media screen and (max-width: 650px) {
      .rowcategory{
       width: 90%;
    }
    .colcategory{
        min-width:40%; 
        width: 80%;
        margin: 12px 0px;              
    }
    .topic h1, #lasthead{
        font-size: 1.4rem;
    }
   .headerbout{
    top:0.5rem;

   }
    .about p{
       text-align: justify;
       width: 95%;
       left: 3%;
       position: relative;
      
    }

    }
    @media screen and (max-width: 500px) {
    .rowcategory{
    width: 97%;
}    
    .colcategory{
        min-width:94%; 
        width: 94%;
        margin: 12px 0px;    
                  
    }
    }
 @media screen and (max-width: 400px) {
#weblogo {
  width: 34px;
  height:34px;
}
    .conatainbody{
    position: relative;
    top: 3.68rem;
}

    .slider-container {
        height: 20vh;
    }
    .slide img {
        width: 100%;
        height: 20vh;
    }
    .rowcategory{
       width: 98%;
    }
        .topic h1{
        font-size: 1.4rem;
    }
    .colcategory{
        min-width:40%; 
        width: 90%;
        margin: 12px 0px;              
    }
    .rowcategory img{
        width: 40%;
    }
    
    .rowcategory strong{
       font-size:9px;
    }

    .aboutimg{
        top: 4rem;
    }
   
}    
       @media screen and (max-width: 350px) {
    .rowcategory{
    width: 99%;
}    
    .colcategory{
        min-width:95%; 
        width: 95%;
        margin: 12px 0px;    
                  
    }
     .rowcategory strong:lang(si){
       font-size:5px;
    }
    }        
 @media screen and (max-width: 300px) {

    .rowcategory{
       width: 98%;
    }
    
    .colcategory{
        min-width:40%; 
        width: 95%;
        margin: 12px 0px;              
    }
    .rowcategory img{
        width: 30%;
    }
    
    .rowcategory strong{
       font-size:5px;
    }

    .about p{
       text-align: justify;
       width: 95%;
       left: 3%;
       top: -1rem;
       position: relative;
      
    }
    .aboutimg{
        top: 4rem;
    }
   
}                 