.container {
  width: 100%;
  height: 100%;
  background: var(--secondary-color);
  border-top-right-radius: inherit;
  border-bottom-right-radius: inherit;
  border-left: 1px solid #2c3947;
}

.top_bar {
  height: 70px;
  width: 100%;
  background: var(--secondary-bg-rgba);
}

.top_bar_container {
  height: 100%;
  width: 90%;
  margin: 0px auto;
  display: flex;
  align-items: center;
}

.chat_image {
  height: 45px;
  width: 45px;
  border-radius: 50%;
}
.chat_name {
  font-size: 14px;
  margin-left: 10px;
  font-weight: 600px;
}

.chat_container {
  position: relative;
  width: 100%;
  height: 335px;
  border-bottom-right-radius: inherit;
  overflow-x: hidden;
  overflow-y: scroll;
}
.chat_container::-webkit-scrollbar {
  width: 5px;
}
.chat_container::-webkit-scrollbar-track {
  background: inherit;
}
.chat_container::-webkit-scrollbar-thumb {
  background: var(--text-color-secondary);
  border-radius: 10px;
}
.chat_message {
  display: flex;
  padding: 10px;
  width: 100%;
}
.user_image {
  height: 35px;
  width: 35px;
  border-radius: 50%;
}
.message {
  /* background: var(--secondary-bg); */
  background: var(--primary-color);
  /* width: 50%; */
  max-width: 350px;
  margin-left: 10px;
  border-radius: 20px;
  padding: 10px 20px;
}
.user_name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}
.msg_content {
  font-size: 14px;
  line-height: 1.1rem;
  width: 100%;
  word-wrap: break-word;
}
.chat_message.me {
  flex-direction: row-reverse;
}
.chat_message.me .message {
  margin-left: 0px;
  margin-right: 10px;
  /* background: var(--primary-color); */
  background: var(--secondary-bg);
}

.input_container {
  height: 45px;
  border-top: 2px solid #2c3947;
  display: flex;
  padding-right: 10px;
}
.input {
  height: 100%;
  padding: 0px 20px;
  width: 100%;
  background: none;
  outline: none;
  border: none;
  color: var(--text-primary);
  font-weight: 600;
  font-family: "Public sans";
}
.spinner_container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 40px;
  width: 40px;
}
.time_posted {
  /* position: absolute; */
  font-size: 10px;
  text-align: right;
  margin-top: 10px;
  color: #ccc;
}
.time_posted.me {
  text-align: left;
}

@media screen and (max-width: 800px) {
  .chat_container {
    height: 420px;
  }
  .message {
    max-width: calc(100% - 90px);
  }
  .msg_content {
    font-size: 12px;
  }
}
