/* The actual timeline (the vertical ruler) */
#comment-box-container {
  max-height: 400px;
  overflow-y: scroll;
  background-color: #eeeeee;
  overflow-x: hidden;
}

.comment-user{
  margin-bottom: 0;
}

.comment-date{
  color: #bdbdbd;
}

.comment-box {
  background-color: #eeeeee;
  position: relative;
}

.comment-input {
  resize: none;
}

.comment-reply-btn, .comment-delete-btn {
  float: right;
}

.comment-quote {
  max-height: 5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid #eeeeee;
  padding: 4px;
  color: #9e9e9e;
  font-style: italic;
}

/* The actual timeline (the vertical ruler) */
.comment-box::after {
  content: ' ';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  margin-left: -3px;
  background-color: #9e9e9e;
}

/* Container around content */
.comment {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* Place the container to the left */
.comment-left {
  left: 0;
}

/* Place the container to the right */
.comment-right {
  left: 50%;
}

/* Add arrows to the left container (pointing right) */
.comment-left::after, .comment-left::before {
  content: " ";
  z-index: 1;
  position: absolute;
  width: 0;
  height: 0;
  top: 22px;
  right: 24px;
  border-style: solid;
}

.comment-left::before {
    top: 24px;
    border-color: transparent transparent transparent #9e9e9e;
    border-width: 8px;
}

.comment-left::after {
    right: 23px;
    border-color: transparent transparent transparent #ffffff;
    border-width: 10px;
}

/* Add arrows to the right container (pointing left) */
.comment-right::after, .comment-right::before {
  content: " ";
  z-index: 1;
  position: absolute;
  width: 0;
  height: 0;
  top: 22px;
  left: 24px;
  border-style: solid;
}

.comment-right::before {
    top: 24px;
    border-color: transparent #9e9e9e transparent transparent;
    border-width: 8px;
}

.comment-right::after {
    left: 23px;
    border-color: transparent #ffffff transparent transparent;
    border-width: 10px;
}

/* The actual content */
.comment-msg {
  padding: 12px;
  background-color: white;
  position: relative;
  border-radius: 6px;
  border: 1px solid #9e9e9e;
  overflow: hidden;
  overflow-wrap: break-word;
  box-shadow: 0px 0px 8px #d0d0d0;
}

/*
.comment-msg p{
  padding: 8px;
}
*/

img.comment-avatar{
  display: inline-block;
  border-radius: 50%;
  border: 3px solid #9e9e9e;
  position: absolute;
  z-index: 100;
  width: 50px;
  height: 50px;
  right: -25px;
  top:10px;
  background-color: #ffffff;
  box-shadow: 0px 0px 8px #d0d0d0;
}

.comment-right img.comment-avatar{
  left: -25px;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
/* Place the timelime to the left */
  .comment-box::after {
    left: 20px;
  }

/* Full-width containers */
  .comment {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }


  /* Add arrows to the right container (pointing left) */
  .comment-right::after, .comment-right::before, .comment-left::after, .comment-left::before {
    top: 22px;
    left: 54px;
  }

  .comment-right::before, .comment-left::before {
      top: 24px;
      border-color: transparent #9e9e9e transparent transparent;
  }

  .comment-right::after, .comment-left::after {
      left: 53px;
      border-color: transparent #ffffff transparent transparent;
  }


/* Make all right containers behave like the left ones */
  .comment-right {
    left: 0%;
  }

  img.comment-avatar, .comment-right img.comment-avatar{
    left: -6px;
    right: unset;
  }



}