body {
	--color-primary: Gainsboro;
    --color-secondary: Silver;
    --color-accent: #6F7C80;
    --font-color: Black;
    --link-color: #3182CE;
    --link-accent-color: #A3BFFA;
    --hover-color: #b97c2c;
}
.dark {
    --color-primary: Black;
    --color-secondary: #494949;
    --color-accent: #383838;
    --font-color: Gainsboro;
    --link-color: #3182CE;
    --link-accent-color: #A3BFFA;
    --hover-color: #b97c2c;
}

body {
	font-family: 'Tahoma', sans-serif;
	background-color: var(--color-primary);
	color: var(--font-color);
}

body.dark {
}

h1, h2 {
	text-align: center;
	font-family: 'Times New Roman', Times, serif;
	margin: 0;
	padding: 0;
	color: var(--font-color);
}

.dark h1, h2 {
}

h1 {
	font-size: 1.4em;
	margin-bottom: 10px;
}

h2 {
	font-size: 1em;
	font-style: italic;
	font-family: sans-serif;
	font-weight: lighter;
}

.header {
	padding-top: 0.5em;
	padding-bottom: 0.5em;
}

#written-in-ink {
	display: inline-block;
	font-family: "Times New Roman", serif;
	font-size: .6em;
	font-style: italic;
	background: var(--color-primary);
	/* padding: 5px; */
	position: relative;
	/* top: 10px; */
	right: 15px;
}
.dark #written-in-ink {
}
.pageclear #written-in-ink {
	position: absolute;
	right: 10px;
}


#save-load {
	background-color: var(--color-primary);
	position: fixed;
	width: 600px;
	margin: 0 auto;
	top: 10px;
	left: 50%;
	margin-left: -300px;
	font-size: .9em;
	padding: 5px;
	border-width: 0 0 1px 0;
	border-style: solid;
	text-align: center;
}
.dark #save-load {
}
.pageclear #save-load {
	position: absolute;
}

#save-slot {
	color: var(--font-color);
	background: var(--color-primary);
	font-size: 0.7em;
	width: 3em;
}
.dark #save-slot {
}

/* Seems necessary to make iframes work on itch.io on mobile iOS :-( */
#outerContainer {
	position: fixed;
	-webkit-overflow-scrolling: touch;
	overflow: auto;
	display: block;
	margin: 0;
	padding: 0;
	height: 100%;
	width: 100%;
	top: 60px;
	left: 0;
}
.pageclear #outerContainer  {
	position: absolute;
	-webkit-overflow-scrolling: auto;
	overflow: visible;
}

.container {
	display: block;
	max-width: 600px;
	margin: 0 auto;
	margin-bottom: 1em;
	padding-top: 1em;
	padding-bottom: 1em;
	text-align: justify;
	text-justify: inter-word;
}

.dark .container {
}

p {
	font-size: 1em;
	line-height: 1.5em;
	font-weight: lighter;
}

.dark p {
}

a {
	font-weight: 700;
	color: var(--link-color);
	font-family: sans-serif;
	transition: color 0s;
	text-decoration: none;
	cursor: pointer;
}

.dark a {
}

a:hover {
	color: var(--hover-color);
	transition: color 0s;
}

.dark a:hover {
}

strong {
	font-weight: bold;
}

.dark strong {
}

img {
	display: block;
	margin: 0 auto;
	max-width: 100%;
}

.container .hide {
	opacity: 0.0;
}

.container .invisible {
	display: none;
}

.container * {
	opacity: 1.0;
	transition: opacity 0.6s;
}

p.choice {
	text-align: left;
	line-height: 1.4em;
}

/* first choice */
:not(.choice) + .choice {
	padding-top: 1em;
}
/* last choice */
.choice:last-of-type {
	padding-bottom: 2em;
}

p.choice a {
	display: block;
	font-size: 1em;
	padding: 12pt;
	border-width: 1px;
	border-style: solid;
	border-color: var(--color-secondary);
	border-radius: 20px;
}

p.choice a::before {
	/* content: "❓ "; */
}

.dark p.choice a::before {
	/* content: "❔ "; */
}

/* Built in class if you want to write:
	 The End # CLASS: end
*/
.end {
	text-align: center;
	font-weight: bold;
	padding-top: 20px;
	padding-bottom: 20px;
}

.dark .end {
}

#back_button {
	display: none;
}
