/* age-verification.css */
/* เพิ่มใน age-verification.css */
@import url("https://use.typekit.net/inc2bvq.css");

body.age-check-page {
  padding-top: 0 !important;
}

.age-check-page .menu-wrapper,
.age-check-page #masthead,
.age-check-page .navbar,
.age-check-page header,
.age-check-page .header-wrapper,
.age-check-page .menu-container {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.age-check-page {
  padding: 0 !important;
  margin: 0 !important;
  min-height: 100vh;
  background: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

#age-verification-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: url('/wp-content/uploads/2025/02/bg-bubble.webp');
  background-size: cover;
  background-position: center;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bubble-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.verify-content,
.restricted-notice {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  text-align: center;
  padding: 20px;
  color: black;
}

.terms-page {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  text-align: center;
  padding: 20px;
  color: black;

  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.logo {
  width: auto;
  height: 120px;
  margin-bottom: 20px;
}

.welcome-text {
  font-size: 32px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.disclaimer {
  font-size: 50px !important;
  font-family: "brother-1816", sans-serif !important;
  font-weight: 700 !important;
  margin-bottom: 0px !important;
}

.small {
  font-size: 14px !important;
    text-align:center
}

.notice-text {
  font-family: "brother-1816", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
    text-align:center;
}

.notice-text-bold {
  font-family: "brother-1816", sans-serif;
  font-weight: 700;
  font-size:1.4rem;
  font-style: normal;
  text-transform: uppercase;
}

.age-question {
  font-size: 24px;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.choice-btns {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.choice-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: black;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.restricted-text {
  font-size: 24px;
  line-height: 1.6;
  margin: 40px auto;
  max-width: 700px;
  letter-spacing: 1px;
}

.back-btn {
  width: 60px;
  height: 60px;
  background: black;
  color: white;
  border: none;
  cursor: pointer;
  font-family: "brother-1816", sans-serif !important;
  font-size: 30px;
  letter-spacing: 1px;
  transition: opacity 0.3s;
  border-radius: 50%;
}

.back-btn-main {
  width: 61px;
  height: 61px;
}


.back-btn:hover {
  opacity: 0.8;
}

/* Hide header and footer on age check page */
.age-check-page header,
.age-check-page footer {
  display: none;
}

@media (max-width: 768px) {
  .logo {
    height: 80px;
    margin-bottom: 30px;
  }

  .welcome-text {
    font-size: 24px;
  }

  .notice-text,
  .age-question,
  .restricted-text {
    font-size: 17px;
  }
  
  .notice-text-bold {
    font-size: 13px;
  }

  .choice-circle {
    width: 60px;
    height: 60px;
    font-size: 20px;
  }

  .choice-btns {
    gap: 20px;
  }
}

/* ปรับ media query สำหรับ mobile */
@media (max-width: 768px) {
  .terms-page {
    padding: 20px 20px; /* ลด padding ด้านข้างเล็กน้อย */
  }

  .terms-page .notice-text.small {
    font-size: 10px !important; /* ปรับขนาดตัวอักษรให้เล็กลงเล็กน้อย */
    line-height: 1.6;
    padding: 0 10px;
    text-align:center;
  }

    .notice-text.small {
    text-align: left;
    padding: 0 15px;
    margin-bottom: 15px;
  }
}


/* Add this to your existing age-verification.css file */

.choice-circle,
.back-btn-main {
    position: relative;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-image {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.button-image.hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.button-image.normal {
    opacity: 1;
}

/* Hover states */
.choice-circle:hover .button-image.normal,
.back-btn-main:hover .button-image.normal {
    opacity: 0;
}

.choice-circle:hover .button-image.hover,
.back-btn-main:hover .button-image.hover {
    opacity: 1;
}


/* เพิ่มโค้ดนี้ต่อท้ายไฟล์ age-verification.css */

/* Disable hover effects on touch devices */
@media (hover: none) {
    .choice-circle:hover .button-image.normal,
    .back-btn-main:hover .button-image.normal,
    .terms-back-btn:hover .button-image.normal {
        opacity: 1 !important;
    }

    .choice-circle:hover .button-image.hover,
    .back-btn-main:hover .button-image.hover,
    .terms-back-btn:hover .button-image.hover {
        opacity: 0 !important;
    }
    
    /* Apply active state instantly for mobile */
    .choice-circle:active .button-image.normal,
    .back-btn-main:active .button-image.normal,
    .terms-back-btn:active .button-image.normal {
        opacity: 0 !important;
    }

    .choice-circle:active .button-image.hover,
    .back-btn-main:active .button-image.hover,
    .terms-back-btn:active .button-image.hover {
        opacity: 1 !important;
    }
}

/* Alternative solution using "ontouchstart" detection */
@media (pointer: coarse) {
    .choice-circle:hover .button-image.normal,
    .back-btn-main:hover .button-image.normal,
    .terms-back-btn:hover .button-image.normal {
        opacity: 1 !important;
    }

    .choice-circle:hover .button-image.hover,
    .back-btn-main:hover .button-image.hover,
    .terms-back-btn:hover .button-image.hover {
        opacity: 0 !important;
    }
}