:root {
  --gray-color: #6c757d;
  --border-radius: 1rem;
  --lite-bgc: #6c757d;
  --border-color: rgba(81, 81, 81, 0.356);
  --border-color-b: rgb(81, 81, 81);

  /* body */

  --background-color: #fff;
  --color: #000;

  /* card */

  --them-bgc: #bfbfbf;
  --them-color: black;

  /* menu */
  /* --menu-bgc: #2f2f2f;
  --menu-hover: #1515157b; */

  --menu-bgc: #bfbfbf;
  --menu-hover: #7575757b;

  /* like color */

  --like-color: red;
  --co-color: #3eadbc;

  /* icon color */

  --icon-color: #000;
}

.them {
  background-color: var(--them-bgc);
  color: var(--them-color);
}

.post_up {
  display: none;
}

.post_upload_can {
  display: flex;
  position: fixed;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, -70px);
  height: 150px;
  width: 95%;
  max-width: 650px;
  height: fit-content;
  border-radius: 1.5rem;
}

.content-editor {
  min-height: 80px;
  width: 90%;
  padding: 1rem;
  border-radius: var(--border-radius);
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
}

.content-editor:empty:before {
  content: attr(placeholder);
  color: var(--gray-color);
  pointer-events: none;
  display: block;
}

.post_up > .post_upload_can > .tools_up {
  display: flex;
  width: 90%;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 1rem;
}

.post_up > .post_upload_can > .tools_up > .s_btn > button {
  padding: 0.4rem;
  color: inherit;
  min-width: 80px;
  cursor: pointer;
  border: none;
  background-color: #3eadbc;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  &:hover {
    background-color: #387d6c;
  }
}

.post_up > .post_upload_can > .tools_up > .s_btn > .Cancel {
  background: var(--lite-bgc);
}

.post_up > .post_upload_can > .tools_up > .a_btn {
  display: flex;
  gap: 1rem;
}
.post_up > .post_upload_can > .tools_up > .a_btn > div {
  display: flex;
  position: relative;
  overflow: hidden;
}

.post_up > .post_upload_can > .tools_up > .a_btn > div > input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.post_up > .post_upload_can > .tools_up > .a_btn > div > i {
  cursor: pointer;
  font-size: 1.2rem;
}

/* preview image and video */

.post_up > .post_upload_can > .view_image_video {
  display: flex;
  /* flex-wrap: wrap; */
  width: 90%;
  max-width: 100%;
  gap: 10px;
  overflow: auto;
  scrollbar-width: none;
}

.post_up > .post_upload_can > .view_image_video > div {
  position: relative;
}

.post_up > .post_upload_can > .view_image_video > div > img {
  width: 150px;
  cursor: pointer;
  aspect-ratio: 2/1.2;
  border-radius: var(--border-radius);
  object-fit: cover;
}

.post_up > .post_upload_can > .view_image_video > div > video {
  width: 150px;
  cursor: pointer;
  aspect-ratio: 2/1.2;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.post_up > .post_upload_can > .view_image_video > div > .fa-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
  opacity: 0.5;
  text-shadow: 0 0 7px black;
}

.post_up > .post_upload_can > .view_image_video > div > button {
  background-color: inherit;
  position: absolute;
  border: none;
  color: rgba(255, 0, 0, 0.792);
  right: 5px;
  top: 0;
  font-size: 1.7rem;
  cursor: pointer;
}

/* preview image video */

.preview_image_video_s {
  display: none;
  align-items: center;
  flex-direction: column;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 98%;
  max-width: 650px;
  height: 97dvh;
  max-height: fit-content;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.preview_image_video_s > div {
  width: 100%;
  height: auto;
}

.preview_image_video_s > div > img {
  width: 100%;
  max-height: 100%;
  object-fit: cover;
  padding: 1rem 0 0 0;
}

.preview_image_video_s > div > video {
  width: 100%;
  max-height: 100%;
}

.preview_image_video_s > .image_preview_jj {
  display: flex;
  gap: 10px;
  height: 90%;
  width: fit-content;
  max-width: 650px;
  margin-top: 10px;
  margin-bottom: 10px;
  /* overflow: auto; */
  scrollbar-width: none;
}

.preview_image_video_s > .btn_hhhh,
.btn_hhhh {
  display: flex;
  width: 90%;
  justify-content: space-between;
}

.preview_image_video_s > div > button,
.btn_hhhh > button {
  padding: 3px;
  min-width: 100px;
  border-radius: var(--border-radius);
  cursor: pointer;
  margin-bottom: 1rem;
}

/* ! views user post */

.view {
  display: none;
  position: fixed;
  width: 100%;
  max-width: 900px;
  max-height: 95vh;
  min-height: 90dvh;
  gap: 10px;
  padding: 1rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 1rem;
}

.view > .close_btn_jj {
  position: absolute;
  cursor: pointer;
  left: 25px;
  z-index: 1;
}

.view > .close_btn_jj > i {
  text-shadow: 0 0 4px black;
}

.view > .post_view {
  display: flex;
  width: 50%;
  align-items: center;
}

.view > .post_view > img {
  width: 100%;
  max-height: 100%;
}

.view > .post_view > video {
  width: 100%;
  max-height: 100%;
}

.view > .post_comment_view {
  display: flex;
  flex-direction: column;
  width: 50%;
  gap: 10px;
  min-height: 100%;
  justify-content: space-between;
}

.view > .post_comment_view > .user_v {
  display: flex;
  width: 100%;
  justify-content: space-around;
  position: relative;
}

.view > .post_comment_view > .user_v > img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 1rem;
  cursor: pointer;
}

