/* Quiz List */
#list-exhibitor-quiz { width: 100%; }
#list-exhibitor-quiz .col-quiz { width: 80%; }
#list-exhibitor-quiz .col-state { width: 15%; }
#list-exhibitor-quiz .col-actions { width: 5%; text-align: center; }
#list-exhibitor-quiz .col-actions i { cursor: pointer; }

/* Quiz Editor */
#form-quiz { width: 80%; max-width: 1024px; margin: auto; }
#form-quiz .items { width: 100%; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; padding: 16px; }
#form-quiz .item { position: relative; width: 100%; min-height: 128px; display: flex; flex-direction: column; justify-content: center; align-items: start; margin: 16px 0 32px 0; padding: 6px 8px; color: #333; border: 1px solid rgba(221, 221, 221, 0.2); border-radius: 2px; box-shadow: 3px 3px 8px 1px rgba(221, 221, 221, 0.4); }
#form-quiz .item[data-dragged] { display: none; }
#form-quiz .item[data-drop-placeholder] { opacity: 0.4; }
#form-quiz .item[data-drop-placeholder].dragover { opacity: 1; }
#form-quiz .item:not([data-drop-placeholder]).dragover .options-panel { visibility: visible; opacity: 0.8; background: #007fc5; }
#form-quiz .item:not([data-drop-placeholder]).dragover .options-panel > * { display: none; }
#form-quiz .item .left-panel,
#form-quiz .item .right-panel { position: absolute; }
#form-quiz .item .left-panel { top: 0; left: 0; }
#form-quiz .item .right-panel { top: 0; right: 0; }
#form-quiz .item .right-panel::after { content: attr(data-item-type); text-transform: uppercase; font-size: 12px; position: absolute; top: 0; right: calc(0px - 6px - 6px - 12px); background: #007fc5; color: #fff; font-weight: bold; padding: 16px 6px; writing-mode: vertical-rl; text-orientation: upright; }
#form-quiz .item .left-panel { opacity: 0.4; transition: 0.2s; }
#form-quiz .item.option-panel-open .left-panel,
#form-quiz .item:hover .left-panel { opacity: 1; transition: 0.2s; }
#form-quiz .item .left-panel::before { content: '\f142'; font-family: 'FontAwesome'; text-transform: uppercase; font-size: 12px; position: absolute; top: 0; left: calc(0px - 6px - 6px - 12px); background: #007fc5; color: #fff; font-weight: bold; padding: 16px 6px; writing-mode: vertical-rl; text-orientation: upright; cursor: pointer; border-bottom-left-radius: 12px; border-top-left-radius: 3px; opacity: 0.4; }
#form-quiz .item.option-panel-open .left-panel::before,
#form-quiz .item:hover .left-panel::before { opacity: 1; }
#form-quiz .item.option-panel-open > :not(.option-panel):not(.left-panel):not(.right-panel) { opacity: 0.1; transition: 0.2s; }

#form-quiz .item > .option-panel { position: absolute; z-index: 100; visibility: hidden; opacity: 0; top:0; right: 0; left: 0; bottom: 0; background: rgba(0, 127, 197, 0.8); color: #fff; display: flex; flex-direction: row; justify-content: stretch; user-select: none; padding: 12px 24px; }
#form-quiz .item > .option-panel > .settings { width: 85%; }
#form-quiz .item > .option-panel > .settings > h1 { color: white; font-size: 18px; }
#form-quiz .item > .option-panel > .actions { width: 15%; height: 100%; border-left: 1px solid rgba(255, 255, 255, 0.7); display: flex; flex-direction: column; align-items: center; justify-content: center; }
#form-quiz .item > .option-panel > .actions i { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: auto 32px; font-size: 22px; font-weight: bold; cursor: pointer; }
#form-quiz .item > .option-panel > .actions i > span { font-size: 16px; padding-top: 8px; }

