/* 
*   Kevin Powell
*   https://youtu.be/cCAtD_BAHNw 
*/

*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
	padding: 0;
	font: inherit; /* Get rid of all font sizes and heights */
}

html {
	color-scheme: dark light; /* Default dark */
	hanging-punctuation: first last; /* Not supported in Chrome */
}

body {
	min-height: 100vh;
}

/* Media responsive */
img,
picture,
svg,
video {
	display: block;
	max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap: balance;
}

p {
	/* max-width: 75ch; */
	text-wrap: pretty; /* Prevents orphans on lines */
}

@media (prefers-reduced-motion: no-preference) {
	:has(:target) {
		scroll-behavior: smooth;
		scroll-padding-top: 3rem;
	}
}

/*==========================================================
 ROOT */

:root {
	--bg-info: black;
	--text-info: rgb(173, 173, 192);
	--text-map: white;
	--grid: rgba(102, 102, 107, 0.47);
	/* Define all project color here */
	--interactive: rgb(0, 0, 184);
	--app: rgb(139, 0, 178);
	--audio: rgb(196, 0, 56);
	--vis: rgb(163, 98, 0);
	--av: rgb(126, 139, 0);

	--bg-map: var(--bg-info);
}

::-webkit-scrollbar {
	display: none;
}
#info-page {
	-ms-overflow-style: none; /* IE and Edge */
	scrollbar-width: none; /* Firefox */
}

/*==========================================================
 TEXT */
body {
	background-color: var(--bg-map);
	color: var(--text-info);
	/* catch default & info text font */
	font-family: "Source Code Pro", monospace;
}

#info-page {
	color: var(--text-info);
}
#map-main * p {
	color: var(--text-map);
	/* map font */
}

h1 {
	font-size: 3rem;
	font-family: "Major Mono Display", monospace;
	font-weight: bold;
}
h2, h3 {
	font-size: 2rem;
	margin-bottom: 20px;
	font-family: "Major Mono Display", monospace;
}
h3 {
	font-size: 1.7rem;
}
p {
	font-size: 1rem;
}
a {
	text-decoration: none;
	color: var(--av);
	transition: color 0.3s;
}
a:hover {
	color: var(--interactive);
}

ul {
	list-style-type: none;
	padding-bottom: 20px;
}
li {
	position: relative;
	padding-left: 3rem; /* Create space for custom dot */
	line-height: 2rem;
}
li span {
	color: var(--text-info);
}
li::before {
	content: "•";
	font-size: 5rem;
	font-weight: bold;
	position: absolute;
	top: -20%;
	left: 0;
}
.line {
	width: 100%;
	height: 2px;
	background-color: var(--text-info);
	margin: 20px 0px;
}
.interactive {
	color: var(--interactive);
}
.app {
	color: var(--app);
}
.audio {
	color: var(--audio);
}
.vis {
	color: var(--vis);
}
.av {
	color: var(--av);
}
.student {
	color: var(--bg-info);
}

nav {
	position: fixed;
	display: flex;
	top: 0;
	cursor: pointer;
	z-index: 100;
	font-size: 1.4rem;
	padding-left: 12px;

	font-weight: bold;
	transition: opacity 0.5s;
}
#shuffle {
	padding-left: 1rem;
}
#reset:hover,
#shuffle:hover {
	color: var(--audio);
}
#reset:hover span,
#shuffle:hover span {
	opacity: 1;
}
nav span {
	opacity: 0;
	transition: opacity 0.5s ease;
}

#acknowledgement {
	padding-bottom: 20px;
}
