@font-face {
  font-family: 'Mitr';
  src: url('/assets/fonts/Mitr-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Mitr2';
  src: url('/assets/fonts/Mitr-Regular.ttf') format('truetype');
}

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  background-color: #1b1b1b;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Mitr2', Arial, sans-serif;
}

.mobile-screen {
  width: 100%;
  max-width: 390px;
  height: 100%;
  max-height: 667px;
  background-color: #fff;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.slide-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide-image.active {
  opacity: 1;
  z-index: 1;
}

#img1,
#img2 {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
  z-index: 0;
}

#img1.active,
#img2.active {
  opacity: 1;
  z-index: 1;
}

.text-overlay {
  position: absolute;
  color: #1E146C;
  padding: 10px 0px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  font-size: 18px;
  text-align: center;
  z-index: 9999;
  opacity: 1;
}

.text-screen-3 {
  position: absolute;
  color: #fcfcfc;
  padding: 10px 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100% !important;
  font-size: 18px;
  text-align: center;
  z-index: 9999;
  opacity: 1;
}

.text-screen-18 {
  position: absolute;
  color: #1E146C;
  padding: 10px 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100% !important;
  font-size: 18px;
  text-align: center;
  z-index: 9999;
  opacity: 1;
}

.text-screen-19 {
  position: absolute;
  color: #1E146C;
  padding: 10px 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100% !important;
  font-size: 18px;
  text-align: center;
  z-index: 9999;
  opacity: 1;
}

.text-screen-23 {
  font-size: 14px;
  color: white;
  font-weight: bold;
  background-color: #4746468e;
  /* สีเทาเข้ม */
  display: inline-block;
  padding: 0px 2px;
  border-radius: 0px;
}

.text-screen-27 {
  position: absolute;
  color: #1E146C;
  padding: 10px 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100% !important;
  font-size: 18px;
  text-align: center;
  z-index: 9999;
  opacity: 1;
}

.text-screen-54 {
  position: absolute;
  color: #1E146C;
  padding: 10px 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100% !important;
  font-size: 18px;
  text-align: center;
  z-index: 9999;
  opacity: 1;
}

.text-screen-82 {
  position: absolute;
  color: #1E146C;
  padding: 10px 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100% !important;
  font-size: 18px;
  text-align: center;
  z-index: 9999;
  opacity: 1;
}

.text-screen-96 {
  position: absolute;
  color: #fcfcfc;
  padding: 10px 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100% !important;
  font-size: 18px;
  text-align: center;
  z-index: 9999;
  opacity: 1;
}

.text-screen-128 {
  position: absolute;
  color: #fcfcfc;
  padding: 10px 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100% !important;
  font-size: 18px;
  text-align: center;
  z-index: 9999;
  opacity: 1;
}

.text-screen-67 {
  margin-bottom: 100px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 20px !important;
  margin: 20px 0 !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  margin-left: 69px !important;

  width: 64%;
  max-width: 320px;
  padding: 16px 20px;
  font-size: 20px;
  font-family: 'Mitr', sans-serif;
  color: #fff;
  background-color: #2c1778;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.text-screen-57 {
  color: #1E146C;
  margin-top: 30px;
}

.text-screen-74 {
  color: #1E146C;
  margin-bottom: 30px;
}

.text-screen-121 {
  color: #fff;
  margin-bottom: 30px;
}


.text-screen-110 {
  top: 2% !important;
}

.text-screen-112 {
  position: absolute;
  color: #fcfcfc;
  padding: 10px 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100% !important;
  font-size: 18px;
  text-align: center;
  z-index: 9999;
  opacity: 1;
}

.question1-text-one {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  color: #1E146C;
  padding: 10px 20px;
  width: calc(100% - 40px);
  font-size: 15px;
  text-align: center;
  z-index: 9999;
  opacity: 1;
  margin-top: 40px;
  font-family: 'Mitr';
}

.question1-text-two {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  color: #1e1167;
  padding: 10px 0;
  width: 40% !important;
  font-size: 15px;
  text-align: center;
  z-index: 9999;
  opacity: 1;
  margin-top: 120px;
  border-radius: 20px;
}

