/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
button,
hr,
input {
    overflow: visible
}

progress,
sub,
sup {
    vertical-align: baseline
}

[type=checkbox],
[type=radio],
legend {
    box-sizing: border-box;
    padding: 0
}

html {
    -webkit-text-size-adjust: 100%;
    width: 100vw;
    height: 100vh;
}

body {
    margin: 0
}

h1 {
    font-size: 2em;
    margin: .67em 0
}

hr {
    box-sizing: content-box;
    height: 0
}

code,
kbd,
pre,
samp {
    font-family: monospace, monospace;
    font-size: 1em
}

a {
    background-color: transparent
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted
}

b,
strong {
    font-weight: bolder
}

small {
    font-size: 80%
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative
}

sub {
    bottom: -.25em
}

sup {
    top: -.5em
}

img {
    border-style: none
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0
}

button,
select {
    text-transform: none
}

[type=button],
[type=reset],
[type=submit],
button {
    -webkit-appearance: button
}

[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner,
button::-moz-focus-inner {
    border-style: none;
    padding: 0
}

[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring,
button:-moz-focusring {
    outline: ButtonText dotted 1px
}

fieldset {
    padding: .35em .75em .625em
}

legend {
    color: inherit;
    display: table;
    max-width: 100%;
    white-space: normal
}

textarea {
    overflow: auto
}

[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
    height: auto
}

[type=search] {
    -webkit-appearance: textfield;
    outline-offset: -2px
}

[type=search]::-webkit-search-decoration {
    -webkit-appearance: none
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit
}

details {
    display: block
}

summary {
    display: list-item
}

[hidden],
template {
    display: none
}

html {
    font-family: sans-serif;
    font-size: 16px;
}

/* ----- Structural Styles ----- */

.header {
    overflow: auto;
}

#header p {
    opacity: 255;
}

.container {
    display: block;
    max-width: 37em;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
    height: 100%;
}

/* ----- Typographical Styles ----- */



* {
    box-sizing: border-box;
}

/* 

p.choice {
    text-align: left;
}

a {
    text-decoration: none; 
    color:blue;
}

a:hover {
    text-decoration: underline;
}

h1 {
    text-align: center;
} */

/* ----- Extras ----- */

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

/* ----- Modal Styles ----- */
/* https://www.w3schools.com/howto/howto_css_modals.asp */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.7);
    /* Black w/ opacity */
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


body {
    /* font-family: 'Libre Baskerville', Georgia, serif; */
    font-family: "Literata", serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: normal;
    /* color: #333; */
    color: #8b4513;
    background-color: #f0e6d2;

    /* padding: 40px; */
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
    height: 100%;
    /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); */
}

div.page {
    /* background-color: #fffef0; */
    padding-top: 5vh;
    padding-left: 2vw;
    padding-right: 2vw;
    margin-left: 5vw;
    margin-right: 5vw;
    border: 1px solid #d3c9a5;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    width: 30vw;
    background: url("https://i.imgur.com/0kjMcUe.png");
    background-size: 1000px;
    background-position: center right;
    filter: brightness(0.95) sepia(30%) saturate(80%);
    overflow-y: auto;
}

@media (max-width: 600px) {
    body {
        /* padding: 20px; */
    }
    div.page {
        padding-top: 2vh;
        padding-left: 10vw;
        padding-right: 10vw;
        margin-left: 5vw;
        margin-right: 5vw;
        width: auto;
    }

    #story {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    img.outro {
        max-width: 40vw;
    }
}

div.page-header {
    display: grid;
    position: relative
}

span.page-number {
    /* Align text to the right */
    position: absolute;
    right: 5px;
}

span.page-header-title {
    text-align: center;
    text-transform: uppercase;
    font-size: 15px;
}

span.fancy {
    font-family: "Great Vibes", cursive, serif;
}

span.title {
    font-size: 3em;
}

span.important {
    color: #ff6a00;
    font-weight: bold;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    color: #654321;
    margin-bottom: 30px;
    font-variant: small-caps;
}

#story p {
    opacity: 0.0;
    /* transition-timing-function: ease-in-out; */
    /* transition: opacity 0.5s; */
    hyphens: auto;
}

#story p.show {
    opacity: 1.0;
}

p {
    /* text-indent: 20px; */
    margin-bottom: 20px;
}

p.choice {
    margin-bottom: 10px;
    width: 100%;
    display: list-item;
    /* list-style: "➜"; */
    list-style-type: "➜";

}

p.choice>a:hover {
    filter: brightness(1.3);
    text-decoration: none;
}



p.choice>a {
    width: 100%;
    color: #8b4513;
    /* color: #40315a; */
    text-decoration: none;
    font-weight: bold;
}

img.outro {
    margin: 0 auto;
    max-width: 25%;
    display: block;
    padding-top: 30px;
}
