@font-face
{
	font-family: 'Bitfont';
	src: 
		local('Bitwise'),
		url('/bitwise.ttf')
		format('truetype');
	font-display: swap;
}

*
{
	margin: 0;
	padding: 0;
	border: none;
	box-sizing: border-box;
	font-family: sans-serif;
}

html
{
	font-size: calc(12px + 1vmin);
	color: #eee;
	background-color: black;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-gutter: stable both-edges;
}

body
{
	display: flex;
	flex-flow: column nowrap;
	min-height: 100vh;
	align-items: center;
	background-image: url('/images/Logo_Square.jpg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: right;
	background-attachment: fixed;
	overflow: hidden;
	position: relative;
	justify-content: flex-start;
}

header
{
	background-image: URL('/images/InteractiveAdventuresNarrow_Small.jpg');
	background-repeat: no-repeat;
	background-size: contain;
	text-align: center;
	z-index: 1;
	padding: 0.5rem;
	width: 99%;
	margin: 0.5rem;
}

main
{
	display: flex;
	flex-flow: row wrap;
	justify-content: space-around;
	height: 100%;
	width: 100%;
	overflow: auto;
	align-items: flex-start;
	scrollbar-gutter: stable both-edges;
	margin-bottom: 1rem;
}

nav, footer
{
	background-color: darkslategrey;
	width: 100%;
	padding: 0.2rem;
	color: lightslategrey;
}

nav
{
	text-align: right;
	border-bottom: 1px solid lightslategrey;
}

footer
{
	border-top: 1px solid lightslategrey;
	font-size: 75%;
	text-align: center;
	position: absolute;
	bottom: 0;
}

a
{
	color: inherit;
}

hr
{
	background-color: white;
	height: 1px;
	margin: 1rem;
}

p
{
	margin-block: 1rem 0;
}

h1, h2, h3
{
	font-family: "Bitfont", "Century Gothic", "Century", sans-serif;
	font-weight: normal;
	text-shadow: 1px 0px black, -1px 0px black, 0px 1px black, 0px -1px black;
	letter-spacing: 2px;
	display: inline-block;
	text-transform: lowercase;
}

h1
{
	font-size: 350%;
	color: yellow;
}

h2
{
	color: yellow;
}

h3
{
	color: magenta;
}

div.adventure
{
	margin: 1rem 0;
	padding: 1rem;
	background-color: black;
	color: white;
	border-radius: 1rem;
	border: 4px solid white;
	text-align: center;
	width: clamp(350px, 45vw, 500px);
	height: clamp(350px, 45vw, 500px);
	background-repeat: no-repeat;
	background-size: contain;
	position: relative;
	display: flex;
	align-content:center;
	flex-wrap: wrap;
}

div.intropanel
{
	width: 95%;
	background-color: #111;
	border-radius: 1rem;
	border: 4px solid white;
	text-align: left;
	padding: 0 1rem;
	max-width: 1200px;
}


div.ErrorMessage, div.WarningMessage, div.InfoMessage, div.SuccessMessage
{
	border: 4px solid white;
	width: 95%;
	margin: 1rem;
	border-radius: 1rem;
	padding: 0 1rem;
}

div.ErrorMessage p:first-child, div.WarningMessage p:first-child, div.InfoMessage p:first-child, div.SuccessMessage p:first-child
{
	font-family: "Bitfont", "Century Gothic", "Century", sans-serif;
	text-shadow: 1px 0px black, -1px 0px black, 0px 1px black, 0px -1px black;
	font-size: 1.5rem;
	text-align: center;
	border-bottom: 1px solid white;
	background-color: rgba(0,0,0,0.25);
	border-radius: 0.75rem 0.75rem 0 0;
	padding-top: 0.5rem;
	color: white;
}

div.ErrorMessage
{
	background-color: red;
}

div.WarningMessage
{
	background-color: magenta;
}
	
div.InfoMessage
{
	color: #00529B;
	background-color: cyan;
}
	
div.SuccessMessage
{
	color: black;
	background-color: lime;
}

div#help
{
	border-radius: 100%;
	border: 4px solid white;
	background-color: magenta;
	font-size: 3.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	right: 1rem;
	z-index: 1;
	width: 4rem;
	height: 4rem;
}

div#portrait
{
	display: none;
	width: 90%;
	height: 100%;
	background: darkred;
	font-size: 200%;
	z-index: 999;
	border: 4px solid white;
	padding: 1rem;
	border-radius: 1rem;
	justify-content: center;
	align-items: center;
	text-align: center;
}

img.next, img.back
{
	padding: 0.5rem;
	border-radius: 0.5rem;
	border: 4px solid black;
	background-color: cyan;
	filter: invert(100%);
	height: 4rem;
	z-index: 1;
}

img.back
{
	transform:rotate(180deg);
}

@media only screen and (max-width: 1000px)
{
	header
	{
		background-image: none;
	}
	
	body
	{
		background-size: cover;
	}
}

@media only screen and (max-width: 500px)
{
	div#help, img.back, img.next
	{
		height: 3rem;
		width: 3rem;
		font-size: 2.5rem;
	}
}