@font-face {
	font-family: MainFont;
	src: url('game-data/fonts/FantasqueSansMono-Regular.ttf')  format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: MainFont;
	src: url('game-data/fonts/FantasqueSansMono-Bold.ttf')  format('truetype');
	font-weight: bold;
	font-style: normal;
}

@font-face {
	font-family: MainFont;
	src: url('game-data/fonts/FantasqueSansMono-Italic.ttf')  format('truetype');
	font-weight: normal;
	font-style: italic;
}

@font-face {
	font-family: MainFont;
	src: url('game-data/fonts/FantasqueSansMono-BoldItalic.ttf')  format('truetype');
	font-weight: bold;
	font-style: italic;
}

* {
	font-family: MainFont;
	color: var(--color3);    
	box-sizing: border-box;
}

*::selection {
	background: var(--color3);
	color: var(--color2);
}

body, main, hr, h1 {
	transition-property: background, border-color, color;
	transition-duration: 1s;
	transition-timing-function: ease-out;
}

html {

	font-size: 18px;
	overflow-y: scroll;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6{
	color: var(--color1);
}

h1 {
	text-align: center;
	font-size: 1.2rem;
	margin-bottom: 0.8rem;
	margin-top: 0;
	padding-top: 0.8rem;
	border-bottom: solid 2px var(--color1);
	text-transform: uppercase;
}

body {
	margin: 1rem auto;
	width: 856px;
	background-color: var(--color2);
	
	background-position: center;
	background-repeat: repeat;
	background-attachment: fixed;
}

main {
	width: 100%;
	padding-bottom: 1rem;
	border-top: 1rem solid var(--color1);
	border-bottom: 1rem solid var(--color1);
	border-left: 4px dashed var(--color1);
	border-right: 4px dashed var(--color1);
	background-color: var(--color2);
}

body>img {
	width: 100%;
	display: block;
}

main>div {
	margin: 24px;    
}

hr {
	width: 100%;
	border: none;
	border-top: 6px double var(--color1);
	margin-top: 1rem;
	margin-bottom: 2rem;
}

dt {
	font-weight: bold;
}

dd {
	margin-left: 1.5rem;
}

ul {
	list-style: circle;
	text-align: center;
}

details {
	padding-left: 0.6rem;
	border-left: 1px solid var(--color3);
	margin: 1rem 0;
}

details>p {
	margin: 0.4rem 40px;
}

details>p.crossed {
	text-decoration: line-through;
}

summary::marker, li::marker {
	color: var(--color1);
}

fieldset {
	border: 1px solid var(--color3);
}

fieldset>legend {
	font-weight: bold;
}

marquee {
	color: var(--color3);
	font-size: .6rem;
}

details:hover {
	cursor: pointer;
}

a:hover {
	background-color: var(--color3);
	color: var(--color2);
	cursor: pointer;
}

a:active {
	background-color: var(--color1);
	color: var(--color2);
}

input {
	background-color: var(--color2);
	border: none;
	border-bottom: 1px solid var(--color1);
	width: 8rem;
	margin: 0 1rem;
}

input:focus {
	outline-style: dashed;
	outline-width: 2px;
	outline-color: var(--color3);	
}


/*==============================================================================
 CLASSES
==============================================================================*/

#screen {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 28px;
}

#screen.explore {
	overflow: hidden;
}

#screen.talkTo {
	overflow: visible;	
}

#screen.explore img {
	width: 100%;
	display: block;
	position: absolute;
	bottom: 0;
}

#screen.talkTo img {
	height: 110%;
	display: block;
	margin: auto;
	position: relative;
	top: -10%;
}

#screen.hanging-down img {
	height: 110%;
	display: block;
	margin: auto;
	position: relative;
}

#screen.both img {
	height: 120%;
	display: block;
	margin: auto;
	position: relative;
	top: -10%;
}

#screen.bg-full {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

#screen.bg-tiling {
	background-position: left top;
	background-repeat: repeat;
	background-size: auto;
}

#screen>.foreground {
	width: 100%;
	height: 100%;
	position: relative;
}

img.overflowing {
	display: block;
	position: relative;
	width: 120%;
	left: -10%;
}

p.protagonist {
	text-align: right;
}

span.last-input {
	border: 1px solid var(--color3);
}

#outputs>hr {
	border-top: 1px dashed var(--color3);
	margin-top: 1rem;
	margin-bottom: 0;
}

@media (max-width: 900px) {

	body {
		width: 100%;        
	}

	main {
		border-left: none;
		border-right: none;
	}

	main>div {
		margin: 16px;
	}

	img.overflowing {
		width: 100%;
		left: 0;
	}
}

