* {
	box-sizing: border-box;
}

:root {
	--brand-indigo: #4f5de2;
	--brand-blue: #3888f2;
	--brand-cyan: #38c9c5;
	--brand-deep: #1f2f74;
	--brand-soft: #eef2ff;
	--text-main: #1a2550;
	--text-soft: #4f5e95;
	--surface: #ffffff;
	--border: #d6dcff;
}

body {
	margin: 0;
	font-family: "Manrope", "Segoe UI", sans-serif;
	line-height: 1.5;
	color: var(--text-main);
	height: 100svh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background:
		radial-gradient(circle at 12% 10%, #fbfcff 0%, #eef2ff 42%, transparent 43%),
		radial-gradient(circle at 95% 2%, #deecff 0%, transparent 34%),
		linear-gradient(180deg, #f9faff 0%, #edf1ff 100%); 
}

.hero {
	padding: 1rem 1.1rem 1.15rem;
	background: transparent;
	color: #111111;
	border-bottom-left-radius: 28px;
	border-bottom-right-radius: 28px;
	flex: 1;
	overflow-y: auto;
}

.hero-shell {
	max-width: 1080px;
	margin: 0 auto;
}

.top-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.35rem 0.2rem;
}

.brand-lockup {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	cursor: pointer;
}

.brand-lockup:hover .brand-logo {
	opacity: 0.9;
	transform: translateY(-1px);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-logo {
	width: clamp(100px, 14vw, 150px);
	height: auto;
	display: block;
	border-radius: 0;
	background: transparent;
	padding: 0;
	box-shadow: none;
}

.nav-links {
	display: flex;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links a {
	color: var(--brand-indigo);
	text-decoration: none;
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: 0.01em;
	white-space: nowrap;
	padding: 0.3rem 0.45rem;
	border-radius: 8px;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
	background: rgba(79, 93, 226, 0.1);
	transform: translateY(-1px);
}

.hero-content {
	width: 100%;
	max-width: none;
	margin-top: 1.35rem;
}

.hero-content marquee {
	display: block;
	width: 100%;
}

.eyebrow {
	display: inline-block;
	margin: 0 0 0.7rem;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.35rem 0.6rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
}

.hero-content h1 {
	font-family: "Sora", "Manrope", sans-serif;
	font-size: clamp(1.35rem, 2.15vw, 2rem);
	line-height: 1.1;
	margin: 0 0 0.45rem;
	white-space: nowrap;
}

.hero-content p {
	margin: 0 0 0.75rem;
}

.bulb-demo {
	margin-top: 1.1rem;
	text-align: center;
}

.bulb-controls {
	display: flex;
	justify-content: center;
	gap: 0.6rem;
	flex-wrap: wrap;
	margin-bottom: 0.85rem;
}

.bulb-btn {
	background: linear-gradient(145deg, var(--brand-indigo) 0%, var(--brand-blue) 100%);
	color: #ffffff;
	border: none;
	border-radius: 10px;
	padding: 0.56rem 0.88rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bulb-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 16px rgba(48, 76, 202, 0.25);
}

.bulb-image {
	width: 220px;
	height: 220px;
	object-fit: contain;
	background-color: transparent;
	display: block;
	margin: 0 auto;
}

.bulb-image.is-off {
	mix-blend-mode: multiply;
}

#countdown-btn {
	padding: 0.5rem 0.78rem;
	font-size: 0.92rem;
}

.hero-actions {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-top: 1rem;
	flex-wrap: wrap;
}

.secondary-cta {
	display: inline-block;
	padding: 0.52rem 0.9rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	text-decoration: none;
	color: #f8fbff;
	font-weight: 700;
	font-size: 0.92rem;
	transition: background-color 0.2s ease;
}

.secondary-cta:hover {
	background: rgba(255, 255, 255, 0.16);
}

#countdown-result {
	min-height: 1.2rem;
	margin-top: 0.8rem;
	font-weight: 600;
	color: #111111;
}

main {
	max-width: 980px;
	margin: 0 auto;
	padding: 0.85rem 1rem 0.8rem;
	flex: 1;
	display: flex;
	align-items: center;
}

.panel {
	background: var(--surface);
	border: 2px solid var(--border);
	border-radius: 14px;
	padding: 0.9rem 1rem;
	margin-bottom: 0;
	width: 100%;
	box-shadow: 0 14px 30px rgba(41, 59, 140, 0.08);
}

.panel h2 {
	margin-top: 0.2rem;
	margin-bottom: 0.55rem;
	font-family: "Sora", "Manrope", sans-serif;
	font-size: 1.2rem;
}

#tracks.panel {
	padding-bottom: 0.9rem;
}

.track-select-label {
	display: inline-block;
	margin-bottom: 0.35rem;
	font-weight: 700;
	color: var(--text-main);
}

.track-select {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid #a8b4f5;
	border-radius: 10px;
	background: #ffffff;
	color: var(--text-main);
	font-weight: 600;
	margin-bottom: 0.65rem;
}

.track-detail {
	padding: 0.7rem 0.8rem;
	border: 1px solid #d7ddff;
	border-radius: 10px;
	background: #f5f7ff;
}

.track-detail h3 {
	margin: 0 0 0.2rem;
	font-size: 1rem;
}

.track-detail p {
	margin: 0;
	color: var(--text-soft);
	font-size: 0.9rem;
	line-height: 1.35;
}

.panel > p {
	color: var(--text-soft);
}

.stats-grid,
.tracks-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.55rem;
}

