@import url('fonts/montserrat.css');

input, select, textarea, button, optgroup, option {
	font-family: 'Montserrat', "Trebuchet MS", Tahoma, Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    width: 100%;
    /* Only .blackboard_inner should scroll. LeaderLine appends absolute SVGs
       to body far below the viewport; without locking the root those inflate
       document scrollHeight and the browser chrome gains a scrollbar. */
    overflow: hidden;
    overscroll-behavior: none;
}
body {
	margin:0;
	padding:0;
	font-size:18px;
	font-family:'Montserrat', "Trebuchet MS", Helvetica, sans-serif;
	/* Reset admin_style SaaS shell (shared CSS load order: admin → testing) */
	background: #b3a783 none;
	background-color: #b3a783;
	background-image: none;
	background-position:center top;
	background-repeat:no-repeat;
	color: #222222;
	overflow: hidden;
	position: fixed;
	inset: 0;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------------------------------
   Testing UI overrides — neutralize admin_style redesign bleed-through
   (testing_template loads admin_style.css then this file)
   ------------------------------------------------------------------------- */

/* Classic testing heading (pre-admin SaaS redesign) */
.contentheading {
	color: #333333;
	font-weight: bold;
	font-size: 18px;
	letter-spacing: normal;
	padding: 5px;
	padding-left: 0;
	margin: 10px 0 20px 0;
	border-bottom: 3px solid #f9dd3c;
	line-height: normal;
	overflow: visible;
	text-shadow: none;
	background: none;
	box-shadow: none;
	border-radius: 0;
	position: relative;
}

/* Kill admin SaaS underline pseudo — classic look uses border-bottom above */
.contentheading::after,
.contentheading::before {
	content: none !important;
	display: none !important;
	animation: none !important;
	background: none !important;
	box-shadow: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	transform: none !important;
}

.sitename {
	display: block;
	color: #fff;
	font-size: 18px;
	font-weight: bold;
	letter-spacing: normal;
	padding: 10px 0 0 15px;
	line-height: normal;
	text-shadow: none;
	background: none;
	border: 0;
	box-shadow: none;
}

.sitename::before {
	content: none !important;
	display: none !important;
}

#menu {
	display: block;
	flex-wrap: unset;
	align-items: unset;
	gap: 0;
	margin: 0;
	padding: 0;
	z-index: 30;
	list-style: none;
}

#menu li {
	margin: 0;
	padding: 0;
	list-style: none;
	float: left;
	font-family: 'Montserrat', Arial, sans-serif;
	font-weight: bold;
	font-size: 12px;
}

#menu li a {
	display: block;
	align-items: unset;
	gap: unset;
	border: 0;
	border-right: 0;
	border-radius: 12px;
	margin: 0 3px;
	padding: 10px 15px;
	color: #333333;
	text-align: center;
	text-decoration: none;
	text-shadow: none;
	background-color: rgba(255, 255, 255, 0.5);
	background-image: none;
	box-shadow: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

#menu li a:hover {
	color: #000;
	border: 0;
	border-radius: 12px;
	background-color: rgba(255, 255, 255, 0.3);
	background-image: none;
	box-shadow: none;
}

#menu li a.menu-link-alert,
#menu li a[style*="color:red"] {
	color: #c62828 !important;
}

#menu li a.menu-link-alert:hover,
#menu li a[style*="color:red"]:hover {
	background-color: rgba(255, 255, 255, 0.3);
	color: #b71c1c !important;
}

#menu li a:has(select),
#menu li a:has(form) {
	padding: 10px 15px;
	background-color: rgba(255, 255, 255, 0.5);
	border-color: transparent;
}

.menu_right {
	border-radius: 15px;
	padding: 5px;
	margin: 5px;
	z-index: 2;
	/* centre the menu horizontally (overrides admin_style's right:10px).
	   width:max-content stops the absolutely-positioned box from being
	   squeezed to ~50% width (which made the floated items wrap). */
	left: 50%;
	right: auto;
	transform: translateX(-50%);
	width: max-content;
	max-width: 100%;
}

#menu li a.menu-icon-btn {
	padding: 10px 12px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	line-height: normal;
}
#menu li a.menu-icon-btn svg {
	display: block;
}

input[type="checkbox"], input[type="radio"] {
	width: 20px;
	height: 20px;
	vertical-align:middle;
	min-width: 20px;
}
input, select {
	border-radius:5px;
	border:1px solid #ccc;
	padding:0px;
	font-size:18px;
	font-weight:bold;
}
.fill_the_blanks select, .fill_the_blanks input {
	/* for Firefox */
	-moz-appearance: none;
    /* for Safari, Chrome, Opera */
    -webkit-appearance: none;
	appearance: none;
}
/* Closed <select> stays centered via text-align-last.
   Do NOT center <option> in classic pickers: Chromium reserves a
   left checkmark gutter and then centers within the remainder,
   so option text looks indented from the left. */
.fill_the_blanks select option {
	text-align: start;
}
.fill_the_blanks select::-ms-expand {
    display: none;
}

.fill_the_blanks .fill_blank_nowrap {
	white-space: nowrap;
	display: inline-block;
	position: relative;
	vertical-align: baseline;
}
.fill_the_blanks .fill_blank_nowrap .correct_answer_container {
	/* Anchor for absolute .correct_answer: span the blank width without taking layout space. */
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 0;
	display: block;
	overflow: visible;
}
.fill_the_blanks .fill_blank_nowrap .correct_answer {
	left: 50%;
	right: auto;
	transform: translateX(-50%);
	top: -29px;
	z-index: 5;
}

.testing_div {
	margin:0;
	width:100%;
	height:100%;
	position:relative;
	z-index:1;
	/* Page load zoom-in disabled
    animation-name: testing_div_animation;
	animation-duration: 1.5s;
	*/
}

.blackboard {
	position: absolute;
	top: 38px;
	left: 50%;
	margin: 0 0 0 -557px;
	width: 1114px;
	height: 706px;
	padding: 37px 42px 66px 41px;
	box-sizing: border-box;
	color: #222222;
	background-image: url("images/whiteboard.png?v=4");
	background-position: center top;
	background-repeat: no-repeat;
	background-size: 1114px 706px;
}
.blackboard_inner {
	width: 100%;
	height: 100%;
	min-height: 0;
	padding: 0 20px 0 30px;
	box-sizing: border-box;
	position: relative !important;
	overflow-y: auto !important;
	font-size: 18px;
	line-height: 30px;
	font-family: 'Montserrat', Tahoma, Helvetica;
	color: #222222;
	z-index: 10;
	display: flex;
	flex-direction: column;
}
.blackboard_inner .question_form {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.centered_question {
	flex: 1 1 auto;
	width: 100%;
	max-width: 100%;
	min-width: 60%;
	min-height: 0;
	margin: 0;
	text-align: left;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	justify-content: center;
	gap: 35px;
}
/* With media: even horizontal gaps. Short Q fit the board (no scroll).
   Tall Q get .board_scroll_content on .blackboard_inner — scroll on the right edge. */
.centered_question:has(> .question_media) {
	justify-content: space-evenly;
	align-items: center;
	gap: 0;
}
.centered_question .question_content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
}
/* No side picture/video: use the full board width — do not leave a blank right column. */
.centered_question:not(:has(> .question_media)) .question_content {
	flex: 1 1 auto;
	width: 100%;
	max-width: 100%;
}
.centered_question:has(> .question_media) .question_content {
	/* Width shrink-wraps; height stretches so spare board space can become the 10px answer gap. */
	flex: 0 1 auto;
	max-width: calc(100% - 200px);
	align-self: stretch;
	min-height: 0;
	overflow: visible;
}
.centered_question .question_media {
	flex: 0 0 auto;
	order: 2;
	align-self: center;
	margin-left: 20px;
	max-height: 100%;
}
.centered_question .question_media img.question_image {
	max-height: 100%;
	width: auto;
	object-fit: contain;
}
/* Tall content: the question row scrolls; the nav stays at the bottom of the form. */
.blackboard_inner.board_scroll_content {
	overflow: hidden !important;
}
.blackboard_inner.board_scroll_content .question_form {
	flex: 1 1 auto;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	/* Bleed out of .blackboard_inner padding so the nav can span the white board. */
	width: calc(100% + 50px);
	margin-left: -30px;
	margin-right: -20px;
}
.blackboard_inner.board_scroll_content .centered_question {
	flex: 1 1 auto;
	min-height: 0;
	align-items: flex-start;
	overflow-x: hidden;
	overflow-y: auto;
	box-sizing: border-box;
	padding-left: 30px;
	padding-right: 20px;
}
.blackboard_inner.board_scroll_content .navigation_div {
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}
.blackboard_inner.board_scroll_content .centered_question:has(> .question_media) .question_content {
	max-height: none;
	overflow: visible;
	align-self: flex-start;
}
.blackboard_inner.board_scroll_content .centered_question .question_media {
	align-self: flex-start;
	position: sticky;
	/* Keep the card below the scrollport edge so its box-shadow is not clipped. */
	top: 40px;
	margin-top: 40px;
	max-height: none;
}
/* Video poster slot: frame is the wrapper (poster pixel size). Absolute fill
   so a smaller MP4 still paints at the same size as the image — width/height
   auto would shrink to the video's intrinsic resolution. */
.centered_question .question_media .question_image {
	float: none;
	margin: 0;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	cursor: pointer;
	max-height: 100%;
}
.centered_question .question_media .question_image > video,
.centered_question .question_media #questions_video {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	margin: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: fill !important;
	vertical-align: top;
	border-radius: var(--admin-radius, 12px);
}
/* Leftover board height is split equally: above .question_text, between
   it and the answers, and below the answers. No extra space when content
   already fills the board — no extra scrollbar.
   Several paragraphs get a slightly larger break than the default 8px,
   capped so two short lines do not swallow the spare height. The spare
   height stays in the even gaps around the text and the answers. */
.centered_question .question_content > .question_text_wrap {
	flex: 0 0 auto;
	margin-top: 0;
	margin-bottom: 0;
}
.centered_question .question_content:not(:has(> .ddi-canvas-wrap)):has(> .question_text_wrap > .question_text > p + p) > .question_text_wrap > .question_text > p {
	margin-block-start: 0;
	margin-block-end: 0;
}
.centered_question .question_content:not(:has(> .ddi-canvas-wrap)):has(> .question_text_wrap > .question_text > p + p) > .question_text_wrap > .question_text > p + p {
	margin-top: 16px;
}
.question_text_wrap {
	display: block;
}
/* Question TTS: chrome play button before the first word — 30px */
.question_text button.button.answer_audio_btn.question_audio_btn {
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
	min-height: 30px !important;
	max-width: 30px !important;
	max-height: 30px !important;
	margin: 0 12px 0 0 !important;
	vertical-align: middle;
	position: relative;
	top: -1px;
}
.blackboard_inner .navigation_div {
	flex: 0 0 auto;
}
.blackboard_inner .contentheading,
.blackboard_inner .Wirisformula {
	color: #222222 !important;
}
.blackboard_inner .question_form a,
.blackboard_inner .question_form a:link,
.blackboard_inner .question_form a:visited {
	color: #1a5fad;
}
.blackboard_inner .question_form table {
	border-color: rgba(0, 0, 0, 0.25);
}
.blackboard_inner .question_form td,
.blackboard_inner .question_form th {
	border-color: rgba(0, 0, 0, 0.2);
}
.question_form .yes_no_table td {
	border-bottom: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 0;
}
.question_form .yes_no_table tr:hover {
	background-color: rgba(0, 0, 0, 0.05);
}
.blackboard_inner .ordering_list_li {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	-webkit-backdrop-filter: blur(8px) saturate(140%);
	backdrop-filter: blur(8px) saturate(140%);
	background: linear-gradient(to bottom, rgba(236, 238, 242, 0.9) 0%, rgba(210, 212, 220, 0.68) 100%) !important;
	border: 1px solid rgba(170, 172, 180, 0.28);
	border-top: 1px solid rgba(248, 249, 252, 0.98);
	border-radius: 12px;
	box-shadow:
		0 4px 24px rgba(0, 0, 0, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.7),
		inset 0 -1px 0 rgba(120, 122, 130, 0.1),
		inset 1px 0 0 rgba(255, 220, 220, 0.1),
		inset -1px 0 0 rgba(200, 220, 255, 0.1);
	margin-top: 1px;
	margin-bottom: 1px;
	padding-top: 1px;
	padding-bottom: 1px;
}
.blackboard_inner .ordering_list_li > * {
	position: relative;
	z-index: 1;
}
.blackboard_inner .ordering_list_li.ui-sortable-helper {
	overflow: visible;
}
.blackboard_inner .ordering_list_li:hover {
	background: linear-gradient(to bottom, rgba(244, 246, 250, 0.95) 0%, rgba(222, 224, 232, 0.78) 100%) !important;
	border-color: rgba(160, 162, 170, 0.32);
	border-top-color: rgba(255, 255, 255, 1);
	box-shadow:
		0 6px 28px rgba(0, 0, 0, 0.16),
		inset 0 1px 0 rgba(255, 255, 255, 0.82),
		inset 0 -1px 0 rgba(110, 112, 120, 0.12),
		inset 1px 0 0 rgba(255, 210, 210, 0.14),
		inset -1px 0 0 rgba(190, 215, 255, 0.14);
}
.blackboard_inner .text_question {
	border-top: 1px solid rgba(0, 0, 0, 0.15);
}
.blackboard_inner .question_text tr:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

.blackboard_outer {
    perspective: 1500px;
}
.blackboard_animation {
    position: relative;
	/* Board fly-in / flip on page load disabled
    animation-name: flip_blackboard;
	animation-duration: 1.5s;
	animation-direction: normal;
	*/
}
.front, .back {
    position: absolute;
    backface-visibility: hidden;
}
.suitcase {
	position:absolute;
	right:-60px;
	bottom:-180px;
	z-index: 5;
}
.books {
	position:absolute;
	left:-60px;
	bottom:-175px;
	z-index: 5;
}
.finish_button {
	background-color:#fcb912;
	background: -webkit-linear-gradient(#ffbd00, #d07a00); /* For Safari */
	background: -o-linear-gradient(#ffbd00, #d07a00); /* For Opera 11.1 to 12.0 */
	background: -moz-linear-gradient(#ffbd00, #d07a00); /* For Firefox 3.6 to 15 */
	background: linear-gradient(#ffbd00, #d07a00); /* Standard syntax */
	border-top:1px solid #af8200;
}
td  {
	font-size:16px;
	font-family:'Montserrat', "Trebuchet MS", Helvetica, sans-serif;	
}
select {
	background-color:rgba(255,255,255,0.3);
	border:0;
}
/* Shared remaining-time clock (desktop menu + phone floating button) */
.testing_clock {
	--testing-clock-track: rgba(255, 255, 255, 0.9);
	position: relative;
	box-sizing: border-box;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 13px;
	line-height: 1;
	color: #222222;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
	cursor: default;
	background: var(--testing-clock-track);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}
.testing_clock_hand {
	position: absolute;
	left: 50%;
	bottom: 50%;
	width: 1px;
	height: 16px;
	margin-left: -0.5px;
	background: #000000;
	border-radius: 1px;
	transform-origin: bottom center;
	transform: rotate(0deg);
	z-index: 1;
	pointer-events: none;
}
.testing_clock > span {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #222222;
	line-height: 1;
}
#menu li.menu_clock_li {
	display: flex;
	align-items: center;
	padding: 0 3px;
}
/* Override admin_style `#menu div { visibility:hidden }` (dropdown flyout)
   for the clock face AND its second-hand child div.
   Track opacity matches neighbouring #menu li a (rgba white 0.5). */
#menu li.menu_clock_li .testing_clock,
#menu #testing_clock.testing_clock {
	--testing-clock-track: rgba(255, 255, 255, 0.5);
	position: relative;
	visibility: visible;
	margin: 2px 0;
	padding: 0;
	border: 0;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	background: var(--testing-clock-track);
	box-shadow: none;
	font-size: 12px;
}
#menu .testing_clock > span {
	width: 20px;
	height: 20px;
	background: rgba(255, 255, 255, 0.5);
}
#menu .testing_clock .testing_clock_hand,
#menu #testing_clock_hand {
	position: absolute;
	visibility: visible;
	margin: 0 0 0 -0.5px;
	padding: 0;
	border: 0;
	width: 1px;
	height: 14px;
	left: 50%;
	bottom: 50%;
	background: #000000;
	border-radius: 1px;
	box-shadow: none;
}

