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

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100vh;
  padding: 10px;
}

body::before {
  z-index: -1;
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/img/bg-st-1.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

body::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background-color: #ffffff88;
}

.wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.links {
  position: absolute;
  bottom: 0;

  a {
    color: #000;
    text-decoration: none;
    font-weight: 700;

    &:hover {
      text-decoration: underline;
    }
  }
}

h3 {
  color: #1414b8;
  font-size: 24px;
  font-weight: 700;
}

.link {
  position: relative;
  display: block;
  max-width: 400px;
  background: #1414b8;
  padding: 16px 50px;
  width: 100%;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 30px;
  transform: scale(1);
  border-radius: 50px 10px 50px 10px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 0 24px 4px #5f8cff55, 0 0 0 4px #e0e52e33;
  animation: linkGlow 2.5s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.4, 2, 0.6, 1),
    box-shadow 0.4s cubic-bezier(0.4, 2, 0.6, 1), border-radius 0.4s;
}

@keyframes linkGlow {
  0% {
    box-shadow: 0 0 12px 2px #1414b833, 0 0 0 2px #c51c3822;
  }
  50% {
    box-shadow: 0 0 32px 3px #1414b899, 0 0 0 3px #c51c3866;
  }
  100% {
    box-shadow: 0 0 12px 2px #1414b833, 0 0 0 2px #c51c3822;
  }
}

.link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50px 10px 50px 10px;
  background: inherit;
}

@keyframes borderMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.link:hover {
  transform: scale(1.03);
  border-radius: 10px 50px 10px 50px;
  box-shadow: 0 0 24px 4px #346bf599, 0 0 0 4px #85acf555;
}

.link span.animated-text {
  display: inline-block;
  background: linear-gradient(90deg, #fff 40%, #c51c38 60%, #fff 100%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: textShine 2.5s linear infinite;
}

@keyframes textShine {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: 0 0;
  }
}

/* .flare {
  position: absolute;
  top: 0;
  height: 100%;
  width: 40px;
  transform: skewX(0deg);
  animation: flareAnimation;
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.1)
  );
  animation: flareAnimation 3s infinite alternate;
}

@keyframes flareAnimation {
  0% {
    left: 80%;
  }
  100% {
    left: 10%;
  }
} */

@media (min-width: 744px) {
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 32px;
  }
  .link {
    font-size: 36px;
  }
  .wrapper {
    padding-top: 200px;
  }
}