.view > .post_comment_view > .user_v > .u_name {
  display: flex;
  flex: 1;
  margin-left: 20px;
  flex-direction: column;
  justify-content: center;
}

.view > .post_comment_view > .user_v > .u_name > .full_name {
  font-size: var(--post-u-name-s);
  font-family: var(--font-ss);
  opacity: 0.95;
  cursor: pointer;
  width: fit-content;
}

.view > .post_comment_view > .user_v > .u_name > .user_name_time {
  font-size: var(--post-u-name-s);
  font-family: var(--font-ss);
  opacity: 0.8;
  cursor: pointer;
  width: fit-content;
}

.view > .post_comment_view > .user_v > .u_name > .user_name_time > span {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-left: 1rem;
}

.view > .post_comment_view > .user_v > .menu {
  font-size: 1.5rem;
  cursor: pointer;
}

.view > .post_comment_view > .user_v > .menu_cantenr {
  display: none;
  position: absolute;
  cursor: pointer;
  right: 1rem;
  top: 2rem;
  background-color: var(--menu-bgc);
  border-radius: 0.8rem;
  box-shadow: 0 0 7px #17171785;
  z-index: 1;
}

.view > .post_comment_view > .user_v > .menu_cantenr > ul {
  list-style-type: none;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.view > .post_comment_view > .user_v > .menu_cantenr > ul > li {
  padding: 8px;
  border-radius: 0.5rem;
  &:hover {
    background-color: var(--menu-hover);
  }
}

.view > .post_comment_view > .view_comm {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 100%;
  overflow: auto;
  scrollbar-width: none;
  flex: 1;
  gap: 10px;
  align-items: center;
}

.view > .post_comment_view > .view_comm > pre {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  font-size: 1rem;
  /* font-family: var(--font-ss); */
  margin-left: 1rem;
}

.view > .post_comment_view > .view_comm > .comment_h {
  display: flex;
  flex-direction: column;
  min-width: 90%;
  max-width: 100%;
  gap: 10px;
  align-items: flex-start;
  position: relative;
}

.view > .post_comment_view > .view_comm > .comment_h > div {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color-b);
  padding: 0.4rem;
  border-radius: var(--border-radius);
  min-width: 300px;
  max-width: 400px;
}

.view > .post_comment_view > .view_comm > .comment_h > div > .com_meesage {
  opacity: 0.8;
  margin-left: 10px;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

.view > .post_comment_view > .view_comm > .comment_h > div > .uer_c {
  display: flex;
  width: 100%;
  margin: 0px 0 10px 0;
  position: relative;
}

.view
  > .post_comment_view
  > .view_comm
  > .comment_h
  > div
  > .uer_c
  > .user_jkd {
  display: flex;
  flex: 1;
  gap: 10px;
  align-items: center;
}

.view > .post_comment_view > .view_comm > .comment_h > div > .uer_c > div > p {
  font-size: var(--post-u-name-s);
  font-family: var(--font-ss);
  opacity: 0.95;
  cursor: pointer;
}

.view
  > .post_comment_view
  > .view_comm
  > .comment_h
  > div
  > .uer_c
  > div
  > span {
  font-size: 0.8rem;
  margin-left: 10px;
  opacity: 0.7;
}

.view > .post_comment_view > .view_comm > .comment_h > div > .uer_c > span {
  font-size: 1.5rem;
  position: absolute;
  top: -10px;
  right: 10px;
  cursor: pointer;
}

.view
  > .post_comment_view
  > .view_comm
  > .comment_h
  > div
  > .uer_c
  > div
  > img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

.view > .post_comment_view > .view_comm > .comment_h > div > .tools_coo {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 10px;
  margin-left: 10px;
  font-size: 1rem;
  position: relative;
}

.view > .post_comment_view > .view_comm > .comment_h > div > .tools_coo > span {
  display: flex;
  gap: 5px;
}
.view
  > .post_comment_view
  > .view_comm
  > .comment_h
  > div
  > .tools_coo
  > span
  > p {
  color: var(--co-color);
  cursor: pointer;
}

.view
  > .post_comment_view
  > .view_comm
  > .comment_h
  > .tools_coo
  > span
  > span {
  font-size: 1rem;
}

.replies_comm {
  position: absolute;
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  align-items: center;
  padding: 10px;
  left: 0;
  top: 17px;
  margin-top: 10px;
  z-index: 1;
  max-height: 60dvh;
  box-shadow: 0 0 10px var(--menu-bgc);
}

.replies_comm > span {
  display: flex;
  width: 97%;
  gap: 10px;
}

.replies_comm > span > button {
  width: 50px;
  cursor: pointer;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color-b);
  background-color: inherit;
  color: inherit;
  box-shadow: inset 0 0 10px var(--border-color);
}

