div.two-column {
    display: flex;
    margin-top: 10px;
    padding-top: 10px;

    justify-content: space-between;
}
div.two-column > section {
    flex-basis: 0;
    flex-grow: 1;
    padding-left: 30px;
}
div.two-column > section:first-child {
    padding-left: 0;
    padding-right: 30px;
}
div.two-column > section > *:first-child {
    margin-top: 0;
}
div.two-column > section.narrow-column {
    flex-grow: 0.7;
}
@media (max-width: 800px) {
    div.two-column {
        flex-direction: column;
    }
    div.two-column > section {
        padding-left: 0;
    }
}
@media (max-width: 1024px) {
    div.two-column > section:first-child {
        padding-right: 0;
    }
}

input, .ProseMirror, .last-reaction-text {
    font-family: StoryFont;
}

ul.participant-list {
    display: inline-block;

    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;

    font-size: 85%;
}
ul.participant-list li {
    display: inline;
    padding-left: 1em;
}

ul.search-results {
    columns: 3;
}


/* Mentions */
.mention-square {
    display: inline-block;
    width: 15px;
    height: 15px;
}
.mention-1, .mention-1 img { background: linear-gradient(to top, #eaa, rgba(0, 0, 0, 0)); }
.mention-2, .mention-2 img { background: linear-gradient(to top, #aae, rgba(0, 0, 0, 0)); }
.mention-3, .mention-3 img { background: linear-gradient(to top, #aea, rgba(0, 0, 0, 0)); }
.mention-4, .mention-4 img { background: linear-gradient(to top, #eae, rgba(0, 0, 0, 0)); }
.mention-5, .mention-5 img { background: linear-gradient(to top, #eea, rgba(0, 0, 0, 0)); }
.mention-1.mention-2, .mention-1.mention-2 img { background: linear-gradient(to top, #eaa, #aae); }
.mention-1.mention-3, .mention-1.mention-3 img { background: linear-gradient(to top, #eaa, #aea); }
.mention-1.mention-4, .mention-1.mention-4 img { background: linear-gradient(to top, #eaa, #eae); }
.mention-1.mention-5, .mention-1.mention-5 img { background: linear-gradient(to top, #eaa, #eea); }
.mention-2.mention-3, .mention-2.mention-3 img { background: linear-gradient(to top, #aae, #aea); }
.mention-2.mention-4, .mention-2.mention-4 img { background: linear-gradient(to top, #aae, #eae); }
.mention-2.mention-5, .mention-2.mention-5 img { background: linear-gradient(to top, #aae, #eea); }
.mention-3.mention-4, .mention-3.mention-4 img { background: linear-gradient(to top, #aea, #eae); }
.mention-3.mention-5, .mention-3.mention-5 img { background: linear-gradient(to top, #aea, #eea); }
.mention-4.mention-5, .mention-4.mention-5 img { background: linear-gradient(to top, #eae, #eea); }
.mention-1.mention-2.mention-3, .mention-1.mention-2.mention-3 img { background: linear-gradient(to top, #eaa, #aae, #aea); }
.mention-1.mention-2.mention-4, .mention-1.mention-2.mention-4 img { background: linear-gradient(to top, #eaa, #aae, #eae); }
.mention-1.mention-2.mention-5, .mention-1.mention-2.mention-5 img { background: linear-gradient(to top, #eaa, #aae, #eea); }
.mention-1.mention-3.mention-4, .mention-1.mention-3.mention-4 img { background: linear-gradient(to top, #eaa, #aea, #eae); }
.mention-1.mention-3.mention-5, .mention-1.mention-3.mention-5 img { background: linear-gradient(to top, #eaa, #aea, #eea); }
.mention-1.mention-4.mention-5, .mention-1.mention-4.mention-5 img { background: linear-gradient(to top, #eaa, #eae, #eea); }
.mention-2.mention-3.mention-4, .mention-2.mention-3.mention-4 img { background: linear-gradient(to top, #aae, #aea, #eae); }
.mention-2.mention-3.mention-5, .mention-2.mention-3.mention-5 img { background: linear-gradient(to top, #aae, #aea, #eea); }
.mention-2.mention-4.mention-5, .mention-2.mention-4.mention-5 img { background: linear-gradient(to top, #aae, #eae, #eea); }
.mention-3.mention-4.mention-5, .mention-3.mention-4.mention-5 img { background: linear-gradient(to top, #aea, #eae, #eea); }
.mention-1.mention-2.mention-3.mention-4, .mention-1.mention-2.mention-3.mention-4 img { background: linear-gradient(to top, #eaa, #aae, #aea, #eae); }
.mention-1.mention-2.mention-3.mention-5, .mention-1.mention-2.mention-3.mention-5 img { background: linear-gradient(to top, #eaa, #aae, #aea, #eea); }
.mention-1.mention-2.mention-4.mention-5, .mention-1.mention-2.mention-4.mention-5 img { background: linear-gradient(to top, #eaa, #aae, #eae, #eea); }
.mention-1.mention-3.mention-4.mention-5, .mention-1.mention-3.mention-4.mention-5 img { background: linear-gradient(to top, #eaa, #aea, #eae, #eea); }
.mention-2.mention-3.mention-4.mention-5, .mention-2.mention-3.mention-4.mention-5 img { background: linear-gradient(to top, #aae, #aea, #eae, #eea); }

.chapter-media {
    display: flex;
    justify-content: space-between;
}

.audio-selector select {
    margin-bottom: 0.5ex;
}

.bigger {
    font-size: 150%;
}

.image-selector select {
    margin-bottom: 0.5ex;
}

.tiny-image-preview {
    max-width: 100px;
    max-height: 100px;
}

.separator-image-preview {
    max-width: 300px;
    max-height: 50px;
}

.image-preview {
    display: block;

    margin: 20px auto;

    max-width: 200px;
    max-height: 200px;
}

.thread-list.narrator > li {
    margin-bottom: 20px;
    background-color: var(--alt-bg-color);
}
.thread-list.narrator li .btn-bar {
    padding: 10px 0 0 0;
}
.thread-list.narrator textarea {
    width: 100%;
}

.new-message textarea {
    width: 100%;
    /* max-width locks the user-resizing to be only vertical */
    max-width: 100%;
}

.reactions.narrator {
    display: block;
    padding-left: 0;
}
.reactions.narrator li {
    display: block;
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.last-chapters {
    display: block;
    margin-top: 0;
    padding-left: 0;
}
.last-chapters li {
    display: block;
    margin-bottom: 20px;
}

ul.user-list {
    margin-top: 10px;
    padding-left: 0;
}
ul.user-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 15px;
}
ul.user-list li label.user {
    font-size: 20px;
}
ul.user-list li label.unverified {
    font-style: italic;
}
ul.user-list li label.unverified:after {
    content: ' (unverified)'
}
ul.user-list li label.admin {
    font-weight: bold;
}
ul.user-list li label.admin:after {
    content: ' (admin)'
}
ul.user-list > li:nth-child(odd) {
    background-color: var(--alt-bg-color2);
}

/* ProseMirror dialogs */
.ProseMirror-prompt form {
    margin: 10px;
}
.ProseMirror-prompt form h5 {
    margin-left: -15px;
    margin-right: -15px;
    border-bottom: 1px solid black;
    padding: 0 15px 5px 15px;

    font-size: 18px;
    font-weight: bold;
}
.ProseMirror-prompt .ProseMirror-prompt-buttons {
    margin-top: 10px;
    text-align: right;
}
.ProseMirror-prompt .control-line {
    margin-top: 10px;
}
.ProseMirror-prompt .control-line select {
    margin-right: 5px;
}

.narration-finished, .narration-abandoned {
    position: relative; /* Needed for the ribbon to work */
    overflow: hidden; /* Needed for the ribbon to work */

    border: 1px solid #006;
    padding-right: 2px;

    background-color: #ddd;
}

.corner-ribbon {
    position: absolute;
    top: 25px;
    left: -50px;

    width: 200px;
    color: #f0f0f0;
    background: #006;
    box-shadow: 0 0 3px rgba(0,0,0,.3);
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);

    font-weight: bold;
    text-align: center;
    line-height: 50px;
    letter-spacing: 1px;
    text-transform: capitalize;
}
.corner-ribbon.top-right {
    top: 25px;
    right: -50px;
    left: auto;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}
.corner-ribbon-abandoned {
    background: #ab8b5c;
    color: #333;
}

.narration-list {
    display: flex;
    flex-wrap: wrap;
}
.narration-container {
    width: 500px;
    margin: 0 20px 20px 0;
    border: 1px solid #aaa;
    padding: 15px;

    /* For the ribbon */
    position: relative;
    overflow: hidden;
}
.narration-container .narration-header {
    margin-top: 0;
}
.narration-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 20px;  /* Should probably be the same as for h2 */
}
.narration-header *:last-child {
    margin-right: 0;
}
.narration-header h2 {
    margin: auto 0;
}
.narration-header a {
    text-decoration: none;
}
.narration-header .banner {
    /* Smaller margins than h1 (because the banner apparently is 1px
       taller than an h1) so that showing a banner besides an h1 won't
       make the page jump */
    margin-up: 5px;
    margin-bottom: 5px;
}

.participation-list {
    display: flex;
    flex-wrap: wrap;
}
.participation-container {
    width: 500px;
    margin: 0 20px 20px 0;
    border: 1px solid #aaa;
    padding: 15px;

    /* For the ribbon */
    position: relative;
    overflow: hidden;
}
.participation-container h2 {
    margin-top: 0;
}
.character-container {
    display: flex;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 20px;
}
.character-container > .avatar {
    margin-right: 10px;
}
.narration-status label {
    font-weight: normal;
}

.reaction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 5px;
}

.one-line {
    display: flex;
    justify-content: space-between;
}

.chapter-list {
    padding-left: 0;
}
.chapter-list > li {
    display: flex;
    justify-content: space-between;
    padding: 8px;
}
.chapter-list > li a {
    font-size: 20px;
}
.chapter-list-compact {
    margin-bottom: 0;
}
.chapter-list-compact > li a {
    font-size: 16px;
}
.chapter-list > li:nth-child(odd) {
    background-color: var(--alt-bg-color2);
}

.message-counter {
    display: inline-block;
    width: 35px;
}

.narration-styles-preview {
    width: 100%;
    margin-left: 0;
    padding: 20px;
}

.narration-styles-preview .title-preview {
    text-align: center;
    margin-bottom: 20px;
}

.narration-styles-preview .body-text-preview {
    padding: 15px;
}
