#reader-app {
    min-height: 100%;
    background-color: black;
    color: #e5e5e5;

    --heading-color: #e7e7e7;
    --alt-bg-color: whitesmoke;
    --input-bg-color: whitesmoke;
    --text-color: black;
}
/* We need this hack because reader app has black
   background. Otherwise the bottom will be white. */
#reader-app.app-container {
    min-height: 100vh;
}

#reader-app .two-column > section {
    padding-left: 30px;
}
#reader-app .two-column > section:first-child {
    padding-left: 0;
}

#reader-app h3 {
    margin-top: 25px;
}

#chapter-container {
    padding-top: 85vh;
    padding-bottom: 40px;
}

#top-image {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 120%;
    padding-top: 200px;

    background: url(#) no-repeat center center fixed;
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;

    color: #e5e5e5;

    text-align: center;
    font-size: 60px;
    font-family: StoryFont;
    text-shadow:
       3px  3px 0 #000,
      -1px -1px 0 #000,
       1px -1px 0 #000,
      -1px  1px 0 #000,
       1px  1px 0 #000;
}

#play-icon {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 10;
}

.chapter {
    position: relative;
    z-index: 5;

    margin-left: 10px;
    margin-right: 10px;

    color: black;
    font-family: StoryFont;
    font-size: 18px;
}

.chapter > p, .chapter > blockquote {
    max-width: 720px;
    line-height: 27px;
    text-align: justify;

    margin: 0 auto;
    padding: 10px 20px 10px 20px;
    background-color: #e5e5e5;
}
.chapter > blockquote {
    padding: 0 20px;
}

.chapter > blockquote > p {
    margin: 0;
    padding: 3px 2em;
    font-style: italic;
}

.chapter > p:first-child,
.chapter > h1:first-child,
.chapter > h2:first-child {
    padding-top: 20px;
}
.chapter > p:last-child,
.chapter > blockquote:last-child {
    padding-bottom: 20px;
}
.chapter > ol:last-child,
.chapter > ul:last-child {
    padding-bottom: 30px;
}

.chapter > p:first-child::first-letter {
    float: left;

    font-size: 94px;
    line-height: 81px;
    margin-right: 3px;
}

.chapter ul, .chapter ol {
    max-width: 720px;
    margin: 0 auto;
    padding: 10px 20px;
    background-color: #e5e5e5;
}

.chapter li {
    margin-left: 40px;
    margin-right: 40px;
}

.chapter li p {
    margin: 0;
}

.chapter > img {
    width: 100%;
}

.chapter > h1, .chapter > h2, .chapter > h3 {
    max-width: 720px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #e5e5e5;
    font-size: 180%;
    color: inherit;
}

.interaction {
    position: relative;
    z-index: 5;

    max-width: 720px;
    margin: 40px auto 0 auto;
    padding: 20px;

    font-size: 18px;
    background-color: #333;
}

.interaction h2 {
    margin: 0;
}

.interaction textarea {
    width: 100%;
    padding: 5px;
}

.messages {
    margin-top: 50px;
    margin-bottom: 50px;
}

ul.thread-list.reader .message {
    background-color: black;
    padding: 8px 10px;
    margin: 2px 0;
}
ul.thread-list.reader strong {
    color: #fff;
}
ul.thread-list.reader li {
    padding: 10px 0;
}
ul.thread-list.reader li .btn-bar {
    background-color: black;
}

#save-notes-message {
    margin-right: 15px;
    color: #2b2;
}

.reference-container {
    border: dashed 1px;
    padding: 10px;
    padding-bottom: 0;

    overflow: hidden;
}
.reference-container.hidden {
    height: 2.25em;
}
.reference-container.hidden h2:first-child {
    margin-bottom: 1em;
}
.arrow {
    width: 0;
    height: 0;

    margin: 0 auto;
    border: 15px solid transparent;

    cursor: pointer;
}
.arrow-up {
    border-bottom-color: white;
}
.arrow-down {
    border-top-color: white;
}

#description-editor .ProseMirror {
    min-height: 100px;
}
#backstory-editor .ProseMirror {
    min-height: 200px;
}

.character-description-container {
    width: 100%;
}
.character-description p {
    margin-top: 0;
    margin-bottom: 10px;
}
.character-description p:last-child {
    margin-bottom: 0;
}

.avatars {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}
.avatars img {
    width: 100px;
    height: 100px;
}
.upload-new-avatar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.new-avatar-controls {
    margin-left: 10px;
    margin-right: 10px;
}
.new-avatar-controls label {
    display: block;
}

.chapter-navigation {
    position: fixed;
    top: 0;
    z-index: 7; /* Has to be between .chapter's and #play-icon's */

    width: 50px;
    height: 100%;

    background-color: #888;
    opacity: 0.8;
}
.chapter-navigation:hover {
    opacity: 1;
}
.chapter-navigation-previous {
    left: 0;
}
.chapter-navigation-next {
    right: 0;
}
.chapter-navigation-arrow {
    position: absolute;
    top: 50%;

    width: 0;
    height: 0;

    border: 20px solid transparent;

    cursor: hand;
}
#previous-chapter-arrow {
    left: 0;
    border-right-color: #333;
}
#next-chapter-arrow {
    right: 0;
    border-left-color: #333;
}

#reader-app .floating-tip {
    background-color: black;
}

/* Print CSS */
@media print {
    #play-icon,
    .chapter-navigation,
    .interaction {
        display: none;
    }

    #chapter-container {
        padding: 0;
    }

    body,
    #reader-app,
    #top-image,
    .chapter > p,
    .chapter > blockquote {
        background-color: #fff !important;
        background-image: none !important;
        color: #000;
    }

    .chapter .separator {
        content: url(/img/separator.png);
    }

    #top-image {
        position: static;
        height: auto;
        padding: 0;

        color: #000;
        font-size: 22pt;
        text-shadow: none;
        filter: none !important;
    }
}