.stat-card,
.track-card {
	border: 1px solid #d7ddff;
	border-radius: 10px;
	padding: 0.65rem 0.7rem;
	background: var(--brand-soft);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover,
.track-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(61, 88, 205, 0.14);
}

.stat-card h3,
.track-card h3 {
	margin-top: 0.1rem;
	margin-bottom: 0.22rem;
	font-size: 1rem;
}

.stat-card p,
.track-card p {
	margin: 0;
	color: var(--text-soft);
	font-size: 0.9rem;
	line-height: 1.35;
}

/* Intentional typo for assignment: this selector does not match .schedule-list in HTML. */
.shedule-list {
	margin: 0;
	padding-left: 1rem;
}

.filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.filter-btn,
.assignment-filter-btn,
#countdown-btn,
form button {
	background: linear-gradient(145deg, var(--brand-indigo) 0%, var(--brand-blue) 100%);
	color: #ffffff;
	border: none;
	border-radius: 10px;
	padding: 0.56rem 0.88rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.schedule-list {
	margin: 0;
	padding-left: 1rem;
}

.class-dates-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

.class-dates-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.7rem;
	padding: 0.65rem 0.8rem;
	border: 1px solid #d7ddff;
	border-radius: 10px;
	background: #f4f7ff;
	flex-wrap: wrap;
}

.class-day {
	font-weight: 700;
	color: #24347f;
}

.class-time {
	font-size: 0.86rem;
	font-weight: 700;
	color: #123a66;
	background: #d9edff;
	border: 1px solid #b8daff;
	padding: 0.25rem 0.5rem;
	border-radius: 999px;
}

.progress-shell {
	height: 14px;
	border-radius: 999px;
	background: #dfe5ff;
	overflow: hidden;
	margin-bottom: 0.8rem;
}

.progress-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #2fb7c6 0%, #4f5de2 100%);
	transition: width 0.3s ease;
}

.resource-grid,
.showcase-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.75rem;
}

.showcase-card {
	border: 1px solid #d7ddff;
	border-radius: 10px;
	padding: 0.85rem;
	background: #f5f7ff;
}

.resource-grid a {
	text-decoration: none;
	padding: 0.65rem;
	border-radius: 9px;
	background: #edf1ff;
	color: #1e2c71;
	font-weight: 700;
	border: 1px solid #d6ddff;
}

.resource-grid a:hover {
	background: #e1e8ff;
}

select {
	padding: 0.58rem;
	border: 1px solid #a8b4f5;
	border-radius: 6px;
	background: #ffffff;
}

