.forum {
  padding: 28px 24px;
  height: 92vh;
  background-color: #222;
}

.forum .search-forum {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.forum .forum-list-group {
  flex: 1;
  padding-top: 32px;
  height: 88%;
}

.forum .forum-list ul {
  margin-top: 15px;
  overflow: auto;
  height: 88%;
}

.forum .search-forum input {
  padding: 15px 25px 15px 60px;
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: #0D0D0D;
  color: #fff;
}

.forum .search-forum input::placeholder {
  font-size: 1rem;
  font-weight: 500;
}

.forum .search-forum .search-input {
  position: relative;
}

.forum .search-forum .search-input::before {
  content: "";
  position: absolute;
  display: block;
  width: 20px;
  height: 20px;
  background-image: url(../../public/img/search_icon.svg);
  background-repeat: no-repeat;
  background-size: cover;
  top: 50%;
  transform: translateY(-50%);
  left: 4%;
}

.forum .forum-content {
  height: 100%;
}

.forum .border-padding-forum {
  padding: 24px 32px;
  height: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: #0D0D0D;
}

.forum .forum-item {
  padding: 15px;
  text-decoration: none;
  border-radius: 20px;
}

.forum .forum-item.active {
  background-color: rgba(255, 255, 255, 0.31);
}

.forum .forum-item .item-img {
  max-width: 56px;
  max-height: 56px;
  flex-shrink: 0; 
}

.forum .forum-choose-item {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.forum .forum-choose-item .choose-item-img {
  width: 75px;
  height: 75px;
}

.forum .forum-item .item-img,
.forum .forum-choose-item .choose-item-img {
  border-radius: 15px;
  overflow: hidden;
}

.forum .forum-choose-item div:last-child {
  row-gap: 14px;
}

.forum .forum-comment-group {
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  height: 50%;
  flex-grow: 1;
}

.forum .forum-comment {
  padding: 16px 4px 16px 24px;
  border-radius: 8px;
  background-color: #fff;
  height: 100%;
}

.forum .forum-comment .forum-comment-content {
  height: 100%;
  overflow-y: auto;
  padding-right: 16px;
}

.forum .forum-comment .comment-item {
  display: flex;
  column-gap: 24px;
  margin-bottom: 38px;
}

.forum .forum-comment .comment-avatar {
  min-width: 40px;
  min-height: 40px;
  border-radius: 50px;
  overflow: hidden;
}

.forum .form-comment-group .reply-button button {
  padding: 10px 20px;
}

.forum .forum-comment .comment-item .reply-button button {
  background-color: unset;
  border: none;
  color: var(--red-main);
  text-transform: uppercase;
  font-size: 0.875rem;
}

.forum .forum-comment .comment-item .reply-button button:hover {
  color: var(--red-main-hover);
}

.forum .forum-comment .comment-item.child-1-comment {
  margin-left: 40px;
}

.forum .form-comment-group {
  padding: 16px 32px;
  display: flex;
  border-radius: 8px;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  background-color: #fff;
}

.forum .form-comment {
  height: 15vh;
  flex-grow: 1;
  overflow-y: auto;
  position: relative;
}


.forum .ck.ck-editor {
  height: 100%;
}

/* .forum .ck .ck-editor__main {
  height: 100%;
}

.forum .ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable, .ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners {
  height: 100%;
} */

.forum .ck.ck-editor__editable_inline,
.forum .ck.ck-toolbar {
  border-left: none;
  border-right: none;
}

.forum .ck.ck-toolbar .ck.ck-toolbar__separator {
  display: none;
}

.ck-body-wrapper {
  display: none;
}

.forum .ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable) {
  box-shadow: none;
  border-left: none;
  border-right: none;
  border-top-color: #ccced1;
  border-bottom-color: #ccced1;
}

.forum .ck .ck-editor__main{
  height: 70%;
}

.forum .ck.ck-editor__main>.ck-editor__editable:not(.ck-focused) {
  height: 100%;
}

.forum .reply-comment-content {
  position: absolute;
  top: 30%;
  left: 0;
  background-color: red;
  border-radius: 8px;
  z-index: 100;
}

.forum .ck.ck-toolbar {
  border: none;
}

.forum .forum-list .border-bottom-forum-item {
  margin: 0 16px;
  border-color: #fff;
}

.forum .reply-group-input {
  padding: 8px 16px;
  margin-right: 20px;
  border-radius: 10px;
  background-color: rgba(0,0,0, 0.1);
  display: none;
}

.forum .close-reply-comment {
  position: absolute;
  right: 14px;
  top: 14px;
}

.forum .close-reply-comment:hover {
  cursor: pointer;
}

.forum .forum-comment .comment-avatar {
  max-width: 40px;
  max-height: 40px;
  border-radius: 50%;
}

.forum .comment-avatar img {
  width: 100%;
}
.emoji{
  font-size: 18px;
  transition: color 0.3s;
}
span.emoji:hover {
  cursor: pointer;
  opacity: 0.7;
}
#emojiPicker {
  position: fixed;
  display: none;
  z-index: 2000;
  bottom: 0;
  right: 0;
}
img#image:hover{
  cursor: pointer;
  background-color: #d9d1d1;
}

.comment-content-text > p > img {
  max-width: 100%;
  height: auto;
}
