/* Quiz List */
#list-exhibitor-quiz { width: 100%; background-color: var(--white); }
#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: 100%; }
#form-quiz .items { width: 100%; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; padding: 16px; }
#form-quiz .item { background-color: var(--white); 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: var(--red); 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: 'Font Awesome 5 Free'; text-transform: uppercase; font-size: 12px; position: absolute; top: 0; left: calc(0px - 6px - 6px - 12px); background: var(--red); 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-color: var(--black); 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: column;
}
#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;
	padding: 3px 12px;
	overflow-wrap: anywhere;
}
#form-quiz .item.qcm > .responses label > *,
#form-quiz .item.qcu > .responses label > * { margin: 4px 8px; }
#form-quiz .item.qcm > .responses label > .actions,
#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.qcm > .responses label > .actions i,
#form-quiz .item.qcu > .responses label > .actions i {
	margin: 4px;
	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; }

/* WA - Quiz Player
---------------------------------------------------------------------- */
#quiz-player {
	position: relative;

	width: 100%;
	max-width: 768px;
	margin: 16px auto;

	overflow: hidden;
}

#quiz-player > header {
	display: flex;
	flex-direction: column;
}

#quiz-player > header > .quiz-infos {
	position: relative;

	width: 100%;
	margin-bottom: 16px;
	padding: 8px 12px;

	display: flex;
	flex-direction: row;
	justify-content: space-between;

	background-color: var(--red);
	border-radius: 8px;
	color: var(--white);
}

#quiz-player > header > .quiz-infos > .quiz-title {
	width: 80%;

	display: flex;
	flex-direction: column;
}

#quiz-player > header > .quiz-infos > .quiz-title > h1 {
	padding: unset;
	margin: unset;
	margin-bottom: 12px;

	font-size: 24px;
	text-align: left;
	text-transform: uppercase;
	color: var(--white);
}

#quiz-player > header > .quiz-infos > .quiz-title > .desc {
	margin: 16px 0 8px;
}

#quiz-player > header > .quiz-infos > .max-score {
	display: flex;
	flex-direction: column;
	align-items: center;

	font-weight: bold;
	text-align: center;
}

#quiz-player > header > .quiz-infos > .max-score .fa {
	font-size: 22px;
	margin: 2px;
}

#quiz-player > header > .quiz-infos > .max-score .fa-clock {
	margin-top: 8px;
}

#quiz-player > section {
	padding: 16px 8px;
	border: 1px solid var(--red);
	border-radius: 8px;
}

#quiz-player > section > .quiz-question {
	margin: 8px 0;
	color: var(--red);
	font-weight: bold;
}

#quiz-player > section > article {
	margin: 16px 0;

	display: flex;
	flex-direction: column;
}

#quiz-player > section > article > label {
	width: 100%;
	padding: 8px 0;

	display: flex;
	flex-direction: row;
	align-items: center;

	cursor: pointer;
}

/*
#quiz-player > article > label.result-missing input,
#quiz-player > article > label.result-invalid input,
#quiz-player > article > label.result-valid input {
	opacity: 0;
}

#quiz-player > article > label.result-missing > span,
#quiz-player > article > label.result-invalid > span,
#quiz-player > article > label.result-valid > span {
	position: relative;
}

#quiz-player > article > label.result-missing > span:before,
#quiz-player > article > label.result-invalid > span:before,
#quiz-player > article > label.result-valid > span:before {
	position: absolute;
	top: 3px;
	left: -16px;

	font-family: 'Font Awesome 5 Free';

	-moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;

    line-height: 1;
	font-weight: 900;
	font-size: 13px;
}

#quiz-player > article > label.result-valid > span:before,
#quiz-player > article > label.result-missing > span:before {
	content: "\f058";
	color: var(--green);
}
#quiz-player > article > label.result-missing > span:before { color: var(--info); }
#quiz-player > article > label.result-invalid > span:before {
	content: "\f00d";
	color: var(--red);
}
*/

#quiz-player > section > article > label:hover {
	background-color: var(--light-grey-shadow);
}

#quiz-player > div.start,
#quiz-player > div.finished,
#quiz-player > div.well-done,
#quiz-player > div.wrong,
#quiz-player > div.timeout {
	position: absolute;
	top: 200%;
	right: 0;
	bottom: 0;
	left: 0;

	background-color: var(--white);

	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	z-index: 30;
}

#quiz-player > div.start {
	top: 0%;
}

#quiz-player > div.finished i,
#quiz-player > div.well-done i,
#quiz-player > div.wrong i,
#quiz-player > div.timeout i {
	font-size: 64px;
}

#quiz-player > div.well-done i { color: var(--green); }
#quiz-player > div.wrong i, #quiz-player > div.timeout i { color: var(--red); }
#quiz-player > div.finished p {
	text-align: center;
}

#quiz-player > div.finished div.score {
	padding: 8px 0 12px;
	font-size: 22px;
	font-weight: bold;
	color: var(--red);
}

#quiz-player > footer {
	display: flex;
	flex-direction: row;
	justify-content: space-around;

	margin-top: 16px;
}

#quiz-player > footer > button {
	margin-left: unset;
	margin-right: unset;
	background-color: transparent;
	color: var(--red);
	border: 1px solid var(--grey);
	border-radius: 8px;
}

#quiz-player > footer > button:hover {
	border-color: var(--red);
}

#quiz-player > footer > button:hover:before {
	background-color: var(--red);
}

#quiz-player > footer > button:hover > span {
	color: var(--white);
}