.disabled_button, .disabled_button:hover {
	color:rgba(255,255,255,0.7);
	cursor:auto;
	opacity:0.5;
}
.yes_no_table {
	margin-top: 15px;
}
.yes_no_table td{
	border-bottom:1px solid rgba(255,255,255,0.2);
	height:40px;
	vertical-align: middle;
}
.yes_no_table .yes_no_radio_label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	vertical-align: middle;
}
.yes_no_table .yes_no_radio_label label {
	margin: 0;
	line-height: 1;
}
.yes_no_table img,
.yes_no_table b {
	vertical-align: middle;
}
/* Red "?" overlay centered on unanswered radio/checkbox (results types 1, 2, 5, 8) */
.unanswered_input_wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 0;
	vertical-align: middle;
}
.unanswered_input_wrap input[type="radio"],
.unanswered_input_wrap input[type="checkbox"] {
	margin: 0;
	position: relative;
	z-index: 1;
	flex-shrink: 0;
}
.unanswered_input_mark {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	margin: 0;
	padding: 0;
	color: #dc3545;
	font-weight: bold;
	font-size: 14px;
	line-height: 1;
	pointer-events: none;
	user-select: none;
}
.yes_no_table label.answer {
	display: inline-flex;
	align-items: center;
	margin: 0;
	vertical-align: middle;
	position: relative;
	min-height: 40px;
	width: fit-content;
	padding: 0 12px;
	box-sizing: border-box;
	background: linear-gradient(to bottom, #f8f8fa 0%, #d8dae2 100%);
	border: 1px solid rgba(155, 157, 165, 0.4);
	border-radius: 12px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.yes_no_table label.answer input {
	position: relative;
	z-index: 1;
}
.yes_no_table label.answer:hover {
	background: linear-gradient(to bottom, #ffffff 0%, #e4e6ee 100%);
	border-color: rgba(145, 147, 155, 0.45);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}
.yes_no_table label.answer + label.answer {
	margin-left: 6px;
}
.yes_no_table .letter_in_circle {
	right: 0;
	margin-right: 0;
	text-transform: none;
}
.yes_no_table tr:hover {
	background-color:rgba(255,255,255,0.1);
}

.question {
	border: 1px solid rgb(255, 230, 0); 
	padding-top: 10px;
}
.question_form img, .question img {
	vertical-align:middle;
	margin-top:1px;
	margin-bottom:1px;
	max-width: 100%;
	height: auto;
}

/* CKEditor 5 figures — honor editor width, never expand to intrinsic px */
.question_text figure.image,
.question_form figure.image,
.answers_block figure.image {
	display: block;
	max-width: 100%;
	box-sizing: border-box;
	min-width: 0;
}
.question_text figure.image.image_resized,
.question_form figure.image.image_resized,
.answers_block figure.image.image_resized {
	max-width: 100%;
}
.question_text figure.image.image-style-align-center,
.question_form figure.image.image-style-align-center,
.answers_block figure.image.image-style-align-center {
	display: table;
	float: none;
	margin-left: auto;
	margin-right: auto;
}
.question_text figure.image img,
.question_form figure.image img,
.answers_block figure.image img {
	display: block;
	max-width: 100%;
	height: auto;
	min-width: 0;
}
.question_text figure.image.image_resized > img,
.question_form figure.image.image_resized > img,
.answers_block figure.image.image_resized > img {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
}
.centered_question .question_content,
.centered_question .question_text {
	min-width: 0;
	max-width: 100%;
}

/* MathLive / KaTeX formulas from the editor */
.question_form span.olimpis-math,
.question_text span.olimpis-math,
#hintHTML span.olimpis-math {
	display: inline-block;
	vertical-align: middle;
}

.Wirisformula {
	vertical-align:middle;
	color:#fff !important;
}
div.text {
	line-height:40px;
}
.input_answer_block {
	text-align: center;
}
div.text.fill_the_blanks {
	line-height: 51px;
}
div.text br {
	line-height:normal;
}
.question_form {
	line-height:26px;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome */
}
/* Admin session: allow selecting question and answer text while previewing a test. */
.question_form.admin-text-select,
.question_form.admin-text-select .sentences_connection span[id^="drop_target_"],
.question_form.admin-text-select .sentences_connection [id^="draggable_"] .drag_and_drop,
.question_form.admin-text-select .ordering_list_li,
.question_form.admin-text-select .ddi-item {
	-webkit-user-select: text;
	-moz-user-select: text;
	-ms-user-select: text;
	user-select: text;
}
.question_form a, .question_form a:link, .question_form  a:visited{
	color:white;
}
.question_form table {
	border-collapse: collapse;
	border-color:rgba(255,255,255,0.8);
}
.question_form td, .question_form th {
	border-color:rgba(255,255,255,0.5);
}

.sentences_connection_wrap {
	position: relative;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto;
	overflow: visible;
}
/* shuffle on question load: right column only, keep normal answer styling */
.sentences_connection_wrap.shuffle_active {
	pointer-events: none;
}
.sentences_connection_wrap.shuffle_active .sentences_connection_row_bottom {
	position: relative;
}
.sentences_connection_wrap.shuffle_active [id^="draggable_"] {
	box-sizing: border-box;
	transition: top 0.13s ease-out, left 0.13s ease-out;
	z-index: 5;
}
.sentences_connection {
	min-width:350px;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto;
	overflow: visible;
}
.sentences_connection td {
	padding:3px 0px;
	vertical-align:middle;
	overflow: visible;
}
/* left drop zone & right draggable: white glass refraction */
.sentences_connection span[id^="drop_target_"],
.sentences_connection [id^="draggable_"] .drag_and_drop {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 13px;
	border-radius: 12px;
	box-sizing: border-box;
	overflow: visible;
	position: relative;
	isolation: isolate;
	z-index: auto !important;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
	-webkit-backdrop-filter: blur(8px) saturate(140%);
	backdrop-filter: blur(8px) saturate(140%);
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.96) 0%, rgba(245, 245, 245, 0.88) 100%);
	border: 1px solid rgba(180, 180, 180, 0.45);
	border-top: 1px solid rgba(255, 255, 255, 0.98);
	box-shadow:
		0 4px 24px rgba(0, 0, 0, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.9),
		inset 0 -1px 0 rgba(0, 0, 0, 0.06),
		inset 1px 0 0 rgba(255, 255, 255, 0.2),
		inset -1px 0 0 rgba(0, 0, 0, 0.04);
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.sentences_connection span[id^="drop_target_"] > *,
.sentences_connection [id^="draggable_"] .drag_and_drop > * {
	position: relative;
	z-index: 1;
}
.sentences_connection span[id^="drop_target_"] {
	padding-right: 23px;
	cursor: grab;
}
.sentences_connection [id^="draggable_"] .drag_and_drop {
	padding-left: 23px;
}
.sentences_connection span[id^="drop_target_"]:active,
.sentences_connection span[id^="drop_target_"].ui-draggable-dragging {
	cursor: grabbing;
}
/* right draggable cell */
.sentences_connection [id^="draggable_"] {
	vertical-align: middle;
	overflow: visible;
}
.sentences_connection [id^="draggable_"] > span {
	display: inline-flex;
	align-items: center;
	overflow: visible;
}
.sentences_connection .sentences_item_inner {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 1 1 auto;
	min-width: 0;
}
.sentences_connection .sentences_handle {
	flex-shrink: 0;
	display: block;
	width: 16px;
	height: auto;
	opacity: 0.85;
	pointer-events: none;
}
.sentences_connection .sentences_item_text {
	line-height: 1.3;
	flex: 1 1 auto;
	min-width: 0;
}
/* Image answers: 5px so the glow frame stays off the picture */
.sentences_connection span[id^="drop_target_"].sentences_item_has_image,
.sentences_connection [id^="draggable_"] .drag_and_drop.sentences_item_has_image {
	padding: 5px;
	min-height: 0;
	align-items: stretch;
}
.sentences_connection .sentences_item_inner.sentences_item_has_image {
	overflow: hidden;
	border-radius: 11px;
	gap: 0;
	align-self: stretch;
}
.sentences_connection .sentences_item_has_image .sentences_item_text {
	line-height: 0;
	flex: 0 0 auto;
	display: block;
}
.sentences_connection .sentences_item_has_image .sentences_item_text figure,
.sentences_connection .sentences_item_has_image .sentences_item_text figure.image,
.sentences_connection .sentences_item_has_image .sentences_item_text p,
.sentences_connection .sentences_item_has_image .sentences_item_text img {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	max-width: 100%;
	height: auto;
}
.sentences_connection .sentences_puzzle_piece {
	position: absolute !important;
	top: 50%;
	width: 34px;
	height: 34px;
	margin: 0 !important;
	flex-shrink: 0;
	z-index: 50 !important;
	pointer-events: auto;
	cursor: grab;
	display: flex;
	align-items: center;
	justify-content: center;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
}
body.device-tablet .sentences_connection .sentences_puzzle_piece,
body.device-phone .sentences_connection .sentences_puzzle_piece {
	width: 44px;
	height: 44px;
	pointer-events: none;
}
.sentences_connection span[id^="drop_target_"]:active .sentences_puzzle_piece,
.sentences_connection span[id^="drop_target_"].ui-draggable-dragging .sentences_puzzle_piece,
.sentences_connection [id^="draggable_"] .drag_and_drop:active .sentences_puzzle_piece,
.sentences_connection [id^="draggable_"] .drag_and_drop.ui-draggable-dragging .sentences_puzzle_piece {
	cursor: grabbing;
}
.sentences_connection .sentences_puzzle_img {
	display: block;
	width: 34px;
	height: auto;
	flex-shrink: 0;
	pointer-events: none;
	-webkit-user-drag: none;
	user-drag: none;
}
.sentences_connection .sentences_puzzle_letter,
.blackboard_inner .sentences_connection .sentences_puzzle_letter {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(calc(-50% - 3px), -52%);
	z-index: 31;
	color: #000000 !important;
	font-weight: bold;
	font-size: 13px;
	line-height: 1;
	text-transform: lowercase;
	text-align: center;
	pointer-events: none;
}
/* right column: shift puzzle left — half overlaps the answer box, half outside */
.sentences_connection .sentences_puzzle_left {
	left: -17px;
	transform: translateY(-50%);
}
/* left column: shift puzzle right — half overlaps the answer box, half outside */
.sentences_connection .sentences_puzzle_right {
	right: -17px;
	transform: translateY(-50%);
}
/* All-image matching: two rows, puzzle tabs on the facing edges */
.sentences_connection_wrap.sentences_connection_wrap_images {
	width: 100%;
	max-width: 100%;
}
.sentences_connection.sentences_connection_images {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	min-width: 0;
	/* Clear corridor for LeaderLine between the puzzle zones.
	   Puzzle hang is reserved in row padding — not in this gap.
	   --sc-row-gap set by fitCaptionedAnswerImages / fitSentencesConnectionImages. */
	gap: var(--sc-row-gap, 20px);
	padding-bottom: 10px;
	box-sizing: border-box;
}
#sent-conn-hover-line {
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	overflow: visible;
	pointer-events: none;
	z-index: 100000;
}
#sent-conn-hover-line .sent-conn-hover-glow {
	stroke: rgba(255, 214, 0, 0.45);
	stroke-width: 2px;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
	filter:
		drop-shadow(0 0 2px rgba(255, 253, 231, 0.95))
		drop-shadow(0 0 4px rgba(255, 238, 88, 0.75));
}
#sent-conn-hover-line .sent-conn-hover-stroke {
	stroke: #ffe14a;
	stroke-width: 2px;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
}
#sent-conn-drag-line {
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	overflow: visible;
	pointer-events: none;
	z-index: 99999;
}
#sent-conn-drag-line path {
	fill: none;
	stroke-width: 2px;
	stroke-linecap: round;
}
.sentences_connection_images .sentences_connection_row {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-evenly;
	align-items: center;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	/* --sc-col-gap shrinks when a one-line label needs the room. */
	gap: var(--sc-col-gap, 12px);
}
/* Absolute puzzle tabs hang outside the cards; pad the rows so the flex
   gap stays empty for the connecting line. */
.sentences_connection_images .sentences_connection_row_top {
	padding-bottom: 34px;
	box-sizing: border-box;
}
.sentences_connection_images .sentences_connection_row_bottom {
	padding-top: 18px;
	box-sizing: border-box;
}
.sentences_connection_images .sentences_connection_cell {
	flex: 0 1 auto;
	width: fit-content;
	max-width: 100%;
	min-width: 0;
	position: relative;
	overflow: visible;
}
/* Text answers share the row and wrap. A one-line label is tightened later
   by .sentences_connection_row_snug when the whole row fits the board. */
.sentences_connection_images .sentences_connection_cell:not(:has(.sentences_item_has_image)) {
	flex: 1 1 0%;
	width: auto;
	max-width: 100%;
	min-width: 0;
}
.sentences_connection_images .sentences_connection_cell:not(:has(.sentences_item_has_image)) > span {
	display: flex;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}
.sentences_connection_images span[id^="drop_target_"]:not(.sentences_item_has_image),
.sentences_connection_images [id^="draggable_"] .drag_and_drop:not(.sentences_item_has_image) {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	flex: 1 1 auto;
}
/* Short labels that already fit: hug the text instead of stretching the column. */
.sentences_connection_images .sentences_connection_row_snug .sentences_connection_cell:not(:has(.sentences_item_has_image)) {
	flex: 0 0 auto;
	width: max-content;
	max-width: none;
	min-width: max-content;
}
.sentences_connection_images .sentences_connection_row_snug .sentences_connection_cell:not(:has(.sentences_item_has_image)) > span {
	display: inline-flex;
	width: auto;
	max-width: none;
}
.sentences_connection_images .sentences_connection_row_snug span[id^="drop_target_"]:not(.sentences_item_has_image),
.sentences_connection_images .sentences_connection_row_snug [id^="draggable_"] .drag_and_drop:not(.sentences_item_has_image) {
	width: max-content;
	max-width: none;
	flex: 0 0 auto;
}
.sentences_connection_images span[id^="drop_target_"],
.sentences_connection_images [id^="draggable_"] .drag_and_drop {
	width: fit-content;
	max-width: 100%;
}
.sentences_connection_images span[id^="drop_target_"].sentences_item_has_image,
.sentences_connection_images [id^="draggable_"] .drag_and_drop.sentences_item_has_image {
	padding: 5px;
}
.sentences_connection_images span[id^="drop_target_"]:not(.sentences_item_has_image) {
	padding: 8px 13px 23px;
}
.sentences_connection_images [id^="draggable_"] .drag_and_drop:not(.sentences_item_has_image) {
	padding: 23px 13px 8px;
}
/* Horizontal text-only chips: center the answer copy inside the block.
   Class is on the chip so the body drag-helper clone keeps the same alignment. */