.replies_comm > span > input {
  width: 90%;
  background-color: inherit;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: inherit;
  padding: 6px;
}

.comment_comment_bo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  overflow: auto;
  scrollbar-width: none;
}

.comment_comment {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  padding: 10px 10px 4px 10px;
  border-radius: 0.7rem;
}
.comment_comment > div {
  display: flex;
  gap: 10px;
}
.comment_comment > div > img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 50%;
}
.comment_comment > pre {
  margin-left: 10px;
  padding: 4px;
}

.comment_comment > .comment_tools_c {
  color: var(--co-color);
  font-size: 0.7rem;
}
.comment_comment > .comment_tools_c > span {
  cursor: pointer;
}

.view > .post_comment_view > .comment_and_like {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.view > .post_comment_view > .comment_and_like > .send_comment {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 10px;
}

.view > .post_comment_view > .comment_and_like > .send_comment > input {
  width: 90%;
  font-size: 1rem;
  padding: 10px;
  border-radius: 0.7rem;
  border: 1px solid var(--border-color);
  outline: none;
  background-color: inherit;
  color: inherit;
}

.view > .post_comment_view > .comment_and_like > .send_comment > button {
  width: 100px;
  border-radius: 0.7rem;
  border: 1px solid var(--border-color);
  background-color: inherit;
  color: inherit;
  cursor: pointer;
  box-shadow: inset 0 0 10px var(--menu-bgc);
}

.view > .post_comment_view > .comment_and_like > .toole_p {
  display: flex;
  justify-content: space-between;
}

.view > .post_comment_view > .comment_and_like > .toole_p > div {
  display: flex;
  gap: 10px;
  font-size: 1.3rem;
}

.view > .post_comment_view > .comment_and_like > .toole_p > div > span {
  font-size: 1rem;
}

.view > .post_comment_view > .comment_and_like > .toole_p > div > i {
  cursor: pointer;
}

/* like color */

.fa-heart {
  color: var(--co-color);
}

.like_true {
  color: var(--like-color);
  cursor: pointer;
}

/* post menu */
.menu_post_user_c {
  display: none;
  position: absolute;
  cursor: pointer;
  right: 1rem;
  top: 2rem;
  background-color: var(--menu-bgc);
  border-radius: 0.8rem;
  box-shadow: 0 0 7px #17171785;
  z-index: 1;
  transition: all 0.2s ease;
  overflow: hidden;
}

.menu_post_user_c > ul {
  list-style-type: none;
  min-width: 150px;
}

.menu_post_user_c > ul > li {
  padding: 10px 1rem;
  width: 100%;
  &:hover {
    box-shadow: 0 0 7px var(--menu-hover);
  }
}

/* alert message */

.check_yes_no {
  display: none;
  flex-direction: column;
  gap: 1rem;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0.6rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 400px;
  align-items: center;
}

.check_yes_no > .btn_alert_h {
  display: flex;
  border-radius: 1rem;
  justify-content: space-between;
  gap: 1rem;
  width: 90%;
}
.check_yes_no > .close_btn_al {
  position: absolute;
  padding: 10px;
  top: 0;
  right: 0;
  cursor: pointer;
}
.check_yes_no > p {
  padding: 1.3rem 3rem;
  font-family: var(--font-ss);
}
.check_yes_no > .btn_alert_h > button {
  padding: 7px;
  border-radius: 0.7rem;
  min-width: 70px;
  cursor: pointer;
  border: 1px solid var(--menu-bgc);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.756);
  &:hover {
    box-shadow: inset 0 0 10px rgba(33, 176, 237, 0.756);
  }
}

#alert_box_SS {
  left: 50%;
  top: 10px;
  transform: translate(-50%, 0);
  max-width: 600px;
}
#alert_box_SS > p {
  padding: 1rem;
}

@media (max-width: 781px) {
  .view {
    position: relative;
    flex-direction: column;
    align-items: center;
    max-height: fit-content;
    width: 100%;
    height: fit-content;
    z-index: 0;
    left: 0;
    padding: 0;
    margin-bottom: 20px;
    padding-bottom: 20px;
    transform: none;
  }
  .view > .post_comment_view {
    width: 90%;
    max-height: fit-content;
  }
  .view > .post_view {
    width: 100%;
    height: fit-content;
    /* max-height: 90dvh; */
  }
  .view > .post_view > video {
    width: unset;
    max-width: 100%;
    /* height: 100%; */
    max-height: unset;
  }
  .view > .post_comment_view > .view_comm {
    height: max-content;
  }
}
