:root{
  --bg:#f6efe3;
  --paper:#fff6e8;
  --ink:#2b230f;
  --accent:#7b3f00;
  --muted:#8b7f6a;
  --gold:#c89b3a;
}

/* increase base font sizing for larger, more readable text */
*{box-sizing:border-box}
html,body,#root{height:100%}
body{
  margin:0;
  font-family: "Georgia", "Times New Roman", serif;
  /* Manuscript background + warm paper tint for readability */
  background:
    linear-gradient(rgba(246,239,227,0.75), rgba(246,239,227,0.75)),
    radial-gradient(1200px 400px at 10% 10%, rgba(200,155,80,0.06), transparent 10%),
    url('/shakespeare-henry-fifth-5-ms-1627.1_f.jpg') center/cover fixed;
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  padding:28px;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  min-height:100vh;
  font-size:20px; /* increased base font-size */
  line-height:1.48;
}

/* Page container */
.page{
  width:100%;
  max-width:1100px;
}

/* Banner / masthead */
.banner{
  background:
    linear-gradient(180deg, rgba(0,0,0,0.02), transparent),
    url('https://images.unsplash.com/photo-1520975910053-5a4e0b66a1a3?q=80&w=1400&auto=format&fit=crop&ixlib=rb-4.0.3&s=') center/cover no-repeat;
  border-radius:12px;
  padding:28px 22px; /* slightly larger padding */
  color:var(--paper);
  margin-bottom:20px;
  box-shadow:0 4px 18px rgba(27,20,10,0.12);
}