.sentences_connection_images .sentences_item_text_center,
body > .sentences_connection_drag_helper.sentences_item_text_center {
	justify-content: center;
	text-align: center;
}
.sentences_connection_images .sentences_item_text_center .sentences_item_inner,
body > .sentences_connection_drag_helper.sentences_item_text_center .sentences_item_inner {
	justify-content: center;
	text-align: center;
	width: 100%;
	max-width: 100%;
	flex: 1 1 auto;
	min-width: 0;
}
.sentences_connection_images .sentences_item_text_center .sentences_item_text,
.sentences_connection_images .sentences_item_text_center .sentences_item_text p,
body > .sentences_connection_drag_helper.sentences_item_text_center .sentences_item_text,
body > .sentences_connection_drag_helper.sentences_item_text_center .sentences_item_text p {
	text-align: center;
	width: 100%;
	max-width: 100%;
	margin: 0;
	/* --sc-chip-font-size set by fitMatchingTextFont() when a label overflows. */
	font-size: var(--sc-chip-font-size, inherit);
	line-height: 1.3;
	white-space: normal;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	-webkit-hyphens: none;
}
.sentences_connection_images .sentences_connection_row_snug .sentences_item_text_center .sentences_item_inner {
	width: auto;
	flex: 0 0 auto;
}
.sentences_connection_images .sentences_connection_row_snug .sentences_item_text_center .sentences_item_text,
.sentences_connection_images .sentences_connection_row_snug .sentences_item_text_center .sentences_item_text p {
	width: auto;
	white-space: nowrap;
	overflow-wrap: normal;
}
/* Wrapped chips differ in height. Keep puzzle tabs on one line. */
.sentences_connection_images .sentences_connection_row_top:has(.sentences_item_text_center) {
	align-items: flex-end;
}
.sentences_connection_images .sentences_connection_row_bottom:has(.sentences_item_text_center) {
	align-items: flex-start;
}
.sentences_connection_images .sentences_item_has_image .sentences_item_text img,
.sentences_connection_images .sentences_item_has_image .sentences_item_text figure,
.sentences_connection_images .sentences_item_has_image .sentences_item_text figure.image,
.sentences_connection_images .sentences_item_has_image .sentences_item_text figure.image > img {
	width: auto !important;
	/* Percent max-width inside a fit-content flex item is cyclic: Chrome can
	   lock the picture at a few pixels until a viewport resize (F12).
	   vw/px is definite; fitSentencesConnectionImages() then sets a px cap. */
	max-width: min(280px, 32vw);
	height: auto !important;
	/* Cap from fitSentencesConnectionImages() so both rows fit the board */
	max-height: var(--sc-image-max-height, 250px);
	object-fit: contain;
}
body > .sentences_connection_drag_helper.sentences_item_has_image img,
body > .sentences_connection_drag_helper.sentences_item_has_image figure.image,
body > .sentences_connection_drag_helper.sentences_item_has_image figure.image > img {
	max-width: none;
	max-height: none;
	object-fit: fill;
}
.sentences_connection_images .sentences_puzzle_piece {
	top: auto;
	left: 50%;
	right: auto;
}
.sentences_connection_images .sentences_connection_row_top .sentences_puzzle_right {
	bottom: -17px;
	transform: translateX(-50%) rotate(90deg);
}
.sentences_connection_images .sentences_connection_row_top .sentences_item_has_image .sentences_puzzle_right {
	bottom: -32px;
}
.sentences_connection_images .sentences_connection_row_bottom .sentences_puzzle_left {
	top: -17px;
	transform: translateX(-50%) rotate(-90deg);
}
.sentences_connection_images .sentences_connection_row_top .sentences_puzzle_letter {
	transform: translate(-50%, -50%) rotate(-90deg);
}
.sentences_connection_images .sentences_connection_row_bottom .sentences_puzzle_letter {
	transform: translate(-50%, -50%) rotate(90deg);
}
.sentences_connection .sentences_connection_drag_helper,
.sentences_connection_wrap .sentences_connection_drag_helper,
.sentences_connection .ui-draggable-dragging.drag_and_drop,
.sentences_connection_wrap .ui-draggable-dragging.drag_and_drop,
body > .sentences_connection_drag_helper {
	display: inline-flex !important;
	align-items: center;
	min-height: 40px;
	padding: 8px 13px;
	border-radius: 12px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(248, 248, 248, 0.92) 100%) !important;
	border: 1px solid rgba(160, 160, 160, 0.5) !important;
	border-top: 1px solid rgba(255, 255, 255, 1) !important;
	box-sizing: border-box;
	margin: 0;
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.16),
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		inset 0 -1px 0 rgba(0, 0, 0, 0.08) !important;
	flex-shrink: 0;
	z-index: 100000 !important;
}
.sentences_connection .ui-draggable-dragging,
.sentences_connection_wrap .ui-draggable-dragging {
	z-index: 100000 !important;
}
body > .sentences_connection_drag_helper.sentences_connection_drag_helper_fixed {
	position: fixed !important;
	z-index: 100000 !important;
	pointer-events: none;
	margin: 0 !important;
}
body > .sentences_connection_drag_helper .sentences_puzzle_piece {
	display: none !important;
}
.sentences_connection .sentences_connection_drag_helper.sentences_item_has_image,
.sentences_connection_wrap .sentences_connection_drag_helper.sentences_item_has_image,
.sentences_connection .ui-draggable-dragging.drag_and_drop.sentences_item_has_image,
.sentences_connection_wrap .ui-draggable-dragging.drag_and_drop.sentences_item_has_image,
body > .sentences_connection_drag_helper.sentences_item_has_image {
	padding: 5px;
	min-height: 0;
}
/* Selected (paired) — blue glow without pulse, matches DDI selected */
.sentences_connection span[id^="drop_target_"].sentences_connection_paired,
.sentences_connection [id^="draggable_"] .drag_and_drop.sentences_connection_paired {
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(248, 248, 248, 0.9) 100%) !important;
	border-color: var(--sc-pair-color, #3e86c2) !important;
	border-top-color: color-mix(in srgb, var(--sc-pair-color, #3e86c2) 72%, white) !important;
	box-shadow:
		inset 0 0 0 2.5px var(--sc-pair-color, #3e86c2),
		0 0 5px 1px color-mix(in srgb, var(--sc-pair-color, #3e86c2) 45%, transparent),
		0 0 11px 3px color-mix(in srgb, var(--sc-pair-color, #3e86c2) 28%, transparent) !important;
	animation: none;
	z-index: 30;
}
/* Yellow glow on hover / drop — matches DDI select hover */
@keyframes sentences_connection_yellow_glow_pulse {
	0%, 100% {
		box-shadow:
			inset 0 0 0 2.5px #ffee58,
			0 0 6px 2px rgba(255, 238, 88, 0.4),
			0 0 12px 4px rgba(255, 220, 60, 0.25);
	}
	50% {
		box-shadow:
			inset 0 0 0 2.5px #fff176,
			0 0 12px 4px rgba(255, 238, 88, 0.7),
			0 0 20px 7px rgba(255, 220, 60, 0.45);
	}
}
/* Type 6: hold yellow glow on hover (same as other answer types); pulse only for drag/drop feedback */
.answer_glow_enabled .sentences_connection span[id^="drop_target_"],
.answer_glow_enabled .sentences_connection [id^="draggable_"] .drag_and_drop {
	transition: background 0.15s ease, border-color 0.45s ease, box-shadow 0.5s ease;
}
body:not(.component-results) .answer_glow_enabled .sentences_connection span[id^="drop_target_"]:not(.ui-draggable-dragging):hover,
body:not(.component-results) .answer_glow_enabled .sentences_connection [id^="draggable_"] .drag_and_drop:not(.ui-draggable-dragging):hover,
body:not(.component-results) .answer_glow_enabled .sentences_connection span[id^="drop_target_"].sentences_connection_pair_hover,
body:not(.component-results) .answer_glow_enabled .sentences_connection [id^="draggable_"] .drag_and_drop.sentences_connection_pair_hover {
	background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(248, 248, 248, 0.95) 100%) !important;
	border-color: #ffee58 !important;
	border-top-color: #fff176 !important;
	box-shadow:
		inset 0 0 0 2.5px #ffee58,
		0 0 8px 2px rgba(255, 238, 88, 0.55),
		0 0 16px 5px rgba(255, 220, 60, 0.35) !important;
	animation: none;
	z-index: 40;
}
.sentences_connection span[id^="drop_target_"].sentences_connection_drop_hover,
.sentences_connection [id^="draggable_"].sentences_connection_drop_hover .drag_and_drop,
.sentences_connection [id^="draggable_"] .drag_and_drop.sentences_connection_drop_hover,
.sentences_connection span[id^="drop_target_"].sentences_connection_drag_source,
.sentences_connection .drag_and_drop.sentences_connection_drag_source {
	background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(248, 248, 248, 0.95) 100%) !important;
	border-color: #ffee58 !important;
	border-top-color: #fff176 !important;
	box-shadow:
		inset 0 0 0 2.5px #ffee58,
		0 0 8px 2px rgba(255, 238, 88, 0.55),
		0 0 16px 5px rgba(255, 220, 60, 0.35) !important;
	animation: sentences_connection_yellow_glow_pulse 1.4s ease-in-out infinite;
	z-index: 40;
}
@media (prefers-reduced-motion: reduce) {
	body:not(.component-results) .answer_glow_enabled .sentences_connection span[id^="drop_target_"]:not(.ui-draggable-dragging):hover,
	body:not(.component-results) .answer_glow_enabled .sentences_connection [id^="draggable_"] .drag_and_drop:not(.ui-draggable-dragging):hover,
	.sentences_connection span[id^="drop_target_"].sentences_connection_drop_hover,
	.sentences_connection [id^="draggable_"].sentences_connection_drop_hover .drag_and_drop,
	.sentences_connection [id^="draggable_"] .drag_and_drop.sentences_connection_drop_hover,
	.sentences_connection span[id^="drop_target_"].sentences_connection_drag_source,
	.sentences_connection .drag_and_drop.sentences_connection_drag_source {
		animation: none;
	}
	.answer_glow_enabled .sentences_connection span[id^="drop_target_"],
	.answer_glow_enabled .sentences_connection [id^="draggable_"] .drag_and_drop {
		transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
	}
}
.sentences_connection .sentences_puzzle_piece.sentences_puzzle_drop_hover .sentences_puzzle_img,
.sentences_connection .sentences_puzzle_piece.sentences_connection_drop_hover .sentences_puzzle_img {
	filter: brightness(1.15) drop-shadow(0 0 4px rgba(255, 238, 88, 0.85));
}
.sentences_connection .sentences_puzzle_piece.sentences_puzzle_drop_hover,
.sentences_connection .sentences_puzzle_piece.sentences_connection_drop_hover {
	cursor: grabbing;
}

.ordering_list {
	list-style-type: none;
	/* Legacy pull-left compensated UA ul padding; keep padding:0 when margin is 0. */
	margin: 0;
	padding: 0;
}
.ordering_block {
	position: relative;
	overflow: visible;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto;
}
.ordering_block.ordering_horizontal {
	width: 100%;
	max-width: 100%;
}
.ordering_block.ordering_horizontal > table {
	width: 100%;
}
.ordering_horizontal .ordering_list {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-evenly;
	align-items: stretch;
	gap: 8px;
	width: 100%;
	margin-left: 0;
}
.ordering_horizontal .ordering_list_li {
	flex: 0 1 auto;
	width: fit-content;
	max-width: 100%;
	min-width: 0;
	margin-top: 0;
	margin-bottom: 0;
}
.ordering_horizontal .ordering_arrow_hint {
	transform: rotate(-90deg);
	float: none;
	margin-right: 0;
}
.ordering_horizontal .ordering_arrow_hint_animation {
	animation-name: ordering_arrow_hint_animation_horizontal;
}
@keyframes ordering_arrow_hint_animation_horizontal {
  0% {
	opacity: 0;
	transform: translateY(-300px) rotate(-90deg);
  }
  100% {
	opacity: 1;
	transform: translateY(0) rotate(-90deg);
  }
}
.ordering_block .ordering_list {
	margin: 0;
	padding: 0;
	position: relative;
	overflow: visible;
}
.ordering_list_li {
	display: flex;
	align-items: center;
	gap: 6px;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	min-height: 40px;
	margin-top: 1px;
	margin-bottom: 1px;
	padding-top: 1px;
	padding-bottom: 1px;
	padding-left: 10px;
	padding-right: 10px;
	box-sizing: border-box;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
	-webkit-backdrop-filter: blur(8px) saturate(140%);
	backdrop-filter: blur(8px) saturate(140%);
	background: linear-gradient(to bottom, rgba(236, 238, 242, 0.9) 0%, rgba(210, 212, 220, 0.68) 100%);
	border: 1px solid rgba(170, 172, 180, 0.28);
	border-top: 1px solid rgba(248, 249, 252, 0.98);
	border-radius: 12px;
	box-shadow:
		0 4px 24px rgba(0, 0, 0, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.7),
		inset 0 -1px 0 rgba(120, 122, 130, 0.1),
		inset 1px 0 0 rgba(255, 220, 220, 0.1),
		inset -1px 0 0 rgba(200, 220, 255, 0.1);
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.ordering_list_li > * {
	position: relative;
	z-index: 1;
}
.ordering_list_li.ui-sortable-handle {
	display: flex;
	align-items: center;
}
.ordering_block .ordering_list:not(.shuffle_active) > .ordering_list_li {
	cursor: grab;
}
.ordering_block .ordering_list:not(.shuffle_active) > .ordering_list_li:active,
.ordering_list_li.ui-sortable-helper {
	cursor: grabbing;
}
/* Vertical ordering: a short row is stretched to the longest answer.
   position:absolute (sortable helper) shrink-wraps it to its own line and
   the side icons scale down with the table. Stay as wide as the list. */
.ordering_block:not(.ordering_horizontal) .ordering_list > .ordering_list_li.ui-sortable-helper,
.ordering_block:not(.ordering_horizontal) .ordering_list > .ui-sortable-placeholder {
	width: 100% !important;
	min-width: 100% !important;
	max-width: none !important;
	box-sizing: border-box !important;
}
.ordering_list_li.ui-sortable-helper {
	overflow: visible;
	z-index: 1000;
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 0.88),
		inset 0 -1px 0 rgba(100, 102, 110, 0.14),
		inset 1px 0 0 rgba(255, 200, 200, 0.16),
		inset -1px 0 0 rgba(180, 210, 255, 0.16);
	background: linear-gradient(to bottom, rgba(248, 249, 252, 0.98) 0%, rgba(228, 230, 238, 0.82) 100%);
	transition: none;
}
/* Phone/tablet: clone is appended to body (outside the scaled board). */
.ordering_list_li.ui-sortable-helper.ordering_drag_helper {
	position: fixed !important;
	z-index: 100000;
	margin: 0 !important;
	pointer-events: none;
	list-style: none;
}
.ordering_list .ui-sortable-placeholder {
	visibility: visible !important;
	pointer-events: none;
	box-sizing: border-box;
	min-height: 40px;
	margin-top: 1px;
	margin-bottom: 1px;
}
.ordering_list .ui-sortable-placeholder.ordering_placeholder_ghost {
	opacity: 0.42;
	cursor: default;
}
.ordering_horizontal .ordering_list .ui-sortable-placeholder {
	flex: 0 0 auto;
	min-width: 0;
	margin-top: 0;
	margin-bottom: 0;
}
.ordering_item_inner {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
}
.ordering_side_hints {
	vertical-align: middle;
	padding: 0 8px 0 0;
	width: 1%;
	white-space: nowrap;
}
.question_form .ordering_side_hints img {
	max-width: none;
}
.ordering_side_hints .ordering_handle_icon {
	display: block;
	width: 28px;
	height: auto;
	margin: 0 auto;
}
.ordering_side_hints .ordering_arrow_hint {
	display: block;
	float: none;
	margin: 8px auto 0;
}
.ordering_horizontal .ordering_side_hints .ordering_handle_icon {
	transform: rotate(90deg);
}
.ordering_item_text {
	line-height: 1.3;
	flex: 1 1 auto;
	color: #222;
}
.ordering_list_li:hover {
	background: linear-gradient(to bottom, rgba(244, 246, 250, 0.95) 0%, rgba(222, 224, 232, 0.78) 100%);
	border-color: rgba(160, 162, 170, 0.32);
	border-top-color: rgba(255, 255, 255, 1);
	box-shadow:
		0 6px 28px rgba(0, 0, 0, 0.16),
		inset 0 1px 0 rgba(255, 255, 255, 0.82),
		inset 0 -1px 0 rgba(110, 112, 120, 0.12),
		inset 1px 0 0 rgba(255, 210, 210, 0.14),
		inset -1px 0 0 rgba(190, 215, 255, 0.14);
}
/* shuffle on question load: only reposition items, keep normal answer styling */
.ordering_list.shuffle_active {
	position: relative;
	list-style: none;
	padding: 0;
	margin: 0;
}
.ordering_list.shuffle_active .ordering_list_li {
	position: absolute;
	box-sizing: border-box;
	margin: 1px 0;
	padding-top: 1px;
	padding-bottom: 1px;
	padding-left: 10px;
	padding-right: 10px;
	display: flex;
	align-items: center;
	background: linear-gradient(to bottom, rgba(236, 238, 242, 0.9) 0%, rgba(210, 212, 220, 0.68) 100%);
	transition: top 0.13s ease-out, left 0.13s ease-out, background 0.15s ease, box-shadow 0.15s ease;
	overflow: hidden;
}

/* Animals must sit above .blackboard_inner (z-index:10) and decor (.suitcase/.books) */
.competition_animal_wrap {
	z-index: 25;
	pointer-events: none;
}
.competition_animal {
	position: absolute;
	z-index: 25;
	pointer-events: none;
}
.animal_text {
	position:absolute;
	bottom:27px;
	left:40px;
}
.animal_text_inner {
	display:table-cell;
	vertical-align:middle;
	width:120px;
	height:46px;	
	font-size:16px;	
	line-height:18px;
	color:black;
	text-align:center;
	font-family:'Montserrat', "Trebuchet MS", Helvetica;
}

.drag_note {
	clear:left;
	font-size:11px;
	font-style:italic;
}

.points_note {
	font-size:12px;
	font-style:italic;
	margin-top:12px;
}

/* Anti-abuse warning overlay (question 13, fast/slow scoring).
   Overlay is moved to document.body so position:fixed is viewport-relative
   (transformed .testing-page-zoom-stage / .testing_div would otherwise trap it). */
#rules_abuse_overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	pointer-events: none;
}
.rules_abuse_popup {
	pointer-events: auto;
	position: relative;
	left: auto;
	top: auto;
	transform: none;
	color: #000;
	background: #fff;
	border-radius: 15px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
	padding: 24px 30px 36px;
	width: 650px;
	max-width: 100%;
	max-height: calc(100vh - 32px);
	height: auto;
	box-sizing: border-box;
	overflow: auto;
	display: flex;
	flex-direction: column;
}
.rules_abuse_popup .rules_abuse_title {
	text-align: center;
	margin: 0 0 12px 0;
	flex-shrink: 0;
}
.rules_abuse_popup .rules_abuse_note {
	text-align: justify;
	overflow: hidden;
	margin: 0 0 18px 0;
}
.rules_abuse_popup .rules_abuse_note img {
	float: left;
	margin: 0 15px 8px 0;
	max-height: 180px;
	width: auto;
}
.rules_abuse_popup .rules_abuse_actions {
	text-align: center;
	clear: both;
	margin: 0;
	padding-top: 4px;
	flex-shrink: 0;
}
.rules_abuse_popup .rules_abuse_actions .button {
	white-space: normal;
	height: auto;
	max-width: 100%;
	overflow: visible;
	box-sizing: border-box;
}

/* In-page confirm (finish / logout). Native confirm() exits fullscreen and
   leaves Safari on a black screen, so the dialog stays inside the page. */
.olimpis_page_confirm {
	position: fixed;
	inset: 0;
	z-index: 200000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	background: rgba(20, 24, 28, 0.55);
}
.olimpis_page_confirm_popup {
	width: min(440px, 100%);
	max-height: calc(100vh - 32px);
	overflow: auto;
	box-sizing: border-box;
	padding: 22px 22px 18px;
	border-radius: 16px;
	background: #fff;
	color: #1a1a1a;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	font-family: 'Montserrat', Tahoma, Helvetica, sans-serif;
}
.olimpis_page_confirm_text {
	margin: 0 0 16px;
	font-size: 18px;
	line-height: 1.45;
	font-weight: 600;
	text-align: center;
	white-space: pre-wrap;
}
.olimpis_page_confirm_actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.olimpis_page_confirm_actions .button {
	margin: 0;
	min-height: 44px;
	min-width: 120px;
}
.olimpis_page_confirm_actions .button:focus-visible {
	outline: 3px solid #1d4ed8;
	outline-offset: 2px;
}
body.device-phone .olimpis_page_confirm_actions {
	flex-direction: column;
}
body.device-phone .olimpis_page_confirm_actions .button {
	width: 100%;
}

.text_with_questions {
}
.fill_the_blanks {
	line-height:40px;
}

/* Type 4: sequential yellow glow flash on answer fields (once each on load) */
@keyframes fill_blank_field_glow_flash {
	0% {
		box-shadow:
			0 4px 20px rgba(20, 60, 120, 0.08),
			inset 0 2px 0 rgba(255, 255, 255, 0.7),
			inset 0 -1px 0 rgba(30, 90, 160, 0.1),
			inset 1px 0 0 rgba(255, 255, 255, 0.12),
			inset -1px 0 0 rgba(180, 210, 240, 0.1),
			inset 0 12px 18px -14px rgba(255, 255, 255, 0.28),
			inset 0 0 0 0 rgba(255, 238, 88, 0),
			0 0 0 0 rgba(255, 238, 88, 0),
			0 0 0 0 rgba(255, 220, 60, 0);
	}
	18% {
		box-shadow:
			0 4px 20px rgba(20, 60, 120, 0.08),
			inset 0 2px 0 rgba(255, 255, 255, 0.7),
			inset 0 -1px 0 rgba(30, 90, 160, 0.1),
			inset 1px 0 0 rgba(255, 255, 255, 0.12),
			inset -1px 0 0 rgba(180, 210, 240, 0.1),
			inset 0 12px 18px -14px rgba(255, 255, 255, 0.28),
			inset 0 0 0 1.5px rgba(255, 238, 88, 0.55),
			0 0 6px 1px rgba(255, 238, 88, 0.28),
			0 0 12px 3px rgba(255, 220, 60, 0.16);
	}
	32% {
		box-shadow:
			0 4px 20px rgba(20, 60, 120, 0.08),
			inset 0 2px 0 rgba(255, 255, 255, 0.7),
			inset 0 -1px 0 rgba(30, 90, 160, 0.1),
			inset 1px 0 0 rgba(255, 255, 255, 0.12),
			inset -1px 0 0 rgba(180, 210, 240, 0.1),
			inset 0 12px 18px -14px rgba(255, 255, 255, 0.28),
			inset 0 0 0 2.5px rgba(255, 241, 118, 1),
			0 0 12px 4px rgba(255, 238, 88, 0.7),
			0 0 22px 7px rgba(255, 220, 60, 0.45);
	}
	52% {
		box-shadow:
			0 4px 20px rgba(20, 60, 120, 0.08),
			inset 0 2px 0 rgba(255, 255, 255, 0.7),
			inset 0 -1px 0 rgba(30, 90, 160, 0.1),
			inset 1px 0 0 rgba(255, 255, 255, 0.12),
			inset -1px 0 0 rgba(180, 210, 240, 0.1),
			inset 0 12px 18px -14px rgba(255, 255, 255, 0.28),
			inset 0 0 0 2px rgba(255, 238, 88, 0.55),
			0 0 8px 2px rgba(255, 238, 88, 0.4),
			0 0 16px 5px rgba(255, 220, 60, 0.28);
	}
	72% {
		box-shadow:
			0 4px 20px rgba(20, 60, 120, 0.08),
			inset 0 2px 0 rgba(255, 255, 255, 0.7),
			inset 0 -1px 0 rgba(30, 90, 160, 0.1),
			inset 1px 0 0 rgba(255, 255, 255, 0.12),
			inset -1px 0 0 rgba(180, 210, 240, 0.1),
			inset 0 12px 18px -14px rgba(255, 255, 255, 0.28),
			inset 0 0 0 1.2px rgba(255, 238, 88, 0.28),
			0 0 5px 1px rgba(255, 238, 88, 0.16),
			0 0 10px 3px rgba(255, 220, 60, 0.1);
	}
	88% {
		box-shadow:
			0 4px 20px rgba(20, 60, 120, 0.08),
			inset 0 2px 0 rgba(255, 255, 255, 0.7),
			inset 0 -1px 0 rgba(30, 90, 160, 0.1),
			inset 1px 0 0 rgba(255, 255, 255, 0.12),
			inset -1px 0 0 rgba(180, 210, 240, 0.1),
			inset 0 12px 18px -14px rgba(255, 255, 255, 0.28),
			inset 0 0 0 0.5px rgba(255, 238, 88, 0.1),
			0 0 3px 0 rgba(255, 238, 88, 0.06),
			0 0 6px 1px rgba(255, 220, 60, 0.04);
	}
	100% {
		box-shadow:
			0 4px 20px rgba(20, 60, 120, 0.08),
			inset 0 2px 0 rgba(255, 255, 255, 0.7),
			inset 0 -1px 0 rgba(30, 90, 160, 0.1),
			inset 1px 0 0 rgba(255, 255, 255, 0.12),
			inset -1px 0 0 rgba(180, 210, 240, 0.1),
			inset 0 12px 18px -14px rgba(255, 255, 255, 0.28),
			inset 0 0 0 0 rgba(255, 238, 88, 0),
			0 0 0 0 rgba(255, 238, 88, 0),
			0 0 0 0 rgba(255, 220, 60, 0);
	}
}
.fill_the_blanks input.fill_blank_glow_flash,
.fill_the_blanks select.fill_blank_glow_flash {
	animation: fill_blank_field_glow_flash 1.35s cubic-bezier(0.22, 0.08, 0.25, 1) 1;
	animation-delay: var(--fill-blank-glow-delay, 0ms);
}
/* Hover: hold yellow glow while pointer is on the field; fade only on mouseleave */
.blackboard_inner .question_form .fill_the_blanks input.fill_blank_glow_hover,
.blackboard_inner .question_form .fill_the_blanks select.fill_blank_glow_hover:not(#menu select):not(.admin-select) {
	transition: border-color 0.45s ease, box-shadow 0.5s ease;
}
.blackboard_inner .question_form .fill_the_blanks input.fill_blank_glow_hover:hover,
.blackboard_inner .question_form .fill_the_blanks select.fill_blank_glow_hover:not(#menu select):not(.admin-select):hover {
	border-color: rgba(255, 220, 60, 0.65) !important;
	border-top-color: rgba(255, 241, 118, 0.95) !important;
	box-shadow:
		0 4px 20px rgba(20, 60, 120, 0.08),
		inset 0 2px 0 rgba(255, 255, 255, 0.7),
		inset 0 -1px 0 rgba(30, 90, 160, 0.1),
		inset 1px 0 0 rgba(255, 255, 255, 0.12),
		inset -1px 0 0 rgba(180, 210, 240, 0.1),
		inset 0 12px 18px -14px rgba(255, 255, 255, 0.28),
		inset 0 0 0 2.5px rgba(255, 241, 118, 1),
		0 0 12px 4px rgba(255, 238, 88, 0.7),
		0 0 22px 7px rgba(255, 220, 60, 0.45);
}
@media (prefers-reduced-motion: reduce) {
	.fill_the_blanks input.fill_blank_glow_flash,
	.fill_the_blanks select.fill_blank_glow_flash {
		animation: none !important;
	}
	.blackboard_inner .question_form .fill_the_blanks input.fill_blank_glow_hover,
	.blackboard_inner .question_form .fill_the_blanks select.fill_blank_glow_hover:not(#menu select):not(.admin-select) {
		transition: none;
	}
}

/* Type 8 yes/no + types 1/2/3/5/7: hold yellow glow while hovered; fade on mouseleave */
.answers_block label.answer.answer_glow_hover,
.answers_block_multiple label.answer.answer_glow_hover,
.yes_no_table label.answer.answer_glow_hover,
.text_question_answer.answer_glow_hover,
.ordering_list_li.answer_glow_hover,
.blackboard_inner .question_form input.input_text.answer_glow_hover {
	transition: background 0.15s ease, border-color 0.45s ease, box-shadow 0.5s ease;
}
.answers_block label.answer.answer_glow_hover:hover,
.answers_block_multiple label.answer.answer_glow_hover:hover,
.yes_no_table label.answer.answer_glow_hover:hover,
.text_question_answer.answer_glow_hover:hover {
	border-color: #ffee58;
	box-shadow:
		0 3px 8px rgba(0, 0, 0, 0.12),
		inset 0 0 0 2.5px rgba(255, 241, 118, 1),
		0 0 12px 4px rgba(255, 238, 88, 0.7),
		0 0 22px 7px rgba(255, 220, 60, 0.45);
}
/* Keep blue selected frame on image answers; yellow only when not checked */
.answers_block label.answer.answer_has_image.answer_glow_hover:hover:has(input:checked),
.answers_block_multiple label.answer.answer_has_image.answer_glow_hover:hover:has(input:checked) {
	border-color: transparent;
	border-top-color: transparent;
	box-shadow: none;
}
.blackboard_inner .ordering_list_li.answer_glow_hover,
.ordering_list_li.answer_glow_hover {
	overflow: visible;
}
.blackboard_inner .ordering_list_li.answer_glow_hover:hover,
.ordering_list_li.answer_glow_hover:hover {
	border-color: #ffee58 !important;
	border-top-color: #fff176 !important;
	box-shadow:
		0 6px 28px rgba(0, 0, 0, 0.16),
		inset 0 1px 0 rgba(255, 255, 255, 0.82),
		inset 0 -1px 0 rgba(110, 112, 120, 0.12),
		inset 0 0 0 2.5px rgba(255, 241, 118, 1),
		0 0 12px 4px rgba(255, 238, 88, 0.7),
		0 0 22px 7px rgba(255, 220, 60, 0.45) !important;
}
.blackboard_inner .question_form input.input_text.answer_glow_hover:hover {
	border-color: rgba(255, 220, 60, 0.65) !important;
	border-top-color: rgba(255, 241, 118, 0.95) !important;
	box-shadow:
		0 4px 20px rgba(0, 0, 0, 0.08),
		inset 0 2px 0 rgba(255, 255, 255, 0.75),
		inset 0 -1px 0 rgba(120, 122, 130, 0.1),
		inset 0 12px 18px -14px rgba(255, 255, 255, 0.35),
		inset 0 0 0 2.5px rgba(255, 241, 118, 1),
		0 0 12px 4px rgba(255, 238, 88, 0.7),
		0 0 22px 7px rgba(255, 220, 60, 0.45);
}
@media (prefers-reduced-motion: reduce) {
	.answers_block label.answer.answer_glow_hover,
	.answers_block_multiple label.answer.answer_glow_hover,
	.yes_no_table label.answer.answer_glow_hover,
	.text_question_answer.answer_glow_hover,
	.ordering_list_li.answer_glow_hover,
	.blackboard_inner .question_form input.input_text.answer_glow_hover {
		transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
	}
}

/* INPUT TEXT + FILL THE BLANKS — glass refraction fields */
.blackboard_inner .question_form input.input_text {
	box-sizing: border-box;
	min-height: 36px;
	padding: 6px 12px;
	margin: 0 1px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: normal;
	text-align: center;
	color: #222222 !important;
	background-color: transparent !important;
	background-image: -webkit-linear-gradient(to bottom, rgba(250, 250, 252, 0.92) 0%, rgba(232, 234, 240, 0.72) 100%) !important;
	background-image: -moz-linear-gradient(to bottom, rgba(250, 250, 252, 0.92) 0%, rgba(232, 234, 240, 0.72) 100%) !important;
	background-image: -o-linear-gradient(to bottom, rgba(250, 250, 252, 0.92) 0%, rgba(232, 234, 240, 0.72) 100%) !important;
	background-image: linear-gradient(to bottom, rgba(250, 250, 252, 0.92) 0%, rgba(232, 234, 240, 0.72) 100%) !important;
	border: 1px solid rgba(155, 157, 165, 0.35) !important;
	border-top: 1px solid rgba(255, 255, 255, 0.95) !important;
	-webkit-backdrop-filter: blur(8px) saturate(140%);
	backdrop-filter: blur(8px) saturate(140%);
	box-shadow:
		0 4px 20px rgba(0, 0, 0, 0.08),
		inset 0 2px 0 rgba(255, 255, 255, 0.75),
		inset 0 -1px 0 rgba(120, 122, 130, 0.1),
		inset 1px 0 0 rgba(255, 220, 220, 0.08),
		inset -1px 0 0 rgba(200, 220, 255, 0.08),
		inset 0 12px 18px -14px rgba(255, 255, 255, 0.35);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.blackboard_inner .question_form input.input_text:focus {
	outline: none;
	border-color: rgba(145, 147, 155, 0.5) !important;
	border-top-color: rgba(255, 255, 255, 1) !important;
	box-shadow:
		0 6px 24px rgba(0, 0, 0, 0.1),
		inset 0 2px 0 rgba(255, 255, 255, 0.85),
		inset 0 -1px 0 rgba(110, 112, 120, 0.12),
		inset 0 12px 18px -14px rgba(255, 255, 255, 0.45);
}
.blackboard_inner .question_form .fill_the_blanks input,
.blackboard_inner .question_form .fill_the_blanks select:not(#menu select):not(.admin-select) {
	box-sizing: border-box;
	min-height: 32px;
	padding: 1px 2px !important;
	margin: 0 2px;
	border-radius: 12px;
	font-size: 16px !important;
	font-weight: bold;
	text-align: center;
	text-align-last: center;
	color: #0a4a8a !important;
	background-color: transparent !important;
	background-image: -webkit-linear-gradient(to bottom, rgba(210, 230, 250, 0.88) 0%, rgba(165, 195, 230, 0.72) 100%) !important;
	background-image: -moz-linear-gradient(to bottom, rgba(210, 230, 250, 0.88) 0%, rgba(165, 195, 230, 0.72) 100%) !important;
	background-image: -o-linear-gradient(to bottom, rgba(210, 230, 250, 0.88) 0%, rgba(165, 195, 230, 0.72) 100%) !important;
	background-image: linear-gradient(to bottom, rgba(210, 230, 250, 0.88) 0%, rgba(165, 195, 230, 0.72) 100%) !important;
	border: 1px solid rgba(30, 110, 190, 0.38) !important;
	border-top: 1px solid rgba(235, 245, 255, 0.95) !important;
	-webkit-backdrop-filter: blur(8px) saturate(140%);
	backdrop-filter: blur(8px) saturate(140%);
	box-shadow:
		0 4px 20px rgba(20, 60, 120, 0.08),
		inset 0 2px 0 rgba(255, 255, 255, 0.7),
		inset 0 -1px 0 rgba(30, 90, 160, 0.1),
		inset 1px 0 0 rgba(255, 255, 255, 0.12),
		inset -1px 0 0 rgba(180, 210, 240, 0.1),
		inset 0 12px 18px -14px rgba(255, 255, 255, 0.28);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-image 0.15s ease;
}
.blackboard_inner .question_form .fill_the_blanks input:focus,
.blackboard_inner .question_form .fill_the_blanks select:not(#menu select):not(.admin-select):focus {
	outline: none;
	border-color: rgba(30, 110, 190, 0.5) !important;
	border-top-color: rgba(245, 250, 255, 1) !important;
	box-shadow:
		0 6px 24px rgba(20, 60, 120, 0.12),
		inset 0 2px 0 rgba(255, 255, 255, 0.82),
		inset 0 -1px 0 rgba(25, 80, 150, 0.12),
		inset 0 12px 18px -14px rgba(255, 255, 255, 0.38);
}
/* Filled blank: light-gray palette instead of empty blue */
.blackboard_inner .question_form .fill_the_blanks input.fill_blank_filled,
.blackboard_inner .question_form .fill_the_blanks select.fill_blank_filled:not(#menu select):not(.admin-select) {
	background-image: -webkit-linear-gradient(to bottom, rgba(248, 248, 250, 0.96) 0%, rgba(216, 218, 226, 0.92) 100%) !important;
	background-image: -moz-linear-gradient(to bottom, rgba(248, 248, 250, 0.96) 0%, rgba(216, 218, 226, 0.92) 100%) !important;
	background-image: -o-linear-gradient(to bottom, rgba(248, 248, 250, 0.96) 0%, rgba(216, 218, 226, 0.92) 100%) !important;
	background-image: linear-gradient(to bottom, rgba(248, 248, 250, 0.96) 0%, rgba(216, 218, 226, 0.92) 100%) !important;
	border-color: rgba(155, 157, 165, 0.45) !important;
	border-top-color: rgba(255, 255, 255, 0.95) !important;
	box-shadow:
		0 4px 20px rgba(0, 0, 0, 0.06),
		inset 0 2px 0 rgba(255, 255, 255, 0.75),
		inset 0 -1px 0 rgba(110, 112, 120, 0.1),
		inset 1px 0 0 rgba(255, 255, 255, 0.12),
		inset -1px 0 0 rgba(200, 202, 210, 0.1),
		inset 0 12px 18px -14px rgba(255, 255, 255, 0.35);
}
.blackboard_inner .question_form .fill_the_blanks input.fill_blank_filled:focus,
.blackboard_inner .question_form .fill_the_blanks select.fill_blank_filled:not(#menu select):not(.admin-select):focus {
	border-color: rgba(145, 147, 155, 0.55) !important;
	border-top-color: rgba(255, 255, 255, 1) !important;
	box-shadow:
		0 6px 24px rgba(0, 0, 0, 0.08),
		inset 0 2px 0 rgba(255, 255, 255, 0.85),
		inset 0 -1px 0 rgba(110, 112, 120, 0.12),
		inset 0 12px 18px -14px rgba(255, 255, 255, 0.45);
}
.blackboard_inner .question_form .fill_the_blanks select:not(#menu select):not(.admin-select) {
	padding: 1px 2px !important;
	text-align-last: center;
	-moz-text-align-last: center;
	cursor: pointer;
}
.blackboard_inner .question_form .fill_the_blanks select:not(#menu select):not(.admin-select) option {
	text-align: start;
	background-color: #f3f8fd;
	color: #0a4a8a;
}

.text_question {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding:7px 0 5px 0;
	margin-top:7px;
	border-top:1px solid rgba(255,255,255,0.5);
}
.text_question_num {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}
.text_question .letter_in_circle {
	right: 0;
	margin-right: 0;
	text-transform: none;
	flex-shrink: 0;
}
.text_question_num .answer_audio_btn {
	margin: 0 3px 0 0 !important;
	flex-shrink: 0;
}
.text_question_body {
	flex: 1;
	min-width: 0;
}
.text_question_body > :first-child {
	margin-top: 0;
}
.text_question_body > :last-child {
	margin-bottom: 0;
}

.question_text {
	text-align: justify;
	margin-bottom:15px;
	font-size:18px;		
	line-height: 1.65;
}
.question_text.fill_the_blanks {
	line-height: calc(1.65em + 10px);
}

.question_text.question_text_short,
.question_text.question_text_short p {
	text-align: center;
}

/* Numbered/bulleted lists in the prompt stay left-aligned (not centered with short prompts). */
.question_text ul,
.question_text ol {
	text-align: left;
	text-wrap: pretty;
}
.question_text.question_text_short ul,
.question_text.question_text_short ol,
.question_text.question_text_short li,
.question_text.question_text_short li p {
	text-align: left;
	text-wrap: pretty;
}

/* Short question prompt (< 150 chars): slightly larger type. */
.question_text.question_text_large,
.question_text.question_text_large p {
	font-size: 22px;
}

/* Long justified text: pretty reduces sparse last lines where supported.
   Short centered prompts keep balance for even line lengths. */
.centered_question .question_text {
	text-wrap: pretty;
}
.centered_question .question_text.question_text_short {
	text-wrap: balance;
}

/* After <br> in question text — same gap as between paragraphs (p + p). */
.question_text .question_br_gap {
	display: block;
	height: 0;
	margin-top: 16px;
	line-height: 0;
	overflow: hidden;
}

.question_text table {
	-webkit-background-clip: padding-box; /* for Safari */
    background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
	-webkit-box-shadow: 2px 2px 12px -5px rgba(0,0,0,0.75);
	-moz-box-shadow: 2px 2px 12px -5px rgba(0,0,0,0.75);
	box-shadow: 2px 2px 12px -5px rgba(0,0,0,0.75);
	border:0;
}
.question_text td {
	background-color:rgba(0,0,0,0.1);
	padding-left:4px;
	padding-right:4px;
	border-color:rgba(255,255,255,0.2);
}
.question_text th {
	background-color:rgba(0,0,0,0.3);
	border-color:rgba(255,255,255,0.2);	
	padding-left:4px;
	padding-right:4px;
	text-align:center;
}
.question_text tr:hover {
	background-color:rgba(255,255,255,0.2);
}

.question_text p {
	margin-block-start: auto;
	margin-block-end: 8px;
}


.question_for_x_points {
	position: absolute;
	right: 30px;
	top: 15px;
	font-size: 16px;
	font-weight: normal;
	color: #222222;
	z-index: 5;
	line-height: normal;
	letter-spacing: normal;
	text-shadow: none;
	background: none;
	box-shadow: none;
	border: 0;
	padding: 0;
	margin: 0;
	display: block;
}

/* Points badge — black brushed metal (same as admin buttons) */
.points_nr {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	vertical-align: baseline;
	position: relative;
	padding: 0.15rem 0.55rem;
	margin: 0 2px;
	font-family: var(--admin-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: none;
	text-align: center;
	color: #ffffff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
	cursor: default;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background-color: #212529;
	background-image: var(--admin-brushed-metal-bg);
	box-shadow:
		inset 0 1px 0 0 rgba(255, 255, 255, 0.35),
		inset 0 -1px 0 0 rgba(0, 0, 0, 0.8),
		inset 0 0 12px 0 rgba(0, 0, 0, 0.4),
		0 4px 10px -2px rgba(0, 0, 0, 0.45),
		0 1px 3px 0 rgba(0, 0, 0, 0.35);
	transition: none;
	overflow: hidden;
	height: auto;
	min-height: 0;
	transform: none;
	filter: none;
}

.points_nr:hover,
.points_nr:active {
	filter: none;
	transform: none;
	background-color: #212529;
	background-image: var(--admin-brushed-metal-bg);
	box-shadow:
		inset 0 1px 0 0 rgba(255, 255, 255, 0.35),
		inset 0 -1px 0 0 rgba(0, 0, 0, 0.8),
		inset 0 0 12px 0 rgba(0, 0, 0, 0.4),
		0 4px 10px -2px rgba(0, 0, 0, 0.45),
		0 1px 3px 0 rgba(0, 0, 0, 0.35);
}

.sent_conn {
	width:16px;
}

.question_nr_select {
	font-size:14px; 
	font-weight:bold; 
	border-radius:10px; 
	padding:6px;
}

/* Gray "answer later" — reset admin brushed-metal button styles */
.answer_later {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	display: inline-block;
	align-items: unset;
	justify-content: unset;
	gap: 0;
	vertical-align: middle;
	padding: 8px 11px 9px 11px;
	margin: 3px;
	font-family: 'Montserrat', Tahoma, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: bold;
	line-height: normal;
	letter-spacing: normal;
	text-transform: none;
	text-align: center;
	color: #333333;
	text-shadow: none;
	cursor: pointer;
	border-radius: 5px;
	border: 0;
	border-top: 1px solid #cccccc;
	background: none;
	background-color: rgba(200, 200, 200, 0.5);
	background-image: none;
	box-shadow: 0 1px 3px 0 rgba(34, 33, 81, 0.25);
	transition: background-color 0.15s ease;
	overflow: visible;
	height: 37px;
	min-height: 0;
	transform: none;
	filter: none;
}

.answer_later:hover {
	color: #333333;
	filter: none;
	transform: none;
	background-color: rgba(200, 200, 200, 0.65);
	background-image: none;
	box-shadow: 0 1px 3px 0 rgba(34, 33, 81, 0.25);
}

.answer_later:active {
	transform: none;
	filter: none;
}

.navigation_div {
	width: calc(100% + 50px); 
	margin-left:-30px;
	margin-right:-20px;
	padding:3px 0; 
	clear:both; 
	background-color:rgba(0,0,0,0.15); 
	text-align:center; 
	border-radius:5px; 
	position:relative;
	top:0;
	margin-bottom:-23px;
}

/* Navigation — admin brushed-metal buttons (restore admin_style over testing resets) */
.navigation_div .button,
.navigation_div .button2,
.navigation_div .answer_later,
.navigation_div .disabled_button,
.navigation_div .questions_nr,
.navigation_div .finish_button {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	vertical-align: middle;
	padding: 0.55rem 1.15rem;
	margin: 4px 6px 4px 0;
	font-family: var(--admin-font);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: none;
	text-align: center;
	color: #ffffff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
	cursor: pointer;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background-color: #212529;
	background-image: var(--admin-brushed-metal-bg);
	box-shadow:
		inset 0 1px 0 0 rgba(255, 255, 255, 0.35),
		inset 0 -1px 0 0 rgba(0, 0, 0, 0.8),
		inset 0 0 12px 0 rgba(0, 0, 0, 0.4),
		0 8px 20px -4px rgba(0, 0, 0, 0.6),
		0 2px 5px 0 rgba(0, 0, 0, 0.4);
	transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
	overflow: hidden;
	height: auto;
	min-height: 36px;
	transform: none;
	transform-style: flat;
	box-sizing: border-box;
	isolation: auto;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	filter: none;
	top: auto;
}
.navigation_div button::before,
.navigation_div button::after {
	content: none;
	display: none;
}
.navigation_div .button:hover,
.navigation_div .button2:hover {
	filter: brightness(1.12);
	transform: translateY(-1px);
	box-shadow:
		inset 0 1px 0 0 rgba(255, 255, 255, 0.45),
		inset 0 -1px 0 0 rgba(0, 0, 0, 0.75),
		inset 0 0 12px 0 rgba(0, 0, 0, 0.3),
		0 12px 26px -4px rgba(0, 0, 0, 0.65),
		0 4px 8px 0 rgba(0, 0, 0, 0.45);
}
.navigation_div .button:active,
.navigation_div .button2:active,
.navigation_div .answer_later:active {
	transform: translateY(1.5px);
	filter: brightness(0.95);
	box-shadow:
		inset 0 2px 6px 0 rgba(0, 0, 0, 0.7),
		inset 0 1px 0 0 rgba(0, 0, 0, 0.5),
		inset 0 -1px 0 0 rgba(255, 255, 255, 0.12),
		0 2px 4px 0 rgba(0, 0, 0, 0.35);
}
/* Yellow — Finish / hint */
.navigation_div .button.finish_button,
.navigation_div .button.yellow_button,
.navigation_div input.button.finish_button {
	border-color: rgba(255, 230, 150, 0.45) !important;
	background-color: #d97706 !important;
	background-image:
		linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 18%),
		repeating-linear-gradient(
			0deg,
			rgba(255, 240, 180, 0.18) 0px,
			rgba(255, 240, 180, 0.18) 1px,
			rgba(100, 50, 0, 0.14) 1px,
			rgba(100, 50, 0, 0.14) 2px
		),
		linear-gradient(
			180deg,
			#fbbf24 0%,
			#f59e0b 35%,
			#d97706 70%,
			#b45309 100%
		) !important;
	box-shadow:
		inset 0 1px 0 0 rgba(255, 250, 220, 0.55),
		inset 0 -1px 0 0 rgba(0, 0, 0, 0.55),
		inset 0 0 12px 0 rgba(120, 60, 0, 0.25),
		0 8px 20px -4px rgba(180, 83, 9, 0.45),
		0 2px 5px 0 rgba(0, 0, 0, 0.35) !important;
	color: #fff !important;
	text-shadow: 0 1px 2px rgba(80, 40, 0, 0.75);
}
.navigation_div .button.finish_button:hover,
.navigation_div .button.yellow_button:hover,
.navigation_div input.button.finish_button:hover {
	filter: brightness(1.12);
	transform: translateY(-1px);
}
/* Gray — Skip / secondary */
.navigation_div .answer_later,
.navigation_div .button.answer_later,
.navigation_div input.answer_later,
.navigation_div input.button.answer_later {
	border-color: rgba(255, 255, 255, 0.22) !important;
	background-color: #6b7280 !important;
	background-image:
		linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 18%),
		repeating-linear-gradient(
			0deg,
			rgba(255, 255, 255, 0.12) 0px,
			rgba(255, 255, 255, 0.12) 1px,
			rgba(0, 0, 0, 0.1) 1px,
			rgba(0, 0, 0, 0.1) 2px
		),
		linear-gradient(
			180deg,
			#9ca3af 0%,
			#6b7280 35%,
			#4b5563 70%,
			#374151 100%
		) !important;
	box-shadow:
		inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
		inset 0 -1px 0 0 rgba(0, 0, 0, 0.55),
		inset 0 0 12px 0 rgba(0, 0, 0, 0.22),
		0 8px 20px -4px rgba(55, 65, 81, 0.4),
		0 2px 5px 0 rgba(0, 0, 0, 0.3) !important;
	color: #fff !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.navigation_div .answer_later:hover,
.navigation_div .button.answer_later:hover,
.navigation_div input.answer_later:hover,
.navigation_div input.button.answer_later:hover {
	filter: brightness(1.12);
	transform: translateY(-1px);
}
.navigation_div .disabled_button,
.navigation_div .disabled_button:hover {
	background-color: #3a3e44;
	background-image:
		linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 18%),
		repeating-linear-gradient(
			0deg,
			rgba(255, 255, 255, 0.06) 0px,
			rgba(255, 255, 255, 0.06) 1px,
			rgba(0, 0, 0, 0.12) 1px,
			rgba(0, 0, 0, 0.12) 2px
		),
		linear-gradient(180deg, #4a4f56 0%, #3a3e44 50%, #2e3238 100%);
	border-color: rgba(255, 255, 255, 0.1);
	color: #c8ccd2;
	text-shadow: none;
	cursor: default;
	transform: none;
	filter: none;
	opacity: 0.72;
	box-shadow:
		inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
		inset 0 -1px 0 0 rgba(0, 0, 0, 0.5),
		0 2px 4px 0 rgba(0, 0, 0, 0.25);
}
.navigation_div .button.red_button {
	border-color: rgba(255, 160, 150, 0.35) !important;
	background-color: #dc2626 !important;
	background-image:
		linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 18%),
		repeating-linear-gradient(
			0deg,
			rgba(255, 200, 190, 0.14) 0px,
			rgba(255, 200, 190, 0.14) 1px,
			rgba(80, 0, 0, 0.16) 1px,
			rgba(80, 0, 0, 0.16) 2px
		),
		linear-gradient(
			180deg,
			#ef4444 0%,
			#dc2626 35%,
			#b91c1c 70%,
			#7f1d1d 100%
		) !important;
	box-shadow:
		inset 0 1px 0 0 rgba(255, 220, 210, 0.45),
		inset 0 -1px 0 0 rgba(0, 0, 0, 0.75),
		inset 0 0 12px 0 rgba(80, 0, 0, 0.35),
		0 8px 20px -4px rgba(127, 29, 29, 0.55),
		0 2px 5px 0 rgba(0, 0, 0, 0.4) !important;
	color: #fff !important;
}
.navigation_div .button.red_button:hover {
	filter: brightness(1.12);
	transform: translateY(-1px);
}
.navigation_div .button.green_button {
	border-color: rgba(180, 255, 190, 0.32) !important;
	background-color: #15803d !important;
	background-image:
		linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 18%),
		repeating-linear-gradient(
			0deg,
			rgba(200, 255, 210, 0.12) 0px,
			rgba(200, 255, 210, 0.12) 1px,
			rgba(0, 40, 0, 0.14) 1px,
			rgba(0, 40, 0, 0.14) 2px
		),
		linear-gradient(
			180deg,
			#22c55e 0%,
			#16a34a 35%,
			#15803d 70%,
			#14532d 100%
		) !important;
	box-shadow:
		inset 0 1px 0 0 rgba(210, 255, 220, 0.4),
		inset 0 -1px 0 0 rgba(0, 0, 0, 0.75),
		inset 0 0 12px 0 rgba(0, 40, 0, 0.35),
		0 8px 20px -4px rgba(20, 83, 45, 0.55),
		0 2px 5px 0 rgba(0, 0, 0, 0.4) !important;
	color: #fff !important;
}
.navigation_div .button.green_button:hover {
	filter: brightness(1.12);
	transform: translateY(-1px);
}
.navigation_div .questions_nr {
	text-align: center;
	text-align-last: center;
	padding-left: 0.75rem;
	padding-right: 0.75rem;
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	color: #ffffff;
}

.questions_nr {
	font-size:14px; 
	color:#243824; 
	position:relative; 
	top:1px; 
	font-weight:bold; 
	border-radius:10px; 
	padding:6px;
	width:60px;
}

.questions_nr_yellow {
	border: 4px solid yellow;
}

.questions_nr_yellow_pulse {
	animation: questions_nr_yellow_pulse 2s ease-in-out infinite;
}

@keyframes questions_nr_yellow_pulse {
	0%, 100% {
		border-color: yellow;
		box-shadow: 0 0 0 0 rgba(255, 255, 0, 0.35);
	}
	50% {
		border-color: #ffe600;
		box-shadow: 0 0 14px 5px rgba(255, 255, 0, 0.95);
	}
}

/* Short text answers: larger type (types 1/2/8/ordering: ≤33 chars; text-only matching: <20).
   Picture matching does not get this class. Class lives on the block and on cloned drag items. */
.answers_block.answers_short_text label.answer:not(.answer_has_image),
.answers_block_multiple.answers_short_text label.answer:not(.answer_has_image),
.sentences_connection_wrap.answers_short_text .sentences_item_text,
.sentences_connection .answers_short_text:not(.sentences_item_has_image) .sentences_item_text,
body > .sentences_connection_drag_helper.answers_short_text:not(.sentences_item_has_image) .sentences_item_text,
.ordering_block.answers_short_text .ordering_list_li,
.ordering_list_li.answers_short_text {
	font-size: 26px;
}
.sentences_connection_wrap.answers_short_text .sentences_item_has_image .sentences_item_text,
.sentences_connection .answers_short_text.sentences_item_has_image .sentences_item_text,
body > .sentences_connection_drag_helper.answers_short_text.sentences_item_has_image .sentences_item_text {
	font-size: inherit;
}

/* Types 1/2/8: answer options fly in from the left on page load (staggered) */
@keyframes answer-fly-in-from-left {
	0% {
		opacity: 0;
		transform: translate3d(-80px, 0, 0);
	}
	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}
.answers_fly_in_active label.answer.answer_fly_in,
.answers_fly_in_active .answer_option_row.answer_fly_in,
.yes_no_table.answers_fly_in_active .yes_no_cell_fly.answer_fly_in {
	opacity: 0;
	animation: answer-fly-in-from-left 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
	.answers_fly_in_active label.answer.answer_fly_in,
	.answers_fly_in_active .answer_option_row.answer_fly_in,
	.yes_no_table.answers_fly_in_active .yes_no_cell_fly.answer_fly_in {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* answer options grouped in a horizontally-centred block (text stays left) */
.answers_block {
	width: fit-content;
	max-width: 100%;
	margin: 0 auto;
	text-align: left;
}
/* Vertical answer lists: gap is 5px on a full board and opens up to 10px
   when there is spare height (JS sets --answers-gap, 5…10px). Fixed row
   margins stay 0 so the gap comes only from --answers-gap. */
.centered_question .answers_block:not(.answers_block_images):not(.answers_horizontal),
.centered_question .answers_block_multiple:not(.answers_block_images):not(.answers_horizontal) {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	row-gap: var(--answers-gap, 5px);
}
.centered_question .answers_block:not(.answers_block_images):not(.answers_horizontal) .answer_option_row,
.centered_question .answers_block_multiple:not(.answers_block_images):not(.answers_horizontal) .answer_option_row {
	margin-top: 0;
	margin-bottom: 0;
}
/* Split --answers-gap evenly: half above and half below each row (not one-sided
   border-spacing between rows). */
.centered_question .yes_no_table:not(.yes_no_table_horizontal) {
	border-collapse: separate;
	border-spacing: 0;
}
.centered_question .yes_no_table:not(.yes_no_table_horizontal) td {
	padding-top: calc(var(--answers-gap, 5px) / 2);
	padding-bottom: calc(var(--answers-gap, 5px) / 2);
}
.centered_question .ordering_block:not(.ordering_horizontal) .ordering_list {
	display: flex;
	flex-direction: column;
	row-gap: var(--answers-gap, 5px);
}
.centered_question .ordering_block:not(.ordering_horizontal) .ordering_list_li {
	margin-top: 0;
	margin-bottom: 0;
}
.answers_block.answers_block_images,
.text_question_answers.answers_block_images {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-evenly;
	align-items: flex-start;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	gap: 12px;
}
/* Types 1–2 horizontal text-only: wrap onto next row when options do not fit */
.answers_block.answers_horizontal:not(:has(label.answer.answer_has_image)) {
	flex-wrap: wrap;
	row-gap: 12px;
}
.answers_block.answers_block_images .answer_option_row,
.text_question_answers.answers_block_images .answer_option_row {
	margin: 0;
	flex: 0 1 auto;
	width: fit-content;
	max-width: 100%;
	min-width: 0;
}
.answers_block.answers_horizontal:not(:has(label.answer.answer_has_image)) .answer_option_row {
	flex: 0 0 auto;
	min-width: auto;
}
.text_question_answers.answers_block_images .text_question_answer {
	margin: 0;
	flex: 0 1 auto;
	width: fit-content;
	max-width: 100%;
	min-width: 0;
}
.text_question_answers.answers_block_images .text_question_answer img,
.text_question_answers.answers_block_images .text_question_answer figure.image img {
	width: auto !important;
	max-width: 100%;
	height: auto !important;
}
.yes_no_table.yes_no_table_horizontal {
	display: flex;
	width: 100%;
	max-width: 100%;
}
.yes_no_table.yes_no_table_horizontal tbody {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-evenly;
	align-items: flex-start;
	width: 100%;
	gap: 12px;
}
.yes_no_table.yes_no_table_horizontal tr {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 0 1 auto;
	width: fit-content;
	max-width: 100%;
	min-width: 0;
}
.yes_no_table.yes_no_table_horizontal td {
	border-bottom: none;
	height: auto;
	text-align: center;
	padding: 4px 5px;
}
.yes_no_table.yes_no_table_horizontal td:last-child {
	white-space: nowrap;
}
.yes_no_table.yes_no_table_horizontal img {
	width: auto;
	max-width: 100%;
	height: auto;
}
.yes_no_table.yes_no_table_horizontal .letter_in_circle {
	margin-bottom: 10px;
}
.answers_block.answers_block_images label.answer,
.answers_block.answers_block_images label.answer.answer_has_image {
	margin: 0;
	flex: 0 1 auto;
	width: fit-content;
	max-width: 100%;
	min-width: 0;
}
.answers_block.answers_block_images label.answer.answer_has_image .answer_item_text {
	display: inline-block;
	width: auto;
	max-width: 100%;
}
.answers_block.answers_block_images label.answer.answer_has_image .answer_item_text figure,
.answers_block.answers_block_images label.answer.answer_has_image .answer_item_text figure.image,
.answers_block.answers_block_images label.answer.answer_has_image .answer_item_text img,
.answers_block.answers_block_images figure.image.image_resized > img {
	width: auto !important;
	max-width: 100%;
	height: auto !important;
}

/* Horizontal answers: caption under image, centered (types 1, 2, 5, 6, 7, 8) */
.answers_block.answers_block_images label.answer.answer_image_with_text,
.answers_block_multiple.answers_block_images label.answer.answer_image_with_text {
	flex-direction: column;
	align-items: center;
	padding: 0 0 8px;
	overflow: hidden;
}
.answers_block.answers_block_images label.answer.answer_image_with_text .answer_item_text,
.answers_block_multiple.answers_block_images label.answer.answer_image_with_text .answer_item_text,
.text_question_answers.answers_block_images .text_question_answer.answer_image_with_text .answer_item_text,
.sentences_connection_images .answer_image_with_text .sentences_item_text,
.sentences_connection_wrap.sentences_connection_wrap_images .answer_image_with_text .sentences_item_text,
body > .sentences_connection_drag_helper.answer_image_with_text .sentences_item_text,
.ordering_horizontal .ordering_list_li.answer_image_with_text .ordering_item_text,
.yes_no_table.yes_no_table_horizontal .yes_no_prompt.answer_image_with_text .answer_item_text {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	line-height: 1.3;
	overflow: visible;
	width: 100%;
	gap: 6px;
	box-sizing: border-box;
}
.text_question_answers.answers_block_images .text_question_answer.answer_image_with_text {
	flex-direction: row;
	align-items: flex-start;
	text-align: center;
}
.sentences_connection_images .sentences_item_inner.answer_image_with_text,
.sentences_connection_wrap.sentences_connection_wrap_images .sentences_item_inner.answer_image_with_text,
body > .sentences_connection_drag_helper.answer_image_with_text .sentences_item_inner,
.ordering_horizontal .ordering_list_li.answer_image_with_text,
.ordering_horizontal .ordering_list_li.answer_image_with_text .ordering_item_inner {
	flex-direction: column;
	align-items: center;
	text-align: center;
}
body > .sentences_connection_drag_helper.answer_image_with_text {
	flex-direction: column !important;
	align-items: center !important;
	text-align: center;
	padding-bottom: 10px;
}
.yes_no_table.yes_no_table_horizontal .yes_no_prompt.answer_image_with_text {
	text-align: center;
}
.answers_block.answers_block_images label.answer.answer_image_with_text .answer_item_text img,
.answers_block.answers_block_images label.answer.answer_image_with_text .answer_item_text figure,
.answers_block.answers_block_images label.answer.answer_image_with_text .answer_item_text figure.image,
.answers_block_multiple.answers_block_images label.answer.answer_image_with_text .answer_item_text img,
.answers_block_multiple.answers_block_images label.answer.answer_image_with_text .answer_item_text figure,
.answers_block_multiple.answers_block_images label.answer.answer_image_with_text .answer_item_text figure.image,
.text_question_answers.answers_block_images .text_question_answer.answer_image_with_text .answer_item_text img,
.text_question_answers.answers_block_images .text_question_answer.answer_image_with_text .answer_item_text figure,
.sentences_connection_images .answer_image_with_text .sentences_item_text img,
.sentences_connection_images .answer_image_with_text .sentences_item_text figure,
.sentences_connection_wrap.sentences_connection_wrap_images .answer_image_with_text .sentences_item_text img,
.sentences_connection_wrap.sentences_connection_wrap_images .answer_image_with_text .sentences_item_text figure,
body > .sentences_connection_drag_helper.answer_image_with_text .sentences_item_text img,
body > .sentences_connection_drag_helper.answer_image_with_text .sentences_item_text figure,
.ordering_horizontal .ordering_list_li.answer_image_with_text .ordering_item_text img,
.ordering_horizontal .ordering_list_li.answer_image_with_text .ordering_item_text figure,
.yes_no_table.yes_no_table_horizontal .yes_no_prompt.answer_image_with_text .answer_item_text img,
.yes_no_table.yes_no_table_horizontal .yes_no_prompt.answer_image_with_text .answer_item_text figure {
	order: -1;
	display: block;
	margin: 0 auto;
	border-radius: 12px;
}
.answers_block.answers_block_images label.answer.answer_image_with_text .answer_item_text p,
.answers_block.answers_block_images label.answer.answer_image_with_text .answer_item_text figcaption,
.answers_block_multiple.answers_block_images label.answer.answer_image_with_text .answer_item_text p,
.answers_block_multiple.answers_block_images label.answer.answer_image_with_text .answer_item_text figcaption,
.text_question_answers.answers_block_images .text_question_answer.answer_image_with_text .answer_item_text p,
.text_question_answers.answers_block_images .text_question_answer.answer_image_with_text .answer_item_text figcaption,
.sentences_connection_images .answer_image_with_text .sentences_item_text p,
.sentences_connection_images .answer_image_with_text .sentences_item_text figcaption,
.sentences_connection_wrap.sentences_connection_wrap_images .answer_image_with_text .sentences_item_text p,
body > .sentences_connection_drag_helper.answer_image_with_text .sentences_item_text p,
.ordering_horizontal .ordering_list_li.answer_image_with_text .ordering_item_text p,
.ordering_horizontal .ordering_list_li.answer_image_with_text .ordering_item_text figcaption,
.yes_no_table.yes_no_table_horizontal .yes_no_prompt.answer_image_with_text .answer_item_text p,
.yes_no_table.yes_no_table_horizontal .yes_no_prompt.answer_image_with_text .answer_item_text figcaption {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	line-height: 1.3;
	margin: 0;
	padding: 0 8px;
	border-radius: 0;
	width: 100%;
	box-sizing: border-box;
}
/* Speaker sits in the caption line. The picture keeps the full card width and stays centered. */
.sentences_connection_images .sentences_caption_row,
.sentences_connection_wrap.sentences_connection_wrap_images .sentences_caption_row,
body > .sentences_connection_drag_helper .sentences_caption_row {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	align-self: center;
	gap: 4px;
	width: auto;
	max-width: 100%;
	margin: 0;
	padding: 0;
}
.sentences_connection_images .sentences_caption_row > .answer_audio_btn,
.sentences_connection_wrap.sentences_connection_wrap_images .sentences_caption_row > .answer_audio_btn,
body > .sentences_connection_drag_helper .sentences_caption_row > .answer_audio_btn {
	margin: 0 !important;
	align-self: center;
}
.sentences_connection_images .answer_image_with_text .sentences_caption_row p,
.sentences_connection_images .answer_image_with_text .sentences_caption_row figcaption,
.sentences_connection_wrap.sentences_connection_wrap_images .sentences_caption_row p,
body > .sentences_connection_drag_helper.answer_image_with_text .sentences_caption_row p,
body > .sentences_connection_drag_helper.answer_image_with_text .sentences_caption_row figcaption {
	display: inline;
	width: auto;
	max-width: 100%;
	margin: 0;
	padding: 0;
}
.sentences_connection_images span[id^="drop_target_"].answer_image_with_text,
.sentences_connection_images [id^="draggable_"] .drag_and_drop.answer_image_with_text {
	flex-direction: column;
	align-items: stretch;
}

/* Picture + caption: every bitmap shares one box. Caption length wraps inside
   the card and must not change the picture size. --answer-img-w / --answer-img-h
   are set by fitCaptionedAnswerImages() so the row still fits the board. */
.answers_block.answers_block_images,
.answers_block_multiple.answers_block_images,
.text_question_answers.answers_block_images,
.ordering_horizontal .ordering_list,
.yes_no_table.yes_no_table_horizontal,
.sentences_connection_images {
	--answer-img-w: 150px;
	--answer-img-h: 200px;
}
.answers_block.answers_block_images label.answer.answer_image_with_text,
.answers_block_multiple.answers_block_images label.answer.answer_image_with_text,
.text_question_answers.answers_block_images .text_question_answer.answer_image_with_text,
.ordering_horizontal .ordering_list_li.answer_image_with_text,
.yes_no_table.yes_no_table_horizontal .yes_no_prompt.answer_image_with_text,
.sentences_connection_images span[id^="drop_target_"].answer_image_with_text,
.sentences_connection_images [id^="draggable_"] .drag_and_drop.answer_image_with_text {
	box-sizing: border-box;
	width: var(--answer-img-w);
	max-width: var(--answer-img-w);
	min-width: 0;
	flex: 0 0 auto;
}
.answers_block.answers_block_images label.answer.answer_image_with_text .answer_item_text,
.answers_block_multiple.answers_block_images label.answer.answer_image_with_text .answer_item_text,
.text_question_answers.answers_block_images .text_question_answer.answer_image_with_text .answer_item_text,
.sentences_connection_images .answer_image_with_text .sentences_item_inner,
.sentences_connection_images .answer_image_with_text .sentences_item_text,
.ordering_horizontal .ordering_list_li.answer_image_with_text .ordering_item_inner,
.ordering_horizontal .ordering_list_li.answer_image_with_text .ordering_item_text,
.yes_no_table.yes_no_table_horizontal .yes_no_prompt.answer_image_with_text .answer_item_text {
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	overflow-wrap: break-word;
	hyphens: auto;
}
.answers_block.answers_block_images label.answer.answer_image_with_text .answer_item_text img,
.answers_block.answers_block_images label.answer.answer_image_with_text .answer_item_text figure.image > img,
.answers_block_multiple.answers_block_images label.answer.answer_image_with_text .answer_item_text img,
.answers_block_multiple.answers_block_images label.answer.answer_image_with_text .answer_item_text figure.image > img,
.text_question_answers.answers_block_images .text_question_answer.answer_image_with_text .answer_item_text img,
.text_question_answers.answers_block_images .text_question_answer.answer_image_with_text .answer_item_text figure.image > img,
.sentences_connection_images .answer_image_with_text .sentences_item_text img,
.ordering_horizontal .ordering_list_li.answer_image_with_text .ordering_item_text img,
.ordering_horizontal .ordering_list_li.answer_image_with_text .ordering_item_text figure.image > img,
.yes_no_table.yes_no_table_horizontal .yes_no_prompt.answer_image_with_text .answer_item_text img,
.yes_no_table.yes_no_table_horizontal .yes_no_prompt.answer_image_with_text .answer_item_text figure.image > img {
	width: 100% !important;
	max-width: 100% !important;
	height: var(--answer-img-h) !important;
	max-height: var(--answer-img-h) !important;
	object-fit: contain;
	object-position: center;
	flex: 0 0 auto;
}
.answers_block.answers_block_images label.answer.answer_image_with_text .answer_item_text figure.image,
.answers_block_multiple.answers_block_images label.answer.answer_image_with_text .answer_item_text figure.image,
.text_question_answers.answers_block_images .text_question_answer.answer_image_with_text .answer_item_text figure.image,
.sentences_connection_images .answer_image_with_text .sentences_item_text figure.image,
.ordering_horizontal .ordering_list_li.answer_image_with_text .ordering_item_text figure.image,
.yes_no_table.yes_no_table_horizontal .yes_no_prompt.answer_image_with_text .answer_item_text figure.image {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: none !important;
}

/* Image-only variants: no glass/chip fill under the pictures.
   Hover/paired glows for type 6 keep their coloured border; only the fill is removed. */
.answers_block.answers_images_no_bg label.answer,
.answers_block_multiple.answers_images_no_bg label.answer,
.answers_block.answers_images_no_bg label.answer:hover,
.answers_block_multiple.answers_images_no_bg label.answer:hover,
.answers_block.answers_images_no_bg label.answer.answer_has_image,
.answers_block_multiple.answers_images_no_bg label.answer.answer_has_image {
	background: none !important;
	background-image: none !important;
	border-color: transparent;
	box-shadow: none;
}
.answers_block.answers_images_no_bg label.answer.answer_has_image,
.answers_block_multiple.answers_images_no_bg label.answer.answer_has_image {
	overflow: visible;
}
.answers_block.answers_images_no_bg label.answer.answer_has_image:has(input:checked),
.answers_block_multiple.answers_images_no_bg label.answer.answer_has_image:has(input:checked),
.answers_block.answers_images_no_bg label.answer.answer_has_image:has(input:checked):hover,
.answers_block_multiple.answers_images_no_bg label.answer.answer_has_image:has(input:checked):hover {
	background: none !important;
	background-image: none !important;
	border-color: transparent;
	border-top-color: transparent;
	box-shadow: none;
}
.text_question_answers.answers_images_no_bg .text_question_answer,
.text_question_answers.answers_images_no_bg .text_question_answer:hover {
	background: none !important;
	background-color: transparent !important;
}
/* Yellow hover glow must win over image-only transparent chips */
.answers_block.answers_images_no_bg label.answer.answer_glow_hover:hover,
.answers_block_multiple.answers_images_no_bg label.answer.answer_glow_hover:hover,
.text_question_answers.answers_images_no_bg .text_question_answer.answer_glow_hover:hover {
	border-color: #ffee58;
	box-shadow:
		inset 0 0 0 2.5px rgba(255, 241, 118, 1),
		0 0 12px 4px rgba(255, 238, 88, 0.7),
		0 0 22px 7px rgba(255, 220, 60, 0.45);
}
.answers_block.answers_images_no_bg label.answer.answer_has_image.answer_glow_hover:hover:has(input:checked),
.answers_block_multiple.answers_images_no_bg label.answer.answer_has_image.answer_glow_hover:hover:has(input:checked) {
	border-color: transparent;
	border-top-color: transparent;
	box-shadow: none;
}
.answer_glow_enabled.sentences_connection_wrap.answers_images_no_bg .sentences_connection span[id^="drop_target_"]:hover,
.answer_glow_enabled.sentences_connection_wrap.answers_images_no_bg .sentences_connection [id^="draggable_"] .drag_and_drop:hover,
.answer_glow_enabled .sentences_connection.answers_images_no_bg span[id^="drop_target_"]:hover,
.answer_glow_enabled .sentences_connection.answers_images_no_bg [id^="draggable_"] .drag_and_drop:hover {
	border-color: #ffee58 !important;
	border-top-color: #fff176 !important;
	box-shadow:
		inset 0 0 0 2.5px #ffee58,
		0 0 8px 2px rgba(255, 238, 88, 0.55),
		0 0 16px 5px rgba(255, 220, 60, 0.35) !important;
}
.sentences_connection_wrap.answers_images_no_bg span[id^="drop_target_"],
.sentences_connection_wrap.answers_images_no_bg [id^="draggable_"] .drag_and_drop,
.sentences_connection.answers_images_no_bg span[id^="drop_target_"],
.sentences_connection.answers_images_no_bg [id^="draggable_"] .drag_and_drop {
	background: none !important;
	background-image: none !important;
	border-color: transparent;
	box-shadow: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
body:not(.component-results) .sentences_connection_wrap.answers_images_no_bg span[id^="drop_target_"]:not(.ui-draggable-dragging):hover,
body:not(.component-results) .sentences_connection_wrap.answers_images_no_bg [id^="draggable_"] .drag_and_drop:not(.ui-draggable-dragging):hover,
body:not(.component-results) .sentences_connection.answers_images_no_bg span[id^="drop_target_"]:not(.ui-draggable-dragging):hover,
body:not(.component-results) .sentences_connection.answers_images_no_bg [id^="draggable_"] .drag_and_drop:not(.ui-draggable-dragging):hover,
.sentences_connection_wrap.answers_images_no_bg span[id^="drop_target_"].sentences_connection_drop_hover,
.sentences_connection_wrap.answers_images_no_bg [id^="draggable_"].sentences_connection_drop_hover .drag_and_drop,
.sentences_connection.answers_images_no_bg span[id^="drop_target_"].sentences_connection_drop_hover,
.sentences_connection.answers_images_no_bg [id^="draggable_"].sentences_connection_drop_hover .drag_and_drop,
.sentences_connection_wrap.answers_images_no_bg span[id^="drop_target_"].sentences_connection_drag_source,
.sentences_connection_wrap.answers_images_no_bg .drag_and_drop.sentences_connection_drag_source,
.sentences_connection.answers_images_no_bg span[id^="drop_target_"].sentences_connection_drag_source,
.sentences_connection.answers_images_no_bg .drag_and_drop.sentences_connection_drag_source,
.sentences_connection_wrap.answers_images_no_bg span[id^="drop_target_"].sentences_connection_paired,
.sentences_connection_wrap.answers_images_no_bg [id^="draggable_"] .drag_and_drop.sentences_connection_paired,
.sentences_connection.answers_images_no_bg span[id^="drop_target_"].sentences_connection_paired,
.sentences_connection.answers_images_no_bg [id^="draggable_"] .drag_and_drop.sentences_connection_paired {
	background: none !important;
	background-image: none !important;
}
.sentences_connection_wrap.answers_images_no_bg .sentences_connection_drag_helper,
.sentences_connection.answers_images_no_bg .sentences_connection_drag_helper,
body > .sentences_connection_drag_helper.answers_images_no_bg {
	background: none !important;
	background-image: none !important;
	border-color: transparent !important;
	box-shadow: none !important;
}
.blackboard_inner .ordering_block.answers_images_no_bg .ordering_list_li,
.blackboard_inner .ordering_block.answers_images_no_bg .ordering_list_li:hover,
.ordering_block.answers_images_no_bg .ordering_list_li,
.ordering_block.answers_images_no_bg .ordering_list_li:hover,
.ordering_block.answers_images_no_bg .ordering_list.shuffle_active .ordering_list_li,
.ordering_block.answers_images_no_bg .ordering_list_li.ui-sortable-helper,
.ordering_list_li.answers_images_no_bg,
.ordering_list_li.answers_images_no_bg:hover,
.ordering_list_li.answers_images_no_bg.ui-sortable-helper,
body > .ordering_list_li.answers_images_no_bg,
body > .ordering_list_li.ordering_drag_helper.answers_images_no_bg {
	background: none !important;
	background-image: none !important;
	border-color: transparent !important;
	box-shadow: none !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}
.blackboard_inner .ordering_block.answers_images_no_bg .ordering_list_li.answer_glow_hover:hover,
.ordering_block.answers_images_no_bg .ordering_list_li.answer_glow_hover:hover,
.ordering_list_li.answers_images_no_bg.answer_glow_hover:hover {
	border-color: #ffee58 !important;
	border-top-color: #fff176 !important;
	box-shadow:
		inset 0 0 0 2.5px rgba(255, 241, 118, 1),
		0 0 12px 4px rgba(255, 238, 88, 0.7),
		0 0 22px 7px rgba(255, 220, 60, 0.45) !important;
}
.ordering_block.answers_images_no_bg .ordering_list .ui-sortable-placeholder.ordering_placeholder_ghost {
	background: none !important;
	background-image: none !important;
	border-color: transparent !important;
	box-shadow: none !important;
}
.yes_no_table.answers_images_no_bg td {
	background: none !important;
}
.question_form .yes_no_table.answers_images_no_bg tr:hover {
	background: none;
	background-color: transparent;
}

/* ONE ANSWER + MULTIPLE CHOICE — vertical gradient (lighter top, darker bottom) */
.answers_block label.answer,
.answers_block_multiple label.answer {
	position: relative;
	border-radius: 12px;
	margin: 5px 0;
	min-height: 40px;
	display: flex;
	align-items: center;
	width: fit-content;
	padding-right: 10px;
	box-sizing: border-box;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.answers_block label.answer {
	background: linear-gradient(to bottom, #f8f8fa 0%, #d8dae2 100%);
	border: 1px solid rgba(155, 157, 165, 0.4);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.answers_block_multiple label.answer {
	background: linear-gradient(to bottom, #eef5ff 0%, #c4daf5 100%);
	border: 1px solid rgba(140, 175, 215, 0.5);
	box-shadow: 0 2px 6px rgba(80, 130, 180, 0.1);
}
.answers_block label.answer input,
.answers_block_multiple label.answer input {
	position: relative;
	z-index: 1;
}

/* Answer / question TTS — chrome play button (image includes its own rim and soft shadow) */
.answer_option_row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 5px 0;
	width: fit-content;
	max-width: 100%;
	box-sizing: border-box;
}
.answers_block .answer_option_row > label.answer,
.answers_block_multiple .answer_option_row > label.answer {
	margin: 0;
}
button.button.answer_audio_btn {
	flex: 0 0 auto !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	align-self: center;
	width: 22px !important;
	height: 22px !important;
	min-width: 22px !important;
	min-height: 22px !important;
	max-width: 22px !important;
	max-height: 22px !important;
	padding: 0 !important;
	margin: 0 3px 0 0 !important;
	gap: 0 !important;
	line-height: 0 !important;
	border: none !important;
	border-radius: 50% !important;
	font-size: 0 !important;
	cursor: pointer;
	vertical-align: middle;
	box-sizing: border-box;
	overflow: visible !important;
	background-color: transparent !important;
	background-image: url("images/audio-play-chrome.png") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: contain !important;
	text-shadow: none !important;
	transition: filter 0.15s ease, transform 0.15s ease;
}
button.button.answer_audio_btn:not(.red_button):not(.answer_audio_btn_playing),
button.button.answer_audio_btn:not(.red_button):not(.answer_audio_btn_playing):hover,
button.button.answer_audio_btn:not(.red_button):not(.answer_audio_btn_playing):focus,
button.button.answer_audio_btn:not(.red_button):not(.answer_audio_btn_playing):active {
	box-shadow: none !important;
}
button.button.answer_audio_btn:hover,
button.button.answer_audio_btn:focus {
	filter: brightness(1.08);
	transform: translateY(-1px);
	outline: none;
}
button.button.answer_audio_btn:active {
	transform: translateY(1px);
	filter: brightness(0.94);
}
button.button.answer_audio_btn img {
	display: none !important;
}
/* Playing — same chrome face, red ring pulse */
button.button.answer_audio_btn.red_button,
button.button.answer_audio_btn.answer_audio_btn_playing {
	border: none !important;
	background-color: transparent !important;
	background-image: url("images/audio-play-chrome.png") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: contain !important;
	animation: answer_audio_speaker_pulse 0.9s ease-in-out infinite;
	transform: none;
}
button.button.answer_audio_btn.red_button:hover,
button.button.answer_audio_btn.red_button:focus,
button.button.answer_audio_btn.answer_audio_btn_playing:hover,
button.button.answer_audio_btn.answer_audio_btn_playing:focus {
	transform: none;
	filter: brightness(1.08);
}
button.button.answer_audio_btn.red_button:active,
button.button.answer_audio_btn.answer_audio_btn_playing:active {
	transform: scale(0.96);
}
@keyframes answer_audio_speaker_pulse {
	0%, 100% {
		transform: scale(1);
		box-shadow:
			0 0 0 0 rgba(220, 38, 38, 0.55),
			0 0 0 0 rgba(220, 38, 38, 0.25);
	}
	40% {
		transform: scale(1.14);
		box-shadow:
			0 0 0 5px rgba(220, 38, 38, 0.2),
			0 0 0 10px rgba(220, 38, 38, 0);
	}
	70% {
		transform: scale(1.04);
		box-shadow:
			0 0 0 3px rgba(220, 38, 38, 0.15),
			0 0 0 7px rgba(220, 38, 38, 0);
	}
}
@media (prefers-reduced-motion: reduce) {
	button.button.answer_audio_btn.red_button,
	button.button.answer_audio_btn.answer_audio_btn_playing {
		animation: none;
	}
}
/* Answer option being read aloud — yellow frame breathes for the current clip */
@keyframes answer_audio_frame_breathe {
	0%, 100% {
		box-shadow:
			inset 0 0 0 2.5px #ffee58,
			0 0 8px 2px rgba(255, 238, 88, 0.55),
			0 0 18px 4px rgba(255, 220, 60, 0.3);
	}
	50% {
		box-shadow:
			inset 0 0 0 3px #fff59d,
			0 0 18px 6px rgba(255, 238, 88, 0.95),
			0 0 36px 12px rgba(255, 200, 40, 0.7);
	}
}
.answer_audio_playing {
	position: relative;
	z-index: 6;
	overflow: visible !important;
	border-color: #ffee58 !important;
}
.text_question_answer.answer_audio_playing,
.yes_no_prompt .yes_no_cell_fly.answer_audio_playing {
	border-radius: 12px;
}
.answer_audio_playing::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	z-index: 4;
	box-shadow:
		inset 0 0 0 2.5px #ffee58,
		0 0 8px 2px rgba(255, 238, 88, 0.55),
		0 0 18px 4px rgba(255, 220, 60, 0.3);
}
.answer_audio_playing_breathe::before {
	animation: answer_audio_frame_breathe 1.8s ease-in-out infinite;
}
label.answer.answer_has_image.answer_audio_playing:has(input:checked)::after,
.answers_block label.answer.answer_has_image.answer_audio_playing:has(input:checked)::after,
.answers_block_multiple label.answer.answer_has_image.answer_audio_playing:has(input:checked)::after {
	opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
	.answer_audio_playing_breathe::before {
		animation: none;
	}
}
.text_question .answer_audio_btn {
	margin-top: 0;
	flex-shrink: 0;
	align-self: center;
}
.yes_no_prompt .yes_no_cell_fly {
	display: flex;
	align-items: center;
	gap: 6px;
}
.ordering_list_li > .answer_audio_btn {
	flex: 0 0 auto;
	align-self: center;
}
.sentences_connection .droppable.drag_and_drop,
.sentences_connection .drag_and_drop {
	gap: 6px;
	align-items: center;
}
.answers_block label.answer:hover {
	background: linear-gradient(to bottom, #ffffff 0%, #e4e6ee 100%);
	border-color: rgba(145, 147, 155, 0.45);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}
.answers_block_multiple label.answer:hover {
	background: linear-gradient(to bottom, #f5f9ff 0%, #b8d4f2 100%);
	border-color: rgba(120, 165, 210, 0.55);
	box-shadow: 0 3px 8px rgba(80, 130, 180, 0.14);
}
.answers_block label.answer.answer_has_image,
.answers_block_multiple label.answer.answer_has_image {
	padding: 0;
	min-height: 0;
	overflow: hidden;
	align-items: stretch;
	gap: 0;
}
.answers_block label.answer.answer_has_image input,
.answers_block_multiple label.answer.answer_has_image input {
	position: absolute;
	left: 5px;
	top: 5px;
	z-index: 2;
	margin: 0;
}
/* Types 1–2, picture row (horizontal mode or image-only answers): control centered 10px above the picture. */
.answers_block.answers_block_images:has(label.answer.answer_has_image),
.answers_block_multiple.answers_block_images:has(label.answer.answer_has_image) {
	padding-top: 28px;
}
.answers_block.answers_block_images label.answer.answer_has_image,
.answers_block_multiple.answers_block_images label.answer.answer_has_image {
	overflow: visible;
}
.answers_block.answers_block_images label.answer.answer_has_image input,
.answers_block_multiple.answers_block_images label.answer.answer_has_image input {
	left: 50%;
	top: -10px;
	transform: translate(-50%, -100%);
}
/* Selected image answers — blue glow frame (matches DDI / pairing) */
.answers_block label.answer.answer_has_image:has(input:checked),
.answers_block_multiple label.answer.answer_has_image:has(input:checked) {
	overflow: visible;
	z-index: 30;
	border-color: transparent;
	border-top-color: transparent;
}
.answers_block label.answer.answer_has_image:has(input:checked):hover,
.answers_block_multiple label.answer.answer_has_image:has(input:checked):hover {
	border-color: transparent;
	border-top-color: transparent;
	box-shadow: none;
}
.answers_block label.answer.answer_has_image:has(input:checked)::after,
.answers_block_multiple label.answer.answer_has_image:has(input:checked)::after {
	content: '';
	position: absolute;
	inset: -5px;
	border-radius: 17px;
	pointer-events: none;
	z-index: 3;
	box-shadow:
		0 0 0 2.5px #00aaff,
		0 0 5px 1px rgba(0, 170, 255, 0.45),
		0 0 11px 3px rgba(64, 196, 255, 0.28);
}
/* Picture answers: same pulsing frames as DDI select (yellow hover, blue selected).
   Frames sit 5px outside the picture so they do not cover its edges. */
@keyframes answer_image_hover_glow_pulse {
	0%, 100% {
		box-shadow:
			0 0 0 2.5px #ffee58,
			0 0 6px 2px rgba(255, 238, 88, 0.4),
			0 0 12px 4px rgba(255, 220, 60, 0.25);
	}
	50% {
		box-shadow:
			0 0 0 2.5px #fff176,
			0 0 12px 4px rgba(255, 238, 88, 0.7),
			0 0 20px 7px rgba(255, 220, 60, 0.45);
	}
}
@keyframes answer_image_selected_glow_pulse {
	0%, 100% {
		box-shadow:
			0 0 0 4.5px #2196f3,
			0 0 10px 3px rgba(33, 150, 243, 0.65),
			0 0 20px 7px rgba(25, 118, 210, 0.4);
	}
	50% {
		box-shadow:
			0 0 0 5px #42a5f5,
			0 0 18px 6px rgba(66, 165, 245, 0.9),
			0 0 32px 12px rgba(30, 136, 229, 0.55);
	}
}
.answers_block.answers_fly_in_active label.answer.answer_has_image:hover:not(:has(input:checked)):not(.answer_audio_playing)::before,
.answers_block_multiple.answers_fly_in_active label.answer.answer_has_image:hover:not(:has(input:checked)):not(.answer_audio_playing)::before {
	content: '';
	position: absolute;
	inset: -5px;
	border-radius: 17px;
	pointer-events: none;
	z-index: 4;
	animation: answer_image_hover_glow_pulse 1.4s ease-in-out infinite;
}
.answers_block.answers_fly_in_active label.answer.answer_has_image:has(input:checked)::after,
.answers_block_multiple.answers_fly_in_active label.answer.answer_has_image:has(input:checked)::after {
	animation: answer_image_selected_glow_pulse 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
	.answers_block.answers_fly_in_active label.answer.answer_has_image:hover:not(:has(input:checked)):not(.answer_audio_playing)::before,
	.answers_block_multiple.answers_fly_in_active label.answer.answer_has_image:hover:not(:has(input:checked)):not(.answer_audio_playing)::before,
	.answers_block.answers_fly_in_active label.answer.answer_has_image:has(input:checked)::after,
	.answers_block_multiple.answers_fly_in_active label.answer.answer_has_image:has(input:checked)::after {
		animation: none;
	}
}
.answers_block label.answer.answer_has_image .answer_item_text,
.answers_block_multiple label.answer.answer_has_image .answer_item_text {
	display: block;
	line-height: 0;
	overflow: hidden;
	border-radius: 12px;
}
.answers_block label.answer.answer_has_image .answer_item_text figure,
.answers_block label.answer.answer_has_image .answer_item_text figure.image,
.answers_block label.answer.answer_has_image .answer_item_text p,
.answers_block label.answer.answer_has_image .answer_item_text img,
.answers_block_multiple label.answer.answer_has_image .answer_item_text figure,
.answers_block_multiple label.answer.answer_has_image .answer_item_text figure.image,
.answers_block_multiple label.answer.answer_has_image .answer_item_text p,
.answers_block_multiple label.answer.answer_has_image .answer_item_text img {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

label.answer {
	border:1px solid rgba(0,0,0,0.3);
	background-color: rgb(250, 250, 250);
	border-radius:10px;
	margin:5px 0px;
}
.answer {
	border-bottom:1px solid rgba(255,255,255,0.2);
	min-height: 40px;
	display: flex;
	align-items: center;	
	width: fit-content;
    padding-right: 10px;
}
.yes_no_table label.answer {
	border-bottom: none;
}
.answer input{
	margin:0 7px;
}
.pointer {
	cursor:pointer;
}

.text_question_answer {
	width: fit-content;
    display: flex;
    padding: 0px 20px 0px 20px;
    gap: 7px;
}
.text_question_answer:hover {
	background-color:rgba(255,255,255,0.1);
	cursor:pointer;
}
sub {
	position:relative;
	bottom:-3px;
}
/* -------------------------------------------------------------------------
   Results page — kid-friendly summary, competition cards, score bars
   (font stays Montserrat — do not override font-family here)
   ------------------------------------------------------------------------- */

.results_layout {
	display: flex !important;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 24px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 -10px 18px -10px;
	/* Must NOT use overflow:hidden here — inside .blackboard_inner (flex)
	   it zeroes min-height and clips this whole block. */
	overflow: visible;
	flex-shrink: 0;
	min-height: min-content;
}

.results_summary_cell {
	flex: 0 0 380px;
	width: 380px;
	max-width: 380px;
	margin: 0;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
	overflow: visible;
}

.results_competitions_cell {
	flex: 1 1 auto;
	min-width: 0;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	overflow: visible;
}

.results_participate_hint {
	text-align: center;
	margin-bottom: 12px;
	color: #000;
	font-size: 17px;
	font-weight: 700;
	text-shadow: none;
	padding: 0;
	border-radius: 0;
	background: none;
	border: none;
	width: 100%;
	box-sizing: border-box;
}

/* Circular competition cards — centered flex wrap (not table/grid rows) */
.results_competitions_cell .competitions {
	--circle-size: 168px;
	--circle-gap: 12px;
	--circle-border: 8px;
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	align-content: flex-start;
	align-items: flex-start;
	gap: var(--circle-gap);
	padding: 0;
	margin: 0 auto;
	width: 100%;
	max-width: calc(3 * var(--circle-size) + 2 * var(--circle-gap));
	box-sizing: border-box;
	perspective: none;
	height: auto !important;
	min-height: 0;
	overflow: visible;
	float: none !important;
	position: relative !important;
	left: 0 !important;
}

/* ≤5 competitions — larger circles */
.results_competitions_cell .competitions--few {
	--circle-size: 168px;
	--circle-gap: 14px;
	--circle-border: 8px;
}

/* >5 competitions — larger circles (2× former compact size) */
.results_competitions_cell .competitions--many {
	--circle-size: 170px;
	--circle-gap: 14px;
	--circle-border: 9px;
}

.results_competitions_cell .competition_block {
	float: none !important;
	margin: 0 !important;
	left: 0 !important;
	top: 0 !important;
	position: relative;
	width: var(--circle-size) !important;
	height: var(--circle-size) !important;
	max-width: var(--circle-size);
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	border: var(--circle-border) solid rgb(190, 190, 190);
	background:
		radial-gradient(circle at 35% 28%, #fffdf5 0%, #fff6d6 50%, #ffe9a8 100%);
	background-color: #ffe9a8;
	box-shadow:
		0 4px 12px rgba(34, 33, 81, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	box-sizing: border-box;
	overflow: hidden;
	backface-visibility: visible;
	transform-style: flat;
	transition:
		0.28s ease box-shadow,
		0.28s ease background-color,
		0.28s ease border-color,
		0.28s ease transform;
}

.results_competitions_cell .competition_block--done,
.results_competitions_cell .competition_block--done.transparent_border {
	border-color: rgba(255, 222, 0, 0.98);
	background:
		radial-gradient(circle at 35% 28%, #fffdf5 0%, #fff6d6 50%, #ffe9a8 100%);
}

.results_competitions_cell .competition_block:hover {
	transform: translateY(-2px);
	box-shadow:
		0 8px 18px rgba(34, 33, 81, 0.18),
		0 0 0 2px rgba(255, 213, 60, 0.4);
	border-color: rgb(139, 214, 0);
}

.results_competitions_cell .competition_block--done:hover {
	border-color: rgb(139, 214, 0);
}

.results_competitions_cell .competition_block_outer {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
}

.results_competitions_cell .competition_block_outer:hover {
	animation-name: results_competition_block_wiggle;
	animation-duration: 0.5s;
	animation-direction: normal;
	animation-fill-mode: forwards;
}

@keyframes results_competition_block_wiggle {
	0% { transform: rotate(0deg); }
	33% { transform: rotate(-8deg); }
	66% { transform: rotate(4deg); }
	100% { transform: rotate(0deg); }
}

.results_competitions_cell .competition_block_inner {
	display: block !important;
	position: relative;
	width: 100% !important;
	height: 100% !important;
	min-height: 0;
	padding: 0;
	top: 0 !important;
	text-align: center;
	box-sizing: border-box;
	overflow: hidden;
	border-radius: 50%;
	vertical-align: top;
}

.results_competitions_cell .competition_block a {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	border-radius: 50%;
}

.results_competitions_cell .competition_img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0;
	object-fit: cover;
	object-position: center 18%;
}

.results_competitions_cell .competition_title {
	position: absolute;
	bottom: calc(22% - 15px);
	left: 50%;
	width: 78%;
	height: calc(var(--circle-size) * 0.36);
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	box-sizing: border-box;
}

.results_competitions_cell .competitions--many .competition_title {
	bottom: calc(20% - 15px);
}

.results_competitions_cell .competition_title_inner {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	height: 100% !important;
	min-height: 0;
	padding: 0 3px;
	box-sizing: border-box;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	color: #eee;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.55);
	transform: translateY(4px);
}

.results_competitions_cell .competitions--many .competition_title_inner {
	font-size: 11px;
}

/* Result badge — replaces main-site .levels (kept inside the circle) */
.results_competitions_cell .competition_result {
	position: absolute;
	z-index: 3;
	left: 50%;
	bottom: 9px;
	transform: translateX(-50%);
	max-width: 88%;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.15;
	color: #ffffff;
	text-align: center;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.45);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
	box-sizing: border-box;
}

.results_competitions_cell .competitions--many .competition_result {
	bottom: 10px;
	font-size: 14px;
	padding: 2px 10px;
}

.results_competitions_cell .competition_result--score {
	background: linear-gradient(90deg, #e82a32 0%, #ff6b35 100%);
	box-shadow: 0 2px 6px rgba(211, 28, 36, 0.35);
}

.results_competitions_cell .competition_result--join {
	background: linear-gradient(90deg, #5a8a22 0%, #7bb02e 100%);
	box-shadow: 0 2px 6px rgba(76, 111, 29, 0.35);
}

.results_competitions_cell .competition_result--missed {
	background: rgba(60, 60, 60, 0.72);
	font-size: 7px !important;
	padding: 2px 5px;
	bottom: 12px;
}

.results_competitions_cell .competitions--many .competition_result--missed {
	font-size: 10px !important;
	padding: 2px 7px;
	bottom: 13px;
}

.results_table {
	width: 100%;
	max-width: 280px;
	border-collapse: separate;
	border-spacing: 0 8px;
	background:
		linear-gradient(165deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 248, 220, 0.35) 100%);
	border: 2px solid rgba(255, 255, 255, 0.75);
	border-radius: 18px;
	padding: 14px 12px;
	box-shadow:
		0 8px 28px rgba(34, 33, 81, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.results_table td {
	background-color: transparent;
	padding: 4px 10px;
	border-radius: 0;
	vertical-align: middle;
	line-height: 1.35;
}

.results_table tr:not(.results_spacer) td:first-child {
	width: 42%;
	color: rgba(34, 34, 34, 0.72);
	font-size: 14px;
	font-weight: 600;
	padding-right: 6px;
}

.results_table tr:not(.results_spacer) td:last-child {
	color: #222222;
	font-size: 15px;
}

.results_table tr:not(.results_spacer):not(.results_score_row) td {
	background: rgba(255, 255, 255, 0.45);
}

.results_table tr:not(.results_spacer):not(.results_score_row) td:first-child {
	border-radius: 10px 0 0 10px;
	padding-top: 8px;
	padding-bottom: 8px;
}

.results_table tr:not(.results_spacer):not(.results_score_row) td:last-child {
	border-radius: 0 10px 10px 0;
	padding-top: 8px;
	padding-bottom: 8px;
}

.results_table tr.results_spacer td {
	background: transparent !important;
	height: 0px;
	padding: 0;
	border: 0;
}

.results_table td.points {
	background: transparent !important;
	padding-top: 10px;
	padding-bottom: 6px;
}

.results_table tr.results_score_row td:first-child {
	font-size: 15px;
	font-weight: 700;
	color: #333333;
	padding-top: 12px;
}

.growing_width_outer {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.45) 100%);
	width: 200px;
	max-width: 100%;
	border-radius: 999px;
	padding: 3px;
	box-shadow:
		inset 0 1px 3px rgba(0, 0, 0, 0.12),
		0 1px 0 rgba(255, 255, 255, 0.6);
	overflow: hidden;
}

.growing_width,
.growing_width2 {
	background: linear-gradient(90deg, #e82a32 0%, #ff6b35 55%, #ff9f1c 100%) !important;
	padding: 8px 12px;
	border-radius: 999px;
	min-width: 48px;
	box-shadow:
		0 2px 8px rgba(211, 28, 36, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.35);
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	white-space: nowrap;
	line-height: 1.2;
}

.growing_width2 {
	background: linear-gradient(90deg, #f5b800 0%, #ffd54a 50%, #ffe566 100%) !important;
	color: #3a2e00;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
	box-shadow:
		0 2px 8px rgba(252, 202, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.growing_width .number,
.growing_width2 .number2 {
	font-weight: 800;
	letter-spacing: 0.02em;
}

/* Legacy square competition-card styles removed — results page uses
   .results_competitions_cell .competition_* circular rules above. */

.question_nr {
	background: linear-gradient(135deg, rgba(255, 230, 0, 0.55) 0%, rgba(255, 200, 40, 0.35) 100%);
	border: 1px solid rgba(255, 213, 60, 0.65);
	border-radius: 999px;
	padding: 7px 22px;
	font-weight: 800;
	float: left;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	color: #333333;
}

.points_collected {
	background: linear-gradient(135deg, rgba(255, 230, 0, 0.55) 0%, rgba(255, 200, 40, 0.35) 100%);
	border: 1px solid rgba(255, 213, 60, 0.65);
	border-radius: 999px;
	padding: 7px 22px;
	font-weight: 600;
	font-size: 15px;
	float: right;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Results: "show only mistakes" sits on the right, above the answer list */
.answers_toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	flex-wrap: wrap;
	margin: 4px 0 10px;
}
.answers_toolbar h3 {
	margin: 0;
	flex: 1 1 auto;
}
.mistakes_toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	cursor: pointer;
	user-select: none;
	font-size: clamp(15px, 2.2vw, 18px);
	font-weight: 600;
	color: #222;
	line-height: 1.2;
}
.mistakes_switch {
	position: relative;
	display: inline-block;
	width: 54px;
	height: 30px;
	flex: 0 0 auto;
}
.mistakes_switch input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}
.mistakes_slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: #bdbdbd;
	border-radius: 30px;
	transition: background .25s;
}
.mistakes_slider:before {
	content: "";
	position: absolute;
	height: 24px;
	width: 24px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform .25s;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.mistakes_switch input:checked + .mistakes_slider {
	background: linear-gradient(#a2cd02, #277402);
}
.mistakes_switch input:checked + .mistakes_slider:before {
	transform: translateX(24px);
}
.mistakes_switch input:focus-visible + .mistakes_slider {
	outline: 2px solid #277402;
	outline-offset: 3px;
}
.mistakes_switch_instant .mistakes_slider,
.mistakes_switch_instant .mistakes_slider:before {
	transition: none;
}
#all_answers.show-only-mistakes .question.question-correct,
#all_answers.show-only-mistakes .question.question-correct + hr {
	display: none;
}
body.device-phone .mistakes_toggle {
	font-size: 22px;
}
body.device-phone .mistakes_switch {
	width: 64px;
	height: 36px;
}
body.device-phone .mistakes_slider:before {
	height: 28px;
	width: 28px;
	left: 4px;
	top: 4px;
}
body.device-phone .mistakes_switch input:checked + .mistakes_slider:before {
	transform: translateX(28px);
}

/* Results answer cards — contain floated .question_image / video */
#all_answers .question {
	background:
		linear-gradient(165deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.18) 100%);
	border-radius: 16px;
	padding: 14px 16px 18px;
	margin: 18px -10px;
	box-shadow: 0 6px 20px rgba(34, 33, 81, 0.1);
}
#all_answers .question::after {
	content: "";
	display: table;
	clear: both;
}
hr {
	border:0;
	border-top:1px solid rgba(255,255,255,0.5);
	padding:10px 0px;
}
.checked_answers_explanation {
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.28) 100%);
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 14px;
	padding: 12px 22px;
	margin-top: 15px;
	font-size: 15px;
	line-height: 1.45;
	display: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.student_didnt_answer {
	background: linear-gradient(135deg, rgba(230, 60, 60, 0.75) 0%, rgba(200, 40, 40, 0.65) 100%);
	border-radius: 14px;
	padding: 12px 22px;
	margin-top: 15px;
	font-size: 15px;
	line-height: 1.45;
	color: #fff;
	box-shadow: 0 4px 14px rgba(180, 30, 30, 0.25);
}
.correct_arrow {
}
.question_mark {
	font-size: 1.5em; 
	vertical-align: middle;
	margin-left:5px;  
	transform-style: preserve-3d;	
	transition:.3s ease-in-out transform;
}
.question_mark:hover {
	transform:scale(1.1,1.1);
	cursor:pointer;
}
.draggable {
	cursor:move;
}
.scroll_up_and_down {
	position:absolute;
	top:240px;
	right:-55px;
	z-index:1000;
    animation: scroll_up_and_down_animation 4s linear;
	opacity:0;
	display:none;
}
@keyframes scroll_up_and_down_animation {
  0% {
	opacity: 0;
  }
  10% {
	transform: translateY(0px);	
  }
  20% {
	opacity: 1;  
	transform: translateY(-25px);	
  } 
  40% {
	opacity: 1;
	transform: translateY(25px);	
  }
  50% {
	opacity: 1;	  
 	transform: translateY(0px);	
  }
  100% {
	opacity: 0;  
  }  
}

.drag_and_drop {
	background-color:rgba(255,255,255,0.2); 
	padding:5px 10px; 
	border-radius:10px;
	display: inline-flex;
    align-items: center;
	position: relative;	
	z-index: 20 !important;
}

.answer_letter {
    font-weight: bold;
    flex-shrink: 0;          /* Чтобы буква не сжималась, если текста очень много */
    white-space: nowrap;     /* Чтобы "a)" не разбивалось на две строки */
	margin-right:5px;
}

.answer_text {
    text-align: left;
    word-break: break-word;  /* На случай очень длинных слов */
}
.ordering_arrow_hint {
	float: left;
	margin-right: 10px;
}
.ordering_arrow_hint_animation {
	opacity: 0;
	animation: ordering_arrow_hint_animation 1s ease-out forwards;
	animation-delay: 3s;
}
@keyframes ordering_arrow_hint_animation {
  0% {
	opacity: 0;
	transform: translateY(-300px);
  }
  100% {
	opacity: 1;
	transform: translateY(0);
  }
}

.drag_and_drop_animation {
	animation: drag_and_drop_animation 1s linear;
	animation-delay: 3s;
}
@keyframes drag_and_drop_animation {
  0% {
	transform:translateX(0px);
  }
  90% {
	transform:translateX(-30px);
  }
  100% {
	transform:translateX(0px);
  }
}
.sentences_connection_images .drag_and_drop_animation {
	animation-name: drag_and_drop_animation_up;
}
@keyframes drag_and_drop_animation_up {
  0% {
	transform: translateY(0);
  }
  90% {
	transform: translateY(-30px);
  }
  100% {
	transform: translateY(0);
  }
}

::-webkit-scrollbar {
    -webkit-appearance: none;
}
::-webkit-scrollbar:vertical {
    width: 15px;
}
::-webkit-scrollbar:horizontal {
    height: 15px;
}
::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    border: 2px solid #ffffff;
}
::-webkit-scrollbar-track {
    background-color: #ffffff;
}

#if_animation_doesnt_work {
	color:white;
	position:absolute;
	top:620px;
}

select {
    cursor: pointer;
	z-index: 9999;
}

.play_button {
	position:absolute; 	
	top: 85%; 
	left: 40%;	
	cursor:pointer;
	filter: brightness(0) invert(1);
	opacity: 0.5;
	animation: play_button_pulse 5s ease-in-out infinite;
}
.lazy-video:hover ~ .play_button,
.play_button:hover {
	animation: none;
	opacity: 0.7;
}
@keyframes play_button_pulse {
	0%, 100% { opacity: 0.5; }
	50% { opacity: 0.7; }
}
.ai_explanation {
	display:none;
	color:#000000;
	background-color:#ffffff !important;
	font-size:16px !important;
	padding:20px;
	border-radius:20px;
	margin-top:20px;
	width:713px;
	height:280px;
	border:0;
}
.ai_explanation h2, .ai_explanation h1 {
	font-size:16px !important;
}


#hint {
	display:none;
	/* fixed: .testing_div collapses to height 0 (absolute board children),
	   so absolute bottom/right placed the popup above the viewport */
	position: fixed;
	bottom: 20px;  
	right: 20px; 
	z-index:1000;
	padding:0px;
	width:450px;
	height:350px;		
	font-size:16px;
	background-color:#ffffff;
	border-radius: 15px;
	box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
}
#hint li {
	margin-left:30px;
	margin-bottom:15px;	
	border-bottom:1px solid #aaaaaa;
}
#dragDiv {
	cursor:move;
	background-color:#638634;
	color:white;
	padding:10px 20px;
	border-radius: 15px 15px 0 0;
	touch-action: none;
}
#hintHTML {
	display:none;	
	padding:20px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-y;
	overscroll-behavior: contain;
	height:270px;	
	color:#000000;
	background-color:#ffffff;
	border-radius: 0 0 15px 15px;
	text-align: justify;	
}
#hintVideoDiv {
	width:100%;
	height:300px;	
	background-color:white;
	border-radius: 0 0 15px 15px;	
}
#closeHintButton {
	position:absolute; 
	right:11px; 
	top:11px; 
	cursor:pointer;
}
/* Badge sits outside the button (negative offsets); do not clip it */
.navigation_div #showHint {
	overflow: visible;
}
#hints_left {
	position: absolute;
	right: -6px;
	bottom: -6px;
	background-color: red;
	color: white;
	font-weight: bold;
	font-size: 8px;
	padding: 1px 3px;
	border-radius: 5px;
	z-index: 5;
	line-height: 1.2;
	min-width: 10px;
	text-align: center;
	pointer-events: none;
}

.analyse_div,
.results_div,
#recommendationDiv,
#recommendationCommentDiv,
.you_can_participate,
.fb_share_result {
	margin: 16px -10px;
	border-radius: 18px;
	background:
		linear-gradient(165deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 248, 220, 0.32) 100%);
	border: 2px solid rgba(255, 255, 255, 0.7);
	padding: 22px 24px;
	line-height: 1.55;
	text-align: justify;
	box-shadow:
		0 8px 24px rgba(34, 33, 81, 0.1),
		inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.analyse_div {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	border-color: rgba(255, 213, 60, 0.75);
	background:
		linear-gradient(135deg, rgba(255, 248, 200, 0.65) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.analyse_div img {
	float: none;
	flex-shrink: 0;
	margin: 0 8px 0 0 !important;
}

.analyse_div_text {
	flex: 1 1 200px;
	min-width: 0;
}

.analyse_div_actions {
	flex-basis: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
}

.analyse_div .button {
	margin: 0;
}

.ai_analysis {
	display: none;
	padding: 22px 24px;
	border-radius: 20px;
	border: 2px solid rgba(255, 213, 60, 0.45);
	background:
		linear-gradient(180deg, #ffffff 0%, #fffdf5 100%) !important;
	margin: 16px -10px;
	box-shadow: 0 10px 28px rgba(34, 33, 81, 0.12);
}

.ai_analysis_inner {
	overflow: visible;
	color: #222222;
	font-size: 16px !important;
	max-width: 100%;
	height: auto;
	max-height: none;
	box-sizing: border-box;
}

.ai_analysis_inner h2,
.ai_analysis_inner h1 {
	font-size: 16px !important;
	color: #333333;
}

.ai_analysis #owlVideo {
	border-radius: 14px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	float:right; 
	cursor:pointer; 
	margin:20px 0 20px 20px;
}

@media (prefers-reduced-motion: reduce) {
	.competition_block,
	.competition_block:hover,
	.question_mark,
	.question_mark:hover {
		transition: none;
		transform: none;
	}

	.results_competitions_cell .competition_block_outer:hover {
		animation: none;
	}
}

@media (max-width: 900px) {
	/* Keep side-by-side on tablet/desktop testing board;
	   stack only on phone (see body.device-phone below). */
	.results_table {
		max-width: 100%;
	}

	.ai_analysis_inner {
		width: 100%;
		height: auto;
		max-height: none;
	}
}

body.device-phone .results_layout {
	flex-direction: column;
	overflow: visible;
}

body.device-phone .results_summary_cell {
	flex: 1 1 auto;
	width: 100%;
	max-width: 100%;
	margin: 0 0 14px 0;
}

body.device-phone .results_competitions_cell {
	overflow: visible;
	align-items: center;
	width: 100%;
}

/* Full-width board on phone — circles +60% vs desktop */
body.device-phone .results_competitions_cell .competitions--few {
	--circle-size: 269px;
	--circle-gap: 22px;
	--circle-border: 13px;
}

body.device-phone .results_competitions_cell .competitions--many {
	--circle-size: 270px;
	--circle-gap: 22px;
	--circle-border: 13px;
}

body.device-phone .results_competitions_cell .competitions {
	width: 100%;
	max-width: calc(3 * var(--circle-size) + 2 * var(--circle-gap));
	justify-content: center;
}

body.device-phone .results_competitions_cell .competitions--few .competition_title_inner {
	font-size: 15px;
}

body.device-phone .results_competitions_cell .competitions--many .competition_title_inner {
	font-size: 16px;
}

body.device-phone .results_competitions_cell .competitions--few .competition_result {
	font-size: 19px;
	bottom: 14px;
	padding: 3px 13px;
}

body.device-phone .results_competitions_cell .competitions--many .competition_result {
	font-size: 22px;
	bottom: 16px;
	padding: 4px 16px;
}

body.device-phone .results_competitions_cell .competition_result--missed {
	font-size: 11px !important;
	bottom: 17px;
}

body.device-phone .results_competitions_cell .competitions--many .competition_result--missed {
	font-size: 15px !important;
	bottom: 19px;
}

/* Explanation popup (#hint) — ~half desktop, then +20% on phone */
body.device-phone #hint {
	width: 270px;
	height: 210px;
	bottom: 10px;
	right: 10px;
	font-size: 10px;
	border-radius: 8px;
	box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.45);
}

body.device-phone #hint li {
	margin-left: 15px;
	margin-bottom: 8px;
}

