.vq-container {
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
}

.vq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.vq-timer {
  font-weight: bold;
  color: #1565c0;
  font-size: 1.2em;
}

.vq-qblock {
  background: #f9fbff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.vq-btn {
  background: #0d47a1;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s;
}

.vq-btn:hover {
  background: #1565c0;
}

.vq-result {
  margin-top: 20px;
  font-size: 1.1em;
  text-align: center;
}

.vq-option-btn.shake {
  animation: shake 0.3s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}


.vq-option-btn {
  display: block;
  width: 100%;
  margin: 6px 0;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.vq-option-btn.vq-correct { background: #d4edda; border-color: #28a745; }
.vq-option-btn.vq-wrong   { background: #f8d7da; border-color: #dc3545; }
.shake { animation: vq-shake 0.3s; }
@keyframes vq-shake {
  0%,100%{transform:translateX(0)}
  25%{transform:translateX(-4px)}
  75%{transform:translateX(4px)}
}


/* 🔹 Quiz Loading Screen */
.vq-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 70vh;
  text-align: center;
  font-family: "Poppins", sans-serif;
  color: #0d47a1;
}

.vq-loading h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 12px;
}

.vq-spinner {
  width: 64px;
  height: 64px;
  border: 6px solid #e0e0e0;
  border-top: 6px solid #1565c0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 🧠 Fade transition for smooth scene change */
.vq-fade {
  animation: fadeIn 0.6s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.vq-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(90deg, #e8f0ff 0%, #f5f9ff 100%);
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(13, 71, 161, 0.08);
  margin-bottom: 20px;
}

.vq-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0d1b3d;
  margin: 0;
}

.vq-scoreboard {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0d47a1;
  margin-top: 6px;
}

.vq-score-label {
  color: #1565c0;
}

.vq-score-val {
  background: #e3f2fd;
  color: #0d47a1;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  min-width: 36px;
  text-align: center;
}

.vq-timer {
  background: #fff3e0;
  color: #ef6c00;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  min-width: 64px;
  text-align: center;
}


.vq-end {
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:60vh;
  text-align:center;
  font-family:'Poppins',sans-serif;
}

.vq-card {
  background:linear-gradient(135deg,#ffffff,#f7faff);
  border-radius:16px;
  padding:30px 40px;
  box-shadow:0 8px 20px rgba(0,0,0,0.1);
  max-width:600px;
  animation:vqFadeIn 0.6s ease-in-out;
}

.vq-level-title {
  font-size:2rem;
  margin-bottom:10px;
}

.vq-final-score {
  font-size:1.3rem;
  margin:8px 0 14px;
  color:#0d47a1;
}

.vq-final-msg {
  font-size:1.1rem;
  color:#333;
  margin-bottom:24px;
}

/* Level colors */
.vq-card.genius { background:linear-gradient(135deg,#fef3c7,#fde68a); }
.vq-card.master { background:linear-gradient(135deg,#c7d2fe,#a5b4fc); }
.vq-card.challenger { background:linear-gradient(135deg,#bae6fd,#7dd3fc); }
.vq-card.starter { background:linear-gradient(135deg,#dcfce7,#bbf7d0); }

.vq-restart-btn {
  background:#0d47a1;
  color:#fff;
  border:none;
  padding:10px 20px;
  border-radius:8px;
  font-size:1rem;
  cursor:pointer;
  transition:background 0.3s;
}
.vq-restart-btn:hover { background:#1565c0; }

@keyframes vqFadeIn {
  from {opacity:0; transform:translateY(15px);}
  to {opacity:1; transform:translateY(0);}
}


.vq-float-emoji {
  position: fixed;
  bottom: 0;
  font-size: 2rem;
  animation: vqFloat 4s linear forwards;
  z-index: 9999;
  pointer-events: none;
}

@keyframes vqFloat {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-100vh) scale(1.5); opacity: 0; }
}
.vq-float-emoji {
  position: fixed;
  bottom: -20px;
  font-size: 2rem;
  animation: floatUp 4s linear forwards;
  pointer-events: none;
  z-index: 9999;
}
@keyframes floatUp {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-100vh) scale(1.3); opacity: 0; }
}


/* MCQ2 layout: two big choices side-by-side */
.vq-options.vq-layout-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* MCQ4 layout (default) */
.vq-options.vq-layout-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* MCQ5 layout: stacked */
.vq-options.vq-layout-5 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Button styling */
.vq-option-btn {
  border: 1px solid #ccc;
  background: #fff;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Poppins';
  display: flex;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: all .2s;
}
.vq-option-btn:hover {
  background: #e3f2fd;
  border-color: #0d47a1;
}

.vq-opt-label {
  font-weight: 600;
  color: #0d47a1;
}


.vq-qimage {
  max-width: 100%;
  margin: 10px 0;
  border-radius: 6px;
}

.vq-opt-image {
  max-width: 100%;
  max-height: 120px;
  display: block;
  margin: 0 auto;
}

.vq-option-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
/* Question Image */
.vq-question-image {
  display: block;
  max-width: 100%;
  max-height: 380px;
  margin: 10px auto 20px auto;
  object-fit: contain;
  border-radius: 8px;
}

/* For very tall images – avoid taking whole page */
.vq-image-wrapper {
  max-height: 400px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.vq-opt-img-wrap {
  width: 100%;
  text-align: center;
  margin-bottom: 6px;
}

.vq-option-image {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  border-radius: 6px;
}
/* ===== Image Zoom Modal ===== */
.vq-img-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.vq-img-modal img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.vq-img-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  font-weight: bold;
}


.vq-numwrap{ display:flex; gap:10px; align-items:center; margin-top:12px; flex-wrap:wrap; }
.vq-numinp{ width:180px; padding:10px 12px; border:1px solid #e5e7eb; border-radius:10px; font-size:16px; }
.vq-numbtn{ padding:10px 14px; border-radius:10px; border:0; cursor:pointer; font-weight:700; }
.vq-nummsg{ font-size:14px; color:#334155; min-width:160px; }
.vq-numinp.shake{ animation:vqshake .35s; }
@keyframes vqshake{
  0%{ transform:translateX(0) }
  25%{ transform:translateX(-6px) }
  50%{ transform:translateX(6px) }
  75%{ transform:translateX(-6px) }
  100%{ transform:translateX(0) }
}
/* Numeric answer centered */
.vq-numwrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:14px;
  width:100%;
}

.vq-numinp{
  width:min(320px, 90%);
  text-align:center;
  font-size:20px;
  padding:12px 14px;
  border-radius:10px;
}

.vq-nummsg{
  min-height:18px;
  text-align:center;
  font-size:14px;
  opacity:0.9;
}

