html {
	color-scheme: dark;
}

body
{
	font-family: 'Lucida Bright', Georgia, 'Times New Roman', Times, serif;
	font-weight: 300;
	background: #0d080d;
	color: #fff9e4;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
	-webkit-user-drag: none;
	-khtml-user-drag: none;
	-moz-user-drag: none;
	-o-user-drag: none;
}

/* Seems necessary to make iframes work on itch.io on mobile iOS :-( */
#container
{
    position: absolute;
    display: block;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    overflow: auto;
    overflow-x: hidden;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-repeat: no-repeat;
	z-index: 10;    
}

#story
{
	position: relative;
	margin: 0 auto;
	overflow: hidden;
	height: 100%;
	width: 700px;
	min-width: 60vw;
	max-width: 80vw !important;
	transition: opacity 2s ease;
	padding: 0em 1em 0em 1em;
}

@media (hover:none), (hover:on-demand)
{
	#story
	{
		max-width: 90%;
	} 
}

#story {
	padding-top: 10vh !important;
}

#story
{
	padding-bottom: 5vh !important;
}

/* ================================================================= */

p
{
	margin-block-start: 0px !important;
	font-size: 16pt;
	line-height: 1.1;
}

p, p > *
{
	-webkit-user-drag: none;
	-khtml-user-drag: none;
	-moz-user-drag: none;
	-o-user-drag: none;
}

.text, .choice {
	background: #0d080d;
	margin: 0.5em 0;
	padding: 0.5em;
	float: left;
	clear: both;
}

.text > span > p,
.text > span > span > p,
.choice > a > p {
	margin: 0;
}

a 
{
	color: #f0bb77;
	text-decoration: none !important;
	transition: color 0.1s ease-out;
	cursor: all-scroll;
}

a:hover,
a:focus
{
	color: #7d3840;
}

a:active {
	cursor: cell;
	color: #2a2349;
}

.chosen
{
	color: #2a2349 !important;
	opacity: 1 !important;
}

/* ================================================================= */

.progressbar
{
	position: absolute;
	overflow: hidden;
	top: 49vh;
	background: #fff9e4;
	width: 0%;	
	height: 2vh;
}

.frame
{
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0 !important;
	margin: 0 !important;
	pointer-events: none;
	z-index: -1;
}

.frameLayer
{
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100vw;
	height: 100vh;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: hard-light;
}

/* ================================================================= */

img 
{
	-ms-interpolation-mode: nearest-neighbor;
	image-rendering: crisp-edges;
	image-rendering: pixelated;
}

/* ================================================================= */

.frame.menu
{
	width: 60vh;
	height: 48vh;
	margin: auto;
	margin-bottom: revert;
	min-height: revert;
	max-height: revert;
}

.menu, .menu ~ p
{
	width: 60vh;
	margin: auto;
	margin-bottom: revert;
}

@media (hover:none), (hover:on-demand) 
{ 
	.frame.menu
	{
		width: 80vmin;
		height: 64vmin;
	}
	
	.menu, .menu ~ p
	{
		width: 80vmin;
	}	
}

.menu > .frameLayer
{
	width: 120%;
	height: 120%;
}

.menu > .frameLayer:nth-child(n+3)
{
	width: 100%;
	height: 100%;
}

/* ================================================================= */

@font-face {
  font-family: 'Lucida Bright';
  font-style: normal;
  font-weight: 300;
  src: url('./fonts/LBRITE.TTF');
}
