@import url('https://fonts.googleapis.com/css2?family=Alan+Sans:wght@300..900&family=Delius+Unicase:wght@400;700&family=Rubik+Moonrocks&display=swap');

body {
  	font-family: "Rubik Moonrocks", sans-serif;
	background-color: brown;
    background-image: url("catlibs.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    background-attachment: fixed;
}

.noun {
	color: red;
  	font-family: "Delius Unicase", cursive;
}

.verb {
	color: blue;
  	font-family: "Delius Unicase", cursive;
}

.adjective {
	color: green;
  	font-family: "Delius Unicase", cursive;
}

.adverb {
	color: purple;
  	font-family: "Delius Unicase", cursive;
}

label {
	font-size: 1.5em;
}

#story {
	display: none;
	background: tan;
	border: black solid 2px;
	border-radius: 10px;
	margin: 10px;
	padding: 10px;
	opacity: 0.8;
	font-size: 2em;
}

#inputs {
	background: lightyellow;
	border: black solid 2px;
	border-radius: 10px;
	margin: 10px;
	padding: 10px;
	opacity: 0.8;
}

textarea {
  	font-family: "Delius Unicase", cursive;
	display: block;
	width: 80%;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}

button {
	padding: 8px;
	margin: 8px;
	font-size: 2em;
  	font-family: "Rubik Moonrocks", sans-serif;
}

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

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

.concept-tag {
	display: inline-block;
	background-color: rgba(101, 33, 0, 0.85);
	color: #ffe9c7;
	font-family: "Rubik Moonrocks", sans-serif;
	font-size: 0.75em;
	padding: 6px 14px;
	border-radius: 20px;
	margin: 4px;
}

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

.instructions-link a {
	display: inline-block;
	background-color: #4a1e00;
	color: #ffe9c7;
	text-decoration: none;
	padding: 8px 18px;
	border-radius: 20px;
	font-weight: bold;
	font-family: "Rubik Moonrocks", sans-serif;
	font-size: 0.85em;
}

.instructions-link a:hover {
	background-color: #6b2c00;
}

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

.instructions-body {
	text-align: left;
	font-family: Arial, sans-serif;
	background-image: none;
	background-color: #fdf1e6;
}

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

.instr-eyebrow {
	font-family: "Rubik Moonrocks", sans-serif;
	font-size: 0.8em;
	color: #a0522d;
	margin: 0 0 6px;
}

.instr-header h1 {
	font-family: "Rubik Moonrocks", sans-serif;
	font-size: 1.8em;
	color: #4a1e00;
}

.back-to-game {
	display: inline-block;
	margin-top: 10px;
	color: #a0522d;
	text-decoration: none;
	font-weight: bold;
	font-size: 0.9em;
	font-family: Arial, sans-serif;
}

.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-family: Arial, sans-serif;
	font-size: 0.82em;
	font-weight: bold;
	color: #222;
	text-decoration: none;
	background-color: #fff;
	border: 1px solid rgba(160, 82, 45, 0.35);
	padding: 5px 14px;
	border-radius: 20px;
	transition: background-color 0.15s;
}

.quick-nav a:hover {
	background-color: #fbe6d4;
	border-color: #a0522d;
	color: #a0522d;
}

.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);
	font-family: Arial, sans-serif;
	color: #222;
	scroll-margin-top: 20px;
}

.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;
	font-family: "Rubik Moonrocks", sans-serif;
	color: #4a1e00;
	margin: 0;
}

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

#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: #fdf1e6;
	border-radius: 6px;
	padding: 8px 12px;
	margin: 8px 0;
	font-size: 0.92em;
}

.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: #a0522d;
	border: none;
	color: white;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-family: Arial, 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: #fdf1e6;
	color: #222;
	font-size: 0.95em;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	cursor: pointer;
}

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

.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;
}

.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.5em;
	}
	.info-section {
		padding: 18px;
	}
	textarea {
		width: 95%;
	}
}
