@import url("../components/formulario.css");

body>main {
  padding-top: 0 !important;
}

section#erro {
  background-image: url("../../img/bkg-kv.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100dvh;
  display: grid;
  place-content: center;
}

section#erro .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 4rem;
  padding-inline: 4rem;
  gap: 2rem;
  border-radius: 12px;
  border: 1px solid #fff;
  background: rgba(66, 87, 111, 0.71);
  backdrop-filter: blur(30px);
  box-sizing: border-box;
}

section#erro .container h1 {
  font-weight: bold;
  color: #fff;
  width: 100%;
  text-align: center;
}

section#erro .container p {
  color: #fff;
  text-align: center;
}

section#erro .btn {
  max-width: 200px;
  margin-inline: auto;
}

.cartoes {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  justify-self: center;
  align-self: center;
  margin-inline: auto;
  margin-block: 5rem;
}
.cartoes > img {
  grid-row: 1;
  grid-column: 1;
  width: 300px;
}
.cartoes > img:nth-child(1) {
  animation: flip-1 5s cubic-bezier(0.4, 0, 0, 1.01) infinite;
  z-index: 3;
}
.cartoes > img:nth-child(2) {
  animation: flip-2 5s cubic-bezier(0.4, 0, 0, 1.01) infinite;
  z-index: 2;
}
.cartoes > img:nth-child(3) {
  animation: flip-3 5s cubic-bezier(0.4, 0, 0, 1.01) infinite;
  z-index: 1;
}
@keyframes flip-1 {
  0%,
  100% {
    transform: matrix(1, 0, 0, 1, 0, 0);
  }
  40%,
  75% {
    transform: matrix(0.59, -0.4, 0.6, 0.4, -8, -30);
  }
}
@keyframes flip-2 {
  0%,
  100% {
    transform: matrix(1, 0, 0, 1, 0, 0);
  }
  40%,
  75% {
    transform: matrix(0.59, -0.4, 0.6, 0.4, -10, 0);
  }
}
@keyframes flip-3 {
  0%,
  100% {
    transform: matrix(1, 0, 0, 1, 0, 0);
  }
  40%,
  75% {
    transform: matrix(0.59, -0.4, 0.6, 0.4, -5, 25);
  }
}

@media screen and (max-width: 1024px) {
  section#erro {
    padding-inline: 2rem;
  }

  section#erro .container h1 {
    font-size: 3.2rem;
  }
}

@media screen and (min-width: 1024px) {
  section#erro .container h1 {
    font-size: 4.8rem;
  }

  section#erro .container p {
    font-size: 2rem;
  }
}
