* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: url("./assets/bg.jpg");
  background-repeat: no-repeat;
  background-size: cover ;
  background-position: center center;
  background-color: #110b2a;
  background-attachment: fixed;
  color: white;

  }

  body *,
  :root {
    font-family: "Inter";
    line-height: 160%;
  }

  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    z-index: -1;
  }

  header {
    padding-top: 0;
    margin-bottom: -1rem;
    text-align: center;
  }

  header img {
    width: 6rem;
    margin-block: 2rem;
  }

  main {
    max-width: 36rem;
    width: 90%;
    margin: 0 auto;
    padding: -10rem;
  }

  section {
    background-image: linear-gradient(90deg, #153c6a 0%, #2475ac 25%, #3de0fc 50%, #733e85 75%, #e977f5 100%);
    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: 700ms;
  animation-fill-mode: forwards;
}

@keyframes appear {
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

form {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  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;
}

button {
  width: 100%;
  border: 0;
  background-image: linear-gradient(300deg, #153c6a 0%, #2475ac 25%, #733e85 75%, #e977f5 100%);
  padding: 0.675rem;
  border-radius: 0.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.12px;
  color: white;

  transition: all 0.3s;
}

button:hover {
  cursor: pointer;
  transform: translateY(-2px);
  filter: brightness(0.9);
  box-shadow: 0 5px 1rem rgba(255, 0, 174, 0.2);
}

button:disabled {
  transition: initial;
  transform: initial;
  box-shadow: initial;
  cursor: not-allowed;
 
}

#aiResponse {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.5rem;
  padding: 1.25rem;
  border-left: 4px solid #3de0fc;
}

#aiResponse ul {
  padding-left: 1.5rem;
  opacity: 0.8;
}

#aiResponse p {
  color: white;
}

.loading {
  animation: pulse 1s infinite;
}

.hidden {
  display: none;
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

