@charset "utf-8";

.required,
.error { color: #c90000; }
.ie-panel {
    display: none;
    background: #212121;
    padding: 10px 0;
    box-shadow: 3px 3px 5px 0 rgba(0, 0, 0, .3);
    clear: both;
    text-align: center;
    position: relative;
    z-index: 1;
}

html.ie-10 .ie-panel,
html.lt-ie-10 .ie-panel {
    display: block;
}

.quiz-answer-hint {
    color: #777;
    font-size: 15px;
}
.ordering-answer li {
    cursor: move;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}
.ordering-answer li.is-dragging {
    opacity: .55;
}
.ordering-answer.is-touch-dragging {
    touch-action: none;
}
.ordering-handle {
    color: #999;
    margin-right: 8px;
    touch-action: none;
}
.fill-blank-answer .form-input,
.matching-answer .form-input {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
}
.question-result-answer p {
    margin-bottom: 8px;
}

.question-result-answer p:last-child {
    margin-bottom: 0;
}

/* -------------------- { 六種題型作答介面 } -------------------- */
.quiz-question-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}
.quiz-question-type {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 11px;
    color: #356377;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    border-radius: 999px;
    background: #dff2f8;
}
.quiz-question-type-multiple { color: #315f84; background: #dcecff; }
.quiz-question-type-true_false { color: #656565; background: #ececec; }
.quiz-question-type-fill_blank { color: #71621e; background: #fff1a9; }
.quiz-question-type-ordering { color: #8a5717; background: #ffe1b5; }
.quiz-question-type-matching { color: #72415a; background: #f2dce7; }

.choice-answer label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.choice-answer input[type="radio"],
.choice-answer input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 5px;
    accent-color: #2a9d78;
}
.choice-answer-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 28px;
    color: #356377;
    font-size: 14px;
    font-weight: 800;
    border-radius: 999px;
    background: #e7f4f8;
}

.fill-blank-answer,
.matching-answer {
    display: grid;
    gap: 12px;
    max-width: 820px;
}
.fill-blank-answer-row,
.matching-answer-row {
    display: grid;
    grid-template-columns: minmax(90px, 150px) minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}
.fill-blank-answer-row label,
.matching-answer-row label {
    margin: 0;
    color: #4e5b60;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}
.fill-blank-answer .form-input,
.matching-answer .form-input {
    min-height: 46px;
    border: 1px solid #ded5c7;
    border-left: 6px solid #2a9d78;
    border-radius: 7px;
    background: #fffefb;
    box-shadow: 0 2px 8px rgba(70, 54, 35, .07);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.matching-answer .form-input {
    border-left-color: #7f668f;
}
.fill-blank-answer .form-input::placeholder {
    color: #a8a095;
}
.fill-blank-answer .form-input:focus,
.matching-answer .form-input:focus {
    border-color: #b8cfc5;
    border-left-color: #1f8a68;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(42, 157, 120, .14);
    outline: none;
}
.matching-answer .form-input:focus {
    border-left-color: #6f557f;
    box-shadow: 0 0 0 3px rgba(127, 102, 143, .14);
}

.quiz-answer-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 11px;
    border-radius: 6px;
    background: #f5f1e8;
}
.ordering-answer li {
    align-items: center;
}
.ordering-handle {
    flex: 0 0 auto;
    font-size: 18px;
}
.answer-review-value {
    display: inline-block;
    margin: 0;
    padding: 10px 14px;
    color: #146248;
    font-weight: 800;
    border-radius: 7px;
    background: #e7f7e9;
}
.answer-review-list {
    display: grid;
    gap: 9px;
    max-width: 820px;
    margin: 0;
}
.answer-review-list li {
    padding: 10px 13px;
    border: 1px solid #e5dbc9;
    border-radius: 7px;
    background: #fffdf8;
}
.fill-blank-review,
.matching-review {
    padding: 0;
    list-style: none;
}
.fill-blank-review li,
.matching-review li {
    display: grid;
    grid-template-columns: minmax(90px, 150px) minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}
.fill-blank-review strong,
.matching-review strong {
    color: #146248;
}
.matching-review li {
    grid-template-columns: minmax(90px, 1fr) auto minmax(90px, 1fr);
}
.matching-review i {
    color: #9a8d79;
}

@media (max-width: 575px) {
    .fill-blank-answer-row,
    .matching-answer-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .quiz-question-heading {
        gap: 7px;
    }
    .quiz-question-type {
        min-height: 26px;
        padding: 4px 9px;
        font-size: 12px;
    }
    .fill-blank-review li,
    .matching-review li {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    .matching-review i {
        transform: rotate(90deg);
    }
}

/* -------------------- { 題目附圖 } -------------------- */
.question-figure {
    width: fit-content;
    max-width: 820px;
    margin: 14px 0 22px;
    padding: 12px;
    border: 1px solid #e5dbc9;
    border-left: 6px solid #d59b38;
    border-radius: 9px;
    background: #fffdf8;
    box-shadow: 0 4px 14px rgba(62, 47, 28, .07);
}
.question-figure a {
    display: block;
    cursor: zoom-in;
}
.question-figure img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 560px;
    margin: 0 auto;
    object-fit: contain;
}
@media (max-width: 575px) {
    .question-figure {
        width: 100%;
        padding: 8px;
    }
}
