@import url('https://fonts.googleapis.com/css2?family=Poppins: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&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@100..700&display=swap');

/* Book fiip page */
@import url('https://fonts.googleapis.com/css2?family=Poppins: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&display=swap');
/*
*{
    padding: 0;
    margin-left: 100px;
    font-family: 'Noto+Sans+Thai', sans-serif;
}
*/
[data-tab-content] {
  display: none;
}

.active[data-tab-content] {
  display: block;
}

body {
    font-family: 'Noto+Sans+Thai', sans-serif;
    color: #C7E1EB;
    margin-top: 0;
    margin-left: 0px;
    background-color: rgb(172, 177, 236)

}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4rem;
    display: flex;
    align-items: center;
    padding: 0 0vw;
    z-index: 9;
    background-color: rgb(56, 38, 70);
}
.logo {
    margin-left: 0;
    height: 4rem;
}
.tabs {
    display:flex;
    gap: 4rem;
    list-style: none;
    margin-left: 0%;
    cursor: pointer;
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
}
.tab.active {
  color: rgb(172, 177, 236);
}
.tab:hover{
    color: rgb(172, 177, 236)
}
.tab-content {
  padding-top: 280px;

}
  
/*flip book*/
#home {
    font-family: Anuphan;
    font-size: 20px;
    color: #64467f;
    margin-left: 8%;
    margin-right: 8%;
    text-align: thai justify;
}

.hidden {
    display: none !important;
}
/*body {
    place-content: center;
    height: 70vw;
    width: 100vw;
	overflow: hidden;
	background: #30029d;
}*/

.flipbook {
    width: 700px;
    height: 490px;
    position: absolute;
    overflow: hidden;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0; /* remove weird negative margin */
}

.flipbook .book-info {
    background: #44a38b !important;
    color: #fff;
    font-weight: bold;
    font-size: 25px;
    border: none; 
    /*    overflow: hidden;
    opacity: 0;
    transition: 1s; */
}
.flipbook .book-info2 {
    background: #3871f4 !important;
    color: #fff;
    font-weight: bold;
    font-size: 25px;
    border: none; 
    /*    overflow: hidden;
    opacity: 0;
    transition: 1s; */
}
.flipbook .book-info3 {
    background: #363637 !important;
    color: #fff;
    font-weight: bold;
    font-size: 25px;
    border: none; 
    /*    overflow: hidden;
    opacity: 0;
    transition: 1s; */
}
/*.flipbook .book-info small{
    left: 10%;
	font-style: italic;
	font-weight: lighter;
	opacity: 0.7;
	font-size: 14px;
}*/
.flipbook .page {
    background: white;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 0, 0, 0.11);
}
.page img{
	width: 100%;
	object-fit: cover;
	margin: auto;
}
.flipbook .page smallhead{
	font-size: 18px;
    color: #545454;
    margin-top: 80px;
    text-align: center;
}
.flipbook .page small{
	font-size: 14px;
    color: #545454;
    margin-left: 30px;
    margin-right: 30px;
    margin-bottom: 70px;
}
#book1 {
    top: 0;
}
#book2 {
    top: 550px; /* 490px book height + 60px gap */
}
#book3 {
    top: 1100px; /* 2 × (490 + 60) */
}


/*thumbnail-home*/
/*
.thumbnail-home{
    position: absolute;
    top: 700px;
    z-index: 11;
    display: flex;
    gap: 60px;
    width: 100%;
    padding: 0 0px;
    box-sizing: border-box;
    overflow: auto;
    justify-content: center;
}

.thumbnail-home::-webkit-scrollbar{
    width: 0;
}

.thumbnail-home .item{
    width: 200px;
    height: 230px;
    filter: brightness(0.5);
    transition: .5s;
    flex-shrink: 0;
}
.thumbnail-home .item img{
    align-items: center;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.thumbnail-home .item.active{
    filter: brightness(1.2);
}
.thumbnail-home .item .content{
    position: absolute;
    inset: auto 10px 10px 10px;
    font-size: 14px;
    font-weight: 300;
    color: #3c2b64;
    text-align: center;
    top: 230px;
    /*bottom: 10px;
}*/

