@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,700|Quattrocento:700');

:root {
  --story-width: 600px;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: lighter;
    background: white;
    overflow: hidden;
}

body.switched {
    transition: color 0.6s, background-color 0.6s;
}

h1,
h2 {
    text-align: center;
    font-family: "Quattrocento", Georgia, 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: 30pt;
    margin-bottom: 10px;
}

h2 {
    font-size: 14pt;
    font-style: italic;
    font-family: sans-serif;
    font-weight: lighter;
    color: #BBB;
}

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

/*
  Built-in class:
    # author: Name
*/
.byline {
    font-style: italic;
}

.written-in-ink {
    z-index: 3;
    font-size: 9pt;
    font-family: sans-serif;
    text-align: center;
    font-weight: 700;
    position: fixed;
    display: block;
    width: 100%;
    background: white;
    transition: color 0.6s, background 0.6s;
    margin: 0;
    padding-top: 6px;
    padding-bottom: 6px;
    height: 14px;
    top: 0;
}

/* 
  Enables <iframe> support work on itch.io when using mobile iOS
*/
.outerContainer {
    position: absolute;
    display: block;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    margin-top: 24px;
    background-size: cover;
    background-repeat: no-repeat;
}

@media screen and (max-width: 980px) {
    .outerContainer {
        margin-top: 44px;
        background-size: cover;
        background-repeat: no-repeat;
    }
}

.footer {
	display: block;
    margin: 0 auto;
	max-width: var(--story-width);
    padding: 30px;
	margin-bottom: 20px;
}

.position-slider {
	width: 100%;
	display: block;
	margin: 0 auto;
}

.positionLabel{
	display: block;
	margin: 0 auto;
	text-align:center;
	font-weight: bold;
	user-select: none;
}

.story-contents{
	display: block;
	max-width: var(--story-width);
	margin: 0 auto;
}

.story-contents:first-of-type{
	padding-top:40px;
}

.story-container{
	display: block;
	width: 100%;
	height: calc(100% - 166px);
	margin: 0;
	font-size: 13pt;
	overflow: auto;
	overflow-x: hidden;
}

.container {
    display: block;
    max-width: var(--story-width);
    margin: 0 auto;
    padding: 20px;
    padding-top: 4em;
    background: white;
	font-size: 13pt;
}

.switched .container {
    transition: background-color 0.6s;
}

p {
    color: #888;
    line-height: 1.7em;
    font-weight: lighter;
}

a {
    font-weight: 700;
    color: #b97c2c;
    font-family: sans-serif;
    transition: color 0.6s;
    text-decoration: none;
}

a:hover {
    color: black;
    transition: color 0.1s;
}

strong {
    color: black;
    font-weight: bold;
}

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

.container .hide {
    opacity: 0.0;
}

.container .invisible {
    display: none;
}

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

/*
  Class applied to all choices
  (Will always appear inside <p> element by default.)
*/
.choice {
    text-align: center;
    line-height: 1.7em;
}

/* 
  Class applied to first choice
*/
:not(.choice)+.choice {
    padding-top: 1em;
}

/*
  Class applied to choice links
*/
.choice a {
    font-size: 15pt;
}


/*

Visual Options

*/

#visual-options{
	position:fixed;
	margin-left: 30px;
	font-size:9pt;
	color:#b97c2c;
	z-index: 3;
	background-color:white;
}

.option-line{
	display: block;
}

/* separators */

.separator{
	width: 100%;
	height: 5px;
	background-color: #EDEDED;
	display: block;
}

.hide-separators .separator{
	display: none;
}

input {
	accent-color: #b97c2c;
}


/* 
  Built-in class:
    The End # CLASS: end
*/
.end {
    text-align: center;
    font-weight: bold;
    color: black;
    padding-top: 20px;
    padding-bottom: 20px;
}

#controls {
    z-index: 4;
    font-size: 9pt;
    text-align: center;
    padding-bottom: 6px;
    position: fixed;
    right: 14px;
    top: 4px;
    user-select: none;
    background: white;
    transition: color 0.6s, background 0.6s;
}

#controls [disabled] {
    color: #ccc;
}

#controls>*:not(:last-child):after {
    content: " | ";
}

@media screen and (max-width: 980px) {
    #controls {
        z-index: 2;
        padding-top: 24px;
        top: 0;
        left: 0;
        right: 0;
    }
}



/* 
  Dark Theme (Added in Inky 0.10.0)
    # theme: dark
*/

body.dark {
    background: black;
    color: #888;
}

.dark h2 {
    color: #666;
}

.dark .container {
    background: black;
}

.dark .written-in-ink {
    background: black;
}

.dark p {
    color: #c8c8c8;
    transition: color 0.6s;
}

.dark #visual-options{
	color:#c8c8c8;
	background-color:black;
}

.dark input {
	accent-color: #cc8f1a;
}


.dark a {
    color: #cc8f1a;
    transition: color 0.6s;
}

.dark a:hover {
    color: white;
}

.dark strong {
    color: white;
}

.dark #controls [disabled] {
    color: #444;
}

.dark .end {
    color: white;
}

.dark #controls {
    background: black;
}

.dark .separator{
	background-color: #383838;
}


body.green {
	background: #002b36;
	color: #2aa198;
}

.green h2 {
    color: #2aa198;
}

.green .container {
    background: #002b36;
}

.green .written-in-ink {
    background: #002b36;
}

.green a {
    color: #2a7d59;
    transition: color 0.6s;
}

.green a:hover {
    color: #2aa198;
}

.green p {
    color: #2aa198;
    transition: color 0.6s;
}

.green #visual-options{
	color:#2aa198;
	background-color:#002b36;
}

.green input {
	accent-color: #2a7d59;
}

.green strong {
    color: #2aa198;
}

.green #controls [disabled] {
    color: #2a7d59;
}

.green .end {
    color: #2aa198;
}

.green #controls {
    background: #002b36;
}

.green .separator{
	background-color: #0F4D61;
}


body.burned {
	background: #262a2d;
	color: #cd8f66;
}

.burned h2 {
    color: #cd8f66;
}

.burned .container {
    background: #262a2d;
}

.burned .written-in-ink {
    background: #262a2d;
}

.burned a {
    color: #cd8f66;
    transition: color 0.6s;
}

.burned a:hover {
    color: #d74a3e;
}

.burned p {
    color: #b0aea6;
    transition: color 0.6s;
}

.burned #visual-options{
	color:#b0aea6;
	background: #262a2d;
}

.burned input {
	accent-color:  #cd8f66;
}

.burned strong {
    color: #cd8f66;
}

.burned #controls [disabled] {
    color: #2a7d59;
}

.burned .end {
    color: #2aa198;
}

.burned #controls {
    background: #262a2d;
}

.burned .separator{
	background-color: #545454;
}


.hidden {
	display:none;
}