body.device-phone #dragDiv {
	padding: 6px 12px;
	font-size: 12px;
	border-radius: 8px 8px 0 0;
}

body.device-phone #hintHTML {
	padding: 10px;
	height: 162px;
	font-size: 10px;
	line-height: 1.35;
	border-radius: 0 0 8px 8px;
}

body.device-phone #hintHTML h1,
body.device-phone #hintHTML h2,
body.device-phone #hintHTML h3 {
	font-size: 11px !important;
}

body.device-phone #hintVideoDiv {
	height: 180px;
	border-radius: 0 0 8px 8px;
}

body.device-phone #hintVideoDiv video,
body.device-phone #hint #hintVideo {
	width: 180px !important;
	height: 133px !important;
	margin-top: 20px !important;
}

body.device-phone #closeHintButton {
	right: 6px;
	top: 6px;
	width: 14px;
	height: 14px;
}

/* "* Мудра Сова ще…" — smaller on phone (overrides board 22px / inline 15px) */
body.device-phone .owl_disclaimer,
body.device-phone #hintHTML .owl_disclaimer,
body.device-phone .ai_analysis_inner .owl_disclaimer,
body.device-phone .ai_analysis_inner i[style*="color:#666"],
body.device-phone #hintHTML div[style*="color:#aaaaaa"] {
	font-size: 9px !important;
	line-height: 1.3 !important;
	margin-top: 10px !important;
}

