/* สี ขนาด  */
.tablink {
  float: left;
  display: block;
  padding: 14px 16px;
  text-align: center;
  cursor: pointer;

  color: white;
  border: none;
  outline: none;
  transition: 0.3s;
}

.tablink:hover {
  background-color: #eee;
}

.tabcontent {
  display: none;
  padding: 20px;
}

/* Responsive styles */
@media screen and (max-width: 600px) {
  .tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: scroll;
  }
  .tablink {
    width: auto;
    white-space: nowrap;
  }
}
.tablink:hover {
  background-color: #fff; /* สีเมื่อนำเมาส์ไปชี้แท็บเมนู */
}
.tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  width: 100%;
  height: 100%;
}


/* สำหรับการใช้งานบนมือถือ */
@media (max-width: 767px) {
  .tabs {
    flex-direction: row; /* ให้แท็บอยู่ในแนวนอนเมื่ออยู่ในโหมดมือถือ */
  }
}
.tablink {
  color: #000; /* สีข้อความเมนู tab */
  text-decoration: none; 
  padding: 10px 20px  ;
  font-size: 16px;
  border-radius: 10px;
  transition: background-color 0.3s;
}
.tablink.active {
  background-image: linear-gradient(to right, #eb5109 0%, #ee790b 51%, #eb4a0b 100%);
      padding: 8px 25px;
      text-align: center;
      
      transition: 0.5s;
      background-size: 200% auto;
      color: white;
      box-shadow: 0 0 20px #eee;
      border-radius: 10px;
      display: inline-block;
    }

    .btn-grad:hover {
      background-position: right center;
      color: #fff;
      text-decoration: none;
    
}

/* สีพื้นหลัง content */
.tabcontent {
  display: none;
  padding: 20px;
  border-radius: 10px;

}
.tabcontent.active {
  display: block;
}
/* Hide scrollbar for the tabs container */
.tabs::-webkit-scrollbar {
  display: none;
}
/* Responsive styles */
@media screen and (max-width: 600px) {
  .tabs {
      flex-wrap: nowrap; /* Prevent tabs from wrapping */
      justify-content: flex-start; /* Align tabs to the start */
      overflow-x: scroll; /* Enable horizontal scroll on small screens */
  }
}


