 *{
  padding: 0;
  margin: 0;
  box-sizing: border-box; /*Contabiliza de borda a borda */
}
body{
  background-image: url('../assets/bg.jpg');
  background-repeat: no-repeat; /*FAZ COM QUE A IMAGEM NÃO SE REPITA*/
  background-size: 100%/*width*/ auto/*height*/; /*FAZ COM QUE A IMAGEM SEJA REDIMENSIONADA PARA CABER NO TAMANHO DA TELA*/
  background-position: top/*eixo vertical (Y)*/ center/*Eixo horizontal (X)*/; /*FAZ COM QUE A IMAGEM FIQUE CENTRALIZADA NO TOPO DA PÁGINA*/
  background-color: #121214;  /*COR DE FUNDO*/ /*HEX:  RR. GG, */
  color: #ffffff;
}

body * , 
:root{
  font-family: "Inter";
  line-height: 160%;
}

header {
  padding-top: 2rem;
  text-align: center;
}

header img {

 width: 15rem;

}

main {
  max-width: 36rem;
  width: 90%;
  margin: 3rem auto ; 
  
}

section{
  background-image: linear-gradient(
  90deg, #9572FC 0%, #43E7AD 50%, #E2D45C 100%);/*linear-gradient significa um degrade de varias cire*/
  border-radius:0.625rem;
  padding-top:4px;
}

section > div {
 padding: 2rem;
 padding-top: 1.5rem;
 border-radius:0.5rem;
 background-color: #2A2634;
}

section h2 {
  letter-spacing:-0.47px;
}
section p {
  letter-spacing: -0.18px;
  color:A1A1AA;
}

/*Animações*/
main section{
  opacity: 0;
  transform: translateY(2rem);

  animation-name: appear;
  animation-duration: 0.7s;
  animation-fill-mode: forwards; /*Faz com que a animação permaneça no estado final após a conclusão*/
}

@keyframes appear {
  100%{
    opacity:1;
    transform: translateY(0);
  }
}

form {
  display: flex;
  gap:0.85rem;
  flex-wrap: wrap; /*Permite que os elementos dentro do form se movam para a linha seguinte quando não houver espaço suficiente*/
  margin: 1.25rem 0;
}

 input,select{
  all: unset;
  border: 2px solid #9147FF;
  border-radius:0.5rem;
  padding:0.675rem;
  font-size:0.875rem;
  background-color:#00000066;
}

input {
  flex: 1; /*Permite que o input ocupe todo o espaço disponível dentro do form*/
}

button {
  width: 100%;
  border:0;
  background-image: linear-gradient(245deg, #9572FC 0%, #43E7AD 50%, #E2D45C 100%);
  padding:0.675rem;
  border-radius: 0.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing:0.12px ;
  transition:all 0.3s
}

button:hover {
  cursor: pointer;
  transform: translateY(-2px);
  box-shadow: 0 5px 1rem rgba(255,248,107,0.2);
}

button:disabled {
  transition: initial;
  transform: initial;
  box-shadow:initial;
  cursor: not-allowed; /*Muda o cursor para indicar que o botão não está disponível*/
  color: black; /*Muda a cor do texto para preto quando o botão está desabilitado*/
}

#aiResponse {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.5rem;
  padding: 1.25rem;
  border-left:4px solid #43E7AD;
}

#aiResponse ul {
  padding: 1.5rem;
  opacity: 0.8;
}

#aiResponse p {
  color: white;
}

.loading {
  animation:pulse 1s infinite; /*Animação de pulsação que dura 1 segundo e se repete infinitamente*/
}

.hidden{
  display: none;
}

@keyframes pulse{
  50%{
    opacity:0.5 ;
  }
}