/* ==========================================================
   LEVEL 4 — GLOBAL DARK THEME
========================================================== */

.level4 {
  background: #000;
  color: #fff;
  font-family: Arial, sans-serif;
}

/* ==========================================================
   LEVEL 4 — WRAPPER VISIBILITY
========================================================== */

.level4-wrapper {
  display: none;
  background: #000;
  color: #fff;
  min-height: 100vh;
  padding: 40px;
}

.level4-wrapper:not(.hidden) {
  display: block;
}

/* ==========================================================
   LEVEL 4 — SCREEN VISIBILITY
========================================================== */

.level4-screen {
  display: none;
}

.level4-screen:not(.hidden) {
  display: block;
}

/* ==========================================================
   LEVEL 4 — TITLES
========================================================== */

.level4 .title {
  font-size: 32px;
  margin-bottom: 30px;
  color: #fff;
}

/* ==========================================================
   LEVEL 4 — BUTTONS / ICONS
========================================================== */

.level4 .iconBtn {
  background: #222;
  color: #fff;
  border: 1px solid #555;
  padding: 8px 12px;
  margin-left: 6px;
  border-radius: 6px;
  cursor: pointer;
}

.level4 .iconBtn:hover {
  background: #333;
}

/* ==========================================================
   LEVEL 4 — REPLAY BUTTON (TOP)
========================================================== */

.level4 .replay-top {
  margin-top: 50px;
  margin-bottom: 20px;
  font-size: 22px;
  padding: 10px 20px;
  background: #222;
  border: 1px solid #555;
  border-radius: 8px;
  display: inline-block;
}

/* ==========================================================
   LEVEL 4 — SCREEN 2 (SPLIT COLUMN)
========================================================== */

.l4-split-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 30px auto;
  width: fit-content;
}

.l4-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 40%;
}

/* ==========================================================
   LEVEL 4 — LEFT COLUMN TEXT
========================================================== */

#l4LeftColumn {
  font-size: 1.6rem;
  line-height: 2rem;
  font-weight: 600;
}

/* ==========================================================
   LEVEL 4 — RIGHT COLUMN OPTION BUTTONS
========================================================== */

.l4OptionBtn {
  font-size: 1.3rem;
  padding: 12px 18px;
  margin: 8px 0;
  width: 100%;
  text-align: left;
  border-radius: 10px;
  background: #222;
  color: #fff;
  border: 2px solid #444;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.l4OptionBtn:hover {
  background: #333;
}

/* ==========================================================
   LEVEL 4 — CORRECT / WRONG COLORS
========================================================== */

.l4-correct {
  background-color: #4CAF50 !important;
  border-color: #4CAF50 !important;
  color: #fff !important;
}

.l4-wrong {
  background-color: #E53935 !important;
  border-color: #E53935 !important;
  color: #fff !important;
}

/* ==========================================================
   LEVEL 4 — SUMMARY SCREEN
========================================================== */

#l4SummaryContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 30px auto;
  width: fit-content;
}

.summary-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  background: #111;          /* ⭐ FIX: no white background */
  border-radius: 8px;
  margin-bottom: 10px;
}

.summary-spanish,
.summary-english {
  min-width: 140px;
  text-align: center;
  font-size: 1.2rem;
  color: #fff;               /* ensure readable */
  background: transparent;   /* ⭐ FIX: prevent white background */
}

/* ==========================================================
   LEVEL 4 — FINAL SUMMARY SCREEN
========================================================== */

.summary-label {
  font-weight: bold;
  font-size: 1.2rem;
}

.summary-value {
  font-size: 1.2rem;
  margin-left: 10px;
}

.summary-controls {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  justify-content: center;
}
/* ==========================================================
   LEVEL 4 — CORRECT ANSWER BLOCK (SEPARATED)
========================================================== */

.correct-answer-block {
  margin-top: 45px;            /* ⭐ increased separation */
  padding: 18px 24px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  width: 100%;
  text-align: center;
}

.correct-answer-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #4CAF50;
}

.correct-answer-text {
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.6rem;
}
