@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

* {box-sizing: border-box;}

* {
	color: white;
	font-family: 'Orbitron', sans-serif;
	user-select: none;
	font-size: 1.5rem;
}

:root {
	font-family: 'Orbitron', sans-serif;
	background-color: black;
	border-color: white;
	font-size: medium;
}

html, body {
	height: 100%;
	width: 100%;
	margin: 0%;
	overflow: hidden;
}

body { 
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	gap: 10px;
}

body > * { 
	flex: 0;
}

.card {
	flex: 1 1;
	display: flex;
	height: 100%;
	width: 100%;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

.screen {
	border-radius: 10px;
	position: absolute;
	width: 100%;
	height: 100%;
	animation: load 1s ease;
}

#display {
	image-rendering: pixelated;
}

#hud {
	overflow: hidden;
}

#overlay {
	border-style: solid;
	pointer-events: none;
}

.btn:active {
	background-color: white;
	color: black;
}

.btn > * {
	pointer-events: none;
}

.toggle {
	background-color: red;
	color: black
}

.toggle > * {
	pointer-events: none;
}

.toggle[checked] {
	background-color: green;
	color: white;
}

.toggle>span[switchlbl] {
	color:inherit;
}

.toggle>span[switchlbl]::after {
	content: " : OFF ";
}

.toggle[checked]>span[switchlbl]::after {
	content: " : ON ";
}

.flk {
	animation: flicker 0.2s step-end infinite;
}

.flk:nth-child(3n) {animation-delay: -0.03s;}
.flk:nth-child(3n+1) {animation-delay: -0.07s;}
.flk:nth-child(3n+2) {animation-delay: -0.11s;}

@keyframes load {
	from {width: 0%; height: 0%;}
	to {width: 100%; height: 100%;}
}

@keyframes flicker {
	0%, 33%, 100% {opacity: 0.83;}
	32.999%, 66% {opacity: 0.75;}
}

@keyframes clicked {
	0%, 50%, 75% {opacity: 0;}
	33%, 60%, 100% {opacity: 0.75;}
}

@media (orientation: landscape) {
	body {flex-direction: row;}
}

@media (orientation: portrait) {
	body {flex-direction: column;}
}
