:root {
  --cinza-escuro: #212121;
  --cinza-claro: #303030;
}

::-webkit-scrollbar {
  background: var(--cinza-escuro);
}

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;

  &:focus {
    outline: none;
  }
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen-Sans, Ubuntu, Cantarell,
    "Helvetica Neue", sans-serif;
  padding: 2rem;
  margin: 0;
  box-sizing: border-box;
  background-color: var(--cinza-escuro);
  background-image: url(neuralbg.png);
  background-size: contain;
  background-repeat: repeat-x;
}

select {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  padding: 1rem 1.5rem;
  font-size: 1.6rem;
  background: var(--cinza-claro);
  color: #fff;
  font-weight: 400;
  border-radius: 1.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border .2s ease-in;
  z-index: 3;

  &:is(:hover, :active) {
    border: 2px solid #fff;
  }
}

#chat {
  padding: 4.5rem;
  padding-bottom: 5rem;
  height: 50rem;
  overflow-y: auto;
  display: flex;
  flex-flow: column;
  gap: 2rem;
}

.pergunta {
  color: #fff;
  background: var(--cinza-claro);
  padding: 2.5rem 3rem;
  border-radius: 2rem;
  font-size: 1.6rem;
  align-self: end;
  max-width: fit-content;
}

.resposta {
  color: #fff;
  font-size: 1.6rem;
  align-self: start;
}

.complete-input {
  display: flex;
  gap: 1rem;
  align-items: center;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 2.5rem;
  justify-content: center;
  backdrop-filter: blur(1px);
}

.delete {
  border-radius: 3.5rem;
  cursor: pointer;
  background: white;
  display: flex;
  aspect-ratio: 1/1;
  width: 4.5rem;
  height: 4.5rem;
  justify-content: center;
  align-items: center;
  border: none;

  & svg {
    width: 3.5rem;
    height: 3.5rem;
  }
}

input {
  border-radius: 3.5rem;
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  padding: 1rem 1.5rem;
  border-right: none;
  font-size: 1.7rem;
  background: var(--cinza-claro);
  color: #fff;
  width: 50rem;
}

.input-message {
  display: flex;
  gap: 0;

  &>* {
    border: none;
  }
}

.enviar {
  border-bottom-right-radius: 3.5rem;
  border-top-right-radius: 3.5rem;
  padding: 1rem 1.5rem;
  border-left: none;
  background: var(--cinza-claro);
  cursor: pointer;


  & .button-enviar {
    border-radius: 3.5rem;
    background: white;
    display: flex;
    aspect-ratio: 1/1;
    width: 4.5rem;
    height: 4.5rem;
    justify-content: center;
    align-items: center;

    & svg {
      width: 3.5rem;
      height: 3.5rem;
    }
  }
}

hr {
  color: #505050;
  filter: blur(1px);
}

br {
  margin-bottom: 1rem;
}

a {
  font-size: 1.8rem;
  color: #fff;
  text-decoration: none;

  &:is(:hover, :active) {
    text-decoration: underline;
    color: #fff;
  }
}

.to-images {
  display: flex;
  gap: .5rem;
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: #505050;
  padding: .2rem;
  border-radius: .2rem;
}

@media all and (max-width:680px) {
  html {
    font-size: 56.25%;
  }

  input {
    width: 40rem;
  }
}

@media all and (max-width:505px) {
  html {
    font-size: 50%;
  }

  input {
    width: 30rem;
  }

  #chat {
    padding-bottom: .5rem;
    height: 80rem;
  }
}