.post-detail .textview .box-quiz-replaced .box-quiz-contentviewsucceed { width: 100%; max-width: 800px; margin: 0 auto; background: #ffffff; color: #1e293b; padding: 0 0 16px 0; box-sizing: border-box; font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; } /* ── QUESTION LIST ─────────────────────────────────────────── */ .post-detail .textview .box-quiz-replaced ul.listQuiz { list-style: none; margin: 0; padding: 0; width: 100%; } /* ── QUESTION ITEM ─────────────────────────────────────────── */ .post-detail .textview .box-quiz-replaced li.liSection { padding: 16px 0; border-bottom: 1px solid #f1f5f9; display: block; overflow: visible; margin-left: 0; } .post-detail .textview .box-quiz-replaced .item-desc p:empty { display: none; } .post-detail .textview .box-quiz-replaced .item-desc p:empty, .post-detail .textview .box-quiz-replaced .item-desc p:has(br:only-child) { display: none; } .post-detail .textview .box-quiz-replaced li.liSection:last-child { border-bottom: none; } /* ── QUESTION HEADER ───────────────────────────────────────── */ .post-detail .textview .box-quiz-replaced .box-stt { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; } .post-detail .textview .box-quiz-replaced span.quiz-stt { font-weight: bold; color: #2563eb; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; } .post-detail .textview .box-quiz-replaced span.quizlevel { font-size: 13px; font-weight: bold; padding: 3px 10px; border-radius: 4px; } .post-detail .textview .box-quiz-replaced span.quizlevel.leve1 { background: #dbeafe; color: #1d4ed8; } .post-detail .textview .box-quiz-replaced span.quizlevel.leve2 { background: #dcfce7; color: #166534; } .post-detail .textview .box-quiz-replaced span.quizlevel.leve3 { background: #fef9c3; color: #854d0e; } .post-detail .textview .box-quiz-replaced span.quizlevel.leve4 { background: #fee2e2; color: #991b1b; } .post-detail .textview .box-quiz-replaced .status-tag { font-size: 13px; font-weight: bold; padding: 3px 10px; border-radius: 4px; margin-left: 8px; } .post-detail .textview .box-quiz-replaced .status-tag.correct { background: #dcfce7; color: #166534; } .post-detail .textview .box-quiz-replaced .status-tag.wrong { background: #fee2e2; color: #991b1b; } /* ── QUESTION BODY ─────────────────────────────────────────── */ .post-detail .textview .box-quiz-replaced .box-liSection { width: 100%; } .post-detail .textview .box-quiz-replaced .item-desc { font-weight: bold; line-height: 22px; margin: 0 0 16px 0; color: #0f172a; } .post-detail .textview .box-quiz-replaced .item-desc p { margin: 0 0 8px; } .post-detail .textview .box-quiz-replaced .section-img { margin-bottom: 12px; } .post-detail .textview .box-quiz-replaced .section-img img { max-width: 100%; border-radius: 6px; } /* ── HIDE NATIVE INPUT COMPLETELY ──────────────────────────── */ /* Use appearance:none + opacity:0 + display:none belt-and-suspenders */ .post-detail .textview .box-quiz-replaced input.quiz-value, .post-detail .textview .box-quiz-replaced input.quiz-value[type="radio"], .post-detail .textview .box-quiz-replaced input.quiz-value[type="checkbox"] { display: none; visibility: hidden; position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; -webkit-appearance: none; -moz-appearance: none; appearance: none; border: none; background: transparent; margin: 0; padding: 0; } /* ──────────────────────────────────────────────────────────── CHOICES / CHECKBOXES li.item-quiz > label.overlabel > input.quiz-value + span.mark + span.boxcheck > span.answer-desc ──────────────────────────────────────────────────────────── */ .post-detail .textview .box-quiz-replaced ul.list-item-quiz { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; } .post-detail .textview .box-quiz-replaced ul.list-item-quiz li.item-quiz { display: block; margin: 0; padding: 0; } /* The clickable label row */ .post-detail .textview .box-quiz-replaced ul.list-item-quiz li.item-quiz label.overlabel { display: flex; align-items: center; gap: 0; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 8px; cursor: pointer; min-height: 44px; user-select: none; -webkit-tap-highlight-color: transparent; transition: background 0.15s, border-color 0.15s; background: #ffffff; box-sizing: border-box; line-height: 1.5; width: 100%; text-align: left; color: inherit; } .post-detail .textview .box-quiz-replaced ul.list-item-quiz li.item-quiz label.overlabel:hover { background: #f8fafc; border-color: #cbd5e1; } /* ── Custom radio/checkbox indicator (span.mark) ───────────── */ .post-detail .textview .box-quiz-replaced ul.list-item-quiz span.mark { width: 18px; height: 18px; min-width: 18px; min-height: 18px; border: 2px solid #cbd5e1; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: #ffffff; box-sizing: border-box; transition: background 0.15s, border-color 0.15s; margin-right: 12px; vertical-align: middle; /* !! position stable — no absolute/relative tricks !! */ } /* Radio = circle */ .post-detail .textview .box-quiz-replaced ul.list-item-quiz input.type-radio~span.mark { border-radius: 50%; } /* Checkbox = rounded square */ .post-detail .textview .box-quiz-replaced ul.list-item-quiz input.type-checkbox~span.mark { border-radius: 4px; } /* Inner dot for radio */ .post-detail .textview .box-quiz-replaced ul.list-item-quiz input.type-radio~span.mark::after { content: ''; display: none; width: 8px; height: 8px; background: #2563eb; border-radius: 50%; } /* Checkmark for checkbox */ .post-detail .textview .box-quiz-replaced ul.list-item-quiz input.type-checkbox~span.mark::after { content: ''; display: none; width: 14px; height: 14px; background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"); background-size: contain; background-position: center; background-repeat: no-repeat; } /* The text block */ .post-detail .textview .box-quiz-replaced ul.list-item-quiz span.boxcheck { display: flex; align-items: center; gap: 8px; flex-grow: 1; } .post-detail .textview .box-quiz-replaced ul.list-item-quiz span.answer-desc { flex-grow: 1; line-height: 1.5; } /* ── SELECTED ──────────────────────────────────────────────── */ .post-detail .textview .box-quiz-replaced ul.list-item-quiz li.item-quiz.opt-selected label.overlabel { border-color: #2563eb; background: #eff6ff; } .post-detail .textview .box-quiz-replaced ul.list-item-quiz li.item-quiz.opt-selected span.mark { border-color: #2563eb; } .post-detail .textview .box-quiz-replaced ul.list-item-quiz li.item-quiz.opt-selected input.type-radio~span.mark::after { display: block; } .post-detail .textview .box-quiz-replaced ul.list-item-quiz li.item-quiz.opt-selected input.type-checkbox~span.mark { background: transparent; border-color: #2563eb; } .post-detail .textview .box-quiz-replaced ul.list-item-quiz li.item-quiz.opt-selected input.type-checkbox~span.mark::after { display: block; } /* ── CORRECT ───────────────────────────────────────────────── */ .post-detail .textview .box-quiz-replaced ul.list-item-quiz li.item-quiz.opt-correct label.overlabel { border-color: #10b981; background: #f0fdf4; color: #166534; font-weight: bold; cursor: default; } .post-detail .textview .box-quiz-replaced ul.list-item-quiz li.item-quiz.opt-correct span.mark { background: #10b981; border-color: #10b981; } .post-detail .textview .box-quiz-replaced ul.list-item-quiz li.item-quiz.opt-correct input.type-radio~span.mark::after { display: block; background: #ffffff; } .post-detail .textview .box-quiz-replaced ul.list-item-quiz li.item-quiz.opt-correct input.type-checkbox~span.mark { background: transparent; } .post-detail .textview .box-quiz-replaced ul.list-item-quiz li.item-quiz.opt-correct input.type-checkbox~span.mark::after { display: block; background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"); } /* ── WRONG ─────────────────────────────────────────────────── */ .post-detail .textview .box-quiz-replaced ul.list-item-quiz li.item-quiz.opt-wrong label.overlabel { border-color: #ef4444; background: #fef2f2; color: #991b1b; cursor: default; } .post-detail .textview .box-quiz-replaced ul.list-item-quiz li.item-quiz.opt-wrong span.mark { background: #ef4444; border-color: #ef4444; } .post-detail .textview .box-quiz-replaced ul.list-item-quiz li.item-quiz.opt-wrong input.type-radio~span.mark::after { display: block; background: #ffffff; } .post-detail .textview .box-quiz-replaced ul.list-item-quiz li.item-quiz.opt-wrong input.type-checkbox~span.mark { background: transparent; } .post-detail .textview .box-quiz-replaced ul.list-item-quiz li.item-quiz.opt-wrong input.type-checkbox~span.mark::after { display: block; background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"); } /* ── DISABLED ──────────────────────────────────────────────── */ .post-detail .textview .box-quiz-replaced ul.list-item-quiz li.item-quiz.opt-disabled label.overlabel { opacity: 0.45; cursor: default; pointer-events: none; } /* ──────────────────────────────────────────────────────────── WORD SORT (drag-and-drop) ul.list-item-sort > li.item-quiz > .sort-num + .answer-text + .sort-handle ──────────────────────────────────────────────────────────── */ .post-detail .textview .box-quiz-replaced ul.list-item-sort { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; } .post-detail .textview .box-quiz-replaced ul.list-item-sort li.item-quiz { display: flex; align-items: center; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 8px; background: #ffffff; cursor: grab; user-select: none; box-sizing: border-box; gap: 0; transition: border-color 0.15s, box-shadow 0.15s; min-height: 44px; margin-left: 0; } .post-detail .textview .box-quiz-replaced ul.list-item-sort li.item-quiz:active, .post-detail .textview .box-quiz-replaced ul.list-item-sort li.item-quiz.sort-chosen { cursor: grabbing; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); border-color: #2563eb; background: #eff6ff; } /* Ghost while dragging */ .post-detail .textview .box-quiz-replaced ul.list-item-sort li.item-quiz.sort-ghost, .post-detail .textview .box-quiz-replaced ul.list-item-sort li.item-quiz.sortable-ghost { opacity: 0.35; background: #f8fafc; border-style: dashed; } /* Order number badge */ .post-detail .textview .box-quiz-replaced span.sort-num { width: 26px; height: 26px; background: #f1f5f9; color: #0f172a; font-weight: bold; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; margin-right: 12px; flex-shrink: 0; line-height: 1; } .post-detail .textview .box-quiz-replaced ul.list-item-sort span.answer-text { flex-grow: 1; line-height: 1.5; } /* Drag icon (visual only) */ .post-detail .textview .box-quiz-replaced span.sort-handle { color: #cbd5e1; padding-left: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; pointer-events: none; margin-left: auto; } /* After submit — sort result */ .post-detail .textview .box-quiz-replaced ul.list-item-sort li.item-quiz.r-correct, .post-detail .textview .box-quiz-replaced .sort-result ul.list-item-sort li.item-quiz { border-color: #10b981; background: #f0fdf4; cursor: default; } .post-detail .textview .box-quiz-replaced ul.list-item-sort li.item-quiz.r-correct span.sort-num { background: #dcfce7; color: #166534; } .post-detail .textview .box-quiz-replaced ul.list-item-sort li.item-quiz.r-wrong { border-color: #ef4444; background: #fef2f2; cursor: default; } .post-detail .textview .box-quiz-replaced ul.list-item-sort li.item-quiz.r-wrong span.sort-num { background: #fee2e2; color: #991b1b; } .post-detail .textview .box-quiz-replaced ul.list-item-sort li.item-quiz.r-disabled { cursor: default; } .post-detail .textview .box-quiz-replaced ul.list-item-sort li.item-quiz.r-disabled span.sort-handle { display: none; } /* Answer key list (s-result inside .box-note) */ .post-detail .textview .box-quiz-replaced ul.list-item-sort.s-result li.item-quiz { cursor: default; pointer-events: none; } /* ──────────────────────────────────────────────────────────── MATCHING / PAIRING (SVG line connector) div.list-mat.quesh > svg.qb-svg-layer > div.box-mat.pairing-left > div.box-mat.pairing-right > div.item-pairing > span + i.pai-icon ──────────────────────────────────────────────────────────── */ .post-detail .textview .box-quiz-replaced div.list-mat.quesh { display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start; position: relative; margin-top: 12px; min-height: 60px; width: 100%; box-sizing: border-box; user-select: none; -webkit-user-select: none; } .post-detail .textview .box-quiz-replaced div.list-mat.quesh svg.qb-svg-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 1; } .post-detail .textview .box-quiz-replaced div.list-mat.quesh div.box-mat { display: flex; flex-direction: column; gap: 10px; width: 44%; z-index: 2; position: relative; box-sizing: border-box; } .post-detail .textview .box-quiz-replaced div.list-mat.quesh div.item-pairing { display: flex; align-items: center; border: 1px solid #e2e8f0; padding: 10px 12px; border-radius: 8px; background: #ffffff; cursor: pointer; min-height: 44px; box-sizing: border-box; -webkit-tap-highlight-color: transparent; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; position: relative; } .post-detail .textview .box-quiz-replaced div.list-mat.quesh div.item-pairing:hover { border-color: #94a3b8; background: #f8fafc; } /* Left col: text → dot */ .post-detail .textview .box-quiz-replaced div.list-mat.quesh div.pairing-left div.item-pairing { flex-direction: row; justify-content: space-between; } .post-detail .textview .box-quiz-replaced div.list-mat.quesh div.pairing-left div.item-pairing>span { flex-grow: 1; padding-right: 10px; text-align: left; } /* Right col: dot → text */ .post-detail .textview .box-quiz-replaced div.list-mat.quesh div.pairing-right div.item-pairing { flex-direction: row-reverse; justify-content: space-between; } .post-detail .textview .box-quiz-replaced div.list-mat.quesh div.pairing-right div.item-pairing>span { flex-grow: 1; padding-left: 10px; text-align: right; } /* Dot anchor */ .post-detail .textview .box-quiz-replaced div.list-mat.quesh div.item-pairing i.pai-icon { display: inline-block; width: 14px; height: 14px; min-width: 14px; border: 2px solid #cbd5e1; border-radius: 50%; background: #ffffff; flex-shrink: 0; transition: border-color 0.2s, background 0.2s; box-sizing: border-box; } /* Matching states */ .post-detail .textview .box-quiz-replaced div.list-mat.quesh div.item-pairing.mat-selected { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); background: #eff6ff; } .post-detail .textview .box-quiz-replaced div.list-mat.quesh div.item-pairing.mat-selected i.pai-icon { border-color: #2563eb; background: #dbeafe; } .post-detail .textview .box-quiz-replaced div.list-mat.quesh div.item-pairing.mat-connected { border-color: #94a3b8; } .post-detail .textview .box-quiz-replaced div.list-mat.quesh div.item-pairing.mat-connected i.pai-icon { border-color: #64748b; background: #f1f5f9; } .post-detail .textview .box-quiz-replaced div.list-mat.quesh div.item-pairing.m-correct { border-color: #10b981; background: #f0fdf4; cursor: default; } .post-detail .textview .box-quiz-replaced div.list-mat.quesh div.item-pairing.m-correct i.pai-icon { background: #10b981; border-color: #10b981; } .post-detail .textview .box-quiz-replaced div.list-mat.quesh div.item-pairing.m-wrong { border-color: #ef4444; background: #fef2f2; cursor: default; } .post-detail .textview .box-quiz-replaced div.list-mat.quesh div.item-pairing.m-wrong i.pai-icon { background: #ef4444; border-color: #ef4444; } /* ──────────────────────────────────────────────────────────── NOTES / ANSWER EXPLANATION ──────────────────────────────────────────────────────────── */ .post-detail .textview .box-quiz-replaced .box-note { margin-top: 16px; display: none; } .post-detail .textview .box-quiz-replaced li.liSection.result-shown .box-note { display: block; animation: qbFadeIn 0.4s ease-out; } .post-detail .textview .box-quiz-replaced .sort-result { padding-top: 10px; } .post-detail .textview .box-quiz-replaced .quiz-notec { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; font-size: 15px; line-height: 1.6; color: #334155; } .post-detail .textview .box-quiz-replaced .quiz-notec-title { display: flex; align-items: center; font-weight: bold; font-size: 14px; color: #64748b; text-transform: uppercase; margin-bottom: 8px; } .post-detail .textview .box-quiz-replaced .quiz-notec-title svg { margin-right: 6px; color: #8b9bb4; } .post-detail .textview .box-quiz-replaced .quiz-notec-content p { margin: 0 0 8px 0; } .post-detail .textview .box-quiz-replaced .quiz-notec-content p:last-child { margin-bottom: 0; } .post-detail .textview .box-quiz-replaced .text-sort-result { display: block; font-weight: bold; color: #64748b; text-transform: uppercase; margin-bottom: 6px; } /* ──────────────────────────────────────────────────────────── FOOTER: SUBMIT BUTTON + RESULT CARD ──────────────────────────────────────────────────────────── */ .post-detail .textview .box-quiz-replaced .end-quiz { margin-top: 8px; padding: 8px 0; border-top: 2px solid #f1f5f9; } .post-detail .textview .box-quiz-replaced .child-footer { display: flex; justify-content: center; } .post-detail .textview .box-quiz-replaced a#checkresult, .post-detail .textview .box-quiz-replaced a.checkresult { display: block; width: 100%; max-width: 400px; padding: 14px 20px; background: #1e293b; color: #ffffff; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; text-align: center; text-decoration: none; line-height: 1.5; transition: background 0.2s; -webkit-tap-highlight-color: transparent; box-sizing: border-box; } .post-detail .textview .box-quiz-replaced a#checkresult:hover, .post-detail .textview .box-quiz-replaced a.checkresult:hover { background: #0f172a; } .post-detail .textview .box-quiz-replaced a#checkresult.disabled, .post-detail .textview .box-quiz-replaced a.checkresult.disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; } .post-detail .textview .box-quiz-replaced .box-resultLast { margin-top: 20px; } .post-detail .textview .box-quiz-replaced .box-resultLast.hide { display: none; } .post-detail .textview .box-quiz-replaced .quiz-summary-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); animation: qbFadeIn 0.4s ease-out; } .post-detail .textview .box-quiz-replaced .summary-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; } .post-detail .textview .box-quiz-replaced .summary-icon-box { display: flex; align-items: center; justify-content: center; background: #fffbeb; width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; } .post-detail .textview .box-quiz-replaced .summary-text h3 { margin: 0; font-size: 18px; color: #0f172a; } .post-detail .textview .box-quiz-replaced .summary-text p { margin: 4px 0 0; color: #64748b; } .post-detail .textview .box-quiz-replaced .summary-score-badge { margin-left: auto; background: #2563eb; color: #ffffff; font-size: 20px; font-weight: bold; padding: 10px 18px; border-radius: 8px; white-space: nowrap; } .post-detail .textview .box-quiz-replaced .summary-actions { width: 100%; } .post-detail .textview .box-quiz-replaced .btn-reset-full { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 8px; font-weight: bold; cursor: pointer; transition: background 0.2s; -webkit-tap-highlight-color: transparent; } .post-detail .textview .box-quiz-replaced .btn-reset-full:hover, .post-detail .textview .box-quiz-replaced .btn-reset-full:active { background: #e2e8f0; } /* ── ANIMATION ─────────────────────────────────────────────── */ @keyframes qbFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } /* ── RESPONSIVE ────────────────────────────────────────────── */ @media (max-width: 480px) { .post-detail .textview .box-quiz-replaced .summary-header { flex-direction: column; text-align: center; gap: 12px; } .post-detail .textview .box-quiz-replaced .summary-score-badge { margin: 0 auto; width: 100%; text-align: center; box-sizing: border-box; } .post-detail .textview .box-quiz-replaced .summary-icon-box { margin: 0 auto; } .post-detail .textview .box-quiz-replaced div.list-mat.quesh div.box-mat { width: 46%; } .post-detail .textview .box-quiz-replaced div.list-mat.quesh div.item-pairing { padding: 8px; } }