:root{
    /* Primary */
    --primary: #12B;
    --primary-hover: #0E8F83;
    --primary-light: rgba(18,176,162,0.12);

    /* Backgrounds */
    --background: #19283f;
    --surface: #5f5e61f8;
    --header: #0B1424;
    --feedback-bg: #E2F7F5;
    --tip-bg: #FFFFFF;

    /* Text */
    --text: #8994a5;
    --text-muted: #64748B;
    --text-light: #FFFFFF;

    /* Borders */
    --border: #E2E8F0;

    /* States */
    --success: #12B0A2;
    --success-bg: #E2F7F5;
    --error: #DC2626;
    --warning: #F59E0B;

    /* Buttons */
    --button-primary: var(--primary);
    --button-primary-hover: var(--primary-hover);
    --button-outline: #FFFFFF;

    /* Radius */
    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 20px;

    /* Shadow */
    --shadow: 0 4px 15px rgba(0,0,0,0.05);

    /* Animation */
    --transition: 0.25s ease;
}
*,body{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body{
  background-color: var(--background);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: auto;
}
header{
  background-color: var(--header);
  color: var(--text-light);
  padding: 20px;
  font-size:20px;
  width: 100%;
}
.quiz-card{  
  width: 100%;
  height: auto;
  display:flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.quiz-contaner{
  margin-top: 10px;
  width: 90%;
background-color: var(--surface); 
display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
  padding: 10px;
}
.question{
  font-family: Monospace;
  font-size: 20px;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  color: var(--text-light);
}
.options-row{
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.answers{
  width: 100%;
  height: 40px;
  font-size: 15px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius-small);
  padding: 5px;
  color: var(--text-light);
}
.answers:hover{
  border: 2px solid var(--primary);
}
.feedback-card{ 
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: auto;
  margin-top: 10px;
}
.feedback{
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 90%;
  height: auto;
  border-radius: var(--radius-medium);
  background-color: var(--feedback-bg);
  box-shadow: var(--shadow);
}
.buttons{
  display: flex;
}
button{
  width: 110px;
  height: 40px;
  border-radius: var(--radius-small); 
  margin: 10px;
}
.youtube{
  background-color: var(--button-outline);
  border: none;
  box-shadow: var(--shadow);
}
#feedbackBadge {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: bold;
}

.feedback-correct {
    background-color: var(--success-bg);
    color: var(--success);
}

.feedback-wrong {
    background-color: #FEE2E2;
    color: var(--error);
}
.answer {
    width: 90%;
    max-width: 90%;
    min-width: 0;
    
    padding: 10px;
    margin: 10px;

    background-color: var(--tip-bg);
    border-radius: var(--radius-small);

    line-height: 1.6;

    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}
.continue{ 
  border: none;
  color: var(--text-light);
  background-color: var(--button-primary);
}
/* ---- additions for the Go version ---- */
.progress { width: 100%; color: var(--text); font-size: 14px; margin-bottom: 8px; }
.answers { cursor: pointer; height: auto; min-height: 40px; }
.answers.is-disabled { cursor: default; }
.answers.is-correct { border-color: var(--success); background: rgba(18,176,162,.18); }
.answers.is-wrong   { border-color: var(--error);   background: rgba(220,38,38,.18); }
.quiz-error { color: #fca5a5; margin-top: 8px; }
.feedback-badge-wrap { display: block; }
.feedback .grade { color: #0b1424; }
.feedback .answer { color: #0b1424; }




/* ---- hosted lesson video player ---- */
.vp-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(5, 9, 20, 0.85);
  backdrop-filter: blur(6px);
}
.vp-box {
  width: 100%; max-width: 860px;
  background: #0b1424;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.vp-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  color: #fff; font-size: 14px; font-weight: 600;
}
button.vp-close {
  width: 34px; height: 34px; margin: 0; padding: 0;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff; font-size: 16px; cursor: pointer;
}
button.vp-close:hover { background: rgba(255, 255, 255, 0.22); }
.vp-video { display: block; width: 100%; max-height: 75vh; background: #000; }
.vp-msg { padding: 14px; color: #fca5a5; font-size: 14px; text-align: center; }