/* enter-the-circle-style.css */
:root {
  --animation-from-color-filter: brightness(0.4) saturate(100%) sepia(1)
    hue-rotate(180deg) saturate(300%);
  --animation-from-color: #4676bd;
  --animation-to-color-filter: brightness(0.52) saturate(100%) sepia(1)
    hue-rotate(180deg) saturate(700%) brightness(1.5);
  --animation-to-color: #1df7ff;
}

.cta-button {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--safe-vh) * 15);
  height: calc(var(--safe-vh) * 6);
  margin: calc(var(--safe-vh) * 1.5) 0 0 0;
  background: rgb(2, 15, 41, 1);
  border-width: calc(var(--safe-vh) * 0.25);
  border-style: solid;
  border-color: var(--animation-from-color);
  border-radius: calc(var(--safe-vh) * 1.2);
  color: #fff;
  padding: calc(var(--safe-vh) * 1) calc(var(--safe-vh) * 1);
  font-size: calc(var(--safe-vh) * 1.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  z-index: 100;
  transition: box-shadow 0.3s, background 0.3s;
}

.button-images {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 60%;
}

.button-images img {
  flex: 1;
  height: 75%;
  max-width: 100%;
  object-fit: contain;
}

.button-label {
  font-family: "Crimson Pro", serif;
  font-size: calc(var(--safe-vh) * 2);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  word-spacing: 0;
  margin: 0;
  text-align: center;
  z-index: 102;
}

.enter_the_circle_moons,
.button-label {
  filter: brightness(0.4) saturate(100%) sepia(1) hue-rotate(180deg)
    saturate(300%);
}

#section-7 {
  --animation-from-color-filter: brightness(0.5) saturate(100%) sepia(1)
    hue-rotate(180deg) saturate(300%);
  --animation-from-color: #4077ca;
  --animation-to-color-filter: brightness(0.52) saturate(100%) sepia(1)
    hue-rotate(180deg) saturate(700%) brightness(1.5);
  --animation-to-color: #1df7ff;
}

#section-7 .cta-button {
  width: calc(var(--safe-vh-sections) * 16);
  height: calc(var(--safe-vh-sections) * 6);
  margin: calc(var(--safe-vh-sections) * 69) 0 0 0;
  background: linear-gradient(
    135deg,
    rgba(0, 40, 60, 0.55),
    rgba(0, 10, 30, 0.55)
  );
  color: #fdfdfc;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  border-color: var(--animation-from-color);
  border-width: calc(var(--safe-vh-sections) * 0.25);
  border-radius: calc(var(--safe-vh-sections) * 1.2);
  padding: calc(var(--safe-vh-sections) * 1) calc(var(--safe-vh-sections) * 1);
  font-size: calc(var(--safe-vh-sections) * 1.9);
}

#section-7 .button-label {
  font-size: calc(var(--safe-vh-sections) * 2);
}

#section-7 .enter_the_circle_moons,
#section-7 .button-label {
  filter: var(--animation-from-color-filter);
}

.fade {
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
  will-change: opacity, transform;
}

.fade.active {
  opacity: 1;
}

@media (max-aspect-ratio: 1) and (max-width: 500px) {
  #section-7 .cta-button {
    width: calc(var(--safe-vh-sections) * 29);
    height: calc(var(--safe-vh-sections) * 11);
    margin: calc(var(--safe-vh-sections) * 150) 0 0 0;
    border-width: calc(var(--safe-vh-sections) * 0.5);
    border-radius: calc(var(--safe-vh-sections) * 2.2);
    padding: calc(var(--safe-vh-sections) * 2) calc(var(--safe-vh-sections) * 2);
  }

  #section-7 .button-label {
    font-size: calc(var(--safe-vh-sections) * 3.8);
  }
}

@keyframes moonPulse {
  0%,
  100% {
    filter: var(--animation-from-color-filter);
  }
  50% {
    filter: var(--animation-to-color-filter)
      drop-shadow(0px 0px calc(var(--safe-vh) * 0.6) var(--animation-to-color));
  }
}

@keyframes borderPulse {
  0%,
  100% {
    border-color: var(--animation-from-color);
  }
  50% {
    border-color: var(--animation-to-color);
  }
}

@keyframes borderGlowIn {
  from {
    border-color: var(--animation-from-color);
  }
  to {
    box-shadow: 0px 0px calc(var(--safe-vh) * 1) calc(var(--safe-vh) * 0.2)
      var(--animation-to-color);
  }
}

@keyframes borderGlowOut {
  from {
    box-shadow: 0px 0px calc(var(--safe-vh) * 1) calc(var(--safe-vh) * 0.2)
      var(--animation-to-color);
  }
  to {
    border-color: var(--animation-from-color);
  }
}

@keyframes moonGlowIn {
  from {
    filter: var(--animation-from-color-filter);
  }
  to {
    filter: var(--animation-to-color-filter)
      drop-shadow(
        0px calc(var(--safe-vh) * 0.2) calc(var(--safe-vh) * 0.6)
          var(--animation-to-color)
      );
  }
}

@keyframes moonGlowOut {
  from {
    filter: var(--animation-to-color-filter)
      drop-shadow(
        0px calc(var(--safe-vh) * 0.2) calc(var(--safe-vh) * 0.6)
          var(--animation-to-color)
      );
  }
  to {
    filter: var(--animation-from-color-filter);
  }
}
