html,
*,
*:before,
*:after {
	box-sizing: border-box;
}

html,
body {
	overflow-x: hidden;
}

body {
	margin: 0;
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.6;
	color: #1a1a1a;
	background-color: #f8f9fa;
}

.intro-box ul {
	font-size: 1em;
	font-weight: 500;
	line-height: 1.6;
	margin: 0;
	padding-left: 1.2em;
	text-align: left;
}

.intro-box ul li {
	margin-bottom: 6px;
	/* optional: match line spacing feel */
}

.scroll-parallax {
	position: fixed;
	top: 0;
	left: 0;
	width: 110vw;
	height: 130vh;
	background: url('../images/backgrounds/school-top-down1.jpg') repeat center center / cover;
	opacity: 0.15;
	z-index: -1;
	pointer-events: none;
	will-change: background-position;
}

/* Top nav styles */
.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px 12px;
    display: flex;
    justify-content: center;
    background: transparent;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-nav.hide {
	transform: translateY(-100%);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-nav nav {
	display: flex;
	justify-content: space-between;
	gap: 30px;
	width: 100%;
	max-width: 1200px;
}
.top-nav nav a {
    flex: 1;
    text-align: center;
    color: #263238;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    padding-top: 6px;
}

.top-nav nav a::after {
	content: '';
	display: block;
	margin: 4px auto 0;
	width: 6px;
	height: 6px;
	background: #90a4ae;
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.2s;
}

.top-nav nav a:hover::after {
	opacity: 1;
}
.thumb-button {
    position: fixed;
    top: 30%;
    right: 0;
    transform: translateY(-50%);
    background: #f57c00;
    line-height: 1;
    color: #fff;
    border: none;
    display: none;
    border-radius: 8px 0 0 8px;
    padding: 14px 16px;
    font-size: 1.2em;
    z-index: 1000;
    cursor: pointer;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
}
.thumb-button.show{
	display: block;
}
.vertical-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #00bcd4;
    display: flex;
	gap: 8px;
    flex-direction: column;
    justify-content: center;
    padding: 24px 32px;
    z-index: 1001;
    transform: translateX(-100%);
    transition: all 0.33s;
}
.vertical-menu.show {
	transform: translateX(0);
	box-shadow: 4px 0 16px rgba(0, 0, 0, 0.2);
}
.vertical-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8em;
    white-space: nowrap;
    transition: all 0.33s;
    padding: 8px 12px;
}
.vertical-menu a:hover {
    text-decoration: underline;
}


.button-section {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0px;
	margin-top: 40px;
	/* ✅ This adds space below the header */
}



.pale-blue {
	background-color: #f0f8ff;
}

.intro-box.pale-blue h2,
.intro-box.pale-warm h2 {
	font-size: 20px;
	font-weight: 700;
	font-style: italic;
	margin-bottom: 12px;
}
.page-container {
    display: flex;
    flex-direction: column;
    padding: 90px 0 0;
    box-sizing: border-box;
}
.teacher-zone-header {
    background: linear-gradient(to right, #263238, #546e7a);
    color: white;
    padding: 32px 12px;
    text-align: center;
    width: 100%;
}
.teacher-zone-header h1 {
    margin: 0;
}
.group-box {
    background-color: #ffffff;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-sizing: border-box;
    width: 100%;
    max-width: 75%;
    margin: 0 auto;
}
.section-divider {
	width: 33%;
	height: 1px;
	margin: 40px auto;
	background: linear-gradient(to right, transparent, #bbb, transparent);
}

.intro-layout {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;

}
.intro-text {
    flex: 1;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.2em;
    line-height: 1.6;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: 0.2px;
}


.game-title {
	font-weight: 700;
	font-style: italic;
	font-size: 20px;
}

.intro-box {
	padding: 0 16px;
	background-color: #ffffff;
	font-size: 1em;
	line-height: 1.6;
	max-width: 560px;
	margin: 0 auto;
	box-sizing: border-box;
}
.intro-video-column {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 60px;
}
.video-container {
    position: relative;
    width: 320px;
    aspect-ratio: 16 / 9;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-container video {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
}

.video-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: black;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: opacity 0.3s ease;
	z-index: 2;
}

.video-overlay img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0.7;
}
.play-icon {
    position: absolute;
    font-size: 32px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 360px;
    flex: 1;
    margin-top: 10px;
}
.buttons-grid a:not(.kids-button) {
	padding: 6px 10px;
	font-size: 0.85em;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	text-align: center;
	background-color: #eeeeee;
	color: #333;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
	transition: background-color 0.2s ease;
	border-radius: 4px;
	max-width: 240px;
	margin: 0 auto;
	width: 100%;
}

.group-box.pale-blue,
.intro-box.pale-blue {
	background-color: #f0f8ff !important;
}
.group-box.fade-edges {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 92.5%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 7.5%, black 92.5%, transparent 100%);
}
.pale-warm {
	background-color: #fffef3;
}

.buttons-grid a:not(.kids-button):hover {
	background-color: #ddd;
}

.kids-button {
	background-color: #f57c00;
	color: white;
	font-size: 0.9em;
	font-weight: 500;
	padding: 8px 16px;
	border-radius: 6px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	transition: background-color 0.2s ease;

	max-width: 240px;
	/* ✅ Narrow like the others */
	width: 100%;
	/* Responsive under max-width */
	margin: 16px auto 0;
	/* Top space + center horizontally */
}

.kids-button:hover {
	background-color: #e65100;
}

.intro-buttons .kids-button {
	font-size: 0.75em;
	padding: 6px 12px;
	border-radius: 6px;
	margin-top: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.button-container {
    text-align: center;
    margin-bottom: 48px;
    margin-top: 48px;
}
.button-container a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 20px;
	background-color: #1565c0;
	color: white;
	font-size: 1.1em;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s, box-shadow 0.2s;
}

.button-container a:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.button-container a i {
	margin-left: 10px;
}
.back-home-container {
    margin-top: auto;
    text-align: center;
    padding: 0 0 48px;
}
.back-home-button {
	display: inline-block;
	padding: 10px 20px;
	background-color: #cccccc;
	/* light grey */
	color: #222;
	font-size: 0.95em;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	border-radius: 0;
	/* square corners */
	transition: background-color 0.2s ease, color 0.2s ease;
}

.back-home-button:hover {
	background-color: #aaaaaa;
	color: white;
}

input {
    padding: 12px 24px;
    border-radius: 6px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 16px;
    line-height: 1;
}
.password-form button {
    font-size: 16px;
    line-height: 1;
    padding: 12px 24px;
    border-radius: 6px;
    outline: none;
    border: 1px solid #f57c00;
    background: #f57c00;
    color: #fff;
    font-weight: 500;
    font-family: 'Lato';
	transition: all 0.33s;
}
.password-form button:hover {
    background: transparent;
    color: #f57c00;
}