@keyframes appearFromLeft {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes appearFromRight {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

.container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  gap: 2.25rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 3rem;

  @media (max-width: 768px) {
    padding-bottom: 15rem;
  }

  &::-webkit-scrollbar {
    width: 5.5px;
    height: 5.5px;
  }

  &::-webkit-scrollbar-thumb {
    transition: all 0.5s ease-in-out;
  }

  &::-webkit-scrollbar-track {
    background: var(--gray-solid);
  }

  .bot {
    left: 1rem;
    top: 1rem;
    width: 100%;
    max-width: 90%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.75rem;
    line-height: 1.2rem;
    resize: none;
    background: transparent;
    outline: none;
    border: none;
    border: 1px solid var(--white-gradient);
    border-radius: 10px;
    color: var(--white-solid);
    font-weight: 300;
    text-size-adjust: auto;
    text-align: left;
    transition: all 0.5s ease-in-out;
    position: relative;
    animation: appearFromLeft 0.5s ease-in-out;
    font-size: 0.8rem;
    margin-bottom: 1rem;

    @media (max-width: 768px) {
      font-size: 1rem;
      line-height: 1.5rem;
    }

    label {
      left: 0.5rem;
      font-size: 0.65rem;
      position: absolute;
      bottom: -1.25rem;

      @media (max-width: 768px) {
        bottom: -1.5rem;
        left: 0.75rem;
        font-size: 0.75rem;
      }
    }
  }

  .user {
    right: 1rem;
    margin-top: -1rem;
    top: 0.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    line-height: 1rem;
    resize: none;
    font-size: 0.75rem;
    background: transparent;
    outline: none;
    border: none;
    border-radius: 10px;
    color: var(--white-solid);
    font-weight: 300;
    text-size-adjust: auto;
    text-align: right;
    transition: all 0.5s ease-in-out;
    position: relative;
    animation: appearFromRight 0.5s ease-in-out;

    @media (max-width: 768px) {
      font-size: 1rem;
      line-height: 1.25rem;
    }

    label {
      right: 0.5rem;
      font-size: 0.65rem;
      position: absolute;
      bottom: -1.25rem;

      @media (max-width: 768px) {
        bottom: -1.5rem;
        right: 0.75rem;
        font-size: 0.75rem;
      }
    }

    .deviceOptions {
      display: grid;
      grid-template-columns: repeat(3, minmax(50px, 1fr));
      align-items: flex-end;
      justify-content: center;
      flex-direction: column;
      gap: 0.5rem;

      @media (max-width: 768px) {
        gap: 0.75rem;
      }

      button {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        font-weight: 400;
        letter-spacing: -0.5px;
        border-radius: 20px;
        align-items: center;
        display: flex;
        justify-content: center;

        @media (max-width: 768px) {
          font-size: 1rem;
          padding: 0.75rem 1rem;
          line-height: 1.25rem;
        }

        &:hover {
          transform: scale(1.05);
        }
      }
    }

    .options {
      display: flex;
      align-items: flex-end;
      justify-content: center;
      flex-direction: column;
      gap: 0.5rem;

      @media (max-width: 768px) {
        gap: 0.75rem;
      }

      button {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        font-weight: 400;
        letter-spacing: -0.5px;
        border-radius: 20px;
        align-items: center;
        display: flex;
        justify-content: center;

        @media (max-width: 768px) {
          font-size: 1rem;
          padding: 0.75rem 1rem;
          line-height: 1.25rem;
        }

        &:hover {
          transform: scale(1.05);
        }
      }
    }
  }

  .send {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    margin-top: 1rem;

    button {
      padding: 0.85rem 1.25rem;
      font-size: 0.85rem;
      font-weight: 400;
      letter-spacing: -0.5px;
      border-radius: 25px;
      border: 1px solid var(--white-solid);

      @media (max-width: 768px) {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        line-height: 1.25rem;
      }

      &:hover {
        transform: scale(1.05);
      }
    }
  }
}
