/* MESS COMMENT SECTION STYLES */


/* Comment section header styles: */
#page-details {
    /*width: 97%;*/
    width: 95%;
    height: 70px;
    display: flex;

    margin: 20px 10px 30px 10px;
    padding-left: 10px;

    /*position: sticky;*/
}

/*#page-details:after {*/
    /*content: '';*/
    /*position: absolute;*/
    /*left: 30px;*/
    /*top: 5px;*/
    /*z-index: 1;*/
    /*height: 200px;*/
    /*width: 400px;*/
    /*!*background-size: auto;*!*/
    /*background: url("/site/resources/headerbg2.png");*/
    /*background-size: contain;*/

    /*background-repeat: no-repeat;*/
/*}*/

div.page-title
{
    float: left;
    display: block;
    align-content: flex-start;
    margin: 20px 5px 0px 0;
    padding: 0 0 5px 0px;
}

div.page-title p {
    -webkit-margin-before: 0em;
    -webkit-margin-after: 0em;

    /* 2 lines of hidden overflow text */
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
    /*text-transform: uppercase;*/

    overflow:hidden;
    text-overflow: ellipsis;
    /*word-break: break-all;*/
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Voodoo to make the ellipsis ("...") work*/
    -webkit-box-orient: vertical;
    max-height: 2.4em; /* 2 lines visible maximum */
    line-height: 1.2em;

    padding-left: 10px;
    border-width: 0 0 0 5px;
    border-style: solid;
    border-color: #00c160;
}

.site-details {
    display: block;
    clear: both;
    color: #e1e1e1;
    font-size: 14px;
    font-style: italic;
    letter-spacing: 2px;
    margin-left: 35px;
    cursor: pointer;
}

.page-vote-panel {
    width: auto;
    float:right;
    margin-left: auto;
    display: block;
    align-content: flex-end;

    padding-right: 15px;
    margin-right: 5px;
    font-size: 18px;
}

.page-total-votes {
    text-align: center;
    font-weight: bold;
    font-size: 140%;
}

.page-total-votes.positive-vote-color {
    color: #5c9563;
}

.page-total-votes.negative-vote-color {
    color: #955255;
}

.page-total-votes.neutral-vote-color {
    color: #fff;
}

.page-vote-button {
    text-align: center;
    cursor: pointer;
    user-select: none;

    height: 20px;
    width: 20px;
}

.page-vote-button.pressed-vote-button
{
    color: #ff7f00;
}

.page-vote-button.pressed-vote-button.upvote img
{
    /*content:url("../resources/mess-vote-upvote-green.png");*/
    content:url("../resources/mess-vote-upvote-orange.png");
}

.page-vote-button.pressed-vote-button.downvote img
{
    /*content:url("../resources/mess-vote-downvote-red.png");*/
    content:url("../resources/mess-vote-downvote-orange.png");
}

.page-upvote-icon, .page-downvote-icon {
    max-width:100%;
    max-height:100%;
}

.comment-count-sort {
    width: 95%;
    height: auto;
    display: flex;

    padding-left: 10px;
    margin-left: 5px;
    /*padding-bottom: 10px;;*/
}

.comment-count {
    display: flex;
    float: left;
    padding-top: 14px /*As big as the text above the sort droplist so they'll be on the same line*/
}

.comment-count div.count-number {
    display: inline-block;
    padding-right: 5px;
}

.comment-sort {
    display: block;
    align-content: flex-end;
    float: right;
    margin-left: auto;
    margin-right: 10px;
    font-size: 13px;
}

.comment-sort form.choose-sort select{
    font-family: Cursive;
    font-size: 16px;
    border-radius: 3px;
    margin: 2px;
}



/* Add top level comment button styles: */

#new-comment-container {
    margin: 5px 0 5px 10px;
    padding-bottom: 5px;
}

.mess-styled-button.mess-new-comment-button {
    padding: 8px 15px;
    font-size: 16px;
    margin: 2px;
}

#mess-new-comment-text {
    width: 98%;
    display: block;
    height: 50px;
}
/*#mess-new-comment-text.logged-in:focus {*/
    /*height: 180px;*/
    /*transition: height 0.3s;*/
/*}*/

#mess-new-comment-text::-webkit-input-placeholder {
    font-size: 16px;
}


/* Comment styles: */
#mess-comment-section {
    padding-bottom: 9px;
    margin: 5px 0 5px 5px;
}

.comment-wrapper {
    margin: 5px;
    border-radius: 4px;
    overflow: auto;
    color: #333;
    border: 1px solid rgba(100, 100, 100, 0.4);
}

.comment-even-level-color {
    background-color: #fff;
    /*border: 1px solid #fff;*/
    /*border: 1px solid #333;*/
}

.comment-even-level-color > .comment-header {
    background-color: #fff;
}

.comment-odd-level-color {
    background-color: #E8F5E9;
    /*border: 1px solid #E8F5E9;*/
    /*border: 1px solid #333;*/
}

.comment-odd-level-color > .comment-header {
    background-color: #E8F5E9;
}