.question2-text-one {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  color: #1E146C;
  padding: 10px 20px;
  width: calc(100% - 40px);
  font-size: 15px;
  text-align: center;
  z-index: 9999;
  opacity: 1;
  margin-top: 20px;
}

/* .question2-text-two {
  position: absolute;
  top: -290 !important;
  left: 50%;
  transform: translateX(-50%);
  color: #1E146C;
  padding: 10px 0;
  width: 40% !important;
  font-size: 15px;
  text-align: center;
  z-index: 9999;
  opacity: 1;
  margin-top: 75px;
  border-radius: 20px;
} */

.text-button1-48 {
  color: red;
}

.text-button2-48 {
  color: red;
}




.text-top {
  top: 5%;
}

.text-bottom {
  bottom: 10%;
}

.overlay {
  position: absolute;
  z-index: 3;
  transition: transform 0.3s ease;
}


.glow-dot:hover {
  opacity: 0.5;
}

.glow-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: red;
  box-shadow: 0 0 20px 8px rgba(255, 0, 0, 0.5);
  z-index: 4;
  cursor: pointer;
  transition: opacity 0.4s ease;
}

.glow-dot-img {
  width: 70px;
  height: 70px;
  cursor: pointer;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.glow-dot-img.fade-out {
  opacity: 0;
}


.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.glow-dot.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}



.small-text {
  position: absolute;
  color: #f8f8f8;
  padding: 10px 16px;
  border-radius: 8px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  font-size: 18px;
  text-align: center;
  z-index: 9999;
  /* 💥 ให้แน่ใจว่าอยู่บนสุด */
  opacity: 1;
}

.text-35 {
  font-size: 15px;
}


.sceen-text {
  font-family: 'Mitr2';
  font-size: 16px;
  color: white;
  font-weight: bold;
  background-color: #4746468e;
  /* สีเทาเข้ม */
  display: inline-block;
  padding: 0px 2px;
  border-radius: 0px;
}


.time-bar-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: 20;
}

.time-bar-fill {
  height: 100%;
  width: 0%;
  background-color: rgb(52, 235, 100);
  transition: width linear;
}

.question-container {
  position: absolute;
  bottom: 10%;
  width: 100%;
  text-align: center;
  z-index: 15;
}

.question-container1 {
  position: absolute;
  bottom: 10%;
  width: 100%;
  text-align: center;
  z-index: 15;
  margin-bottom: 20px;
}

.question-container2 {
  position: absolute;
  bottom: 5%;
  width: 100%;
  text-align: center;
  z-index: 15;
}

.question-container3 {
  position: absolute;
  bottom: 10%;
  width: 100%;
  text-align: center;
  z-index: 15;
  margin-bottom: 140px;
}

.question-container4 {
  position: absolute;
  bottom: 10%;
  width: 100%;
  text-align: center;
  z-index: 15;
  margin-bottom: 355px;
}

.question-container5 {
  position: absolute;
  bottom: 10%;
  width: 100%;
  text-align: center;
  z-index: 15;
  margin-bottom: 150px;
}

.choice-button {
  margin: 6px;
  padding: 12px 18px;
  background-color: #1e1167;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

.ranking-area {
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rank-tag {
  margin: 4px;
  padding: 6px 12px;
  background-color: #ccc;
  color: #000;
  border-radius: 6px;
  font-size: 16px;
}

.overlay {
  transition: opacity 0.5s ease;
  opacity: 1;
}

.fade-out {
  opacity: 0;
  pointer-events: none;
}

.choice-button {
  font-family: 'Mitr';
  font-size: 18px;
  padding: 14px;
  border-radius: 12px;
  background-color: #2c1778;
  color: white;
  border: none;
  cursor: pointer;
}

.quiz-text {
  color: #2c1778;
}

.selected-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-bottom: 130px;
  font-size: 13px;
  font-weight: bold;
  color: #2c1778;
  text-align: center;
  width: 100%;
  height: 50px;
  /* border: 1px solid red; */
}


.button-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 300px;
  margin: 0 auto;
}

.choice-button-frist {
  background-color: #a30069;
  color: #fff;
  padding: 10px 15px;
  font-family: 'Mitr2';
  font-size: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  margin: 10px;
  margin-bottom: 245px;
}

