.closeness-bar-outer {
	width: 100%;
	max-width: 220px;
	height: 16px;
	background: #eee;
	border: 1.5px solid #bbb;
	border-radius: 8px;
	margin: 0 auto;
	overflow: hidden;
	box-shadow: 1px 1px 0 #e6b800;
}
.closeness-bar-inner {
	height: 100%;
	background: linear-gradient(90deg, #e6b800, #1a4);
	border-radius: 8px 0 0 8px;
	transition: width 0.5s cubic-bezier(.4,2,.6,1);
}
.closeness-bar-label {
	font-size: 0.95rem;
	margin-top: 0.2em;
	color: #222;
	font-family: inherit;
	font-weight: normal;
}
/* Pop-out result box styles */
.result-pop {
	position: absolute;
	left: 50%;
	transform: translateX(-50%) translateY(0);
	bottom: -2.2rem;
	min-width: 220px;
	background: #fffbe7;
	border: 2.5px solid #e6b800;
	border-radius: 8px;
	box-shadow: 2px 4px 12px #0002, 2px 2px 0 #e6b800;
	padding: 0.8rem 1.2rem;
	font-size: 1.08rem;
	color: #222;
	font-family: inherit;
	font-weight: bold;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s cubic-bezier(.4,2,.6,1), transform 0.35s cubic-bezier(.4,2,.6,1);
	z-index: 10;
	text-align: center;
}
.result-pop.active {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(-50%) translateY(30px);
}
@font-face {
	font-family: "xkcd";
	src: url("fonts/xkcd-script.ttf") format("truetype");
	font-weight: normal;
	font-style: normal;
}

:root {
	--font-family: "xkcd";
}

body {
    font-size: 2.3rem;

	background: repeating-linear-gradient(
		135deg,
		#fff,
		#fff 40px,
		#f3f3f3 40px,
		#f3f3f3 80px
	);
	font-family: var(--font-family);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	margin: 0;
}
.exam-box {
	border: 4px solid #111;
	border-radius: 2px;
	padding: 2.2rem 2.7rem 1.2rem 2.7rem; /* reduced bottom padding */
	background: #ffffff;
	max-width: 420px;
	width: 100%;
	margin: 2rem 0;
	position: relative;
	
}

.exam-title {
	text-align: center;
	margin-bottom: 1.3rem;
	letter-spacing: 1px;
	line-height: 1.2;
}
.question {
	margin-bottom: 1.7rem;
	text-align: left;
}
.answer-box {
	font-size: 1em;
	width: 100%;
	border: 4px solid #111; /* looks like something printed */
	border-radius: 2px; /* square edges, like paper */
	background: #ffffff; /* subtle off-white paper tint */
	text-align: center;
	padding: 0.5em;
	line-height: 1.4em;
	box-sizing: border-box;
	height: min-content;
	font-family: var(--font-family);
}
.submit-btn {
	display: block;
	margin: 0 auto;
	background: #fcfcfc;
	color: #333;
	border: 2px dashed #555;
	border-radius: 4px;
	padding: 0.4em 0.6em;
	cursor: pointer;
	font-family: inherit;
	text-align: center;
	width: fit-content;
	min-width: 130px;
	box-sizing: border-box;
	font-weight: normal;
	letter-spacing: 0.2px;
	transition: all 0.3s ease;
}
.submit-btn:hover {
	background: #f0f0f0;
	border-color: #333;
	color: #000;
}
#result {
	margin-top: 1.2rem;
	color: #1a4;
	min-height: 1.2em;
	text-align: center;
	font-weight: bold;
	letter-spacing: 0.5px;
}
@media (max-width: 500px) {
	.exam-box {
		padding: 1.2rem 0.5rem 1.5rem 0.5rem;
		max-width: 98vw;
	}

}

.bottom-right-link {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 100;
	font-family: var(--font-family);
	background: #fff;
	padding: 8px 16px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	text-decoration: none;
	color: #222;
	font-size: 1.2rem;
}
.bottom-right-link:hover {
	background: #f0f0f0;
}

.answer-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 1.7rem;
}