@font-face
{
	font-family: 'GauntletFont';
	src: 
		url('/resources/fonts/gauntlet.ttf')
		format('truetype');
	font-display: swap;
}

@font-face
{
	font-family: 'PermissionFont';
	src:
		url('/resources/fonts/permission.otf')
		format('opentype');
	font-display: swap;
}

@keyframes faq
{
	0% {box-shadow: inset red 0 0 0;}
	25% {box-shadow: inset red 0 0 0.5rem;}
	50% {box-shadow: none;}
	100% {box-shadow: none;}
}

@keyframes grow
{
	to
	{
		transform: scale(1);
		opacity: 1;
	}
}

@keyframes pulse
{
	0%
	{
		transform: scale(1);
		filter: brightness(1);
	}
	50%
	{
		transform: scale(1.05);
		filter: brightness(1.5);
	}
	100%
	{
		transform: scale(1);
		filter:brightness (1);
	}
}

*
{
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

*::-webkit-scrollbar
{
	width: 0.5rem;
	height: 0.25rem;
	outline: 1px solid crimson;
	background-color: rgba(0,0,0,0.1);
}

*::-webkit-scrollbar-thumb
{
	background: crimson;
}

*::-webkit-scrollbar-thumb:hover
{
	background: darkred;
}

*::-webkit-scrollbar-button
{
	display: none;
}



/***  PAGE STRUCTURE  ***/

html
{
	color: #ccc;
	font-size: calc(9px + 2vmin);
	line-height: 1.3;
	font-family: "GauntletFont", "Century Gothic", "Century", sans-serif;
}

body
{
	background-color: #181818;
	box-shadow: inset 0 0 20vmin 2vmin black;
	height: 100vh;
	display: flex;
	flex-wrap: nowrap;
	flex-direction: column;
	align-items: stretch;
	
}

header, footer, main
{
	width: 98vw;
	margin: 0.5vw 1vw;
}

header, footer
{
	padding: 2vh;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap:wrap;
}

header
{
	white-space: nowrap;
}

nav
{
	margin-left:0.5rem;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

nav form
{
	padding: 0;
	margin: 0;
	float: right;
	text-align: right;
}

span.level
{
	font-size: 200%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -65%);
	font-weight: bold;
	color: royalblue;
}

main
{
	height: 100%;
	overflow: auto;
	scrollbar-gutter: stable;
}

main::after
{
	content: "";
	opacity: 0.05;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	position: absolute;
	z-index: -1;
	background-repeat: no-repeat;
	background-size: auto 95%;
	background-position: center;
}

main.help::after
{
	background-image: url('../Images/Help.png');
}

main.login::after, main.logout::after
{
	background-image: url('../Images/Locked.png');
}

footer
{
	color: rgba(255,255,255,0.5);
	font-size: 0.75rem;
	font-family: "Century Gothic", "Century", sans-serif;
	flex-direction: column;
}

details
{
	border: 1px solid darkred;
	border-radius: 6px;
	padding: 0.5rem 1rem;
	background: rgba(0,0,0,0.65);
	width: 97%;
	margin: 1rem 0;
}

details > *:not(summary)
{
	display: block;
	margin-left: auto;
	margin-right: auto;
}

summary
{
	cursor: pointer;
	list-style: none;
	padding: 0.5rem 0;
	position: relative;
	font-size: 125%;
	color: gold;
}

summary:hover
{
	color:red;
}

summary::-webkit-details-marker 
{
	display: none;
}

/* Custom arrow */
summary::after
{
	content: "\25B6";
	position: absolute;
	right: 0;
	transition: transform 0.5s ease;
	color: red;
}

details[open] summary::after
{
	transform: rotate(90deg);
}

details > *:not(summary)
{
	margin-top: 0.75rem;
	padding-bottom: 0.5rem;
}

p
{
	margin: 0.5rem 0;
}

p:first-of-type
{
	margin: 0;
}

sup
{
	vertical-align: text-top;
}

sub
{
	vertical-align: text-bottom;
}


/***  HEADINGS  ***/

h1, h2, h3
{
	font-weight: normal;
	margin: 0;
	padding: 0;
	line-height: 1;
	letter-spacing: 1px;
	font-family: "GauntletFont", "Century Gothic", "Century", sans-serif;
	clear: both;
}

h1
{
	font-size: min(12vw, 10vh);
	background: linear-gradient(180deg, firebrick, orangered 50%, firebrick 51%, crimson 61%, orangered 75%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: 0;
	font-weight: bold;
}

h2
{
	font-size: 1.5rem;
	color: gold;
	text-shadow: 4px 2px 0rem black;
	text-align: center;
	margin-bottom: 1rem;
}

h3, h4
{
	margin-top: 1rem;
}

h3
{
	border-bottom: 1px solid gold;
	color: gold;
}



/***  LINKS  ***/

a
{
	color: inherit;
	text-decoration-line: underline;
}

a:hover
{
	color: white;
}




/***  DIVs  ***/

div.background
{
	height: 100%;
	display: flex;
	align-items: center;
	flex-direction: column;
	width: 100%;
	margin: 0 auto;
	max-width: 900px;
}

.background::before
{
	content: "";
	position: absolute;
	inset: 0;
	background-image: url('/gauntletrex.png?v=1');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.5;
	z-index: -1;
}

div.breadcrumbs
{
	align-self: stretch;
	color: crimson;
	margin-left: 0;
	margin-right: auto;
}

div.content
{
	font-family: "Century Gothic", "Century", sans-serif;
	background-color: rgba(0,0,0,0.65);
	border: 1px solid darkred;
	width: 98%;
	padding: 0.5rem;
}

div.faq
{
	clear: both;
	text-align: left;
}

div.heading
{
	background-color: rgba(0, 0, 0, 0.65);
	padding: 0.5rem 1rem;
	box-shadow: inset 0px 1rem 1rem rgba(0,0,0,0.5);
	border-radius: 0 0 1rem 0;
	border:0.15rem solid black;
	float: left;
	margin-bottom: 1rem;
}

div.instructions
{
	font-family: "Century Gothic", "Century", sans-serif;
}

div.message
{
	border-width: 1px;
	border-style: solid;
	border-left-width: 6px;
	padding: 0.5rem;
	text-align: left;
	width: calc(100% - 0.5rem);
	font-size: 70%;
	font-family: "Century Gothic", "Century", sans-serif;
	margin: 1rem 0;
	transform: scale(0);
	opacity: 0;
	animation: grow 0.4s ease-out forwards;
}

div.help
{
	border-color: goldenrod;
	background-color: rgba(184, 134, 11, 0.75);
}

div.info
{
	border-color: gold;
	color: gold;
	background-color: rgba(0,0,0,0.5);
}

div.warning
{
	border-color: red;
	color: red;
	background-color: antiquewhite;
}

div.permission
{
	border: 1px solid white;
	font-size: 150%;
	padding: 0.5rem;
	background-color: rgba(0,0,0,0.65);
	margin-bottom: 1rem;
	cursor: pointer;
}

a:has(div.permission)
{
    text-decoration: none;
}

div.permission span.font
{
	font-family: "PermissionFont", "GauntletFont", "Century Gothic", "Century", sans-serif;
	color: white;
}

span.green
{
	color: lime;
	font-weight: bold;
}

span.red
{
	color: red;
	font-weight: bold;
}

div.return
{
	border-radius: 0 0 0 1rem;
	border: 0.15rem solid black;
	padding: 0.5rem 1rem;
	background: linear-gradient(180deg, rgb(80,32,32), rgb(208,96,96) 35%, rgb(80,32,32) 50%, rgb(144, 64, 64) 75%, rgb(208,96,96) 100%);
	float: right;
	margin-bottom: 1rem;
}

div.status
{
	position: absolute;
	font-size: 0.75rem;
}

div.status
{
	top: 0.5vw;
	right: 0.5vw;
}

hr
{
	width: 50%;
	margin: auto;
	height: 0.5rem;
	border-radius: 1rem;
}



/***  IMGs and Videos ***/

img.help
{
	border: none;
	height: 1rem;
	width: 1rem;
	cursor: help;
	background-color: transparent;
}

img.logo
{
	float: left;
	width: 200px;
	max-width: 33%;
	background-color: darkred;
	border-radius: 50%;
	margin: 0 1rem 1rem 0;
}

video
{
	margin: 1rem 0;
	width: min(640px, 95%);
}




/***  TABLES  ***/

table
{
	width: 100%;
	border-collapse: collapse;
	border: none;
}

td, th
{
	vertical-align: middle;
	padding: 0.1rem;
	text-align: left;
}





/***  FORMS  ***/

form
{
	clear: both;
	text-align: center;
}

select, input, button, textarea
{
	color: #ddd;
	font-size: 1rem;
	background-color: rgba(64,0,0,0.75);
	padding: 0 0.5rem 0 0;
	margin: 0.1rem 0;
	font-family: "Century Gothic", "Century", sans-serif;
	outline: none;
	text-align: center;
	border-width: 1px;
	border-color: darkred;
	border-style: solid;
	border-left-width: 6px;
}

input::placeholder, textarea::placeholder
{
	color: #ddd;
	opacity: 0.5;
}

input:focus
{
	background-color: rgba(128,0,0,0.75);
}

/* Remove the arrows from numeric fields */
input[type=number]
{
	-moz-appearance:textfield;
	padding: 0;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button
{
	-webkit-appearance: none;
	margin: 0;
}

input[readonly]
{
	background-color: rgba(0,0,0,0.75);
	color: dimgrey;
	border-color:dimgrey;
}

input[type=email]
{
	min-width: 80%;
	padding: 0.5rem 0;
	margin: 1rem 0.5rem;
}

input[type=submit], button
{
	border: 1px solid black;
	padding: 0.5rem 1rem;
	color: gold;
	cursor: pointer;
	margin: 1rem 0 0 0;
	animation: pulse 2s infinite ease-in-out;
	font-family: "GauntletFont", "Century Gothic", "Century", sans-serif;
	font-weight: bold;
}

input[type=submit]:disabled
{
	animation:none;
	background-color:grey;
	cursor: not-allowed;
}

input[type=submit]:disabled:hover
{
	background-color:grey;
}

input[type=submit]:hover
{
	background-color: rgba(128,0,0,0.75);
}

input[type=checkbox]:not(:checked)+div
{
	display:none;
}

input[type=checkbox]:checked+div
{
	display:block;
}

form.challenge
{
	margin: 1rem 0;
}

form.challenge fieldset
{
	padding: 1rem 0;
	border: 1px solid darkred;
}

form.challenge fieldset legend
{
	font-family: "GauntletFont", "Century Gothic", "Century", sans-serif;
	font-size: 125%;
	color: red;
}

form.challenge p
{
	display: flex;
	align-items: center;
}

form.challenge label
{
	flex: 0 0 15ch; /* fixed width label column */
	font-family: "GauntletFont", "Century Gothic", "Century", sans-serif;
	font-size: 125%;
	text-align: right;
	margin-right: 0.5rem;
}


/* Base slider reset 
input[type="range"] {
  -webkit-appearance: none;
  height: 6px;
  background: transparent;
  margin: 10px 0;
}

/* Track 
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: #ccc; /* unfilled track colour 
  border-radius: 3px;
}

input[type="range"]::-moz-range-track {
  height: 6px;
  background: #ccc;
  border-radius: 3px;
}

/* Filled portion (Chrome/Edge/Safari) 
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  background: #e63946; /* thumb colour 
  border-radius: 50%;
  cursor: pointer;
  margin-top: -6px; /* aligns thumb with track 
}

/* Firefox thumb 
input[type="range"]::-moz-range-thumb {
  height: 18px;
  width: 18px;
  background: #e63946;
  border-radius: 50%;
  cursor: pointer;
}

/* Firefox filled portion 
input[type="range"]::-moz-range-progress {
  background: #e63946; /* filled track colour 
  height: 6px;
  border-radius: 3px;
}

/* Chrome/Edge filled portion trick 
input[type="range"] {
  background: linear-gradient(
    to right,
    #e63946 0%,
    #e63946 calc((var(--value) - var(--min)) / (var(--max) - var(--min)) * 100%),
    #ccc calc((var(--value) - var(--min)) / (var(--max) - var(--min)) * 100%),
    #ccc 100%
  );
} */


label.help
{
	display: inline-block;
	vertical-align: middle;
	width: 1.25rem;
	height: 1.25rem;
	background-color: rgba(184,134,11,0.75);
	border-radius: 50%;
	border: goldenrod solid 2px;
	text-align: center;
}

form.help
{
	padding: 0;
	margin: 0;
}

form.help fieldset
{
	border: none;
	padding: 0;
	margin: 0;
}

form.help label
{
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
}

form.help input
{
	display: none;
}



/***  LISTS  ***/

ul
{
	padding-left: 2rem;
}

li
{
	padding-bottom: 0.5rem;
}