.choice-button-special {
  width: 125px;
  background-color: #a30069;
  color: #fff;
  padding: 10px 15px;
  font-family: 'Mitr2';
  font-size: 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  margin: 15px;
  margin-bottom: 200px;
}

.choice-button-column-spacial {
  width: 64%;
  max-width: 320px;
  padding: 16px 20px;
  font-size: 18px;
  font-family: 'Mitr', sans-serif;
  color: #fff;
  background-color: #a30069;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
  margin-bottom: 20px;
}

.choice-button-column-spacial2 {
  width: 64%;
  max-width: 320px;
  padding: 16px 20px;
  font-size: 18px;
  font-family: 'Mitr', sans-serif;
  color: #fff;
  background-color: #a30069;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
  margin-bottom: 20px;
}



.choice-button-frist:hover {
  background-color: #666;
  transform: scale(1.05);
}



.choice-button-multiple {
  background-color: #a30069;
  color: #fff;
  padding: 12px;
  font-family: 'Mitr';
  font-size: 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.choice-button-multiple:hover {
  background-color: #666;
  transform: scale(1.05);
}

.selected {
  background-color: #555;
  color: #ccc;
  opacity: 0.6;
  cursor: not-allowed;
}

.selected-choices span {
  margin: 0 5px;
  padding: 4px 8px;
  background-color: #f3f3f3;
  border-radius: 8px;
  color: #333;
}

.text-quiz {
  width: 300px;
  color: white;
  background-color: #1E146C;
  border-radius: 15px;
}

.text-quiz2 {
  width: 300px;
  color: rgb(255, 255, 255); /* ตัวอักษรขาวชัดเจน */
  background-color: rgba(146, 145, 148, 0.5); /* สีเทาโปร่งใส */
  border-radius: 15px;
  padding: 10px;
}

.button-zero,
.button-one,
.button-two,
.button-three {
  width: 50px;
  height: 80px;
  border-radius: 50%;
  border: none;
  margin: 10px;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, background-color 0.3s, box-shadow 0.3s;
  margin-bottom: 150px;

  /* ✅ เพิ่มโปร่งใส */
  opacity: 0.4;

  /* ✅ ยืนยันว่ายังสามารถกดได้ */
  pointer-events: auto;
}


/* สีของปุ่ม */
.button-zero {
  background-color: #333333;
}

.button-one {
  background-color: #333333;
}

.button-two {
  background-color: #333333;
}

.button-three {
  background-color: #333333;
}

/* เอฟเฟกต์เมื่อ hover */
.button-zero:hover,
.button-one:hover,
.button-two:hover,
.button-three:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* เอฟเฟกต์เมื่อคลิก */
.button-zero:active,
.button-one:active,
.button-two:active,
.button-three:active {
  transform: scale(0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}


.download-button {
  position: absolute;
  bottom: 35px;
  left: 85%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Mitr', sans-serif;
  font-size: 16px;
  transition: background-color 0.2s, opacity 0.2s;
  z-index: 9999;
  text-decoration: none;

  opacity: 0.0;

  pointer-events: auto;
}

.download-button:hover {
  background-color: #0056b3;
}

.swiper-container {
  width: 100%;
  height: 100vh;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  height: 100vh;
}

.swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}


#autoHint {
  position: fixed;
  bottom: 12px;
  right: 16px;
  font-size: 12px;
  color: #999999;
  padding: 6px 12px;
  border-radius: 12px;
  font-family: 'Mitr', sans-serif;
  z-index: 9999;
  opacity: 0.5;
}

#muteToggleBtn {
  position: fixed;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 9999;
}

#muteToggleBtn img {
  width: 48px;
  height: 48px;
}

.facebook-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  cursor: pointer;
  background-color: white;
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}


/* .clear-button {
  background-color: #a30069;
  color: white;
  padding: 8px 16px;
  margin: 10px auto;
  border: none;
  border-radius: 8px;
  font-family: 'Mitr2';
  font-size: 14px;
  display: block;
  cursor: pointer;
}
.clear-button:hover {
  background-color: #a30069;
} */


.clear-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.clear-text {
  font-family: 'Mitr';
  font-size: 16px;
  color: #1E146C;
}

.clear-button {
  color: rgb(0, 0, 0);
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  font-family: 'Mitr2';
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
