/* a butchered version of josh comeau's css reset. thanks mr. comeau! */

*,
*::before,
*::after {
	box-sizing: border-box;
}

*:not(dialog) {
	margin: 0;
}

body {
	-webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}

input,
button,
textarea,
select {
	font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

p {
	text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap: balance;
}

/* and now for our stuff */

@font-face {
	font-family: 'inter';
	src: url('./fonts/inter.woff2');
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'dotgothic';
	src: url('./fonts/dotgothic.ttf');
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'doto';
	src: url('./fonts/doto.ttf');
	font-style: normal;
	font-display: swap;
}

html {
	/*
	 * you should increase your font size NOW
	 * https://infosec.exchange/@0xabad1dea/116667993286697433
	 */
	font-size: 150%;
	line-height: 1.5;
	background: repeating-linear-gradient(45deg,
			#1d1f22,
			#1d1f22 5px,
			#111214 5px,
			#111214 10px);
	color: white;
	font-family: Inter, helvetica, sans-serif;
	width: 100vw;
	min-height: 100vh;
}

body {
	height: 100vh;
	width: 100vw;
	overflow: hidden;
}

/* cursor styles */
* {
	cursor: url("./textures/cursor.svg") 13 13, default;
}

#composite {
	pointer-events: none;
	width: 100vw;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	overflow: clip;
	z-index: 999;
}

.cursor-corner {
	filter: drop-shadow(0 0 10px #000B);
	width: 16px;
	height: 16px;
	pointer-events: none;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	position: absolute;
	top: 0;
	left: 0;
}

#cursor-corner-tl {
	background-image: url(./textures/corner-tl.svg);
	transform: translateX(-16px) translateY(-16px);
}

#cursor-corner-tr {
	background-image: url(./textures/corner-tr.svg);
	transform: translateX(100vw) translateY(-16px);
}

#cursor-corner-bl {
	background-image: url(./textures/corner-bl.svg);
	transform: translateX(-16px) translateY(100vh);
}

#cursor-corner-br {
	background-image: url(./textures/corner-br.svg);
	transform: translateY(100vh) translateX(100vw);
}

snapper {
	width: 100%;
	height: 100%;
	position: absolute;
	display: block;
	z-index: 1;
}

/* everything else */
#root {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	width: 100vw;
	height: 100vh;
}

@keyframes slidein {
	0% {
		transform: translateX(-100%);
		opacity: 0;
	}

	100% {
		transform: translateX(0%);
		opacity: 1;
	}
}

#toasts {
	position: fixed;
	top: 1rem;
	left: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	font-family: 'dotgothic';
}

#toast {
	animation: slidein 500ms linear(0, 0.0018, 0.0069 1.15%, 0.026 2.3%, 0.0637, 0.1135 5.18%, 0.2229 7.78%, 0.5977 15.84%, 0.7014, 0.7904, 0.8641, 0.9228, 0.9676 28.8%, 1.0032 31.68%, 1.0225, 1.0352 36.29%, 1.0431 38.88%, 1.046 42.05%, 1.0448 44.35%, 1.0407 47.23%, 1.0118 61.63%, 1.0025 69.41%, 0.9981 80.35%, 0.9992 99.94%);
	display: flex;
	align-items: center;
	box-shadow: #000B 0px 0px 50px;
}

.toast-icon {
	background: #F4A250;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
}

.toast-icon img {
	width: 1.8rem;
	height: 1.8rem;
}

#toast p {
	background: #352822;
	color: #F4A250;
	height: 2.5rem;
	padding: 0.6rem;
	display: flex;
	align-items: center;
}

.board {
	box-shadow: #000B 0px 0px 50px;
}

.subtext {
	opacity: 0.5;
}

.title {
	background: #3A3A3A;
	padding: 1rem;
	font-size: 1.2rem;
	font-weight: bold;
}

.counter {
	border: 5px solid black;
	background: radial-gradient(#170d03, #070605);
	font-family: "doto";
	text-shadow: #fc970061 0px 0px 15px;
	color: #FC9700;
	padding: 0.2rem 1rem;
	font-weight: 800;
	font-size: 2rem;
}

.controls {
	display: flex;
	gap: 2px;
	background: black;
	font-family: monospace;
}

.controls .filler {
	flex-grow: 1;
	background: linear-gradient(-55deg, #6662, rgba(0, 0, 0, 0.299)), linear-gradient(to bottom, #434343, #434343);
	border-bottom: 8px solid #00000070;
}

.controls button {
	background: linear-gradient(-55deg, #6662, rgba(0, 0, 0, 0.299)), linear-gradient(to bottom, #262626, #262626);
	border: 0px solid #00000070;
	color: rgba(255, 255, 255, 0.5);
	border-bottom: 8px solid #00000070;
	height: 2rem;
	position: relative;
	padding: 0;
	width: 3rem;
	transition: 20ms linear;
}

.controls button p {
	pointer-events: none;
	transform: rotateX(30deg);
}

.controls .red {
	background: linear-gradient(-55deg, rgba(102, 102, 102, 0), rgba(0, 0, 0, 0.299)), linear-gradient(to bottom, #DB4A4A, #DB4A4A);
	border-left: none;
	border-bottom: 8px solid #76000070;
	width: 5rem;
}

.controls button:active {
	border-bottom: 0px solid #00000070;
	border-top: 10px solid #00000070;
	border-left: 2px solid #00000070;
	border-right: 2px solid #00000070;
}

.controls .red:active {
	border-left: none;
}