/*Member page*/
.slider{
    height: 79vh;
    margin-top: -100px;
    position: relative;
}
.slider .list .item{
    margin-top: -116px;
    position: absolute;
    inset: 0 0 0 0;
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}
.slider .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    size: relative;
    position: relative;
}
.img.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto; /* จัดให้อยู่กึ่งกลางแนวนอน */
}
.slider .list .item::after{
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 200;
    bottom: 0;
    background-image: linear-gradient(
        to top, #000 40%, transparent
    );
}
.slider .list .item .content{
    position: absolute;
    left: 5%;
    top: 5%;
    width: 90%;
    z-index: 1;
}
.slider .list .item .content h1:nth-child(1){
    text-transform: uppercase;
    letter-spacing: 10px;
}
/* h1 = GM23 */
.slider .list .item .content h1{
    font-size: 20px;
    font-weight: 500;
    color: #3f097d;
    height: 50px;
    margin: 0;
}
/* h2 = Name */
.slider .list .item .content h2{
    text-align: left;
    font-size: 40px;
    font-weight: 500;
    color: #ffffff;
    font-family: Anuphan;
    letter-spacing: 1px;
    height: 50px;
    margin: 0;
}
/* h3 = Nick */
.slider .list .item .content h3{
    text-align: right;
    font-size: 90px;
    font-weight: bolder;
    color: #ffffff;
    font-family: Anuphan;
    letter-spacing: 1px;   
    height: 150px;
    color: rgb(237, 121, 204);
    margin: 0;
}
/* h4 = Role */
.slider .list .item .content h4{
    font-size: 30px;
    font-weight: 300;
    color: #ffffff;
    font-family: Anuphan;
    width: 50%;
    margin: 0;

}    
/* h5 = Motto */
.slider .list .item .content h5{
    font-size: 25px;
    font-weight: 300;
    color: #ffffff;
    font-family: Anuphan;
    margin-bottom: 0px;
    margin: 0;
}    
.slider .list .item.active{
    opacity: 1;
    z-index: 10;
}
@keyframes showContent {
    to{
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}
.slider .list .item.active p:nth-child(1),
.slider .list .item.active h1,
.slider .list .item.active h2,
.slider .list .item.active h3,
.slider .list .item.active h4,
.slider .list .item.active h5,
.slider .list .item.active p:nth-child(3){
    transform: translateY(30px);
    filter: blur(0px);
    opacity: 0;
    animation: showContent 1s 1.5s ease-in-out 1 forwards;
}
.slider .list .item.active h1{
    animation-delay: 1s;
}
.slider .list .item.active h2{
    animation-delay: 1.3s;
}
.slider .list .item.active h3{
    animation-delay: 1.3s;
}
.slider .list .item.active p:nth-child(3){
    animation-delay: 1.6s;
}
.slider .list .item.active h4{
    animation-delay: 1.9s;
}
.slider .list .item.active h5{
    animation-delay: 2.2s;
}

.arrows{
    position: absolute;
    top: 50%;
    right: 30px;
    z-index: 100;
}
.arrows button{
    background-color: #eee5;
    border: none;
    font-family: monospace;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    font-size: x-large;
    color: #eee;
    transition: .5s;
}
.arrows button:hover{
    background-color: #eee;
    color: black;
}
.thumbnail{
    position: absolute;
    bottom: -30px;
    z-index: 11;
    display: flex;
    gap: 10px;
    width: 100%;
    height: 250px;
    padding: 0 20px;
    box-sizing: border-box;
    overflow: auto;
    justify-content: center;
}
.thumbnail::-webkit-scrollbar{
    width: 0;
}
.thumbnail .item{
    overflow-x: hidden;
    width: 150px;
    height: 220px;
    filter: brightness(0.5);
    transition: .5s;
    flex-shrink: 0;
}
.thumbnail .item img{
    width: 100%;
    height: 85%;
    object-fit: cover;
    border-radius: 10px;
}
.thumbnail .item.active{
    filter: brightness(1.2);
}
.thumbnail .item .content{
    position: absolute;
    inset: auto 10px 10px 10px;
    font-family: Anuphan;
    font-size: 25px;
    font-weight: 300;
    bottom: 0;
}
@media screen and (max-width: 678px) {
    .thumbnail{
        justify-content: relative;
    }
    .arrows{
        top: -70px;
    }
    .thumbnail .item{    
    width: 120px;
    height: 175px;
    }
    .img.responsive-img {
    width: 50%;      /* ปรับขนาดรูปให้เล็กลงบนมือถือ */
}
        .slider .list .item .content h1{
        
        font-size: 15px;
    }
	.slider .list .item .content h2{
        
        font-size: 28px;
    }
    .slider .list .item .content h3{
    font-size: 50px;
    }
    .slider .list .item .content h4{
    font-size: 18px;
}    
    .slider .list .item .content h5{
    font-size: 22px;
} 
}

/*end member*/

/*About*/

/*end About*/
/*Promotion*/
.image-stack img {
  display: block;      /* ทำให้แต่ละภาพอยู่คนละบรรทัด */
  width: 100%;         /* ปรับกว้างเท่ากับ container */
  height: auto;        /* รักษาสัดส่วนเดิม */
  margin: 0;           /* เอาระยะห่างออกถ้าไม่ต้องการ */
  padding: 0;
}
#promotion img {
  max-width: 100%; /* ปรับเป็นเปอร์เซ็นต์ตามต้องการ */
  height: auto;   /* รักษาสัดส่วนเดิม */
  display: block;
  margin-top: -220px;
}
/* end Promotion */
/* Order */
.order-container {
  display: flex;
  margin-top: -100px;
  align-items: center !important;    /* กึ่งกลางแนวนอน */
  justify-content: center;        /* ชิดบนในแนวตั้ง */
  /*height: 6vh;           /* ให้ container สูงเต็มจอ */
}
.google-form-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #34064d;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 20px;
  font-family: 'Anuphan', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.google-form-button:hover {
  background-color: #b99cbd;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
.jntgoogle-form-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ec59ef;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 20px;
  font-family: 'Anuphan', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.jntgoogle-form-button:hover {
  background-color: #f6a7ea;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
.order-text {
  text-align: center !important;   /* บังคับให้ข้อความกึ่งกลาง */
  display: flex !important;         /* ใช้ flexbox */
  flex-direction: column;           /* เรียงแนวตั้ง */
  align-items: center !important;  /* กึ่งกลางแนวนอน */
  justify-content: center;          /* กึ่งกลางแนวตั้ง (ถ้าต้องการ) */
  width: 100%;
  font-size: 30px;
  font-family: 'Anuphan', sans-serif;
  color: #390041;
}
.order-text img {
  display: block;
  margin: 50px auto 0; /* เว้นระยะด้านบน */
  width: 300px;
  height: 300px;
  align-items: center;
}
/* end Order */
/* Contact */
.contact-container {
  display: flex;
  flex-direction: column; /* เรียงบน-ล่าง */
  margin-top: -220px;
  width: 100%;
  height: auto;
  align-items: center; /* จัดให้อยู่กึ่งกลางแนวนอน */
}
.contact-container img {
  width: 100%;
  height: auto;
  display: block;
}
.contact-map {
  width: 100%;
  margin-top: -20px;
}
.contact-map iframe {
  width: 100%;
  height: 450px; /* ปรับความสูงได้ */
  display: block;
  border: 0;
}
/* end Contact */

@media screen and (max-width: 678px) {
/*navbar*/
  .navbar {
    display: flex;
    flex-direction: row;
    align-items: flex-start;

  }
  .tabs {
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    padding: 0;
    gap: 2rem;
    border: none;
    font-size: 15px;
  }
  /*order*/
  .google-form-button {
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 15px;
    }
  .google-form-button:hover {
    background-color: #b99cbd;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  }
  .order-text {
    font-size: 20px;
  }
  .order-text img {
    width: 200px;
    height: 200px;
  }  
}

.responsive-img {
    width: 100%;
    height: auto;
  }
/*ที่เพิ่มมา Glory-Flipbook 2*/
#home.active[data-tab-content] {
    position: relative;
    height: 1700px; 
    margin-top: -200px; 
}
#home #book1,
#home #book2,
#home #book3 {
    position: absolute !important; 
    left: 0px !important;          
    transform: none !important;     
    top: auto !important;           
    margin: 0 !important;
    font-family: Anuphan;
}
#home #book1 {
    top: 320px !important;
}
#home #book2 {
    top: 820px !important;
}
#home #book3 {
    top: 1320px !important; 
}
@media screen and (max-width: 678px) { 
    #home.active[data-tab-content] {
    position: relative;
    height: 1700px; 
    margin-top: -200px;     
    }
    #home #book1,
    #home #book2,
    #home #book3 {
    position: relative !important; 
    size-adjust: relative;
    }
    #home #book1 {
    top: 0px !important;
    }
    #home #book2 {
    top: 15px !important;
    }
    #home #book3 {
    top: 30px !important; 
    }
#home {
    font-family: Anuphan;
    font-size: 10px;
    color: #64467f;
    widht; 100%
    text-align: thai justify;
    }
}