.text-uppercase, .text-uppercase input, .text-uppercase select {
  text-transform: uppercase;
}

.syllabified-word {
  white-space: nowrap;
}

/* Student testing: adjustable question/answer font size (toolbar +/-).
   Actual sizing is applied in JS (inline font-size) so editor markup is covered.
   data-q-font is kept for state / debugging. */

label.answer .syllabified-word + .syllabified-word {
  margin-left: 0.35em;
}

.lowercase {
  text-transform: lowercase !important;
}

.leader-line {
	z-index: 5 !important;
	/* Lines are decorative; hit-testing on the SVG (appended to body) steals
	   touches from .blackboard_inner and blocks board scrolling on tablets. */
	pointer-events: none !important;
}

/* Results: answer chips are static (no DnD) — allow vertical board scroll */
body.component-results .sentences_connection .drag_and_drop {
	touch-action: pan-y;
	-webkit-user-select: text;
	user-select: text;
}

.letter_in_circle {
    position: relative;
    right: 20px;
	margin-right: -12px;
    z-index: 1000 !important;
	flex-shrink: 0;
	display: inline-block; 
	background-color: rgb(0, 175, 23);
	color:rgb(255, 255, 255);	
	height:30px; 
	width:30px; 
	line-height: 30px; 
	text-align: center; 
	border-radius:50%; 
	margin-bottom:1px;
	font-size:16px;
	text-transform: lowercase;
}

