:root {
	--slate-blue: #1f242b;
	--pale-teal: #8db9ba;
	--off-white: #fcf7f8;
}

/* General sizes and styles */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	overflow: hidden;
}

body {
	background-color: var(--slate-blue);
	color: var(--off-white);
	height: 100dvh;
	width: 100dvw;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.custom-dashed-background-top {
	/* Code suggestion by google AI, modified for my needs */
	background-image: linear-gradient(
		to right,
		var(--pale-teal) 12px,
		transparent 12px
	);
	background-size: 12px 6px; /* 10px total for dash + gap, 1px height */
	background-repeat: repeat-x;
	border-bottom: 6px solid transparent; /* Or other border sides */
	background-position: bottom left;
}

.custom-dashed-background-btm {
	/* Code suggestion by google AI, modified for my needs */
	background-image: linear-gradient(
		to right,
		var(--pale-teal) 12px,
		transparent 12px
	);
	background-size: 42px 2px; /* 10px total for dash + gap, 1px height */
	background-repeat: repeat-x;
	border-bottom: 6px solid transparent; /* Or other border sides */
	background-position: bottom left;
}

a {
	text-decoration: none;
}

a:hover {
	cursor: pointer;
}

header a:visited {
	color: #fcf7f8;
}

header {
	text-align: center;
}

header h1 {
	font-size: 2.8rem;
}

header p {
	font-size: 1rem;
	color: #8db9ba;
}

/* FONTS */
.roboto-slab {
	font-family: 'Roboto Slab', serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
}

.fira-sans {
	font-family: 'Fira Sans', sans-serif;
	font-weight: 400;
	font-style: normal;
}

/* Landing Section */

section#landing {
	position: relative;
	opacity: 0;
	animation: fadeIn 2s forwards ease-out;
	height: 100%;
	transition: all 2s ease;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

section#landing header {
	transition: all 2s ease;
	position: relative;
	width: fit-content;
	white-space: nowrap;
	transform-origin: top left;
}

section#landing header h1 {
	font-size: 5rem;
	transition: all 2s ease;
	text-align: center;
	width: 100%;
}

section#landing header p {
	font-size: 1.5rem;
	color: var(--pale-teal);
	transition: all 2s ease;
	text-align: center;
	width: 100%;
	line-height: 0.6rem;
}

section#landing.shrink {
	height: 13dvh;
	padding: 0.2rem;
	min-height: 96px;
}

section#landing.shrink header {
	height: 100%;
}

header.left {
	left: 0;
	top: 0;
}

/* Gear Button SVG */

button#gear-btn {
	background-color: inherit;
	border: none;
	opacity: 0;
	animation: fadeIn 2s forwards ease-out;
	transform-origin: top right;
	transition-property: top, left, right, height;
	transition-duration: 2.8s;
	transition-timing-function: ease;
	width: 200px;
	height: 200px;
	aspect-ratio: 1/1;
}

button#gear-btn:hover {
	cursor: pointer;
}

button#gear-btn:hover:disabled svg#gears-animation path {
	fill: var(--pale-teal);
}

button#gear-btn:hover:disabled {
	cursor: auto;
}

button#gear-btn svg#gears-animation {
	width: 100%;
	height: 100%;
}

button#gear-btn:hover svg#gears-animation path {
	fill: var(--off-white);
}

path#gear-1,
path#gear-2 {
	transform-origin: center;
	transform-box: content-box;
	animation: spin 6s linear infinite forwards;
	transition: all 1s;
}

path#gear-2 {
	animation-direction: reverse;
}

path#triangle {
	animation: bounce 2s infinite both ease-in-out;
	transition: all 1s;
}

/* Animations */

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@keyframes bounce {
	50% {
		transform: translateY(-12px);
	}
	100% {
		transform: translateY(0px);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

/* Mobile Styles */

@media screen and (max-width: 768px) {
	.custom-dashed-background-top {
		/* Code suggestion by google AI, modified for my needs */
		background-image: linear-gradient(
			to right,
			var(--pale-teal) 12px,
			transparent 12px
		);
		background-size: 12px 4px; /* 10px total for dash + gap, 1px height */
		background-repeat: repeat-x;
		border-bottom: 4px solid transparent; /* Or other border sides */
		background-position: bottom left;
	}

	button#gear-btn {
		width: 40%;
	}

	section#landing header h1 {
		font-size: 2.6rem;
	}

	section#landing header p {
		font-size: 1.2rem;
	}

	section#landing.shrink {
		height: 72px;
		min-height: 72px;
	}

	section#landing.shrink header {
		height: 100%;
	}
	section#landing.shrink #gear-btn {
		height: 64px;
	}

	header.left {
		left: 0;
		top: 0;
	}

	section#landing.shrink header h1 {
		font-size: 2rem;
	}

	section#landing.shrink header p {
		font-size: 0.8rem;
		padding: 0;
	}
}
