@font-face {
	font-family: MSGothic;
	src: url("https://files.catbox.moe/zv0zu3.ttf") format("truetype");
}

:root {
	--site-font-family: "MSGothic", monospace;
	--site-font-size: 12px;
}

html, body {
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0;
	justify-content: center;
	font-family: var(--site-font-family);
	font-size: var(--site-font-size);
	color: black;
	image-rendering: pixelated;
	overflow: hidden;
}

body * {
	font-family: var(--site-font-family) !important;
	font-size: var(--site-font-size) !important;
}

img {
	cursor: help; 
}

a {
	color: #757781
}

a:link {
	color: #757781;
}
		
a:visited {
	color: #5c6178;
}
		
a:hover {
	text-decoration: underline;
}

#s-m-t-tooltip {
	 z-index: 1000000000;
	 line-height: 140%;
	 text-align:center;
	 border-radius: 5px;
	 max-width: 300px;
	 word-wrap: normal;
	 padding: 5px;
	 display: block;
	 margin:10px;
	 -o-transition: all 0.3s ease-out;
	 -webkit-transition: all 0.3s ease-out;
	 -moz-transition: all 0.3s ease-out;
	 color: white;
	 text-decoration: bold;
	 transform: translate-x(10px);
	 filter:
		drop-shadow(0px 1px black)
		drop-shadow(0 -1px black) 
		drop-shadow(1px 0 black) 
		drop-shadow(-1px 0 black);
	 }

.title-bar {
	cursor: move;
}

.icon {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 80px;
	height: auto;
	left: 30px;
	margin: 15px;
	align-items: center;
	text-align: center;
	color: black;
	border: none;
	cursor: pointer;
	image-rendering: pixelated; 
	z-index: 1;
}

.icon img {
	height: 75px;
	width: 75px;
}

.icon:hover {
	border: 1px dotted cornflowerblue
}

.icon::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(100,149,237,0.2);
	opacity: 0;
	transition: opacity 0.2 ease;
	pointer-events: none;
	z-index: 10;
}

.icon:hover::after {
	opacity: 1;
}

.icon a {
	color: #757781;
	text-shadow:
		-1px -1px 0 white,
		1px -1px 0 white,
		-1px  1px 0 white,
		1px  1px 0 white;
}

/*crt tutorial from https://oudkee.neocities.org/tutorials/tutcrt. thank you!*/	
.crt {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: 100vw;
	transform: scale(1.002) perspective(1000px) translateZ(0);
	pointer-events: none;
	z-index: 1000;
}
.crt::before {
	content: " ";
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: linear-gradient(
			rgba(18, 16, 16, 0) 50%, 
			rgba(0, 0, 0, 0.25) 50%), 
		linear-gradient(90deg, 
			rgba(255, 0, 0, 0.06), 
			rgba(0, 255, 0, 0.02), 
			rgba(0, 0, 255, 0.06));
	z-index: 2;
	background-size: 100% 2px, 2px 100%;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
	pointer-events: none;
}

@keyframes flicker {
	0% {
		opacity: 0.17;
	}
	20% {
		opacity: 0.10;
	 }
	40% {
		opacity: 0.15;
	}
	60% {
		opacity: 0.19;
	}
	80% {
		opacity: 0.16;
	}
	100% {
		opacity: 0.18;
	}
}

.crt::after {
	content: " ";
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	z-index: 100;
	pointer-events: none;
	animation: flicker 0.25s infinite;
	background: radial-gradient(
		ellipse at center, 
		rgba(0,0,0,0) 60%,
		rgba(0,0,0,0.4) 75%,
		rgba(0,0,0,0.6) 100%
	);
	border-radius: 8px;
	mix-blend-mode: multiply;
}