@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@500&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito", sans-serif;
}
body{
    overflow:none;
}
main {
  width: 100vw;
  height: 100%;
  position:absolute;
  background: linear-gradient(109.6deg, rgba(0, 0, 0, 0.93) 11.2%, rgb(63, 61, 61) 78.9%);
  overflow: hidden;
}
main .topper {
  width: 100%;
  height: auto;
  background: linear-gradient(15deg, #13547a 0%, #80d0c7 100%);
  padding: 10px;
  position: sticky;
  z-index:1;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: start;
}
main .topper .icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #11ba91 url(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRaAlXAmdUfKKH-7QZ2yihil_GReFnwJmtB-w&usqp=CAU);
  background-size: cover;
  margin-left: 15px;
}
main .topper .name {
  color: #fff;
  font-weight: bolder;
  margin-left: 15px;
  font-size: 18px;
  letter-spacing: 2px;
}
main .bottom {
  width: 100%;
  height: auto;
  background: #595656;
  position:fixed;
  z-index:1;
  bottom: 0;
  right: 0;
  padding: 10px;
  padding-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}
main .bottom #input {
  width: 95%;
  height: auto;
  background: grey;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
}
main .bottom #input input {
  width: 90%;
  padding: 7px;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
}
main .bottom #input input::placeholder {
  color: #e6e6e6;
}
main .bottom #input button {
  padding: 5px 10px;
  margin: 0 5px;
  font-size: 20px;
  /* background:darken(#ccc,45%);*/
  border-radius: 10px;
  color: #fff;
  transition: 0.2s;
  outline: none;
  border: none;
  background: transparent;
}
main .bottom #input button:active {
  scale: 0.96;
  background: #13d2a3;
  opacity: 0.4;
}
main .bottom::after {
  content: "made by @devasfam";
  position: absolute;
  width: 100%;
  bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #b3b3b3;
}
main .msgs_cont {
  width: 100%;
  height: calc(100vh - 155px);
  overflow: auto;
  padding: 10px;
  padding-bottom: 15px;
  scroll-behavior: smooth;
}
main .msgs_cont ul {
  width: 100%;
  padding: 5px;
}
main .msgs_cont li {
  padding: 10px;
  max-width: 70%;
  margin: 10px 0;
  background: linear-gradient(15deg, #13547a 0%, #80d0c7 100%);
  color: #fff;
  list-style-type: none;
  border-radius: 10px;
  color: #f2f2f2;
  word-wrap: break-word;
  overflow: hidden;
  position:relative;
}
main .msgs_cont .schat {
  float: right;
  clear: both;
  margin-bottom: 5px;
  border-bottom-right-radius:20px;
}
main .msgs_cont .rchat {
  float: left;
  clear: both;
  margin-bottom: 5px;
  background: linear-gradient(to top right, #11ba91, #0A6E55);
  padding-left: 12px;
  border-bottom-left-radius:20px;
}

.typing-animation {
  display: inline-block;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #cccccc;
  border-radius: 50%;
  margin-right: 5px;
  opacity: 0;
  animation: typing-dot 1s infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-dot {
  0%, 20% {
    opacity: 0;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-7px);
  }
  80%, 100% {
    opacity: 0;
    transform: translateY(0);
  }
  }