.leaderboard-list,
.announcement-list {
	margin: 0.4rem 0 0;
	padding-left: 0;
	list-style: none;
}

.leaderboard-list li {
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.faq-list details {
	border: 1px solid #d7ddff;
	border-radius: 8px;
	padding: 0.55rem 0.7rem;
	background: #f6f8ff;
	margin-bottom: 0.5rem;
}

.faq-list summary {
	cursor: pointer;
	font-weight: 700;
}

body.dark-mode {
	color: #e4e9ff;
	background: linear-gradient(180deg, #111a43 0%, #151f4f 100%);
}

body.dark-mode .panel {
	background: #1b275f;
	border-color: #3e4f9a;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

body.dark-mode .panel > p,
body.dark-mode .stat-card p,
body.dark-mode .track-card p {
	color: #c8d5ff;
}

body.dark-mode .stat-card,
body.dark-mode .track-card,
body.dark-mode .assignment-card,
body.dark-mode .showcase-card,
body.dark-mode .faq-list details,
body.dark-mode .resource-grid a {
	background: #253476;
	border-color: #465cb6;
	color: #e4e9ff;
}

body.dark-mode .class-dates-list li {
	background: #253476;
	border-color: #465cb6;
}

body.dark-mode .class-day {
	color: #e4e9ff;
}

body.dark-mode .class-time {
	color: #0f1f4f;
	background: #c6d5ff;
	border-color: #aebef5;
}

body.dark-mode input,
body.dark-mode select {
	background: #1a2558;
	border-color: #465cb6;
	color: #f2f4ff;
}

.filter-btn:hover,
#countdown-btn:hover,
form button:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 16px rgba(48, 76, 202, 0.25);
}

.filter-btn.active {
	background: linear-gradient(145deg, #2d3f9f 0%, #3c5ad4 100%);
}

.assignment-filter-btn.active {
	background: linear-gradient(145deg, #2d3f9f 0%, #3c5ad4 100%);
}

form {
	display: grid;
	gap: 0.62rem;
	max-width: 380px;
}

label {
	font-weight: 600;
	font-size: 0.92rem;
}

input {
	padding: 0.58rem;
	border: 1px solid #a8b4f5;
	border-radius: 6px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
	border-color: var(--brand-blue);
	box-shadow: 0 0 0 3px rgba(56, 136, 242, 0.18);
}

footer {
	padding: 0.75rem 1rem;
	text-align: center;
	background: linear-gradient(130deg, #212f78 0%, #3f53be 68%, #2fa8cd 100%);
	color: #eef2ff;
	flex-shrink: 0;
}

.footer-brand {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	flex-wrap: wrap;
	margin: 0;
	font-size: 0.92rem;
}

.footer-brand-logo {
	width: 20px;
	height: 20px;
	object-fit: cover;
	border-radius: 4px;
	background: #ffffff;
	padding: 1px;
}

@media (max-width: 700px) {
	.top-nav {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.brand-logo {
		width: 110px;
	}

	.nav-links {
		flex-wrap: wrap;
		gap: 0.4rem;
	}

	.hero-content {
		margin-top: 1rem;
	}

	.hero-content h1 {
		font-size: 1.25rem;
		white-space: normal;
	}

	.bulb-image {
		width: 180px;
		height: 180px;
	}

	.tracks-grid {
		grid-template-columns: 1fr;
	}

	main {
		padding: 0.7rem 0.85rem 0.7rem;
	}

	.panel {
		padding: 0.82rem 0.9rem;
	}

	footer {
		padding: 0.65rem 0.85rem;
	}
}
#qr-code{
	padding: 0.5rem;
	width:12rem;
	border-radius: 1rem;
	}
	#container{
		border: 1px solid black;
		border-radius: 1rem;
		display: flex;
		justify-content: center;
		height: 400px;
		width: 300px;
		margin-left: 480px;
	}
	#card{
          align-items: center;
		  background-color: hsl(0, 1%, 33%);
		  border-radius: 1rem;
	}
