/* start ads */

#ad-container {
  margin-left: -10px;
  margin-right: -10px;
  margin-top: -10px;
  margin-bottom: 10px;

  width: calc(100% + 20px);
  min-width: 320px; /* 🔴 VERY IMPORTANT */
  min-height: 60px; /* safe banner height */

  background-color: #2e3844;
  text-align: center;

  display: block; /* 🔴 NOT flex */
}

/* AD LABEL */
.advertise-lable {
  font-size: 11px;
  color: #9aa0a6;
  letter-spacing: 1px;
  text-align: center;
  /* padding: 4px 10px; */
  line-height: 1;
  white-space: nowrap;
  padding-top: 10px;
  padding-bottom: 5px;
}

/* Ad load na hoy to space na le */
/* #ad-container:empty {
  display: none;
} */

/* end ads */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(160deg, #222831, #e0e0e0);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  min-height: 100vh;
}

.container {
  background-color: #1e2630;
  padding: 10px;
  width: 350px;
  height: auto;
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.title {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}

.subtitle {
  font-size: 14px;
  text-align: center;
  margin-bottom: 20px;
}

.question-box,
.result-box {
  background-color: #2e3844;
  padding: 0px;
  padding-left: 18px;
  padding-right: 18px;
  border-radius: 10px;
  text-align: center;
}

.quiz-container {
  padding: 0px;
  padding-left: 18px;
  padding-right: 18px;
  border-radius: 10px;
  text-align: center;
}


.question {
  font-size: 16px;
  margin-bottom: 15px;
}
.subtitle {
  margin-top: 10px;
}

.option-btn {
  display: block;
  width: 100%;
  margin: 5px 0;
  padding: 10px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  background-color: #3a4452;
  color: white;
  cursor: pointer;
}

.option-btn:hover {
  background-color: #505f6f;
}

.option-btn.correct {
  background: #2ecc71;
}
.option-btn.wrong {
  background: #e74c3c;
}
.option-btn.disabled {
  pointer-events: none;
}
.play-again-btn {
  background-color: #05ffff;
  color: black;
  font-size: 24px;
  padding: 18px 0;

  /* animation */
  animation: softBlink 1.8s infinite;
}

/* subtle blink keyframes */
@keyframes softBlink {
  0% {
    box-shadow: 0 0 0 rgba(5, 255, 255, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 12px rgba(5, 255, 255, 0.9);
    transform: scale(1.03);
  }
  100% {
    box-shadow: 0 0 0 rgba(5, 255, 255, 0.6);
    transform: scale(1);
  }
}

.fact-box {
  background-color: #3b4554;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  margin: 18px;
  font-weight: bold;
}

.score {
  font-size: 28px;
  font-weight: bold;
  margin: 15px 0;
  color: #2ecc71;
}

.message {
  font-size: 16px;
}

/* WHY CHOOSE BOX */
.why-box {
  background: #2e3844;
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
}

.why-title {
  text-align: center;
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 14px;
  color: #ffffff;
}

.why-item {
  display: flex;
  align-items: flex-start;
  background: #1f2937;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.fun-fact {
  background: #1f2937;
  border-radius: 10px;
  margin-bottom: 16px;
  margin-left: 16px;
  margin-right: 16px;
  padding: 12px;
}

.how-to-play {
  background: #1f2937;
  border-radius: 10px;
  margin: 16px;
  padding: 12px;
  margin-bottom: 10px;
}

.play-win-section {
  background: #1f2937;
  border-radius: 10px;
  margin-bottom: 16px;
  margin-left: 16px;
  margin-right: 16px;
  padding: 12px;
}

.why-item:last-child {
  margin-bottom: 0;
}

.why-icon {
  font-size: 18px;
  margin-right: 10px;
  line-height: 1.2;
}

.why-heading {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
}

.why-text {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

/* COMMON INFO BOX */
.info-box {
  background: #3b4554;
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
  color: #ffffff;
}

/* TITLES */
.info-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* FUN FACT */
.fun-fact {
  text-align: center;
}

.fun-fact .info-title {
  margin-bottom: 6px;
}

.info-text {
  font-size: 14px;
  line-height: 1.5;
}

/* HOW TO PLAY */
.info-list {
  padding-left: 18px;
  margin: 0;
}

.info-list li {
  font-size: 14px;
  margin-bottom: 6px;
}

/* PLAY QUIZ INFO */
.info-bullets {
  padding-left: 18px;
  margin: 0;
}

.info-bullets li {
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.5;
}

/* PLAY QUIZ AND WIN COINS - PLAIN SECTION */
.play-win-section {
  margin-top: 20px;
  padding-bottom: 10px;
  color: #ffffff;
}

.play-win-title {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
}

.play-win-line {
  width: 180px;
  height: 2px;
  background: #ffffff;
  margin: 0 auto 14px;
  border-radius: 2px;
}

.play-win-list {
  padding-left: 18px;
  margin: 0;
}

.play-win-list li {
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.5;
  color: #e5e7eb;
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: #1f2937;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.menu-icon {
  font-size: 20px;
  color: #ffffff;
  cursor: pointer;
}

.app-title {
  font-size: 20px;
  font-weight: bold;
  color: #05ffff;
}

.coin-box {
  display: flex;
  align-items: center;
  gap: 6px;

  background: #2e3844;
  padding: 6px 10px;
  border-radius: 20px;
}

.coin-icon {
  font-size: 16px;
}

.coin-count {
  font-weight: bold;
  color: #05ffff;
}

.quiz-card {
  background: #2e3844;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.quiz-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.quiz-icon {
  font-size: 32px;
}

.quiz-category {
  font-size: 13px;
  color: #cbd5e1;
}

.quiz-title {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
}

.quiz-fee {
  font-size: 13px;
  color: #05ffff;
  margin-top: 2px;
}

.play-btn {
  background: #05ffff;
  color: #1e2630;
  font-size: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ===== OVERLAY ===== */
#drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999;
}

/* ===== DRAWER ===== */
#side-drawer {
  position: fixed;
  top: 0;
  left: -230px;
  width: 230px;
  height: 100%;
  background: #2e3844;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.6);
  transition: left 0.3s ease;
  z-index: 1000;
}

/* OPEN STATE */
#side-drawer.open {
  left: 0;
}

#drawer-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* DRAWER CONTENT */
.drawer-header {
  padding: 20px;
  font-size: 22px;
  font-weight: bold;
  color: #05ffff;
  border-bottom: 1px solid #1f2937;
}

.drawer-item {
  padding: 15px 20px;
  font-size: 15px;
  color: #e5e7eb;
  cursor: pointer;
}

.drawer-item:hover {
  background: #1f2937;
}

.back-icon {
  font-size: 22px;
  color: #ffffff;
  cursor: pointer;
  padding: 6px;
}

.back-icon:active {
  opacity: 0.6;
}

.quiz-detail-card {
  background: #2e3844;
  border-radius: 16px;
  padding: 20px;
  color: #ffffff;
}

/* HEADER */
.quiz-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.quiz-detail-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.quiz-detail-category {
  font-size: 13px;
  font-weight: bold;
  color: #ffb540;
  letter-spacing: 1px;
}

.quiz-detail-title {
  font-size: 20px;
  font-weight: bold;
}

.quiz-detail-title span {
  color: #ffb540;
}

/* BUTTONS */
.detail-btn {
  width: 100%;
  padding: 14px;
  border-radius: 30px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.secondary-btn {
  background: #ffb540;
  color: #2e3844;
}

/* RULES */
.quiz-rules {
  margin-top: 18px;
  padding-left: 18px;
}

.quiz-rules li {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: #e5e7eb;
}

.play-wrapper {
  max-width: 360px;
  margin: auto;
}

/* HEADER */
.play-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category {
  color: #ffb540;
  font-weight: bold;
}

.win-text {
  font-size: 14px;
  opacity: 0.9;
}

.close-btn {
  font-size: 20px;
  cursor: pointer;
}

/* TIMER */
.timer-ring {
  position: relative;
  width: 90px;
  margin: 20px auto;
}

.timer-ring svg circle {
  fill: none;
  stroke-width: 6;
}

.timer-ring svg circle:first-child {
  stroke: #334155;
}

#progressCircle {
  stroke: #ffb540;
  stroke-dasharray: 238;
  stroke-dashoffset: 0;
  transform: rotate(-90deg);
  transform-origin: center;
}

.time-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* SCORE BAR */
.score-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #334155;
  padding: 10px;
  border-radius: 12px;
}

.category_score {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.green {
  background: #22c55e;
}
.red {
  background: #ef4444;
}

.question-progress {
  font-size: 14px;
}

/* QUESTION */
.question-text {
  margin: 18px 0;
  font-size: 15px;
  text-align: center;
}

/* OPTIONS */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.category-option-btn {
  background: #2e3844;
  border: none;
  padding: 12px;
  border-radius: 10px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.category-option-btn:hover {
  background: #334155;
}

/* FOOTER */
.score-footer {
  margin-top: 14px;
  text-align: center;
  color: #ffb540;
}

.video-card {
  position: relative;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
  background: #000;
  margin-bottom: 20px;
}

.video-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Center play button */
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.play-icon circle {
  fill: #c96539;
  opacity: 0.95;
}

.play-icon path {
  fill: #ffffff;
}

/* Bottom controls */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 12px 8px;
  color: #ffffff;
  font-size: 12px;
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 2px;
  background: rgba(128, 128, 128, 0.5);
  margin-bottom: 8px;
}

.progress-filled {
  width: 1%;
  height: 100%;
  background: #d97706; /* amber */
}

/* Controls row */
.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.left-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.small-play-icon {
  width: 20px;
  height: 20px;
  fill: white;
}
