@font-face {
	font-family: "Caffeine";
	src: url("assets/fonts/caffeine.woff2");
}
@font-face {
	font-family: "Goudy";
	src: url("assets/fonts/goudy.ttf");
}
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	touch-action: manipulation;
}
body {
	font-family: "Goudy", serif;
	background-color: black;
	color: white;
}
.shuffle {
	font-family: "Caffeine", sans-serif;
}

/* Overlays */
.grain {
	position: fixed;
	top: 0;
	left: 0;
	width: 120vw;
	height: 120vh;
	animation-name: grain;
	animation-duration: 1s;
	animation-iteration-count: infinite;
	animation-timing-function: steps(3);
	opacity: 0.1;
	pointer-events: none;
	z-index: 9999;
}
@keyframes grain {
	0% {
		left: -20vw;
		top: -20vh;
	}
	33% {
		left: 0vw;
		top: -20vh;
	}
	66% {
		left: 0vw;
		top: 0vh;
	}
	100% {
		left: -20vw;
		top: 0vh;
	}
}
.vignette {
	z-index: 99;
	pointer-events: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: linear-gradient(0deg, black 0%, transparent 20vw), linear-gradient(90deg, black 0%, transparent 20vw), linear-gradient(180deg, black 0%, transparent 20vw), linear-gradient(270deg, black 0%, transparent 20vw);
}

/* UI */
.return {
	position: absolute;
	top: 20px;
	left: 40px;
	font-size: 20px;
	font-family: "Goudy", serif;
	z-index: 999;
	text-decoration: none;
	color: white;
	transform: rotate(-5deg);
	cursor: pointer;
}
.return-circle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 200%;
	height: 200%;
	display: none;
	pointer-events: none;
}
.return:hover {
	opacity: 1;
}
.return:hover .return-circle {
	display: block;
}
.return:active {
	opacity: .5;
	filter: blur(1px);
}
.page-title {
	position: absolute;
	top: 20px;
	right: 40px;
	color: white;
	font-size: 20px;
	z-index: 999;
	transform: rotate(5deg);
}
.page-title-underline {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 150%;
	height: 150%;
	pointer-events: none;
}
@media screen and (max-width: 1000px) {
	.return {
		top: 10px;
		left: 10px;
	}
	.page-title {
		right: 10px;
		top: 50px;
	}
}

/* Content */
@keyframes instructions-in-out {
	0% {
		filter: blur(1px);
		opacity: 0;
	}
	40% {
		filter: blur(0px);
		opacity: 1;
	}
	80% {
		filter: blur(0px);
		opacity: 1;
	}
	100% {
		filter: blur(1px);
		opacity: 0;
	}
}
.instructions {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-family: "Goudy", serif;
	/* gap: 10px; */
	font-size: 30px;
	padding: 20px;
	z-index: 9;
	opacity: 0;
	filter: blur(1px);
	pointer-events: none;
	animation: instructions-in-out 6s forwards;
}
.instructions img {
	height: 50px;
}
@keyframes content-in {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}
.content-in {
	animation: content-in 3s 1s forwards;
	opacity: 0;
}
.container {
	overflow: hidden;
	width: 100vw;
	height: 100dvh;
	position: relative;
}