/* Glitch Variables */
:root {
  --glitch-duration: 1.5s;
  --glitch-opacity-normal: 1;
  --glitch-opacity-effect: 0.75;
  --glitch-secondary-opacity-normal: 0.25;
  --glitch-secondary-opacity-effect: 0.5;
}

/* Glitch Text Styles */
.glitch-container {
  position: relative;
  display: inline-block;
}

.glitch-text {
  position: absolute;
  top: 0;
  left: 0;
  /*Create overlap for all variants*/
  margin: 0;
  line-height: 0;
  /*Animation*/
  animation: glitch1 var(--glitch-duration) infinite;
}

.glitch-text > * {
  text-align: center;
  color: #fff;
  letter-spacing: 8px;
  font-family: 'Orbitron', monospace;
}

.glitch-spacer {
  opacity: 0;
}

.glitch-text--cyan > * {
  color: #67f3da;
}

.glitch-text--red > * {
  color: #f16f6f;
}

.glitch-text--cyan {
  animation: glitch2 var(--glitch-duration) infinite;
}

.glitch-text--red {
  animation: glitch3 var(--glitch-duration) infinite;
}

/*Keyframes*/
@keyframes glitch1 {
  0% {
    transform: none;
    opacity: var(--glitch-opacity-normal);
  }
  7% {
    transform: skew(-0.5deg, -0.9deg);
    opacity: var(--glitch-opacity-effect);
  }
  10% {
    transform: none;
    opacity: var(--glitch-opacity-normal);
  }
  27% {
    transform: none;
    opacity: var(--glitch-opacity-normal);
  }
  30% {
    transform: skew(0.8deg, -0.1deg);
    opacity: var(--glitch-opacity-effect);
  }
  35% {
    transform: none;
    opacity: var(--glitch-opacity-normal);
  }
  52% {
    transform: none;
    opacity: var(--glitch-opacity-normal);
  }
  55% {
    transform: skew(-1deg, 0.2deg);
    opacity: var(--glitch-opacity-effect);
  }
  60% {
    transform: none;
    opacity: var(--glitch-opacity-normal);
  }
  72% {
    transform: none;
    opacity: var(--glitch-opacity-normal);
  }
  75% {
    transform: skew(0.4deg, 1deg);
    opacity: var(--glitch-opacity-effect);
  }
  80% {
    transform: none;
    opacity: var(--glitch-opacity-normal);
  }
  100% {
    transform: none;
    opacity: var(--glitch-opacity-normal);
  }
}

@keyframes glitch2 {
  0% {
    transform: none;
    opacity: var(--glitch-secondary-opacity-normal);
  }
  7% {
    transform: translate(-2px, -3px);
    opacity: var(--glitch-secondary-opacity-effect);
  }
  10% {
    transform: none;
    opacity: var(--glitch-secondary-opacity-normal);
  }
  27% {
    transform: none;
    opacity: var(--glitch-secondary-opacity-normal);
  }
  30% {
    transform: translate(-5px, -2px);
    opacity: var(--glitch-secondary-opacity-effect);
  }
  35% {
    transform: none;
    opacity: var(--glitch-secondary-opacity-normal);
  }
  52% {
    transform: none;
    opacity: var(--glitch-secondary-opacity-normal);
  }
  55% {
    transform: translate(-5px, -1px);
    opacity: var(--glitch-secondary-opacity-effect);
  }
  60% {
    transform: none;
    opacity: var(--glitch-secondary-opacity-normal);
  }
  72% {
    transform: none;
    opacity: var(--glitch-secondary-opacity-normal);
  }
  75% {
    transform: translate(-2px, -6px);
    opacity: var(--glitch-secondary-opacity-effect);
  }
  80% {
    transform: none;
    opacity: var(--glitch-secondary-opacity-normal);
  }
  100% {
    transform: none;
    opacity: var(--glitch-secondary-opacity-normal);
  }
}

@keyframes glitch3 {
  0% {
    transform: none;
    opacity: var(--glitch-secondary-opacity-normal);
  }
  7% {
    transform: translate(2px, 3px);
    opacity: var(--glitch-secondary-opacity-effect);
  }
  10% {
    transform: none;
    opacity: var(--glitch-secondary-opacity-normal);
  }
  27% {
    transform: none;
    opacity: var(--glitch-secondary-opacity-normal);
  }
  30% {
    transform: translate(5px, 2px);
    opacity: var(--glitch-secondary-opacity-effect);
  }
  35% {
    transform: none;
    opacity: var(--glitch-secondary-opacity-normal);
  }
  52% {
    transform: none;
    opacity: var(--glitch-secondary-opacity-normal);
  }
  55% {
    transform: translate(5px, 1px);
    opacity: var(--glitch-secondary-opacity-effect);
  }
  60% {
    transform: none;
    opacity: var(--glitch-secondary-opacity-normal);
  }
  72% {
    transform: none;
    opacity: var(--glitch-secondary-opacity-normal);
  }
  75% {
    transform: translate(2px, 6px);
    opacity: var(--glitch-secondary-opacity-effect);
  }
  80% {
    transform: none;
    opacity: var(--glitch-secondary-opacity-normal);
  }
  100% {
    transform: none;
    opacity: var(--glitch-secondary-opacity-normal);
  }
}

/* Pod Carousel Styles */
.pod-container {
  transition: opacity 0.5s ease-in-out;
}

.pod-container.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pod-container.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