/* Framed video above the title */
.video-frame{
  display:flex;
  justify-content:center;
  margin-bottom:14px;
}
.video-decor{
  background:linear-gradient(180deg, #fffaf0, #fff3dd);
  border:6px solid rgba(120,80,30,0.12);
  border-radius:12px;
  padding:8px;
  box-shadow:0 8px 30px rgba(20,12,6,0.12);
  position:relative;
  max-width:900px; /* allow larger video on wide screens */
  width:100%;
}
/* decorative corners and ribbon feel */
.video-decor:before,
.video-decor:after{
  content:'';
  position:absolute;
  width:26px;
  height:26px;
  background:linear-gradient(135deg,var(--gold),var(--accent));
  border-radius:4px;
  top:-12px;
  box-shadow:0 3px 8px rgba(0,0,0,0.12);
}
.video-decor:before{ left:-12px; transform:rotate(-20deg) }
.video-decor:after{ right:-12px; transform:rotate(20deg) }

.video-decor iframe{
  width:100%;
  height:calc((100vw - 120px) * 0.50);
  min-height:220px;
  max-height:520px;
  border-radius:8px;
  display:block;
  border:2px solid rgba(0,0,0,0.06);
  background:#000;
}

/* ensure a sensible size on larger layouts */
@media(min-width:700px){
  .video-decor iframe{
    height:420px;
  }
}

.banner-inner h1{
  margin:0;
  font-size:2.8rem; /* larger title */
  letter-spacing:0.6px;
  text-shadow:0 1px 0 rgba(0,0,0,0.25);
}
.subtitle{
  margin:8px 0 0;
  font-size:1.3rem; /* larger subtitle */
  opacity:0.95;
}

/* Main layout */
.stage{
  display:grid;
  grid-template-columns: 1fr;
  gap:22px;
  align-items:start;
}

/* Card */
.card{
  background:linear-gradient(180deg,var(--paper), #fffef8);
  border-radius:14px;
  padding:42px; /* larger card padding for spacing */
  box-shadow:0 10px 40px rgba(20,15,8,0.10);
  border:1px solid rgba(60,40,20,0.06);
  min-width:unset;
}

/* Quiz area */
.question-ornament{
  font-size:1.2rem; /* larger ornament text */
  color:var(--muted);
  margin-bottom:10px;
  text-transform:uppercase;
  letter-spacing:1px;
}
.question{
  margin:8px 0 16px;
  font-size:1.85rem; /* larger question text */
  color:var(--accent);
}
.choices{
  list-style:none;
  padding:0;
  margin:0 0 14px;
  display:grid;
  gap:12px; /* increased gap between choices */
}
.choice{
  display:flex;
  align-items:center;
  gap:18px;
  padding:20px 22px; /* larger hit area */
  border-radius:12px;
  background:linear-gradient(180deg, rgba(245,238,226,0.98), rgba(252,249,241,0.98));
  cursor:pointer;
  border:1px solid rgba(100,70,40,0.08);
  transition:transform .08s ease, box-shadow .08s ease;
  font-size:1.35rem; /* larger choice text */
}
.choice:hover{ transform:translateY(-3px); box-shadow:0 8px 20px rgba(40,20,0,0.06) }
.choice input{ accent-color: #7b3f00; transform:scale(1.18) }
.choice .label{
  font-weight:700;
  color:var(--ink);
}
.choice.small{ font-size:1.2rem }

/* Controls */
.controls{
  display:flex;
  gap:10px;
  justify-content:space-between;
  margin-top:14px;
}
.btn{
  padding:14px 18px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.06);
  cursor:pointer;
  font-weight:700;
  background:var(--paper);
  color:var(--ink);
  box-shadow:0 6px 14px rgba(0,0,0,0.06);
  font-size:1.15rem;
}
.btn.primary{ background:linear-gradient(180deg,var(--accent),#5b2f00); color:#fff; border-color:rgba(0,0,0,0.12) }
.btn.secondary{ background:transparent; color:var(--accent) }
.btn.tertiary{ background:transparent; color:var(--muted); font-weight:700; border:none; box-shadow:none }

/* Feedback */
.feedback{
  margin-top:14px;
  min-height:64px;
  padding:14px 16px;
  border-radius:8px;
  background:linear-gradient(180deg,rgba(255,255,255,0.6),rgba(250,244,236,0.8));
  border:1px dashed rgba(120,80,30,0.06);
  font-size:1.2rem; /* larger feedback */
  color:var(--muted);
}
.feedback.correct{ border-color:rgba(34,115,55,0.18); background:linear-gradient(180deg,#ecfff0,#fbfff6); color:#12481b }
.feedback.incorrect{ border-color:rgba(160,40,30,0.12); background:linear-gradient(180deg,#fff7f7,#fffaf9); color:#5f2118 }

/* Side panel */
.side-panel{
  min-width:unset;
  width:100%;
  box-sizing:border-box;
}
.side-panel h3{ margin:0 0 10px; color:var(--accent); font-size:1.45rem; }
.score-row{ display:flex; gap:12px; align-items:baseline; font-size:1.25rem }
.score-row strong{ font-size:2.2rem; color:var(--gold) }
.progress{
  height:14px; /* slightly taller progress */
  background:linear-gradient(90deg,#fff,#f6f0e8);
  border-radius:999px;
  margin:12px 0 16px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,0.03);
}
.progress-bar{
  height:100%;
  width:0%;
  background:linear-gradient(90deg,var(--gold),var(--accent));
  transition:width 350ms ease;
}

/* Answer list */
.answer-list{ margin-top:14px; font-size:1.15rem; color:var(--muted) }
.answer-item{
  padding:10px 12px;
  border-radius:8px;
  margin-bottom:10px;
  background:linear-gradient(180deg,rgba(255,255,255,0.6),rgba(250,244,236,0.6));
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}
.answer-item .meta{ font-size:0.95rem; color:var(--muted) }
.timestamp{ font-variant-numeric: tabular-nums; color:var(--muted) }

/* Footer */
.footnote{ text-align:center; margin-top:16px; color:var(--muted); font-size:1.15rem }

/* Responsive */
@media (max-width:900px){
  .stage{ grid-template-columns: 1fr; }
  .side-panel{ order:2; margin-top:10px }
}