main {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2em;
	padding: 2em;
}

h1 {
	font-size: 3.2em;
	text-align: center;
	margin-bottom: 0;
}

nav {
	width: fit-content;
	display: flex;
	justify-content: center;
}
.navlist {
	width: 100%;
	position: static;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	border: none;
	list-style: none;
}
nav:hover .navlist { width: 100%; }

.navlist li a {
	width: 100%;
	/* idfk why this doesn't make it square, but i guess the rectangle doesn't look that bad */
	aspect-ratio: 1 / 1; 
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 16px;
	background: var(--color-border);
	border-radius: 12px;
	font-size: 1.4em;
	text-align: center;
	text-decoration: none;
	transition: color 300ms, transform 300ms;
}

.navlist li a i { font-size: 2.4em; }

.navlist li a:hover {
	color: var(--color-accent);
	transform: scale(105%);
}
.navlist li a:active { transform: scale(95%); }

/* Hide the home button on home */
.navlist li:first-child { display: none; }

/* Mobile */
@media (max-width: 700px) {
	h1 { font-size: 2em; }
	.navlist { grid-template-columns: repeat(2, 1fr); }
	.navlist li a { font-size: 1.2em; }
}

