* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
i {
  cursor: pointer;
}
li {
  list-style: none;
}
.chat {
  height: 100vh;
  display: flex;

  color: white;
}

/* chat left start */
.c-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  background-color: #36404a;
}
.c-left i {
  margin-top: 0.7rem;
  color: white;

  cursor: pointer;
}
.c-left i img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid #06d6a0;
}
/* chat left end */

/* chat middle start */
.c-middle {
  flex: 3.5;
  overflow: hidden;
  background-color: #303841;
}
.text {
  width: 80%;
  margin: auto;
}

.text h2 {
  font-family: Public Sans, sans-serif;
  font-weight: 600;
  color: var(--bs-gray-700);
  font-size: calc(1.25625rem + 0.075vw);
  margin-top: 1rem;
}
.text-input {
  margin-top: 1rem;
}

.inputs {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  background-color: #36404a;
  border-radius: 0.4rem;
  padding: 0.9rem 1rem;
}
.inputs input {
  width: 100%;
  background-color: transparent;
  outline: none;
  border: none;
  color: #a6b0cf;

  font-size: 0.875rem;
}
.text-round-icon {
  display: flex;
  align-items: center;
  height: 6rem;

  margin: 1rem 0;
  overflow-x: scroll;
  cursor: pointer;
  text-align: center;
}

::-webkit-scrollbar {
  width: 0;
}
.text-round-icon ul {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  margin-left: 1rem;
}
.text-round-icon ul li {
  width: 4.5rem;
  height: 3.5rem;
  background-color: #36404a;
  border-radius: 0.5rem;
}
.text-round-icon ul li img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin-top: -1rem;
  margin-left: 1rem;
}
::placeholder {
  color: #a6b0cf;
}
.extra {
  position: relative;
}

.circle {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #06d6a0;
  border-radius: 50%;
  right: 12px;
  top: 0;
  bottom: 0;
  margin: auto;
}

.text-chat {
  overflow: hidden;
}
.banner {
  position: fixed;
}
.banner h2 {
  font-size: 16px;
  padding-left: 1rem;
  padding-right: 1rem;
  color: var(--bs-gray-700);
  font-family: Public Sans, sans-serif;
  font-weight: 600;
  margin-top: -5px;
}
.chat-list {
  margin-top: 2rem;
  height: 380px;
  overflow-y: scroll;
}

.chat-list::-webkit-scrollbar {
  width: 5px;
}
.chat-list::-webkit-scrollbar-track {
  background-color: #303841;
}
.chat-list::-webkit-scrollbar-thumb {
  background-color: #abb4d2;
  border-radius: 8px;
}
.chat-items {
  cursor: pointer;
  padding: 0.8rem 0.8rem;
  border-radius: 5px;
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}
.chat-items:hover {
  transition: 0.5s;
  background-color: rgba(0, 0, 0, 0.1);
}
.chat-items:focus {
  transition: 0.5s;
  background-color: rgba(0, 0, 0, 0.1);
}
.chat-list-left {
  display: flex;
  gap: 5px;
}
.chat-list-left img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.end {
  background-color: #303841;
  height: 1rem;
  width: 100%;
}

/* chat middle end */
/* chat right start */

.c-right {
  flex: 7.5;
  position: relative;
  background-color: #262e35;
  height: 100vh;
}
.r-headers {
  border-bottom: 1.5px solid #7269ef;
  width: 90%;
  margin: auto;
  height: 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.head-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}
.circle-c {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #06d6a0;
  border-radius: 50%;
  right: -20px;
  top: 0;
  bottom: 0;
  margin: auto;
}

.head-left img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}
.head-right {
  display: flex;
  gap: 2rem;
}
.hrs {
  position: absolute;
  bottom: 85px;
  left: 0;
  width: 100%;
}
.hrs hr {
  background-color: red;
  height: 1px;
  border: none;
}

/* main chat box start */
.r-chat-box {
  height: 72.5%;
  margin-top: 0.5rem;
  overflow-y: scroll;
}

.frend-text {
  margin-bottom: 0.4rem;
  max-width: 50%;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.f-img img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}
.f-text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 0.4rem;
  background-color: #7269ef;
  padding: 1.6rem 1rem;
  border-radius: 6px;
}
.f-text span:nth-child(1) {
  margin-top: -1rem;
}
.f-text span:nth-child(2) {
  font-size: 12px;
  position: absolute;
  right: 10px;
  bottom: 5px;
  margin: auto;
}
.f-text span i {
  font-size: 12px;
}

.f-extra {
  min-width: 50%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.f-extra .f-names {
  font-size: 16px;
  font-weight: bolder;
  margin-top: -8px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.own-text {
  margin-right: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: row-reverse;
}
.o-chats {
  background-color: #36404a;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 1rem 2rem;
  border-radius: 5px;
}

.o-chats span:nth-child(2) {
  margin-top: 5px;
}
.r-chat-box::-webkit-scrollbar {
  width: 7px;
}
.r-chat-box::-webkit-scrollbar-track {
  background-color: #303841;
}
.r-chat-box::-webkit-scrollbar-thumb {
  background-color: #abb4d2;
  border-radius: 8px;
}
/* main chat box end */

.r-chat-input {
  border-top: 1px solid #46515e;
  position: absolute;
  width: 92%;
  height: 5.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  bottom: 1px;
  left: 0;
  right: 0;
  margin: auto;
}
.input-left {
  flex: 11;
}
.input-left input {
  width: 100%;
  background-color: #36404a;
  outline: none;
  padding: 0.8rem 0.4rem;
  color: #a6b0cf;
  border: 1px solid #36404a;
  border-radius: 5px;
}
.input-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-left: 2rem;
}
.input-right i {
  color: #7269ef;
  font-size: 18px;
  cursor: pointer;
}
.enters {
  cursor: pointer;
  height: 2.5rem;
  width: 2.8rem;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #7269ef;
}
.enters i {
  color: white;
}

@media screen and (min-width: 992px) {
  .text-round-icon {
    display: none;
  }
}

@media screen and (max-width: 992px) {
  .text-input,
  .text-chat,
  text {
    display: none;
  }
  .chat {
    height: 100vh;
    overflow: hidden;
    flex-direction: column-reverse;
  }

  .c-left {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  .c-middle {
    flex: 2;
  }
  .c-right {
    flex: 8;
    height: 72vh;
  }
  .r-headers {
    height: 4rem;
  }
  .r-chat-box {
    height: 75%;
  }
  .r-chat-input {
    height: 5rem;
  }
  .c-left i:nth-child(1) {
    margin-bottom: 1.5rem;
  }
  .c-left i:nth-child(4) {
    margin-bottom: -5px;
  }
  .f-text span:nth-child(2) {
    font-size: 8px;
    position: absolute;
    bottom: 5px;
    margin: auto;
  }
  .f-text {
    width: 100%;
    padding: 1.6rem 1.4rem;
  }
}
