/* comment sections */

div.passage-footer {
    text-align: center;
    border: 1px solid #111;
    transition: 300ms all;
    overflow: hidden;
}

div.passage-footer.closed {
    border: 0;
}

button.comment-open {
    color: #000;
}

div.passage-footer button.comment-open {
    min-width: 100%;
    transition: 300ms all;
    font-size: 1rem;
}

div.passage-footer.closed button.comment-open {
    min-width: 10%;
    font-size: 1.2rem;
    color: #fff;
}

div.passage-footer button.comment-open::after {
    float: right;
    content: "\00d7";
}

div.passage-footer.closed button.comment-open::after {
    content: none;
}

div.comment-wrapper {
    margin: 1em;
    overflow: auto;
    max-height: 20em;
    transition: 300ms all;
}

div.passage-footer.closed div.comment-wrapper {
    margin: 0;
}

div.empty-comment.add-comment {
    text-align: center;
    color: #888;
    cursor: pointer;
    margin: 0.1em;
}

div.empty-comment.add-comment:hover, div.empty-comment.add-comment:active {
    color: #111;
}

div.comment-wrapper div.comment-readout:last-child {
    margin-bottom: 1em;
    border-bottom: 1px solid #eee;
}

div.comment-readout div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre;
    padding: 1em;
    display: inline-block;
    height: 1em;
}

div.comment-readout:hover div {
    text-decoration: underline;
}

div.comment-readout:nth-child(odd) {
    background: #eee;
}

div.comment-readout div.number {
    max-width: 1em;
    float: left;
    
}
div.comment-readout div.title {
    max-width: 7em;
    float: left;
    font-weight: bold;
}
div.comment-readout div.content {
    max-width: 72%;
}

.modal-body .comment-content-out {
    white-space: pre-wrap;
    text-align: left;
}

input#comment-title, textarea#comment-content {
    width: 100%;
    margin: 0;
}

textarea#comment-content {
    height: 10em;
}