:root {
    --bg: #f6f7fb;
    --card: #ffffff;
    --ink: #1f2430;
    --muted: #5b6472;
    --line: #e3e6ee;
    --brand: #3b6ef6;
    --ok: #1f9d55;
    --ok-bg: #e7f7ee;
    --bad: #c93b3b;
    --bad-bg: #fdecec;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(20, 24, 40, .05), 0 4px 16px rgba(20, 24, 40, .06);
}

#contentHeading h1{
    margin-top:8px !important;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

/*.wrap {*/
/*    max-width: 860px;*/
/*    margin: 0 auto;*/
/*    padding: 32px 20px 64px;*/
/*}*/

.wrap {
    max-width: 860px;
    margin: 0 !important; /* aligns with the heading instead of re-centering */
    padding: 32px 20px 64px;

}

/* ---------- Header ---------- */
.quiz-header {
    margin-bottom: 24px;
}
.quiz-header h1 {
    font-size: 1.5rem;
    margin: 0 0 12px;
    line-height: 1.3;
}
.scoreboard {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chip {
    display: inline-block;
    padding: 6px 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .875rem;
    color: var(--muted);
    box-shadow: var(--shadow);
}
.chip strong {
    color: var(--ink);
}

/* ---------- Question card ---------- */
.question {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.q-title {
    font-size: 1.2rem;
    margin: 0 0 14px;
    line-height: 1.45;
    font-weight: 200;
}
.q-num {
    color: var(--muted);
    font-weight: 600;
    margin-right: 4px;
}

.q-title code,
.explain code,
.opt-text code {
    background: #eef1f8;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: .9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.q-code {
    background: #1f2430;
    color: #e8ecf6;
    padding: 12px 14px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: .875rem;
    margin: 0 0 14px;
}
.q-code code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* ---------- Options ---------- */
.options {
    display: grid;
    gap: 10px;
}
.option {
    width: 100%;
    text-align: left;
    background: #cfdff294;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .05s;
}
.option:hover:not(:disabled) {
    border-color: var(--brand);
    background: #f4f7ff;
}
.option:active:not(:disabled) {
    transform: scale(.995);
}
.option:disabled {
    cursor: default;
}

.option.correct {
    border-color: var(--ok);
    background: var(--ok-bg);
    color: #0e5c33;
}
.option.wrong {
    border-color: var(--bad);
    background: var(--bad-bg);
    color: #7a1d1d;
}

.opt-text {
    display: block;
}

/* ---------- Feedback ---------- */
.feedback {
    margin: 14px 0 0;
    font-weight: 600;
}
.feedback.is-correct { color: var(--ok); }
.feedback.is-wrong   { color: var(--bad); }

.explain {
    margin: 8px 0 0;
    padding: 10px 12px;
    background: #f4f6fb;
    border-left: 3px solid var(--brand);
    border-radius: 6px;
    color: var(--muted);
    font-size: .92rem;
}

/* ---------- Final result ---------- */
.final-result {
    margin: 24px 0 16px;
    padding: 16px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

/* ---------- Actions ---------- */
.actions {
    margin-top: 8px;
    text-align: center;
}
.reset-btn {
    background: var(--brand);
    color: #fff;
    border: 0;
    padding: 10px 22px;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background .15s, transform .05s;
}
.reset-btn:hover  { background: #2f5be0; }
.reset-btn:active { transform: scale(.98); }

/* ---------- Error ---------- */
.error {
    padding: 14px 16px;
    background: var(--bad-bg);
    border: 1px solid var(--bad);
    border-radius: 8px;
    color: #7a1d1d;
}

.mcq-sticky-panel {
    /* POSITIONING (Adjust top/right to fit your page) */
    position: fixed;
    top: 75%; /* Adjust this to where you want it vertically */
    left: -3px; /* Distance from the right edge */
    z-index: 9999; /* Make sure it stays on top of everything */

    /* BEAUTIFUL STYLING */
    background: #ffffff;
    border-radius: 12px;

    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow so it pops */
    /*padding: 4px 0;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0; /* Let the borders handle the space */
    border: 1px solid #ddd;
    width: 40px;
    box-sizing: border-box;
}

.scoreboard-vertical {

    display: flex;
    flex-direction: column;
    gap: 5px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px; /* Match your JOIN pane's radius */
    padding: 2px 5px 2px 8px;
    /*box-shadow: 0 2px 5px rgba(0,0,0,0.1); !* Match your JOIN pane's shadow *!*/
    width: 100%; /* Forces it to match the width of the JOIN pane */
    box-sizing: border-box;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}
.js-correct-count{


}

/* Flexbox for each line to center the content */
.scoreboard-vertical .score-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

/* Colors for the symbols */
.scoreboard-vertical .correct-symbol {
    color: #28a745; /* Green tick */

}

.scoreboard-vertical .wrong-symbol {
    color: #dc3545; /* Red cross */
}

.q-div{
    border: 1px solid #999;
    border-radius: 8px;
    margin-bottom: 5px;
    padding: 14px 6px 2px 8px;
}