@import url("https://fonts.googleapis.com/css2?family=Prompt: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");
body {
  font-family: "Prompt" !important;
  margin: 0;
  min-height: 100vh;
  background-color: #f8f9fa;
  -webkit-user-select: none; /* ปิดการเลือกข้อความใน Safari และเบราว์เซอร์มือถือที่ใช้ WebKit */
  -moz-user-select: none; /* ปิดการเลือกข้อความใน Firefox */
  -ms-user-select: none; /* ปิดการเลือกข้อความใน Internet Explorer */
  user-select: none; /* ปิดการเลือกข้อความในเบราว์เซอร์ที่ทันสมัย */
}
.img-thumbnail {
  width: 600px;
}
/* สไตล์สำหรับส่วนหัว */
#header {
  background-color: #fff;
  border-bottom: 2px solid #e0e0e0;
  padding: 15px;
  text-align: center;
  z-index: 9999;
  transition: all 0.3s ease;
  /* เพิ่ม transition เพื่อให้ดูนุ่มนวล */
}
.text-topic {
  font-size: 24px;
  font-weight: bold;
}
/* สไตล์สำหรับส่วน Timer */
#timer-container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 100%;
  margin: auto;
  text-align: center;
  transition: all 0.3s ease;
}

#timer {
  font-size: 20px;
  font-weight: bold;
  color: #212529;
  letter-spacing: 2px;
}

.content {
  margin-top: 120px;
}

/* สไตล์สำหรับ badge สีเทาและสีเขียว */
.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.badge {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
}
.unanswered {
  background-color: #6c757d; /* สีเทาสำหรับคำถามที่ยังไม่ได้ตอบ */
  color: white;
}
.answered {
  background-color: #28a745; /* สีเขียวสำหรับคำถามที่ตอบแล้ว */
  color: white;
}
.nav-link.active {
  background-color: #ffffff;
  color: #000000 !important;
  border-radius: 5px;
  padding: 10px;
  font-weight: bold;
}
nav.modify-box-nav {
  background: linear-gradient(to left, #436af9, #ff774c);
}
.card-body {
  position: relative;
}

.traffic-lights {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
}

.dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: gray;
}

.yellow {
  background-color: #ffd000;
}

.green {
  background-color: green;
}

.red {
  background-color: red;
}

.form-label,
.form-control,
.form-select {
  font-size: 1.25rem !important;
}
.form-label {
  font-weight: 600;
}
/* Custom Alert */
.custom_alert {
  display: none;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  z-index: 1000;
}
/* End Custom Alert */