.comment-wrapper .mess-styled-button {
    padding: 5px 10px;
    font-size: 14px;
    margin: 2px;
    background-color: rgba(0, 193, 96, 0.7); /* Same color as the navbar/logo but with 0.7 opacity*/
}

.comment-wrapper .mess-styled-button:hover {
    background-color: rgba(0, 193, 96, 0.5); /* Same color but with 0.5 opacity*/
}

.comment-header {
    align-content: flex-start;
    /*border-radius: 5px 5px 0px 0px;*/
    margin: 5px;
    padding-bottom: 5px;
    border-width: 0 0 1px 0;
    border-style: solid;
    border-color: #1B5E20;
    overflow: auto;
}

.comment-header div {
    align-self: flex-start;
    float: left;
    display: block;
    margin: 0;
    padding-right: 15px;
    font-size: 14px;
}

.comment-header div.username a{
    color: #2E7D32;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

.comment-header div.hide-comment, .comment-header div.show-comment {
    float: right;
    cursor: pointer;
    user-select: none;
    padding-right: 0;
}

.comment-middle {
    overflow: auto;
}

.comment-body {
    width: 90%;
    word-wrap: break-word;
    /*padding-left: 5px;*/
}

.comment-body p {
    -webkit-margin-before: 0.5em;
    -webkit-margin-after: 0.8em;
    font-size: 15px;
}

.comment-body a, a:visited
{
    text-decoration: none
    /*text-decoration-line: none;*/
}

.comment-body .hashtag
{
    color: rgb(0, 145, 59);
    font-weight: bold;
}

.comment-footer {
    padding-left: 5px;
    padding-bottom: 5px;
}

.comment-reply-section {
    display: none;
    padding-left: 5px;
    padding-right: 5px;
}

.comment-reply-section .comment-reply-text {
    box-sizing: border-box;
    width: 100%;
    padding-right: 20px;
}

.comment-edit-section {
    display: none;
    padding-left: 5px;
    padding-right: 5px;
}

.comment-edit-section .comment-edit-text {
    height: 100px;
}

.comment-wrapper.deleted .comment-body {
    padding-left: 5px;
}

/* Vote buttons styles: */
.comment-vote-panel {
    width: auto;
    float:left;
    margin: 2px;
    padding-top: 2px;
    padding-right: 5px;
    margin-right: 5px;
    /*border-width: 0 1px 0 0;*/
    /*border-style: dotted;*/
    /*border-color: #1B5E20;*/
}

.comment-total-votes {
    text-align: center;
    font-weight: bold;
    font-size: 120%;
}

.comment-total-votes.positive-vote-color {
    color: #5c9563;
}

.comment-total-votes.negative-vote-color {
    color: #955255;
}

.comment-total-votes.neutral-vote-color {
    color: #909495;
}

.comment-vote-button {
    text-align: center;
    cursor: pointer;
    user-select: none;

    height: 18px;
    width: 18px;
}

.comment-vote-button.pressed-vote-button
{
    color: #ff7f00;
}

.comment-vote-button.pressed-vote-button.upvote img
{
    /*content:url("../resources/mess-vote-upvote-green.png");*/
    content:url("../resources/mess-vote-upvote-orange.png");}

.comment-vote-button.pressed-vote-button.downvote img
{
    /*content:url("../resources/mess-vote-downvote-red.png");*/
    content:url("../resources/mess-vote-downvote-orange.png");
}

.comment-upvote-icon, .comment-downvote-icon {
    max-width:100%;
    max-height:100%;
}

/* Hidden comment: */
.comment-wrapper.hidden-comment div.comment-vote-panel,
.comment-wrapper.hidden-comment div.comment-middle,
.comment-wrapper.hidden-comment div.comment-footer,
.comment-wrapper.hidden-comment div.children {
    display: none;
}

.comment-wrapper.hidden-comment div.comment-header {
    border-color: darkgray;
    color: darkgrey;
}

.comment-wrapper.hidden-comment div.comment-header .username {
    color: darkgrey;
}

.no-comments {
    text-align: center;
}


/*Comments with context, for profile and hashtag pages*/
.hashtag-details-wrapper {
    text-align: center;
}


/* Comment section with context wrapper: */
.context-header {
    align-content: flex-start;
    /*border-radius: 5px 5px 0px 0px;*/
    margin: 5px;
    margin-left: 10px;
    padding-bottom: 5px;
    border-width: 0 0 1px 0;
    border-style: solid;
    border-color: #1B5E20;
    overflow: auto;
}

.context-header div {
    align-self: flex-start;
    float: left;
    display: block;
    margin: 0;
    padding-right: 15px;
    font-size: 14px;
    font-style: italic;
}

.context-header a {
    text-decoration: none;
    /*color:inherit;*/
    color: #4c4c4c;
}

.context-text {
    color: #909090;
}

.inner-comment-wrapper {
    margin: 5px;
    border-radius: 4px;
    overflow: auto;
    color: #333;

    margin-left: 20px;
    cursor: pointer;

}

.thread-details {
    margin: 10px 20px 5px 0;
}

.thread-link {
    text-decoration: none;
    color: green;
    font-size: 15px;
}