#form-quiz .item.qcm > .responses,
#form-quiz .item.qcu > .responses { width: 100%; display: flex; flex-direction: row; justify-content: center; align-items: center; flex-wrap: wrap; }
#form-quiz .item.qcm > .responses label,
#form-quiz .item.qcu > .responses label { width: auto; display: flex; flex-direction: row; justify-content: flex-start; align-items: center; margin: 16px 32px; border: 2px solid #e8561a; border-radius: 22px; padding: 3px 12px; overflow-wrap: anywhere; }
#form-quiz .item.qcm > .responses label > *,
#form-quiz .item.qcu > .responses label > * { margin: 4px 8px; }
#form-quiz .item.qcu > .responses label > .actions { justify-self: end; display: flex; flex-direction: row; align-items: center; justify-content: flex-end; margin-left: 16px; }
#form-quiz .item.qcu > .responses label > .actions i { margin: 2px 0 2px 6px; font-size: 14px; }
#form-quiz .item.qcm > .responses input[disabled],
#form-quiz .item.qcu > .responses input[disabled] { background: transparent; color: inherit; }
#form-quiz .item.qcm > .responses input,
#form-quiz .item.qcu > .responses input { width: auto; border: none; }

#form-quiz .item.txt > textarea { height: 100%; overflow: hidden; resize: none; }

#list-exhibitor-quiz thead th { padding: 12px 32px 16px 32px; }
#list-exhibitor-quiz thead { box-shadow: 0 0 8px 2px rgba(32, 32, 32, 0.1); }
#list-exhibitor-quiz tbody tr:not(:last-child) { border-bottom: 1px solid rgba(32, 32, 32, 0.1); }
#list-exhibitor-quiz tbody tr td { padding: 24px 16px; vertical-align: middle; }

/* Quiz Display */
.quiz-result { margin: auto; border: 3px solid rgba(221, 221, 221, 1); background-color: rgba(221, 221, 221, 0.2); width: 152px; height: 152px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.quiz-result > span { font-weight: bold; font-size: 32px; }
.quiz-result.small { width: 64px; height: 64px; border-width: 2px; }
.quiz-result.small > span { font-size: 16px; }
.quiz { width: 80%; margin: auto; }
.quiz > h2.title { border: 1px solid rgba(32, 32, 32, 0.1); box-shadow: 0 0 8px 2px rgba(32, 32, 32, 0.1); text-align: center; font-size: 32px; padding: 32px 64px;}
.quiz > p.desc { margin: 32px 0 64px; }
.quiz > .item.qcu, .quiz > .item.qcm { position: relative; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: start; margin: 16px 0 32px; padding: 12px 16px; color: #333; border: 1px solid rgba(221, 221, 221, 0.2); border-radius: 2px; box-shadow: 3px 3px 8px 1px rgba(221, 221, 221, 0.4); }
.quiz > .item.txt { line-height: 1.4; }
.quiz > .item > .responses { width: 100%; display: flex; flex-direction: row; align-items: center; justify-content: center; flex-wrap: wrap; margin: 8px 0; }
.quiz > .item > .responses > label { user-select: none; width: auto; display: flex; flex-direction: row; justify-content: flex-start; align-items: center; margin: 16px 32px; border: 2px solid #e8561a; border-radius: 22px; padding: 3px 12px; overflow-wrap: anywhere; cursor: pointer; transition: 0.2s; }
.quiz > .item > .responses > label > * { margin: 4px 8px; }
.quiz > .item > .responses > label.checked { background-color: rgba(232, 86, 26, 0.3); padding-left: 42px; padding-right: 42px; }
.quiz > .item > .responses > label.result-valid,
.quiz > .item > .responses > label.result-missing { border-color: #338a3e; background-color: rgba(76, 175, 80, 0.3); }
.quiz > .item > .responses > label.result-invalid { border-color: #ba000d; background-color: rgba(244, 67, 54, 0.4); }

@media screen and (max-width: 650px) {
    .quiz > h2.title { padding: 8px; word-break: break-word; font-size: 22px; }
    .quiz > .item > .responses > label { margin-left: 4px; margin-right: 4px; }
    .quiz > .item > .responses > label.checked { padding: inherit; }
}

/* Quiz Card List */
.quizCardList { width: 100%; }
.quizCardList > .card { margin: 8px auto; }
.quizCardList > .card.completed { background-color: rgba(129, 199, 132, 0.2); border-color: #338a3e; }