/* Invisible tap pad around the 22px speaker on picture answers.
   The icon stays 22px. A short press plays audio; a real move still drags the card. */
body.device-phone button.button.answer_audio_btn.answer_audio_hit_slop,
body.device-tablet button.button.answer_audio_btn.answer_audio_hit_slop {
	position: relative;
	z-index: 6;
}
body.device-phone button.button.answer_audio_btn.answer_audio_hit_slop::after,
body.device-tablet button.button.answer_audio_btn.answer_audio_hit_slop::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 48px;
	height: 48px;
	transform: translate(-50%, calc(-50% - 8px));
	background: transparent;
}
body.device-phone .sentences_connection .sentences_item_inner.answer_image_with_text,
body.device-tablet .sentences_connection .sentences_item_inner.answer_image_with_text {
	overflow: visible;
}

/* ============================================================
   MOBILE (phone & tablet) — orientation handling & board fit
   ============================================================ */

/* Rotate-device prompt: hidden by default, shown only in portrait on mobile */
.rotate_overlay { display: none; }

@media (orientation: portrait) {
	body.device-phone .rotate_overlay,
	body.device-tablet .rotate_overlay {
		display: flex;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100vw;
		height: 100vh;
		z-index: 2147483647;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
		box-sizing: border-box;
		padding: 8vw;
		/* dark-grey semi-transparent scrim that blocks the page */
		background: rgba(45, 45, 45, 0.88);
		color: #ffffff;
	}
	/* freeze the page behind the rotate prompt */
	body.device-phone, body.device-tablet { overflow: hidden; }
}

