@font-face {
	font-family: 'inter';
	src: url('../fonts/variable/inter.ttf') format('truetype');
	font-weight: 100 900;
}

@keyframes fadeOpacityIn {
	0% {
		opacity: 0;
	}

	10% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

:root {
	--main-width: min(80%, 1000px);
	--bg-color: #111;
	--fg-color: #eee;
	--fill-color: #181818;
	--fill-color-hover: #1a1a1a;
	--text-color: #ddd;
	--text-color-light: #888;
	--tone-color: 120, 40, 22;
	--tone-color-hover: 150, 50, 30;
	--tone-color-light: 196, 65, 36;
	--tone-color-rgba: rgba(var(--tone-color), 0.75);
	--tone-color-shadow: rgba(var(--tone-color-light), 0.65);
	--border-color: rgba(220, 220, 220, 0.2);
	--border-color-opaque: rgba(44, 44, 44);
	--border-radius: 0px;
	--anim-speed: 0.15s;
	--anim-speed-slow: 0.3s;
	--font-weight-light: 200;
	--font-weight-normal: 300;
	--font-weight-bold: 700;
	--font-weight-strong: 800;
	--link-color: #ccf;
	--visited-color: #cad;
	color: var(--fg-color);
	border-color: var(--fg-color);
	box-shadow: none;
	scroll-padding-top: 100px;
	overflow-x: clip;
}

* {
	font-weight: var(--font-weight-normal);
	font-family: 'inter', sans-serif;
	font-size: 20px;
	/* transition: font-size 0.25s; */
	
	@media screen and (max-width: 800px) {
		font-size: 18px;
	}
	
	@media screen and (max-width: 600px) {
		font-size: 16px;
	}
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background-color: var(--bg-color);
	margin: 0;
	animation: fadeOpacityIn 1s ease-out 0s;
}

main {
	width: var(--main-width);
	margin: auto;

	@media screen and (max-width: 800px) {
		width: 90%;
	}
}

main.fullwidth {
	width: 100%;
}

space, space-s, space-l {
	display: block;
}

div.space, space {
	height: 80px;
}

div.space-s, space-s {
	height: 20px;
}

div.space-l, space-l {
	height: 160px;
}

section {
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	background: var(--fill-color);
	box-sizing: border-box;
}

section:first-child {
	margin-top: 0px;
}

section:last-child {
	margin-bottom: 0px;
}

.vertical {
	display: flex;
	flex-direction: column;
}

.centered {
	display: flex;
	flex-direction: column;
	justify-content: center !important;
	width: auto;
	margin-left: auto !important;
	margin-right: auto !important;
}

.align-left {
	text-align: left;
	text-align-last: left;
}

.align-right {
	text-align: right;
	text-align-last: right;
}

.align-center {
	text-align: center;
	text-align-last: center;
}

.disabled {
	opacity: 0.3;
	filter: grayscale(50%);
}

.hidden {
	font-size: inherit;
	font-weight: inherit;
	font-style: inherit;
	opacity: 0;
}

.separator {
	background-color: rgba(220, 220, 220, 0.2);
	height: 1px;
	width: 100%;
	margin: 80px 0 16px;
}

.separator-tight {
	background-color: rgba(220, 220, 220, 0.2);
	height: 1px;
	width: 100%;
	margin: 80px 0 16px;
}

.force-scrollbar {
	overflow-y: scroll;
}

.box {
	justify-content: center;
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	min-height: 2ch;
	padding: 16px;
}

.box:first-child {
	margin-top: 0px;
}

:link {
	color: var(--link-color);
	text-decoration-style: dotted;
}

:visited {
	color: var(--visited-color);
}

.fade-in {
	opacity: 0;
	transition: opacity 0.8s, transform 0.8s;
	transform: translateY(2vh);
}

.fade-in.inview {
	opacity: 1;
	transform: translateY(0);
}

.alert-box {
	background-color: rgba(255, 0, 0, 0.07);
	border: 1px solid rgba(255, 0, 0, 0.6);
	border-radius: var(--border-radius);
	padding: 16px;
	margin: 16px 0 16px;
}

.warn-box {
	background-color: rgba(200, 200, 0, 0.07);
	border: 1px solid rgba(200, 200, 0, 0.6);
	border-radius: var(--border-radius);
	padding: 16px;
	margin: 16px 0 16px;
}

table.fade-in {
	opacity: 1;
	transform: none;
}

table.fade-in tr {
	opacity: 0;
	transition: opacity 0.8s, transform 0.8s;
	transform: translateY(2vh);
}

table.inview tr {
	opacity: 1;
	transform: translateY(0);
}

tr {
	--fade-delay: 0.1s;
}

.fade-in tr:nth-child(1) { transition-delay: calc(var(--fade-delay) * 1) !important; }
.fade-in tr:nth-child(2) { transition-delay: calc(var(--fade-delay) * 2) !important; }
.fade-in tr:nth-child(3) { transition-delay: calc(var(--fade-delay) * 3) !important; }
.fade-in tr:nth-child(4) { transition-delay: calc(var(--fade-delay) * 4) !important; }
.fade-in tr:nth-child(5) { transition-delay: calc(var(--fade-delay) * 5) !important; }
.fade-in tr:nth-child(6) { transition-delay: calc(var(--fade-delay) * 6) !important; }
.fade-in tr:nth-child(7) { transition-delay: calc(var(--fade-delay) * 7) !important; }
.fade-in tr:nth-child(8) { transition-delay: calc(var(--fade-delay) * 8) !important; }
.fade-in tr:nth-child(9) { transition-delay: calc(var(--fade-delay) * 9) !important; }
.fade-in tr:nth-child(10) { transition-delay: calc(var(--fade-delay) * 10) !important; }
.fade-in tr:nth-child(11) { transition-delay: calc(var(--fade-delay) * 11) !important; }
.fade-in tr:nth-child(12) { transition-delay: calc(var(--fade-delay) * 12) !important; }
.fade-in tr:nth-child(13) { transition-delay: calc(var(--fade-delay) * 13) !important; }
.fade-in tr:nth-child(14) { transition-delay: calc(var(--fade-delay) * 14) !important; }
.fade-in tr:nth-child(15) { transition-delay: calc(var(--fade-delay) * 15) !important; }
.fade-in tr:nth-child(16) { transition-delay: calc(var(--fade-delay) * 16) !important; }
.fade-in tr:nth-child(17) { transition-delay: calc(var(--fade-delay) * 17) !important; }
.fade-in tr:nth-child(18) { transition-delay: calc(var(--fade-delay) * 18) !important; }
.fade-in tr:nth-child(19) { transition-delay: calc(var(--fade-delay) * 19) !important; }

.foldout {
	cursor: pointer;
	border: 1px solid var(--border-color);
	background: var(--fill-color);
	margin-bottom: 0;
	padding: 4px;
}

.foldout + .expandable {
	margin-top: 0;
	border-top: none;
}

.foldout::before {
	font-size: 50%;
	content: '▶';
	display: inline-block;
	margin-right: 8px;
	margin-left: 8px;
	transition: transform var(--anim-speed);
	vertical-align: 25%;
	user-select: none;
}

.foldout.expanded::before {
	transform: rotate(90deg);
}

.expandable {
	max-height: 0;
	overflow: hidden;
	transition: max-height var(--anim-speed-slow) ease-out;
}