* {
  margin: 0;
  padding: 0;
}
body {
  overflow-x: hidden;
  perspective: 600px;
  background-color: #242424;
  height: 100vh;
  position: relative;
}

/* start header home */

.header-home .header-content h1 {
  font-size: 70px;
  font-weight: bold;
  background-clip: text;
  background: linear-gradient(to right, #4285f4, #d96570);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-home .bottom-content h2 {
  font-size: 35px;
  font-weight: bold;
  color: rgba(221, 220, 220, 0.932);
}
.header-home .bottom-content p {
  font-size: 35px;
  color: rgba(189, 189, 189, 0.932);
}

@media only screen and (max-width: 450px) {
  .header-home .header-content h1 {
    font-size: 40px;
  }
  .header-home .bottom-content h2 {
    font-size: 25px;
  }
  .header-home .bottom-content p {
    font-size: 25px;
  }
}

/* end header home */

/* start main home */

.mainHome {
  margin-top: 50px;
  margin-bottom: 10px;
}

.mainHome .message .message-content p {
  color: rgb(199, 198, 198);
  white-space: pre-wrap;
}

.mainHome .message .message-content img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.mainHome .message .message-content {
  display: flex;
}

.mainHome .message .svg-inline--fa {
  cursor: pointer;
  color: #444;
  font-size: 27px;
}
.mainHome .message .svg-inline--fa:hover {
  cursor: pointer;
  color: #e3e3e3;
}

/* end main home */


/* start form  */

.formData {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  width: 80%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 0 10px;
  margin: auto;
}

.formData input {
  background-color: #3b3b3b;
  border-radius: 30px;
  border: none;
  padding: 15px 50px 15px 15px;
  color: white;
  width: 100%;
  position: relative;
  outline: none;
  margin: auto;
}

.formData input:focus {
  background-color: #4e4d4d;
  color: white;
}

.formData input::placeholder {
  color: #969595;
}

.formData button {
  position: absolute;
  right: 20px;
  border: none;
  background: none;
  color: #a7a6a6;
  cursor: pointer;
  font-size: 22px;
}

.formData button:hover {
  color: #ffffff;
}

/* end form  */


:root {
  --bubble-bg: #ffffff;
  --bubble-stroke: rgba(0, 0, 0, 0.08);
  --dot-color: #dfbbbb;
  --bubble-padding: 8px 12px;
  --bubble-radius: 18px;
  --dot-size: 7px;
  --dot-gap: 6px;
  --speed: 0.9s;
}

.typing-bubble {
  display: none;
  align-items: center;
  gap: 8px;
  padding: var(--bubble-padding);
  background: var(--bubble-bg);
  border-radius: var(--bubble-radius);
  box-shadow: 0 1px 0 var(--bubble-stroke);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.typing-bubble.loading {
  display: inline-flex;
}

.typing-dots {
  display: none;
  align-items: center;
  gap: var(--dot-gap);
  padding: 4px 6px;
}

.typing-dots.loading {
  display: inline-flex;
}

.typing-dots .dot {
  width: var(--dot-size);
  height: var(--dot-size);
  background: var(--dot-color);
  border-radius: 50%;
  opacity: 0.25;
  transform: translateY(0);
  animation: dotBounce var(--speed) infinite ease-in-out;
}

.typing-dots .dot:nth-child(1) {
  animation-delay: 0s;
}
.typing-dots .dot:nth-child(2) {
  animation-delay: calc(var(--speed) * 0.16);
}
.typing-dots .dot:nth-child(3) {
  animation-delay: calc(var(--speed) * 0.32);
}

@keyframes dotBounce {
  0% {
    transform: translateY(0);
    opacity: 0.25;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
  60% {
    transform: translateY(0);
    opacity: 0.6;
  }
  100% {
    transform: translateY(0);
    opacity: 0.25;
  }
}

.from-them {
  background: #464545;
}
.from-me {
  background: #dcf8c6;
  --dot-color: #2b6a1f;
}

@media (max-width: 420px) {
  :root {
    --dot-size: 6px;
    --bubble-padding: 6px 10px;
  }
}
