/* ============================================================
   ap-smartboard.css  -  shared smartboard styles for the AP notes
   Linked from each AP notes page as  ../ap-smartboard.css
   Edit here once instead of in every page.
   ============================================================ */

/* ---------- 1. Reveal buttons, fill-in answers, step-by-step solutions ---------- */
/* ===== Step-by-step answer reveal (PowerPoint-style) ===== */
.reveal-blank { text-align: center; cursor: pointer; }
.reveal-blank .reveal-ans {
    display: inline-block; color: var(--claim-color, #CC0000); font-weight: bold; padding: 0 6px;
    opacity: 0; transform: scale(0.6); transition: opacity 0.35s ease, transform 0.35s ease;
}
.reveal-blank.revealed .reveal-ans { opacity: 1; transform: scale(1); }
.reveal-blank:not(.revealed):hover { background: var(--bg-blue, #E8F0FE); }
.reveal-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin: 10px 0 30px 0; }
.reveal-btn {
    font-family: inherit; font-weight: bold; font-size: clamp(1.2rem, 2vw, 1.7rem);
    padding: 12px 30px; border-radius: 30px; cursor: pointer; transition: var(--transition, all 0.3s ease);
    border: 3px solid var(--physics-blue, #1154CC); color: var(--physics-blue, #1154CC); background: var(--light-blue, #f8fbff);
}
.reveal-btn.reveal-next { background: linear-gradient(135deg, var(--physics-blue, #1154CC), #0b3d99); color: white; box-shadow: 0 5px 15px rgba(17, 84, 204, 0.4); }
.reveal-btn:hover:not(:disabled) { transform: translateY(-3px); }
.reveal-btn:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.reveal-count { font-weight: normal; opacity: 0.85; }

/* Step-by-step solutions (inside teacher workspaces, or standalone answer boxes) */
.step-reveal { pointer-events: auto; position: relative; padding: clamp(45px, 6vw, 60px) clamp(15px, 3vw, 35px) clamp(15px, 3vw, 30px); }
.step-reveal.standalone {
    padding: clamp(15px, 3vw, 30px); margin: 10px 0 40px 0;
    border: 4px dashed var(--accent-blue, #9CBDE9); border-radius: 20px; background: var(--light-blue, #f8fbff);
}
.step-reveal .reveal-controls { justify-content: flex-start; margin: 0 0 20px 0; }
.step-reveal .step {
    font-size: clamp(1.3rem, 2.3vw, 2.1rem); line-height: 1.6; margin: 0 0 14px 0;
    padding: 6px 14px; border-left: 6px solid var(--accent-blue, #9CBDE9); background: rgba(255,255,255,0.85);
    border-radius: 0 10px 10px 0; overflow-x: auto;
    visibility: hidden; opacity: 0; transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}
.step-reveal .step.shown { visibility: visible; opacity: 1; transform: translateX(0); }
.step-reveal .step.final { border-left-color: var(--claim-color, #CC0000); color: var(--claim-color, #CC0000); font-weight: bold; }
.step-reveal .step.latest { box-shadow: 0 0 0 3px var(--accent-blue, #9CBDE9); }
.step-tag {
    display: inline-block; background: var(--physics-blue, #1154CC); color: white; font-weight: bold;
    font-size: 0.75em; padding: 2px 14px; border-radius: 20px; margin-right: 10px; vertical-align: middle;
}

/* ---------- 2. Revealed answers: big, bold, just above the underline ---------- */
.reveal-blank { height: auto !important; min-height: 1.1em; padding-bottom: 6px; line-height: 1.25; }
.reveal-blank .reveal-ans { font-size: max(1.2em, 2.2rem); line-height: 1.15; padding: 0 10px 4px; vertical-align: baseline; }
.reveal-blank .reveal-ans mjx-container { font-size: 100% !important; }

/* ---------- 3. Equations: no scroll bars, no overflow (works with the fit script in each page) ---------- */
mjx-container > mjx-assistive-mml { width: 1px !important; height: 1px !important; overflow: hidden !important; top: 0 !important; left: 0 !important; }
mjx-container[display="true"] { max-width: 100%; overflow: visible !important; }
mjx-container:not([display="true"]) { display: inline-block; max-width: 100%; }

/* ---------- 4. Green Quick Check boxes: smartboard size ---------- */
.quick-check { max-width: 1250px !important; padding: clamp(18px, 3vw, 36px) clamp(18px, 3vw, 40px) !important; border-width: 4px !important; }
.quick-check h3 { font-size: clamp(1.8rem, 3vw, 2.5rem) !important; }
.quick-check .qc-sub { font-size: clamp(1.2rem, 2vw, 1.7rem) !important; }
.quick-check .sc-prompt { font-size: clamp(1.5rem, 2.4vw, 2.1rem) !important; line-height: 1.35 !important; }
.quick-check .sc-opts { gap: 14px !important; }
.quick-check button.sc-opt, .quick-check .sc-opt { font-size: clamp(1.35rem, 2.1vw, 1.9rem) !important; padding: 16px 24px !important; border-width: 3px !important; line-height: 1.3 !important; }
.quick-check .sc-fb { font-size: clamp(1.3rem, 2vw, 1.8rem) !important; line-height: 1.4 !important; }
.quick-check .qc-score { font-size: clamp(1.4rem, 2.4vw, 2.2rem) !important; }
.quick-check .qc-reset { font-size: clamp(1.2rem, 2vw, 1.7rem) !important; padding: 12px 26px !important; }

/* ---------- Check Your Understanding (self-check quiz): big for the back of the room ----------
   Overrides each page's built-in #selfCheck styles. Wider box, larger text,
   answer choices in a 2 x 2 grid so each question fits on one screen. */
section#selfCheck.self-check { max-width: min(96vw, 1700px) !important; padding: clamp(18px, 2.5vw, 36px) clamp(18px, 3vw, 48px) !important; border-width: 4px !important; }
section#selfCheck.self-check h2 { font-size: clamp(2.2rem, 3.6vw, 3.4rem); margin: 0 0 6px 0; }
section#selfCheck.self-check .sc-sub { font-size: clamp(1.3rem, 2vw, 1.8rem); margin: 0 0 18px 0; }
section#selfCheck.self-check .sc-q { margin: 0 0 22px 0; padding: 0 0 20px 0; border-bottom-width: 3px; }
section#selfCheck.self-check .sc-prompt { font-size: clamp(1.6rem, 2.7vw, 2.6rem); line-height: 1.3; margin: 0 0 14px 0; }
section#selfCheck.self-check .sc-opts { grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { section#selfCheck.self-check .sc-opts { grid-template-columns: 1fr; } }
section#selfCheck.self-check button.sc-opt { font-size: clamp(1.4rem, 2.4vw, 2.3rem); line-height: 1.25; padding: clamp(12px, 1.4vw, 20px) clamp(14px, 1.6vw, 24px); border-width: 3px; border-radius: 14px; }
section#selfCheck.self-check .sc-fb { font-size: clamp(1.3rem, 2.2vw, 2.1rem); line-height: 1.35; padding: 14px 20px; }
section#selfCheck.self-check .sc-score { font-size: clamp(1.5rem, 2.5vw, 2.4rem); }
section#selfCheck.self-check .sc-reset { font-size: clamp(1.2rem, 1.8vw, 1.7rem); padding: 12px 28px; border-radius: 12px; }
