
body {
	padding: 1rem 2rem;
	height: 100vh;
	max-width: 25%;
	overflow: hidden;
	background-color: rgb(18, 18, 18);
	background-image: url("/assets/wallpaper.png");
	background-size: cover;
	background-position: left bottom;
	background-repeat: no-repeat;

	color: white;
	font-size: 14px;
	text-shadow: 0 0 0px rgba(255, 255, 255, 1);

	transition: text-shadow 0.2s ease, color 0.2s ease;

	font-family: monospace;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('assets/thin_stripe.png');
	background-repeat: repeat;
	background-size: 64px 64px;
	animation: moveBackground 3s linear infinite;
	opacity: 0.02;
	pointer-events: none;
	z-index: -1;
}

@keyframes moveBackground {
	0% {
		background-position: 0 0;
	}
	100% {
		background-position: 64px 0;
	}
}

::selection {
	background-color: white;
	color: black;
	text-shadow: 0 0 0px black;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

section {
	animation: fadeIn 0.5s ease-in;
	animation-fill-mode: backwards;
	will-change: opacity;
}

a {
	color: inherit;
	text-decoration: none;
	transition: text-shadow 0.2s ease, color 0.2s ease, background-color 0.3s ease;

	&:hover {
		color: white !important;
		text-shadow: 0 0 0px rgba(255, 255, 255, 1);
	}

	&:visited {
		color: inherit;
	}
}

.inline {
	text-decoration: underline;
}

@keyframes clickFlash {
	0% {
		background-color: white;
	}
	100% {
		background-color: transparent;
	}
}

a.click-flash {
	animation: clickFlash 0.25s ease-out;
	will-change: background-color;
}

body:has(a:hover) {
	color: rgb(225, 225, 225);
	text-shadow: none;
}

img {
	transition: opacity 0.2s ease;
}

body:has(a:hover) img {
	opacity: 0.8;
}

.scanlines {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(
		0deg,
		rgba(0, 0, 0, 0.12) 0px,
		rgba(0, 0, 0, 0.12) 2px,
		transparent 2px,
		transparent 5px
	);
	pointer-events: none;
	z-index: 10;
}

@media (max-width: 1024px) {
	body {
		max-width: 50%;
	}
}
