@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,700|Quattrocento:700');
body {
    font-family: 'Open Sans', sans-serif;
    font-weight: lighter;
    background: white;
    overflow: hidden;
}

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

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

/* "Written in Ink" Header */
.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;
}

/*
    CONTAINERS 
*/
/* Outer Container */
/* Enables <iframe> support work on itch.io when using mobile iOS */
.outerContainer {
    position: absolute;
    display: block;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    overflow: scroll;
    overflow-x: hidden;
    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;
    }
}

/* Container for fading */
.hide {
    opacity: 0.0;
}

.fadeable .hide {
    opacity: 0.0;
}

.fadeable .invisible {
    display: none;
}

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

/* Body Container for Story */
.storyContainer {
    bottom: 0em;
    padding: 2em;
}

/* Drop Shadow for Page */
.card {
    position: relative;
    display: block;

    max-width: 700px;

    margin: 0 auto;
    margin-top: 2em;
    padding: 3em;
    
    background: white;
    transition: box-shadow 1.0s;
}

.cardShown  {
    box-shadow: 0px 4px 14px 6px rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.cardCover {
    position: absolute;
    left: -3em;
    bottom: -3em; 
    height: 50%;
    width: 120%;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.59) 10%, white 50%, white 100%);
    transition: opacity 1.0s;
}

/* Container for Page Turn Buttons */
.pageTurnContainer {
    position: relative;
}

/* 
    IMAGE 
*/
img {
    position: relative;
    display: block;
    margin: 0 auto;
    margin-bottom: 2em;
    max-width: 100%;
    z-index: 2;
}

/* 
    TEXT 
*/
/* Headers */
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;
}
h3 {
    text-align: center;
    font-family: "Quattrocento", Georgia, 'Times New Roman', Times, serif;
    color: #888;
}

/* Page Header */
.pageHeader {
    text-align: center;
    font-weight: bold;
}

/* Page Footer */
.pageNumber {
    text-align: center;
    font-weight: bold;
}

/* Paragraphs */
p {
    position: relative;
    font-size: 13pt;
    color: #888;
    line-height: 1.7em;
    font-weight: lighter;
    margin-top: 0px;
    margin-bottom: 2em;
    z-index: 2;
}

p.graph {
    text-align: left;
    font-style: normal;
}

p.direction {
    text-align: right;
    font-style: italic;
  }
  
p.dialogue {
    text-align: center;
    font-style: normal;
}

p.inflection {
    text-align: center;
    font-style: italic;
    margin: 0;
}

p.cue {
    margin-top: 2em;
    margin-bottom: 0;
}

p.pageTurnLeft {
    position: absolute;

    margin: 0em;
    top: 0em;
    left: 0em;
}

p.pageTurnRight {
    position: absolute;

    margin: 0em;
    top: 0em;
    right: 0em;
}

/* Links */
a {
    font-weight: normal;
    color: cornflowerblue;
    transition: color 0.6s;
    text-decoration: none;
}

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

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

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

/* 
  Class applied to first choice
*/
:not(.choice)+.choice {
}

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

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

/* 
    BUTTONS 
*/
#controls {
    z-index: 4;
    font-size: 9pt;
    text-align: center;
    padding-bottom: 6px;
    position: fixed;
    right: 14px;
    top: 4px;
    user-select: none;
    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;
    }
}

/* 
    THEMES
*/
.themed {
    transition: background-color 1.2s;
}

/* White */
.white {
    background-color: white;
}

/* Red */
.red {
    background-color: red;
}

/* Lime */
.lime {
    background-color: lime;
}