/* MESS COMMENT SECTION STYLES */


/* Comment section header styles: */

::-webkit-scrollbar {
    width: 10px;
  }
  
  ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px #8080808a;
      border-radius: 0px;
  }
  
  ::-webkit-scrollbar-thumb {
    background:  linear-gradient(45deg, #009f4fb3, #58d96fb3);
    border-radius: 0px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background:  #009f4f;
  }

#page-details {
    /*width: 97%;*/
    width: 95%;
    height: 70px;
    display: flex;
    margin: 20px 10px 30px 10px;
    padding-left: 10px;

  
}



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;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
    overflow:hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
    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;
}

.date{
  border-left: 2px solid #ddd;
padding-left: 5px;
}


/* .children .comment-container:before {
  content: '';
  height: 0;
  width: 0;
  position: relative;
  display: block;
  border-style: solid;
  border-width: 11px 15px 11px 0;
  border-color: transparent rgb(193 193 193);
  left: -10px;
  z-index: 5;
  top: 35px;
} */
.comment-odd-level-color:not(.card-header):before ,.comment-even-level-color:not(.card-header):before{
    font-family: 'FontAwesome';
    content: "\f0d9";
    font-size: 40px;
    height: 0;
    width: 0;
    position: relative;
    display: block;
    left: -14px;
    top: 0px;
   
}
.comment-odd-level-color:not(.card-header):before{
    color: #e8f5e9;
}
.comment-even-level-color:not(.card-header):before{
    color: #ffffff;
}

.comment-even-level-color .card-header{
    border: 3px solid #fff !important;
        }
.comment-odd-level-color .card-header{
    border: 3px solid #e8f5e9 !important;
        }
/* .comment-even-level-color:has(> .card-header):before{
  content: '';
  height: 0;
  width: 0;
  position: relative;
  display: block;
  border-style: solid;
  border-width: 0;
} */

.children{
  margin-left: 35px;
    margin-right: 15px;
    margin-bottom: 15px;
}
@media screen and (max-width: 768px) {
  .children {
    margin-left: 10px;
    margin-right: 0px;
    margin-bottom: 15px;
}
}
/* .context-wrapper:before {
  content: '';
    height: 0px;
    width: 0;
    position: relative;
    display: block;
    border-style: solid;
    border-width: 11px 13px 11px 0;
    border-color: transparent rgb(193 193 193);
    left: -30px;
} */
.comment-wrapper {
    margin: 5px;
    border-radius: 4px;
    overflow: inherit;
    color: #333;
    /* border: 1px solid rgba(100, 100, 100, 0.4); */
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.comment-even-level-color {
    background-color: #fff;
    box-shadow: 0 2px 20px -2px rgb(0 0 0 / 10%)
 
}

.comment-even-level-color > .comment-header {
    background-color: #fff;
}

.comment-odd-level-color {
    background-color: #E8F5E9;
    
}

.comment-odd-level-color > .comment-header {
    background-color: #E8F5E9;
}
.comment-footer{
  margin-bottom: 15px;
}

.comment-wrapper .mess-styled-button {
  padding: 5px 17px;
  font-size: 15px;
  margin: 2px;
  background-color: rgba(0, 193, 96, 0.7);
  border-radius: 25px;
  font-weight: 500; /* Same color as the navbar/logo but with 0.7 opacity*/
}
@media screen and (max-width: 575px) {
    .comment-wrapper .mess-styled-button {
        padding: 5px 7px;
  }
}
.parent-link-button, .delete-comment-button{
  color: #00c160;
    background: transparent !important;
    border: 1px solid #4cd38f;
}
.parent-link-button:hover, .delete-comment-button:hover{
  background: #91cc98 !important;
  color: #fff !important;

}

.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: 15px;
    padding-bottom: 10px;
    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: #00c160;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    font-size: 18px;
}
.comment-header div.username a:hover{
    color: #2E7D32;
}
.comment-header div.hide-comment, .comment-header div.show-comment {
    float: right;
    cursor: pointer;
    user-select: none;
    padding-right: 0;
    color: #4cd38f;
}
.comment-header div.hide-comment:hover, .comment-header div.show-comment:hover {
  color: #00913b;
}
.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;
    background: #00c1603b;
    border-radius: 6px;
    padding: 3px 5px;
    margin-right: 5px;
    display: inline-block;
    margin-top: 5px;
}


.comment-reply-section {
    display: none;
    padding-left: 5px;
    padding-right: 5px;
}
.mess-text-area:focus{
  border: 1px solid #4cd38f;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgb(76 211 143 / 25%);
    margin: 10px;
}
.comment-reply-section .comment-reply-text {
    box-sizing: border-box;
    width: 95%;
    padding-right: 20px;
    margin: 15px auto;
}

.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: 10px;
    padding-top: 2px;
    padding-right: 5px;
    margin-right: 5px;
    margin-left: 0;
}

.comment-button-panel {
    text-align-last: end;
    margin-right: 25px;
}
.comment-total-votes {
    text-align: center;
    font-weight: bold;
    font-size: 120%;
    margin-bottom: 5px;
}

.comment-total-votes.positive-vote-color {
    color: #fff;
    background: #28a745;
    border-radius: 0 10px 10px 0;
}

.comment-total-votes.negative-vote-color {
    color: #fff;
    background: #dc3545;
    border-radius: 0 10px 10px 0;
}

.comment-total-votes.neutral-vote-color {
    color: #fff;
    background: #909495;
    border-radius: 0 10px 10px 0;
}

.comment-vote-button {
  text-align: center;
  cursor: pointer;
  user-select: none;
  height: 40px;
  width: 48px;
}

.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%; */
    width: 25px;
}
.comment-upvote-icon:hover, .comment-downvote-icon:hover{
    border-radius: 50%;
    background: #4cd38fa6;
}
/* 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;
    overflow: auto;
}
.context-username a{
  font-weight: 500;
  color: #008000 !important;
  font-size: 18px;
}
.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: 0px;
    cursor: pointer;

}

.thread-details {
    text-align-last: end;
    margin: 10px 20px 5px 0;
}

.thread-link {
    text-decoration: none;
    color: green;
    font-size: 15px;
}
.thread-details .thread-link {
  border: 1px solid #00c160;
  padding: 7px 10px;
  border-radius: 25px;
}

.mess-sidebar-content .mess-comment-section .comment-container .comment-wrapper{
    padding: 5px;
}