* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  font-family: "Inter", sans-serif;
  font-size: 16px;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background-color: #1f2151;
}

::-webkit-scrollbar-thumb {
  background-color: #2f3279;
}

body {
  width: 100%;
  height: 100vh;

  background-image: url("./img/bg.png");
  background-size: contain;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 3.12rem;

  color: #f1f2f6;
}

main {
  width: 480px;
  border-radius: 1.5rem;

  border: 1px solid #2f3279;
  overflow-y: hidden;
}

form {
  background-color: #141534;

  display: flex;
  flex-direction: column;

  padding: 3.5rem 4rem;
}

label {
  font-size: 0.75rem;
  color: #b2b8de;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}

input,
select {
  outline: 0;

  color: #f1f2f6;
  border: 1px solid #1f2151;
  border-radius: 0.5rem;

  background-color: #0e0f25;
  padding: 1.25rem 1rem;

  font-family: "Inter", sans-serif;
  font-size: 1rem;
}

select {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;

  background: url("./img/chevron-down.svg") no-repeat;
  background-position: calc(100% - 0.75rem) center !important;
  background-color: #0e0f25;

  cursor: pointer;
  font-size: 1rem;
}

input::placeholder,
select:invalid,
option {
  color: #b2b8de;
}

input:focus,
select:focus {
  border: 1px solid #4a5dcd;
}

button {
  /* 1. O Gradiente "Sanduíche": Escuro -> Claro -> Escuro */
  /* Isso garante que a transição seja suave nas pontas */
  background-image: linear-gradient(to right, #141E30 0%, #3F5E96 50%, #141E30 100%);
  
  /* 2. O Truque: O fundo é 2x maior que o botão */
  background-size: 200% auto;
  
  /* 3. Posição inicial: Fica parado na esquerda */
  background-position: left center;
  
  /* 4. A mágica da suavidade */
  transition: background-position 2s ease-out; /* ease-out faz parar devagar */
  
  /* Estilos visuais do botão (apenas exemplo) */
  color: white;
  padding: 15px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  margin-top: 4.5rem;
}

button:hover {
  /* 5. Ao passar o mouse, desliza o fundo para a direita */
  background-position: right center;
}

button:focus {
  outline: 1.5px solid #4a5dcd;
}

footer {
  background-color: #1f2151;
  padding: 2.5rem;
  max-height: 196px;

  text-align: center;
  display: none;

  overflow-y: scroll;
}

.show-result {
  display: block;
}

footer span {
  color: #7d8dec;
  font-size: 1rem;
  font-family: "IBM Plex Mono", monospace;
  margin-bottom: 0.5rem;
  line-height: 1.25rem;
}

footer h1 {
  color: #f1f2f6;
  font-weight: 700;
  font-size: 2rem;
  line-height: 3rem;
  word-break: break-all;
}


@media(width <= 480px){
  main {
    max-width: fit-content;
  }
}