.rotate_overlay_icon img {
	display: block;
	margin: 0 auto 26px auto;
	animation: rotate_hint 2.2s ease-in-out infinite;
}
.rotate_overlay_text {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
	max-width: 620px;
	text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}
.rotate_overlay_hint {
	margin-top: 16px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	max-width: 620px;
	text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}
.rotate_overlay_hint[hidden] {
	display: none;
}
@keyframes rotate_hint {
	0%, 40% { transform: rotate(0deg); }
	60%, 100% { transform: rotate(-90deg); }
}

/* Mobile bg scene layer: sized & panned by JS (camera). Behind the board. */
#mobile_stage_bg { display: none; }
#mobile_stage_camera { display: none; }

/* fullscreen menu item label: icon-only by default (shown only in the phone menu) */
.menu-icon-label { white-space: nowrap; }

/* No Element fullscreen API (iPhone Safari): do not offer the control. */
html:not(.fs-api) #toggle_fullscreen_li,
html:not(.fs-api) #welcome_fullscreen_row {
	display: none !important;
}

@media (orientation: landscape) {
	body.device-phone, body.device-tablet {
		/* bg image is drawn by #mobile_stage_bg layer; body is just the wall colour */
		background: #c2cd37;
		overflow: hidden;
	}
	body.device-phone .testing-page-bg,
	body.device-tablet .testing-page-bg {
		display: none !important;
	}
	body.device-phone #mobile_stage_camera,
	body.device-tablet #mobile_stage_camera {
		display: block;
		position: fixed;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		z-index: 0;
		transform-origin: top center;
		will-change: transform;
	}
	body.device-phone #mobile_stage_bg,
	body.device-tablet #mobile_stage_bg {
		display: block;
		position: absolute;
		top: 0;
		left: 0;
		z-index: 0;
		/* Subject bg URL is set inline from testing_template.php */
		background-repeat: no-repeat;
		background-position: center center;
		background-size: 100% 100%;
		will-change: transform;
		pointer-events: none;
	}
	body.device-phone .testing_div,
	body.device-tablet .testing_div {
		animation: none !important;
		transform-origin: top center;
	}
	/* PHONE ONLY: board is stretched by JS to fill the screen top-to-bottom */
	body.device-phone .blackboard {
		top: 0;
	}
	/* PHONE ONLY: no flip animation — it can leave the board shifted on small screens */
	body.device-phone .blackboard_animation {
		animation: none !important;
	}
	/* PHONE ONLY: stack media above text; do not vertically center (hides board top) */
	body.device-phone .blackboard_inner .question_form {
		justify-content: flex-start;
	}
	/* PHONE ONLY: larger, more readable text for all board content */
	body.device-phone .blackboard_inner,
	body.device-phone .blackboard_inner * {
		font-size: 22px;
	}
	/* keep the drag hint small */
	body.device-phone .blackboard_inner .drag_note,
	body.device-phone .blackboard_inner .drag_note * {
		font-size: 16px;
	}
	body.device-phone .sentences_connection .sentences_puzzle_letter,
	body.device-tablet .sentences_connection .sentences_puzzle_letter {
		font-size: 16px;
	}
	body.device-phone .sentences_connection span[id^="drop_target_"],
	body.device-phone .sentences_connection [id^="draggable_"] .drag_and_drop,
	body.device-tablet .sentences_connection span[id^="drop_target_"],
	body.device-tablet .sentences_connection [id^="draggable_"] .drag_and_drop {
		padding-top: 10px;
		padding-bottom: 10px;
		margin-top: 2px;
		margin-bottom: 2px;
	}
	body.device-phone .sentences_connection span[id^="drop_target_"].sentences_item_has_image,
	body.device-phone .sentences_connection [id^="draggable_"] .drag_and_drop.sentences_item_has_image,
	body.device-tablet .sentences_connection span[id^="drop_target_"].sentences_item_has_image,
	body.device-tablet .sentences_connection [id^="draggable_"] .drag_and_drop.sentences_item_has_image {
		padding: 5px;
		margin-top: 0;
		margin-bottom: 0;
	}
	body.device-phone .sentences_connection span[id^="drop_target_"].answer_image_with_text,
	body.device-phone .sentences_connection [id^="draggable_"] .drag_and_drop.answer_image_with_text,
	body.device-tablet .sentences_connection span[id^="drop_target_"].answer_image_with_text,
	body.device-tablet .sentences_connection [id^="draggable_"] .drag_and_drop.answer_image_with_text {
		padding: 5px 8px 10px;
	}
	body.device-tablet .sentences_connection .sentences_puzzle_left,
	body.device-phone .sentences_connection .sentences_puzzle_left {
		left: -22px;
	}
	body.device-tablet .sentences_connection .sentences_puzzle_right,
	body.device-phone .sentences_connection .sentences_puzzle_right {
		right: -22px;
	}
	body.device-tablet .sentences_connection_images .sentences_puzzle_left,
	body.device-phone .sentences_connection_images .sentences_puzzle_left,
	body.device-tablet .sentences_connection_images .sentences_puzzle_right,
	body.device-phone .sentences_connection_images .sentences_puzzle_right {
		left: 50%;
		right: auto;
	}
	body.device-tablet .sentences_connection_images .sentences_connection_row_top .sentences_puzzle_right,
	body.device-phone .sentences_connection_images .sentences_connection_row_top .sentences_puzzle_right {
		bottom: -32px;
		transform: translateX(-50%) rotate(90deg);
	}
	/* Phone and tablet landscape: bottom-row tab sits 10px higher so it does not cover the label. */
	body.device-phone .sentences_connection_images .sentences_connection_row_bottom .sentences_puzzle_left,
	body.device-tablet .sentences_connection_images .sentences_connection_row_bottom .sentences_puzzle_left {
		top: -32px;
		transform: translateX(-50%) rotate(-90deg);
	}
	body.device-tablet .sentences_connection_images .sentences_connection_row_top,
	body.device-phone .sentences_connection_images .sentences_connection_row_top {
		padding-bottom: 24px;
	}
	body.device-tablet .sentences_connection_images .sentences_connection_row_bottom,
	body.device-phone .sentences_connection_images .sentences_connection_row_bottom {
		padding-top: 24px;
	}
	/* ORDERING: taller tap targets and slightly larger text on phone */
	body.device-phone .ordering_block .ordering_list_li,
	body.device-phone .ordering_block .ordering_list.shuffle_active .ordering_list_li {
		padding-top: 6px;
		padding-bottom: 6px;
	}
	body.device-phone .ordering_block .ordering_item_text,
	body.device-phone .ordering_block .ordering_list_li select {
		font-size: calc(1em + 1pt);
	}
	/* vertically centre the larger label inside the navigation controls:
	   for single-line <input>/<select> a fixed height + equal line-height
	   centres the text reliably (padding alone left it sitting too low). */
	body.device-phone .navigation_div .button,
	body.device-phone .navigation_div .answer_later {
		vertical-align: middle;
		height: 44px;
		line-height: 44px;
		padding-top: 0;
		padding-bottom: 0;
		box-sizing: border-box;
	}
	/* Question number <select>: readable after board scale, aligned with 44px buttons */
	body.device-phone .navigation_div select.questions_nr,
	body.device-phone select.questions_nr {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		vertical-align: middle;
		height: 44px;
		min-height: 44px;
		line-height: 1;
		padding: 0 0.4rem;
		box-sizing: border-box;
		font-size: 26px !important;
		font-weight: 700;
		width: 4.75rem;
		min-width: 4.75rem;
		text-align: center;
		text-align-last: center;
		top: 0;
	}
	body.device-phone .navigation_div select.questions_nr option,
	body.device-phone select.questions_nr option {
		font-size: 18px;
		font-weight: 600;
	}
}

