/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Line Seed Sans Extra Bold';
  src: url('fonts/LineSeeds/LINESeedSansTH_W_XBd.woff2') format('woff2'),
}

@font-face {
  font-family: 'Line Seed Sans Regular';
  src: url('fonts/LineSeeds/LINESeedSansTH_W_Rg.woff2') format('woff2'),
}

@font-face {
  font-family: 'Aktive Grotesk';
  src: url('fonts/Aktiv/fonnts.com-Aktiv_Grotesk_Thai.woff') format('woff'),
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* ความสูงของ viewport */
  margin: 0;
  background-color: black;
  background-image: url('image/Payment_2.png'); /* ใช้ภาพพื้นหลัง */
  background-size: contain; /* ขนาดคงที่ของพื้นหลัง */
  background-position: center; /* จัดตำแหน่งภาพให้อยู่กึ่งกลาง */
  background-repeat: no-repeat; /* ไม่ให้ภาพซ้ำ */
  background-attachment: fixed; /* ทำให้ภาพพื้นหลังติดอยู่กับ viewport */
}

/* Container */
#payment-box {
  margin-bottom: 1rem;
}

/* Payment Box */
#payment-box h1 {
  font-family: 'Line Seed Sans Extra Bold' , sans-serif;
  font-size: 2.5rem;
  /* text-shadow: 0.3rem 0.3rem #0b2d53; */
  color: #282f6b;
  text-align: center;
}

#payment-box #h1-pay
{
  font-family: 'Line Seed Sans Extra Bold' , sans-serif;
  font-size: 2.5rem;
  /* text-shadow: 0.3rem 0.3rem #0b2d53; */
  color: #282f6b;
  margin-top: -0.75rem;
  text-align: center;
}

#payment-box h3 {
  font-family: 'Line Seed Sans Extra Bold' , sans-serif;
  font-size: 1rem;
  color: #282f6b;
  margin-bottom: 1rem;
  text-align: center;
}

#payment-box p {
  font-family: 'Line Seed Sans Extra Bold' , sans-serif;
  font-size: 0.75rem;
  color: #0056b3;
  text-align: center;
}

/* QR Code Container */
#qr-container img {
  max-width: 100%;
  border-radius: 0.75rem;
}

#qr-frame {
  width: 100%; /* ให้เท่ากับ #qr-code */
  margin: 0 auto 0; /* เว้นระยะด้านบน */
  background-color: #fff; /* สีพื้นหลัง */
  border-radius: 0.75rem;
}


#qr-frame p {
  font-family: 'Line Seed Sans Extra Bold' , sans-serif;
  font-size: 0.75rem;
  margin-top: -0.5rem;
  color: #0b2d53;
  text-align: center;
}

#qr-frame #money {
  font-family: 'Line Seed Sans Extra Bold' , sans-serif;
  font-size: 1rem; /* กำหนดขนาดตัวอักษรใหญ่ขึ้น */
  margin-top: -0.2rem;
  padding-bottom: 0.5rem;
  color: #0b2d53;
  text-align: center;
}

#countdown {
  margin-top: 1rem;
  border-color: #282f6b;
  border-width: 0.2rem;
  border-style: solid;
  border-radius: 1rem;
}

#countdown p
{
  margin-top: 0.5rem;
  font-family: 'Line Seed Sans Regular' , sans-serif;
  font-size: 1rem; /* กำหนดขนาดตัวอักษรใหญ่ขึ้น */
  color: #282f6b;
  text-align: center;
}

#count-time p
{
  margin-top: -0.5rem;
  font-family: 'Line Seed Sans Extra Bold' , sans-serif;
  font-size: 1.75rem;
  color: #282f6b;
  text-align: center;
}

.custom-link {
  color: #282f6b;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 0.3s ease;
}

/* ลิงก์ปุ่มปิดที่อยู่ด้านล่างตรงกลาง */
.custom-link-bottom {
  text-decoration: underline;
  font-size: 1rem;
  font-family: 'Line Seed Sans Regular', sans-serif;  
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
}

/* ลิงก์ปุ่มปิดที่อยู่มุมขวาบน */
.custom-link-top-right {
  font-family: 'Line Seed Sans Regular', sans-serif;
  font-size: 1.25rem;  
  text-decoration: none;
  padding: 1.5rem 1.5rem;
  border-radius: 50%;   
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
}

.custom-link-bottom-exit {
  text-decoration: underline;
  font-size: 1rem;
  font-family: 'Line Seed Sans Regular', sans-serif;  
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
}

/* Modal Container */
#modal {
  display: none; /* ซ่อน modal เริ่มต้น */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* พื้นหลังโปร่งใส */
  justify-content: center; /* จัดให้อยู่กึ่งกลางแนวนอน */
  align-items: center; /* จัดให้อยู่กึ่งกลางแนวตั้ง */
  z-index: 1000; /* อยู่ด้านหน้าสุด */
}

/* Modal Content */
#modal-content {
  background-color: white; /* สีพื้นหลังของ modal */
  padding: 20px;
  border-radius: 10px; /* มุมโค้ง */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* เงา */
  text-align: center; /* จัดข้อความให้อยู่ตรงกลาง */
  max-width: 90%; /* จำกัดความกว้าง */
  width: 300px; /* กำหนดความกว้างคงที่ */
}

/* Modal Message */
#modal-message {
  font-family: 'Line Seed Sans Extra Bold', sans-serif;
  font-size: 0.75rem;
  color: #333; /* สีตัวอักษร */
  margin-bottom: 20px;
}

/* Modal Action Button */
#modal-action {
  padding: 10px 20px;
  background-color: #282f6b; /* สีน้ำเงิน */
  color: white;
  font-family: 'Line Seed Sans Extra Bold', sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#modal-action:hover {
  background-color: #282f6b; /* สีเมื่อ hover */
}
