/* Custom styling for the task */
.stimulus-container {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 300px;
	margin-top: 5vh; /* Fixed position from top, 15% of viewport height */
	margin-bottom: 0;
	position: relative;
}

.position-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 30px;
	position: relative;
}

.finger-diagram-container {
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	bottom: 0vh;
	left: 0;
	right: 0;
}

.finger-diagram {
	width: 1600px;
	height: auto;
}

.key-label {
	font-size: 24px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #495057;
	opacity: 0.7;
	min-width: 45px;
	text-align: center;
	position: absolute;
	top: -40px;
	left: 50%;
	transform: translateX(-50%);
}

.position-box {
	width: 100px;
	height: 100px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 48px;
	background-image: url("assets/key-white.png");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	border: none;
	position: relative;
	top: 0;
	transition: all 0.1s ease;
	filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.15));
}

.position-box.active {
	background-image: url("assets/key-mole.png");
}

.position-box.pressed {
	top: 3px;
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.2));
}

.feedback-message {
	text-align: center;
	margin-top: 0;
	margin-bottom: 0px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.feedback-correct {
	color: #4caf50;
	font-size: 72px;
	font-weight: bold;
}

.feedback-error {
	color: #f44336;
	font-size: 36px;
	font-weight: bold;
	line-height: 1.4;
}

.instruction-text {
	font-size: 18px;
	line-height: 1.6;
	margin: 60px auto 0 auto;
	padding: 40px 20px;
	width: 800px;
	max-width: 90vw;
	text-align: left;
	min-height: 500px;
	box-sizing: border-box;
}

.key-mapping {
	display: flex;
	justify-content: center;
	margin: 30px 0;
	font-size: 32px;
	font-weight: bold;
}

.key-mapping-item {
	margin: 0 20px;
	padding: 10px 20px 20px 20px;
	background-image: url("assets/key-white.png");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	border: none;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
	min-width: 100px;
	min-height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	color: #495057;
}

.inline-key {
	display: inline-block;
	background-image: url("assets/key-black.png");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	border: none;
	padding: 4px 12px;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
	font-weight: bold;
	color: #ffffff;
	font-size: 0.9em;
	text-transform: uppercase;
	text-align: center;
	margin: 0 2px;
	min-width: 30px;
	min-height: 30px;
	vertical-align: middle;
}

.progress-bar-container {
	width: 80%;
	height: 20px;
	background-color: #e0e0e0;
	border-radius: 10px;
	margin: 20px auto;
	overflow: hidden;
}

.progress-bar {
	height: 100%;
	background-color: #4caf50;
	transition: width 0.3s ease;
}

.block-feedback {
	font-size: 20px;
	line-height: 1.8;
	margin: 20px auto;
	max-width: 600px;
}

.mole-image {
	width: 80px;
	height: 80px;
	object-fit: contain;
}

.key-mapping-image {
	max-width: 500px;
	width: 100%;
	height: auto;
	aspect-ratio: 1841 / 1920;
	display: block;
	margin: 20px auto;
}
