@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
	font-family: "Fira Sans", sans-serif;
  	background-image: linear-gradient(to bottom, rgb(191, 230, 255), rgb(94, 222, 128));
	height: 100vh;
}

img {
	position: absolute;
	top: 0;
	right: 0;
	width: 30%;
	border-radius: 10px;
	-webkit-box-shadow: 5px 5px 15px 5px rgba(0,0,0,0.38); 
	box-shadow: 5px 5px 15px 5px rgba(0,0,0,0.38);
}

#solution {
	font-size: 2em;
}

p {
	width: 70%;
}

/* --- Concepts bar & instructions link (game page) --- */

#concepts-bar {
	text-align: center;
	margin: 10px auto 20px;
}

.concept-tag {
	display: inline-block;
	background-color: rgba(0, 100, 60, 0.85);
	color: white;
	font-family: "Fira Sans", sans-serif;
	font-size: 0.8em;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 20px;
	margin: 4px;
}

.instructions-link {
	width: auto;
	text-align: center;
}

.instructions-link a {
	display: inline-block;
	background-color: #1a5c3a;
	color: white;
	text-decoration: none;
	padding: 8px 18px;
	border-radius: 20px;
	font-weight: bold;
	font-family: "Fira Sans", sans-serif;
}

.instructions-link a:hover {
	background-color: #227a4d;
}

/* --- Instructions page layout --- */

.instructions-body {
	text-align: left;
	font-family: "Fira Sans", sans-serif;
	background-image: none;
	background-color: #eef9f1;
	height: auto;
	min-height: 100vh;
}

.instr-header {
	max-width: 700px;
	margin: 0 auto;
	padding: 30px 25px 10px;
	text-align: center;
}

.instr-eyebrow {
	font-size: 0.85em;
	color: #1a5c3a;
	margin: 0 0 6px;
	font-weight: 600;
}

.instr-header h1 {
	font-size: 2em;
	color: #1a3c2e;
}

.back-to-game {
	display: inline-block;
	margin-top: 10px;
	color: #1a5c3a;
	text-decoration: none;
	font-weight: bold;
	font-size: 0.9em;
}

.back-to-game:hover {
	text-decoration: underline;
}

.quick-nav {
	max-width: 700px;
	margin: 0 auto 10px;
	padding: 0 25px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.quick-nav a {
	font-size: 0.82em;
	font-weight: bold;
	color: #222;
	text-decoration: none;
	background-color: #fff;
	border: 1px solid rgba(26, 92, 58, 0.3);
	padding: 5px 14px;
	border-radius: 20px;
	transition: background-color 0.15s;
}

.quick-nav a:hover {
	background-color: #e2f5e8;
	border-color: #1a5c3a;
	color: #1a5c3a;
}

.info-section {
	max-width: 650px;
	margin: 22px auto;
	background-color: white;
	border-radius: 12px;
	padding: 22px 26px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
	color: #222;
	scroll-margin-top: 20px;
}

.info-section p {
	width: auto;
}

.info-section-head {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: center;
	margin-bottom: 4px;
}

.info-icon {
	font-size: 1.3em;
	line-height: 1;
}

.info-section h2 {
	text-align: center;
	color: #1a3c2e;
	margin: 0;
}

.cooldown-note {
	font-size: 0.85em;
	background-color: #fff3cd;
	border: 1px solid #ffe08a;
	border-radius: 8px;
	padding: 8px 12px;
	width: auto;
}

#certificate-section p {
	text-align: center;
}

/* --- Hint Helper --- */

.hint-card {
	border: 1px solid #ccc;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 16px;
	background-color: #fafafa;
}

.hint-label {
	margin: 0 0 10px;
	font-size: 1em;
	color: #222;
}

.hint-text {
	background-color: #eaf7ee;
	border-radius: 6px;
	padding: 8px 12px;
	margin: 8px 0;
	font-size: 0.92em;
	width: auto;
}

.hint-answer {
	background-color: #fff3cd;
	border: 1px solid #ffc107;
}

.hint-answer code {
	display: inline-block;
	margin-top: 4px;
	font-family: "Courier New", monospace;
	white-space: pre-wrap;
}

.hint-btn {
	margin-top: 8px;
	background-color: #1a5c3a;
	border: none;
	color: white;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-family: "Fira Sans", sans-serif;
}

.hint-btn:disabled {
	background-color: #aaa;
	cursor: default;
}

/* --- Predict & Check --- */

.predict-question {
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid #ddd;
}

.predict-question:last-child {
	border-bottom: none;
}

.predict-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.predict-option-btn {
	text-align: left;
	background-color: #eaf7ee;
	color: #222;
	font-size: 0.95em;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	cursor: pointer;
	width: auto;
}

.predict-option-btn:hover:not(:disabled) {
	background-color: #d3edd9;
}

.predict-option-btn:disabled {
	cursor: default;
	opacity: 0.75;
}

.predict-correct {
	background-color: #d4edda !important;
	border: 2px solid #28a745 !important;
	opacity: 1 !important;
}

.predict-wrong {
	background-color: #f8d7da !important;
	border: 2px solid #dc3545 !important;
	opacity: 1 !important;
}

.predict-feedback {
	margin-top: 10px;
	font-size: 0.9em;
	width: auto;
}

.predict-feedback-correct {
	color: #1e7e34;
}

.predict-feedback-wrong {
	color: #a71d2a;
}

#creativity-section ul {
	padding-left: 20px;
}

#creativity-section li {
	margin-bottom: 10px;
}

@media (max-width: 600px) {
	.instr-header h1 {
		font-size: 1.7em;
	}
	.info-section {
		padding: 18px;
	}
}
