* {
  box-sizing: border-box;
}

body {
  background: #0a2e4d; /* Cor de fundo */
  font-family: Arial, Helvetica, sans-serif;
  height: 100%; /* altura */
  padding: 20px;
  max-width: 1200px;
  background-image: url("/assets/1808418_7491.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0 auto;
}

/* classe adicionada pelo o JS */

.decoracao-body {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.2;
}

/* Cada animação */
.decoracao-body .item {
  position: absolute !important; /* força a posição fixa */
  animation: girar 4s infinite linear;
  opacity: 0.6;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Alinhamento do texto */

h1 {
  text-align: center; /* Alinhamento do texto */
  font-size: 36px; /* Tamanho do texto */
  color: #ffffff;
}

.iagif > h2 {
  color: #051626;
  font-size: 24px;
}

.iagif {
  height: auto;
  margin-top: 0px;
  line-height: 0;
  display: grid;
  justify-content: center;
  grid-template-columns: 40px 1fr;
  gap: 20px;
}

.iagif img {
  width: 50px;
  height: 50px;
}

.teste {
  background-color: transparent;
  height: 100vh;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-container {
  background-color: #5d1f2e;
  border-radius: 15px;
  height: max-content;
  padding: 30px 30px;
}

.main-container,
section,
main,
.sessao-maior {
  position: relative;
  z-index: 10; /* garante prioridade visual */
 width: 100%;
}

main {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.sessao-maior {
  background: #fff;
  width: 100%; /* LARGURA */
  border-radius: 8px; /*Arredondar a borda */
  padding: 30px;
  height: 400px; /* altura */
}

.area-codigo {
  background: #051626;
  height: calc(100% - 70px);
  border-radius: 8px;
  padding: 20px;
  color: #f8f9fa;
  font-size: 14px;
}

.area-resultado {
  background: transparent;
  border-radius: 8px;
  height: calc(100% - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999999;
}

.sessao-menor {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  gap: 15px;
}

input {
  width: 75%;
  padding: 15px 20px;
  font-size: 16px;
  color: #051626;
  border-radius: 6px;
  border: 2px solid #5d1f2e;
}

button {
  background: #37e359;
  border: none;
  padding: 15px 40px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  color: #f8f9fa;
  cursor: pointer;
  transition: 0.5s;
  width: 25%;
}

button:hover {
  background: #52ff74;
}

button:active {
  transform: scale(0.9);
}

.loader {
  font-size: 18px;
  font-weight: bold;
  color: #555;
  margin: 20px 0;
  animation: blink 1s infinite;
  background-color: transparent;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}

/* .hand {
  display: flex;
  justify-content: end;
  align-self: flex-end;
}

.hand img {
  height: 200px;
  width: 200px;
  display: flex;
  justify-content: end;
  align-self: flex-end;
} */

/* Animations */

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInTop {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-in-top {
  animation: slideInTop 0.8s ease-out forwards;
}

@keyframes slideInBottom {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-in-bottom {
  animation: slideInBottom 0.8s ease-out forwards;
}

@media (min-width: 480px) and (max-width: 767px) {
  /* Estilos para celulares grandes e tablets menores */

  main {
    flex-direction: column-reverse;
  }

  .teste {
    min-height: 1200px;
  }

  body {
    margin: 20px auto;
  }

  .sessao-menor {
  display: grid;
  grid-template-columns: 1fr;
  flex-direction: column;
  gap: 15px;
}

.input-animacao{width: 100%;}
.botao-magica{width: 100%; justify-content: center; align-items: center;}

.main-container, section, main, .sessao-maior {
    
  width: 100%;

}

}

@media (min-width: 768px) and (max-width: 1023px) {
  /* Estilos para tablets e notebooks menores */
  .input-animacao{width: 100%;}
.botao-magica{width: 60%; justify-content: center; align-items: center;}

}