/* You know where to find me */
/*       Seek the mark       */

@font-face {
	font-family: 'Monocraft';
	src: url('./Monocraft.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

:root {
	--fwah: cubic-bezier(0.5,0.5,0,1);
	--uiA: #44F;
	--uiB: #227;
	--uiC: #111135;
}

input {
	all: unset;
	appearance: none;
	-webkit-appearance: none;
	font: inherit;
	color: inherit;
	box-sizing: border-box;
}

body {
	background: black;
	color: white;
	text-align: center;
	padding: 0;
	margin: 0;
	border: 0;
	font-family: Monocraft;
}

#all-seeing-eye {
	overflow: hidden;
	position: absolute;
}

/* Page zoom ain't got nothin' on how I do my CSS
      Try zooming, door stuck, it's not moving    */

.utility-bar {
	position: absolute;
	left: 0;
	width: 100vw;
	width: 100dvw;
	height: fit-content;
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-items: center;
	gap: 0;
	background: var(--uiB);
	font-size: 3vmin;
	transition: left 1.5s var(--fwah);
	z-index: 1;
}

/* these are overdriven to make it feel snappier going off the screen, instead of gently placing itself one pixel off the side */
.utility-bar:has(~ #ui-wrapper #userField:focus) {
	left: 120%;
}
#ui-wrapper:has(#userField:focus) + .utility-bar {
	left: -120%;
}

header {
	top: 0;
	border-bottom: 1.5vh double var(--uiC);
	justify-content:space-around;
}

#TITLECARD {
	flex-basis: 100%;
}

footer {
	bottom: 0;
	border-top: 1.5vh double var(--uiC);
	justify-content:center;
}

#ui-wrapper {
	width: 100vw;
	width: 100dvw;
	height: 100vh;
	height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

#userField {
	background: transparent;
	color: transparent;
	width: 100vw;
	width: 100dvw;
	border: 0 double transparent;
	outline: 0 double transparent;
	padding: 0;
	transition: border 0.5s var(--fwah), outline 1s var(--fwah), padding 1.5s var(--fwah);
	pointer-events: none;
	z-index: -2;
	--decorBorder: 5dvh double var(--uiC);
	--decorOutline: 2.5dvh double var(--uiB);
}

#userField::selection {
	background: transparent;
	color: transparent;
}

#userField:focus {
	border-top: var(--decorBorder);
	border-bottom: var(--decorBorder);
	outline: var(--decorOutline);
	padding-top: 30dvh;
	padding-bottom: 30dvh;
}

.bool {
	appearance: none;
	color: gray;
	background: black;
	border: 0.3vmin solid var(--uiC);
	width: fit-content;
	padding-left: 1vmin;
	padding-right: 1vmin;
	height: 4vmin;
	border-radius: 1.227vmin;
	font-size: 3vmin;
	text-align: center;
	font-family: Monocraft;
	box-sizing: border-box;
	user-select: none;
	line-height: 3.5vmin;
}

/* The three rulesets below resolve issues of clarity when a checkbox is off but focused */
input[type="checkbox"] {
	border: 0.3vmin solid var(--uiC) !important;
	background: black !important;
}
input[type="checkbox"]:checked:focus {
	border: 0.3vmin solid white !important;
	background: black !important;
}
input[type="checkbox"]:checked {
	border: 0.3vmin solid white !important;
	background: radial-gradient(var(--uiA), var(--uiB)) !important;
}

.bool:has(input[type="color"]) {
	background: black !important;
}

.bool:checked, .bool:active, .bool:focus-within {
	color: white;
	border: 0.3vmin solid white;
	outline: 0;
	background: radial-gradient(var(--uiA), var(--uiB));
}

.utility-bar > p:has(.bool) {
	display: flex;
	align-items: center;
	justify-content: center;
	color: gray;
	transition: border-color 0.2s linear;
	transition: color 0.2s linear;
}

.utility-bar > p > .bool {
	display: flex;
	align-items: center;
	justify-content: center;
}

.utility-bar > p > .bool::after {
	content: attr(txt);
	font-family: Monocraft;
}

input[type="file"]::file-selector-button {
	display: none;
}

input[type="color"] {
	opacity: 0;
}

input[type="file"], input[type="color"] {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	font-size: 0;
}

.fishJenga {
	position:relative;
}

#focusButton {
	border: 0;
	outline: 0;
	padding: 0;
	background: transparent;
	position: absolute;
	overflow: hidden;
	height: 100vh;
	width: 100vw;
	opacity: 0.5;
	transition: opacity 1.5s var(--fwah);
}

#displayField {
	text-align: center;
	font-family: Monocraft;
	white-space: pre-wrap;
	font-size: min(40vh, 4vw);
	animation: none;
	pointer-events: none;
	color: white;
	margin: 0;
	transition: margin-top 0.07s ease-in-out;
}

@keyframes rave {
	0% {margin-top: 1vh;}
	80% {margin-top: 0;}
	95% {margin-top: 2vh;}
	100% {margin-top: 1vh;}
}

#userField:focus ~ #focusButton {
	opacity: 1;
}

.utility-bar > p > input[type="text"] {
	width: auto;
	min-width: 3vw;
	max-width: 5vw;
}

input[type="range"] {
	padding: 0 0;
}

.slideCrop {
	overflow: hidden;
	border-radius: 1.227vmin;
}

thumb {
	position:absolute;
	width: 4vmin;
	margin-left: -2vmin;
	height: 4vmin;
	pointer-events:none;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	background-color: transparent;
}
#fontThumb   {background-image: url("handle.png");} /* I'm nobody */
#blurThumb   {background-image: url("myopia.png");}
#brightThumb {background-image: url("polyphemus.png");}

input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 0; 
	height: 0;
	border: none;
}

input[type="range"]::-moz-range-thumb {
	appearance: none;
	width: 0;
	height: 0;
	border: none;
}
.tenwidth {
	min-width: 10vw !important;
}

p {
	margin: 0;
}

#jester {
	z-index: -1;
}

#jester, #progressor {
	position: absolute;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

#progressor {
	color: white;
	filter: drop-shadow(0 0 0.25vmin black) drop-shadow(0 0 0.5vmin black) drop-shadow(0 0 1vmin black);
	text-align: center;
	line-height: 50vh;
	font-size: 5vmin;
}

/*

Baked a pie

Staked the ground with the first two, repeated by the third
Followed by the stake itself, of course

Not found

Lost among all the seas, a thousand times over

Find me.

*/