/* Fonts */
@font-face {
	font-family: 'nuckhead-dorm';
	src: url('nuckhead-dorm.otf');
}
@font-face {
	font-family: 'web37';
	src: url('Web437_Acer710_CGA-2y.woff');
}
@font-face {
	font-family: 'pxplus';
	src: url('Px437_AMI_EGA_8x8.ttf');
}

/* General */
:root{
	/* --primary-color: rgb(255, 49, 12); */
	--primary-color:  #ff1e29;
	--secondary-color: white;
	--black: black;
}
*{
	margin: 0; 
	padding: 0; 
}
html{
	font-size: 12pt;
}
body {
	font-family: 'web37';
	height: 100vh;
	max-height: 100vh;
	width: 100vw;
	overflow-x: hidden;
	overflow-y: scroll;
	scroll-behavior: smooth;
	background-color: var(--black);
}
p, span, ul, code{
	font-family: 'pxplus';
	font-size: 1rem;
}
h1{
	font-family: 'nuckhead-dorm';
	font-size: 2.5rem;
	line-height: 1.5;
	text-shadow: 4px 4px 0px var(--primary-color);
	display: flex;
	align-items: baseline;
	gap: .5em;
	padding-bottom: .5em;
	padding-top: 1em;
}
a, summary, button, input{
	position: relative;
	font-family: 'pxplus';
	font-size: 1rem;
	text-decoration: none;
	color: var(--black);
	background-color: var(--secondary-color);
	border-left: 20px solid var(--primary-color);
	text-decoration: none;
	border-bottom: 0;
	border-right: 0;
	border-top: 0;
	padding: 0em 1em;
	max-width: 100%;
	width: fit-content;
	list-style: none;
	align-content: center;
}
a, summary, button, #myinput{
	transition: .5s;
}
a:hover, summary:hover, button:hover, button:focus, li:focus{
	text-decoration: underline 2px;
	color: var(--black);
	background-color: RGB(12, 218, 255);
	border-left: 20px solid RGB(12, 218, 255);
	cursor: pointer;
}
input{
	color: var(--black);
	background-color: var(--primary-color);
	outline: none;
	border: none !important;
}
li{
	list-style: none;
	width: fit-content;
	align-content: center;
	line-height: 1.5;
	margin-bottom: 1em;
}
li:not(.awesomplete li){
	text-indent: 3em hanging;
	max-width: 30ch;
}
strong, hr{
	background-color: var(--primary-color);
	border: 0;
	color: var(--black);
	padding: .2em .5em;
}
nav{
	position: fixed;
	top: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	width: fit-content;
	height: 100vh;
	align-items: end;
	z-index: 10;
}
nav button{
	height: 20%;
	text-align: left;
}
summary{
	padding: .5em 1em;
	line-height: 1.4;
}

/* TOOL */
/* Menu */
header{
	display: flex;
	font-size: 1em;
	align-items: start;
	width: fit-content;
	height: 100vh;
	z-index: 10;
}
header *{
	height: 2em;
}
#myinput{
	position: sticky;
	top: 0;
}
#myinput:focus{
	width: 40em;
}
mark{
	background-color: lightgrey;
	color: var(--secondary-color);
	padding: .2em;
}
.visually-hidden{
	display: none;
}
.awesomplete{
	max-width: 40em;
	height: 100%;
	max-height: 100%;
	scrollbar-width: none;
	overflow-y: scroll;
}
.awesomplete li{
	color: var(--black);
	background-color: var(--secondary-color);
	padding: .5em 1em;
	margin-bottom: .5em;
	height: fit-content;
}
.awesomplete li[aria-selected="true"]{
	background-color: RGB(12, 218, 255);
}
#ui{
	position: absolute;
	top: 0;
	display: flex;
	flex-direction: column-reverse;
	margin-top: 4em;
	max-width: 50vw;
	width: fit-content;
	z-index: -10;
}
.ui{
	position: relative;
	font-family: 'web37';
	color: var(--secondary-color);
	font-size: 1rem;
	margin-left: .5em;
	margin-bottom: 1em;
	height: fit-content;
	--primary-color: lightgrey;
}
input[type=number], input[type=text] { 
  -moz-appearance: textfield;
  appearance: textfield;
  margin: 0;
  padding: .2em;
  text-align: center;
  max-width: 4ch !important;
}
.ui:has(input:focus), .ui:has(input:focus) *, .ui:has(input:focus) button{
	font-size: 2rem;
	--primary-color: RGB(12, 218, 255);
}
.ui:has(input:focus){
	margin: 1em 2.5em;
}	
.ui p:first-child{
	padding-left: 2em;
	width: max-content;
	color: var(--primary-color);
}
.ui p:nth-child(2){
	margin-left: 2em;
	width: max-content;
}
.ui button{
	position: absolute;
	top: 0;
	left: 0;
	text-decoration: none;
	border: 0;
	color: var(--black);
	background-color: var(--primary-color);
	padding: 0.1em .3em;
}

/* WEB SITE */
/* menu */
#site{
	position: relative;
	padding: 1em 2em;
	max-width: 95ch;
	word-break: keep-all;
}
#site p, #site blockquote{
	font-family: 'web37';
	font-size: 1.5rem;
	margin-bottom: .5em;
}
#site a {
	font-size: 1.2rem;
	padding: .2em .5em;
}
h1:nth-of-type(2){
	margin-top: 11em !important;
}
h1:not(:first-of-type){
	margin-top: 1em;
}
#site-nav a, #live-button{
	font-size: 1.5rem;
	padding: .2em .5em;
}
#live-button{
	position: fixed;
	bottom: 1em;
	right: 0;
}
canvas{
	position: fixed;
	left: 0;
	top: 0;
	width: 100% !important;
	height: auto !important	;
	z-index: -10;
	background-color: RGB(12, 218, 255);
}

details p, details blockquote{
	border-left: 20px solid var(--primary-color);
	padding: .6em 2em;
	position: relative;
}
blockquote{
	border-top: 4px solid var(--primary-color);
	text-align: center;
}
blockquote::before, blockquote::after {
	font-size: 4rem;
	position: absolute;
	color: var(--primary-color);
}
blockquote::before{
	content: "\201C";
	left: 0em;
	line-height: .6;
}
blockquote::after {
	content: "\201D";
	right: 0em;
}