:root {
  --dark: #0528d5;
  --white: #ffffff;
  --purple: #e8610d;
  --gray: #199636;
  --gray2: #636563;
}

body {
  background-image: url('Imagem/Fundo\ IA\ Pedagogico.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  justify-content: right;
  height: 98vh;
}

.box-questions {
  margin-top: 0rem;
  background-color: var(--white);
  color: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-height: 800px;
  width: 600px;
  border-radius: 10px;
  text-align: center;
} 

.header {
  background-color: var(--purple);
  color: var(--white);
  border-radius: 10px 10px 0 0;
  font-size: 1.4rem;
}

.footer {
  background-color: var(--purple);
  border-radius: 0 0 10px 10px;
  padding: 1rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

input.message-input, 
textarea.message-input {
  resize: none; /* Impede o redimensionamento do textarea */
  width: 500px; /* Define um tamanho padrão para o textarea */
  height: 50px; /* Define uma altura padrão para o textarea */
  border: 1px solid #ccc; /* Adiciona uma borda */
  outline: none;
  padding: 15px; /* Espaçamento interno */
  border-radius: 5px;
  font-size: 1rem;
  text-align: left; /* Alinha o texto à esquerda */
  box-sizing: border-box; /* Garante que a largura inclua a borda e o preenchimento */
  margin: 0 auto; /* Centraliza o elemento horizontalmente */
  display: block; /* Garante que seja um bloco */
  font-family: "Arial", sans-serif; /* Define o tipo de letra */
}

input.message-input::placeholder,
textarea.message-input::placeholder {
  color: #888; /* Cor do texto do placeholder */
  font-style: italic; /* Estilo do texto do placeholder */
  font-family: "Arial", sans-serif; /* Define o tipo de letra */
}

button {
  border: none;
  border-radius: 5px;
  padding: 10px;
  font-size: 1rem;
  margin-left: 10px;
}

button:hover {
  cursor: pointer;
  transition: .4s;
  background-color: var(--gray2);
}

.message-paragraph {
  padding: 1rem;
  border-radius: 10px;
  background-color: var(--gray);
  color: var(--white);
  margin: 0;
  text-align: right;
}

#history {
  padding: 1rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.box-my-message {
  display: flex;
  justify-content: flex-end;
}

.box-response-message {
  display: flex;
  justify-content: flex-start;
}

.my-message,
.response-message {
  padding: 1rem;
  border-radius: 10px;
  color: rgb(255, 255, 255);
  margin: 0;
}

.my-message {
  text-align: right;
  background-color: var(--gray);
}

.response-message {
  text-align: left;
  background-color: var(--gray2);
}

#loading-message {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  padding: 10px;
  border-radius: 5px;
  font-size: 1rem;
  color: var(--dark);
}

/* Regras de Mídia */
@media screen and (max-width: 768px) {
  body {
    justify-content: center;
  }

  .box-questions {
    width: 90%;
  }

  input {
    width: 90%;
  }

  #whatsapp-button {
    margin-top: 10px; /* Adiciona margem superior ao botão */
    margin-right: auto; /* Alinha o botão à direita */
    margin-left: auto; /* Alinha o botão à esquerda */
  }
}

#whatsapp-button {
  padding: 10px 20px;
  background-color: green;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
}

.box-questions2 {
  text-align: center;
  margin-bottom: 20px;
}
