@font-face
{
	font-family: 'DWfont';
	src: url('/Resources/Fonts/DWfont.eot'); 
	src: 
		local('MagicMedieval'),
		url('/Resources/Fonts/DWfont.ttf')
		format('truetype');
	font-display: swap;
}

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

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

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

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

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

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



/***  PAGE STRUCTURE  ***/

html
{
	color: #111;
	font-size: calc(6px + 2vmin);
	line-height: 1.2;
	font-family: "Century Gothic", "Century", sans-serif;
}

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

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

header, footer
{
	background-color: rgba(0,0,0,0.5);
	padding: 1rem;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 4rem;
}

header
{
	justify-content: center;
	white-space: nowrap;
}

nav, main
{
	background-color: rgba(225, 225, 225, 0.15);
	position: relative;
	text-align: center;
}

nav
{
	overflow-x: auto;
	min-height: calc(4rem + 2vw);
	padding: 1vw 0;
	white-space: nowrap;
}

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

nav img, main img
{
	height: 2.5rem;
	width: 2.5rem;
	border-radius: 25%;
	border: 0.15rem solid black;
}

nav img
{
	background-color: rgb(205,255,205);
}

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;
	padding: 1vw;
}

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;
}

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-family: "DWfont", "Century Gothic", "Century", sans-serif;
	font-weight: normal;
	margin: 0;
	padding: 0;
	line-height: 1;
	letter-spacing: 1px;
}

h1
{
	font-size: 2rem;
	background: linear-gradient(180deg, darkgoldenrod, gold 50%, darkgoldenrod 51%, goldenrod 61%, gold 75%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: 0;
}

h2
{
	font-size: 1.5rem;
	color: gold;
	text-shadow: 4px 2px 0rem black;
}

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

h3
{
	border-bottom: 1px solid black;
}



/***  LINKS  ***/

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

a:hover
{
	text-decoration-style: solid;
}

a.faq
{
	padding: 0.5rem;
	text-decoration: none;
	border-radius: 50%;
	height: 2.25rem;
	width: 2.25rem;
	animation-name: faq;
	animation-duration: 5s;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
	display: inline-block;
	color: gold;
	position: absolute;
	left: calc(1rem + 1vw);
}

a.faq:hover
{
	background-color: rgba(255,255,255,0.25);
}

/***  DIVs  ***/

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

div.heading
{
	background-color: rgba(0, 0, 0, 0.5);
	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.icon-container, div.map-icon
{
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: 2.5rem;
	cursor: pointer;
}

div.icon-container
{
	height: 4rem;
	font-size: 0.5rem;
	white-space: normal;
	margin: 1vw;
}

nav div.icon-container
{
	margin: 0 1vw;
}

div.map-icon
{
	height: 2.5rem;
	margin: 0.25rem;
}

div.message
{
	border-width: 0.15rem;
	border-style: solid;
	border-left-width: 1rem;
	margin: 0.25rem;
	padding: 0.5rem;
	text-align: left;
	width: calc(100% - 0.5rem);
	font-size: 75%;
}

div.help
{
	border-color: indigo;
	color: indigo;
	background-color: lavender;
	font-size: 75%;
	margin-top: 0rem;
}

div.info
{
	border-color: darkcyan;
	color: darkcyan;
	background-color: lightcyan;
}

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

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.tracker
{
	height: 2.5rem;
	width: 2.5rem;
	background-repeat: no-repeat;
	background-size: contain;
	display: inline-block;
	border-radius: 25%;
	border: 0.15rem solid black;
	background-color: cornsilk;
	position: relative;
}

div.tracker img
{
	margin: -0.15rem;
}

div.hourglass
{
	background-image: url('../Images/Hourglass.png');
}

div.heart
{
	background-image: url('../Images/Heart.png');
}

div.laurel
{
	background-image: url('../Images/Laurel.png');
}

div.morality
{
	background-image: url('../Images/Evil.png');
	background-color: crimson;
}

div.motivation
{
	background-image: url('../Images/Motivation.png');
}

div.status, div.location, div.date
{
	position: absolute;
	font-size: 0.5rem;
	opacity: 0.75;
	color: cornsilk;
}

div.date
{
	top: calc(3rem + 1vw);
	left: 2vw;
}

div.status
{
	top: 1vw;
	right: 2vw;
}

div.location
{
	top: calc(3rem + 1vw);
	right: 2vw;
}

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




/***  IMGs  ***/

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

img.night
{
	background-color: darkkhaki;
	border-color: white;
	filter: invert(100%);
}





/***  TABLES  ***/

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

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





/***  FORMS  ***/

form
{
	clear: both;
}

select, input
{
	font-size: 1rem;
	background-color: rgba(255,255,255,0.66);
	padding: 0 0.5rem 0 0;
	margin: 0.1rem 0;
	font-family: "Century Gothic", "Century", sans-serif;
	outline: none;
	text-align: center;
	border-left: solid 0.25rem indigo;
	border-top: 1px solid white;
}

input::placeholder
{
	opacity: 0.5;
}

/* 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: lightgrey;
}

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

input[type=submit]
{
	font-size: 1.5rem;
	border: 0.15rem solid black;
	border-radius: 1rem 0 0 0;
	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%);
	color: gold;
	cursor: pointer;
	text-shadow: 2px 2px black, -1px 0px black;
	margin: 1rem 0 0 0;
	float: right;
}

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

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

label.help
{
	display: inline-block;
	vertical-align: middle;
	width: 1.25rem;
	height: 1.25rem;
	background-color: indigo;
	border-radius: 50%;
	color: lavender;
	border: lavender solid 2px;
}

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;
}