/*
 * Examelot practice mode
 * One question per page.
 */

#practice_page
{
	background: #f7f9fa;
	color: #172536;
}

#practice_page .practice-shell
{
	width: calc(100% - 40px);
	max-width: 860px;
	margin: 42px auto 70px;
}

#practice_page .practice-topbar
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 13px;
}

#practice_page .practice-back-link
{
	font-size: 15px;
	font-weight: 600;
	color: #526477;
}

#practice_page .practice-count
{
	color: #526477;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

#practice_page .practice-progress
{
	width: 100%;
	height: 9px;
	overflow: hidden;
	background: #e1e8eb;
	border-radius: 999px;
}

#practice_page .practice-progress-bar
{
	height: 100%;
	background: #1e7b85;
	border-radius: inherit;
}

#practice_page .practice-heading
{
	margin: 24px 0 18px;
}

#practice_page .practice-exam-name
{
	margin: 0;
	color: #687889;
	font-size: 16px;
	font-weight: 600;
}

#practice_page .practice-question-card
{
	position: relative;
	padding: 36px 38px;
	background: white;
	border: 1px solid #dce4e8;
	border-radius: 14px;
	box-shadow: 0 3px 12px rgba(31, 51, 69, .05);
}

/* Existing custom question markup */

#practice_page question-text
{
	display: block;
	font-weight: 700;
	line-height: 1.55;
	white-space: pre-wrap;
}

#practice_page question
{
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 1em;
	row-gap: 1.2em;
	margin: 0;
}

#practice_page question-number
{
	grid-column: 1;
	grid-row: 1;
	font-weight: 700;
}

#practice_page question-prompt
{
	display: block;
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
}

#practice_page choices
{
	display: block;
	grid-column: 1 / -1;
	grid-row: 2;
	min-width: 0;
}

#practice_page ol.choices
{
	margin: 0;
	padding: 0;
	width: 100%;
	list-style: none;
}

#practice_page ol.choices
{
	margin: 20px 0 0;
	/*padding-left: 30px;*/
	/*list-style: lower-latin;*/
}

#practice_page .choices li
{
	margin: 8px 0;
	padding: 8px 10px;
	border-radius: 6px;
	cursor: pointer;
	line-height: 1.45;
}

#practice_page .choices li:hover
{
	background: #f4f7f8;
}

#practice_page .correct_answer
{
	background: #dff4e5;
	border-radius: 4px;
}

#practice_page .wrong_answer
{
	background: #fde1e1;
	border-radius: 4px;
}

#practice_page answer,
#practice_page explanation,
#practice_page .answer_button
{
	display: block;
	margin-top: 16px;
	overflow-wrap: anywhere;
}

#practice_page answer
{
	font-weight: 700;
}

#practice_page answer::before
{
	content: "Answer: ";
}

#practice_page explanation
{
	line-height: 1.6;
	white-space: pre-wrap;
}

#practice_page .answer_button
{
	width: fit-content;
	padding: 10px 17px;
	border: 0;
	border-radius: 7px;
	background: #1e7b85;
	color: white;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

#practice_page .answer_button:hover
{
	background: #16636c;
}

#practice_page #practice_question img
{
	max-width: 100%;
	height: auto;
	margin-top: 14px;
}

#practice_page question-text table
{
	width: 100%;
	margin: 24px 0;
	border-collapse: collapse;
	font-size: .92em;
}

#practice_page question-text table th,
#practice_page question-text table td
{
	padding: 10px 12px;
	border-bottom: 1px solid #e0e5e8;
	text-align: left;
}

#practice_page .button_to_open_the_report_a_problem_form
{
	top: 0;
	right: 0;
	height: fit-content;
	opacity: .45;
}

#practice_page .button_to_open_the_report_a_problem_form:hover
{
	opacity: 1;
	cursor: pointer;
}

#practice_page .button_to_open_the_report_a_problem_form img
{
	width: 100%;
	margin: 0;
}

/* Previous / next */

#practice_page .practice-navigation
{
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin-top: 24px;
}

#practice_page .practice-navigation-left,
#practice_page .practice-navigation-right
{
	flex: 1;
}

#practice_page .practice-navigation-right
{
	text-align: right;
}

#practice_page .practice-nav-button
{
	display: inline-block;
	padding: 11px 17px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 700;
}

#practice_page .practice-nav-primary
{
	background: #1e7b85;
	color: white;
}

#practice_page .practice-nav-primary:hover
{
	background: #16636c;
	color: white;
}

#practice_page .practice-nav-secondary
{
	background: white;
	color: #1e6670;
	border: 1px solid #cad7dc;
}

#practice_page .practice-nav-secondary:hover
{
	background: #f2f6f7;
}

/* Report-a-problem modal */

#practice_page #report_a_problem_parent
{
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(0, 0, 0, .45);
	padding: 20px;
	box-sizing: border-box;
}

#practice_page #report_a_problem
{
	position: relative;
	width: min(460px, 100%);
	margin: 15vh auto 0;
	padding: 28px;
	box-sizing: border-box;
	background: white;
	border-radius: 12px;
	box-shadow: 0 16px 50px rgba(0,0,0,.18);
}

#practice_page #report_a_problem h2
{
	margin-top: 0;
}

#practice_page #report_a_problem label
{
	display: block;
	margin: 15px 0 5px;
	font-size: 14px;
}

#question_id_for_problem_to_report,
#practice_test_id_for_problem_to_report,
label[for="question_id_for_problem_to_report"],
label[for="practice_test_id_for_problem_to_report"]
{
	display: none;
}

#practice_page #problem
{
	width: 100%;
	box-sizing: border-box;
	padding: 9px 10px;
	border: 1px solid #cfd9dd;
	border-radius: 6px;
	background: white;
}

#practice_page #problem
{
	min-height: 110px;
	resize: vertical;
}

#practice_page #report_a_problem button[type="submit"]
{
	margin-top: 15px;
}

#practice_page .practice-close-button
{
	position: absolute;
	top: 10px;
	right: 13px;
	padding: 0;
	background: transparent;
	color: #526477;
	font-size: 28px;
	line-height: 1;
	border: 0;
	cursor: pointer;
}

@media(max-width: 650px)
{
	#practice_page .practice-shell
	{
		width: calc(100% - 24px);
		margin-top: 25px;
	}

	#practice_page .practice-question-card
	{
		padding: 25px 20px;
	}

	#practice_page .practice-topbar
	{
		align-items: flex-start;
	}

	#practice_page .practice-navigation
	{
		align-items: stretch;
	}

	#practice_page .practice-nav-button
	{
		padding: 10px 12px;
	}

	#practice_page question
	{
		display: block;
	}

	#practice_page question-number
	{
		display: block;
		padding: 0 0 10px;
	}
}


#practice_page .practice-count
{
	display: flex;
	align-items: center;
	gap: 7px;
	color: #526477;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

#practice_page #question_jump
{
	width: 58px;
	padding: 5px 7px;
	box-sizing: border-box;
	border: 1px solid #cbd6dc;
	border-radius: 6px;
	background: white;
	color: #172536;
	font: inherit;
	text-align: center;
}

#practice_page #question_jump_button
{
	padding: 6px 11px;
	border: 0;
	border-radius: 6px;
	background: #1e7b85;
	color: white;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

#practice_page #question_jump_button:hover
{
	background: #16636c;
}

#practice_page .choices
{
	list-style: none;
	padding: 0;
	margin: 22px 0 0;
	counter-reset: answer-choice;
}

#practice_page .choices li
{
	counter-increment: answer-choice;

	position: relative;

	margin: 9px 0;
	padding: 14px 18px 14px 48px;

	background: #f1f3f4;
	border: 1px solid transparent;
	border-radius: 10px;

	cursor: pointer;

	line-height: 1.5;

	transition:
		background-color 0.15s ease,
		border-color 0.15s ease;
}

#practice_page .choices .choice .choice_explanation li
{
	counter-increment: none; 

	position: relative;

	margin: 0;
	padding: 0;

	background: transparent;
	border: none;
	border-radius: 0px;

	cursor: text;

	line-height: 1.5;

	transition:
		background-color 0.15s ease,
		border-color 0.15s ease;
}
#practice_page .choices li::before
{
	content: counter(answer-choice, upper-alpha) ".";

	position: absolute;
	left: 15px;
	top: 14px;

	font-weight: 500;
}
#practice_page .choices .choice .choice_explanation li::before
{
	content: none;

	position: absolute;
	left: 0px;
	top: 9px;

	font-weight: 500;
}

#practice_page .choices li:hover
{
	background: #e9edef;
}


/* Correct choice */

#practice_page .choices li.choice-correct
{
	background: #d9f2df;
	border-color: #a9dfb5;
}


/* Incorrect choice */

#practice_page .choices li.choice-wrong
{
	background: #f8dddd;
	border-color: #edb6b6;
}


/* Explanation underneath the chosen answer */

#practice_page .choice_explanation
{
	display: none;
	margin-top: 9px;
	font-size: 0.95em;
	font-weight: normal;
	line-height: 1.5;
}


/*
 * The old custom elements may have inherited styling.
 * Keep the answer text itself normal.
 */

#practice_page correct_choice,
#practice_page wrong_choice
{
	display: inline;
	font-weight: normal;
}

#practice_page .choices li.choice-revealed
{
	cursor: default;
}
#practice_progress
{
	cursor: pointer;
}

#practice_progress
{
	position: relative;
	cursor: pointer;
}

#practice_progress_tooltip
{
	display: none;

	position: absolute;
	bottom: 18px;

	padding: 5px 8px;

	background: #172536;
	color: white;

	border-radius: 5px;

	font-size: 12px;
	font-weight: 600;
	line-height: 1;

	white-space: nowrap;

	transform: translateX(-50%);

	pointer-events: none;
}

.practice-question-context
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;

	margin: 26px 0 18px;
}

.practice-exam-name
{
	color: #60758b;

	font-size: 15px;
	font-weight: 700;
}

.practice-section-name
{
	padding: 6px 10px;

	border-radius: 6px;

	background: #e8f2f3;
	color: #1e7b85;

	font-size: 12px;
	font-weight: 700;

	text-transform: uppercase;
	letter-spacing: .04em;

	white-space: nowrap;
}

@media(max-width: 600px)
{
	.practice-question-context
	{
		display: block;
	}

	.practice-section-name
	{
		display: inline-block;
		margin-top: 8px;

		white-space: normal;
	}
}
.question-report-row
{
	display: flex;
	justify-content: flex-end;

	margin-top: 22px;
}

.button_to_open_the_report_a_problem_form
{
	padding: 0;

	border: 0;
	background: none;

	color: #60758b;

	font-size: 13px;
	font-weight: 600;

	cursor: pointer;
}

.button_to_open_the_report_a_problem_form:hover
{
	color: #1e7b85;
	text-decoration: underline;
}
