@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Ruda:wght@400;600;700&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-family: "poppins", sans-serif;
  background-color: #c9d6ff;
  background: linear-gradient(to right, #e2e2e2, #c9d6ff);
}

.container {
  width: 640px;
  background-color: #17202a;
  border-radius: 10px;
  box-shadow: 5px 0 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.card-header {
  background-color: #212f3d;
  border-radius: 10px 10px 0 0;
  padding: 1rem;
  color: #fff;
  width: 100%;
}

.card {
  overflow-y: auto;
}

::-webkit-scrollbar {
  width: 05px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: #2c3e50;
  border-radius: 5px;
}

.card-body {
  /* background-image: url("); */
  padding: 0.8rem;
  font-size: 1rem;
  height: 800px;
  overflow-y: auto;
}

.card-body .chat-bot {
  display: flex;
  align-items: center;
}

.card-body .user {
  display: flex;
  align-items: center;
  justify-content: end;
}

.card-body .chat-bot p {
  background-color: #273443;
  color: white;
  border-radius: 10px;
  padding: 0.8rem;
  width: 50%;
  white-space: pre-wrap;
}

.card-body .user p {
  background-color: #075E54;
  color: #ffffff;
  border-radius: 10px;
  padding: 0.8rem;
  width: 50%;
  white-space: pre-wrap;
}

.chat-bot,
.user {
  margin: 1rem 0;
}

.chat .user-icon {
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  margin-right: 0.5rem;
  border: 2px solid #212f3d;
}

.user-icon .fa-robot {
  color: #3498db;
}

.user-icon .fa-user {
  color: #28b463;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2rem 0;
}

.card-footer textarea {
  resize: none;
  border: none;
  outline: none;
  font-family: inherit;
  width: 100%;
  display: flex;
  padding: 1.5rem;
  background-color: #212f3d;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  position: absolute;
  bottom: 0;
}

.sending-icon {
  position: absolute;
  right: 30px;
}

.sending-icon .fa-paper-plane {
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

@-webkit-keyframes dots {
  0% { background-position: 0px; }
  100% { background-position: 50px; }
}

span.dots {
  background: linear-gradient(to right, white 50%, black 50%);
  color: transparent;
  -webkit-background-clip: text;
  -webkit-animation: dots 1s infinite steps(4);
  padding-right: 40px;
  margin-right: -40px;
}