* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-color-lightgrey: lightgrey;
  --bg-color-white: white;
  --button-color-blue: rgb(65, 65, 100);
  --button-color-hover: rgb(118, 118, 186);
  --button-color-hover-delete: rgb(201, 125, 125);
  --font-color-grey: rgb(142, 139, 139);
  --font-color-red: rgb(215, 0, 0);
}

html {
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
  background-color: var(--bg-color-lightgrey);
}

main {
  color: var(--font-color-grey);
}

section,
article {
  margin-bottom: 20px;
}

.reply,
.reply_icon,
.edit {
  color: var(--button-color-blue);
  cursor: pointer;
}

.reply:hover,
.edit:hover {
  color: var(--button-color-hover);
}

.chat_wrapper,
.input_wrapper {
  width: 50%;
  margin: 50px auto;
}

.chat_wrapper .chatbox,
.chat_wrapper .reply_chatbox,
.input_wrapper .input_box,
.chat_wrapper .reply_input_box {
  background-color: var(--bg-color-white);
  border-radius: 5px;
  padding: 10px;
}

.main_article_box {
  display: flex;
  gap: 20px;
}

.main_article_box .evaluation_article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 7.5px;
  background-color: var(--bg-color-lightgrey);
  border-radius: 5px;
  height: 72.5px;
}

.main_article_box .article_body {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  width: 100%;
}

.main_article_box .article_body .article_header {
  display: flex;
  gap: 10px;
  align-items: center;
}

.main_article_box .article_body .article_header img:first-of-type {
  height: 30px;
  width: 30px;
}

.main_article_box .article_body .article_header p:first-of-type {
  font-weight: 800;
}

.main_article_box .article_body .article_header img:last-of-type {
  margin-left: auto;
  padding-left: 5px;
}

/* REPLY CHAT BOX */
.reply_content .reply_chatbox_section,
.reply_content .reply_input_box {
  display: flex;
  gap: 30px;
}

.reply_content .reply_chatbox_section:not(.reply_chatbox_section:first-of-type),
.reply_content .reply_input_box {
  margin-top: -20px;
}

.reply_content .reply_chatbox_section .reply_border,
.reply_content .reply_input_box .reply_border {
  width: 7%;
  border-right: 1px solid rgb(185, 182, 182);
}

.reply_content .reply_chatbox_section .reply_chatbox,
.reply_content .reply_input_box .input_box {
  width: 100%;
}

.reply_content .reply_input_box {
  margin-bottom: 40px;
}

.input_wrapper .input_box,
.chat_wrapper .reply_input_box {
  display: flex;
  gap: 15px;
}

.input_wrapper .input_box img,
.chat_wrapper .reply_input_box img {
  height: 30px;
  width: 30px;
}

.input_wrapper .input_box textarea,
.chat_wrapper .reply_input_box textarea,
.article_text textarea {
  width: 100%;
  padding: 5px;
  resize: none;
}

.input_wrapper .input_box button,
.chat_wrapper .reply_input_box button,
.article_text button {
  width: 15%;
  height: 40px;
  background-color: var(--button-color-blue);
  color: var(--bg-color-white);
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.input_wrapper .input_box button:hover,
.chat_wrapper .reply_input_box button:hover,
.article_text button:hover {
  background-color: var(--button-color-hover);
}

.delete_icon {
  margin-left: auto;
}

.delete {
  color: var(--font-color-red);
  cursor: pointer;
}

.delete:hover {
  color: var(--button-color-hover-delete);
}

.create_update {
  margin: 10px 0;
  right: 0;
  float: right;
}

@media (max-width: 940px) {
  .main_article_box .article_body .article_header {
    gap: 0;
  }

  .article_text .create_update {
    width: 30%;
  }

  .chat_wrapper,
  .input_wrapper {
    width: 75%;
  }
}

@media (max-width: 800px) {
  .main_article_box .article_body .article_header {
    flex-direction: column;
  }

  .main_article_box .article_body .article_header img:last-of-type,
  .delete_icon {
    margin: 0;
  }
  .input_wrapper .input_box,
  .chat_wrapper .reply_input_box {
    display: block;
  }

  .reply_content .reply_input_box .reply_border {
    width: auto;
  }

  .input_wrapper .input_box button,
  .chat_wrapper .reply_input_box button,
  .article_text button {
    width: 50%;
  }

  .article_text .create_update {
    width: 50%;
  }

  .reply_content .reply_chatbox_section,
  .reply_content .reply_input_box {
    gap: 0;
  }

  section,
  article {
    margin-bottom: 10px;
  }
}