/* CKEditor 5 named font sizes in question HTML */
.question_text .text-tiny,
.question_form .text-tiny { font-size: 0.7em; }
.question_text .text-small,
.question_form .text-small { font-size: 0.85em; }
.question_text .text-big,
.question_form .text-big { font-size: 1.4em; }
.question_text .text-huge,
.question_form .text-huge { font-size: 1.8em; }

/* CKEditor-embedded videos in question/answer HTML.
   Exclude media-slot / results / DDI background players (no editor spacing). */
.question_text video,
.question_form video:not(#questions_video):not(.lazy-video):not(.ddi-bg-video),
.answers_block video {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 1em 0;
}

.question_text video[style*="float: left"],
.question_text video[style*="float:left"],
.question_form video[style*="float: left"],
.question_form video[style*="float:left"] {
	float: left;
	margin: 0 15px 1em 0;
}

.question_text video[style*="float: right"],
.question_text video[style*="float:right"],
.question_form video[style*="float: right"],
.question_form video[style*="float:right"] {
	float: right;
	margin: 0 0 1em 15px;
}

.question_text video[style*="margin: 1em auto"],
.question_text video[style*="margin:1em auto"],
.question_form video[style*="margin: 1em auto"],
.question_form video[style*="margin:1em auto"] {
	display: block;
	float: none;
	margin: 1em auto;
}