/* Custom font */
@font-face {
    font-family: 'Glitchy';
    src: url('../assets/GlitchGoblin-2O87v.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


.glitch {
  font-size: 6rem;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;

  text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
    -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
    0.025em 0.05em 0 rgba(0, 0, 255, 0.75);

  animation: glitch 500ms infinite;
}

.glitch span {
  position: absolute;
  top: 0;
  left: 0;
}

.glitch span:first-child {
  animation: glitch 650ms infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  transform: translate(-0.025em, -0.0125em);
  /* color: green; */
  opacity: 0.8;
}

.glitch span:last-child {
  animation: glitch 375ms infinite;
  clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
  transform: translate(0.0125em, 0.025em);
  /* color: red; */
  opacity: 0.8;
}

/* https://web.dev/prefers-reduced-motion/#(bonus)-forcing-reduced-motion-on-all-websites */

@keyframes glitch {
  0% {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
      -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
      -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }
  14% {
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
      -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
      -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }
  15% {
    text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
      0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
      -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  49% {
    text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
      0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
      -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  50% {
    text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
      0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  99% {
    text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
      0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  100% {
    text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75),
      -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
      -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}


.container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-8vh);
}

/* Body styling */
body {
    background: #0b0c18;
    font-family: Arial, sans-serif;
    color: #00f0ff; /* neon cyan-blue */
    margin: 0;
    position: relative;
}

h1 {
    text-align: center;
    color: #00f0ff; /* neon cyan-blue */
    font-size: 75px;
    font-family: 'Glitchy', Arial, sans-serif;
    margin-bottom: 75px;
}

/* Option box perfectly centered */
.optionBox {
    margin: 0 auto;
    white-space: nowrap;
    font-size: 25px;
    display: flex;
    flex-direction: column;
    width: 400px;
    border: 2px solid #00f0ff; /* neon cyan border */
    border-radius: 5px;
    background-color: #0b0c18; /* match background */
    overflow: hidden;
}

.option-content span {
    flex: 1; /* take up remaining space */
}

.option {
    display: flex;
    align-items: center; /* vertically center both text and SVG */
    justify-content: flex-start; /* keep everything starting from left */
    position: relative; /* needed for absolute positioning of SVG */
    padding: 40px 10px;
    margin: 0;
    border-bottom: 1px solid #002b3d; /* darker neon blue line */
    font-family: 'Courier New', Courier, monospace;
    color: #00f0ff; /* neon cyan text */
    cursor: pointer;
    transition: background 0.2s;
}

.option:last-child {
    border-bottom: none;
}

.option:hover {
    background-color: #001f2a; /* darker hover effect */
}

/* Triangle SVG styling */
.triangle {
    width: 50px;
    height: 50px;
    transform-origin: 50% 50%;
    filter: drop-shadow(0 0 10px #00f0ff);
    text-align: center;
}

.option-content svg {
    position: absolute;
    left: 75%; /* center horizontally in the option box */
    transform: translateX(-50%); /* perfect horizontal centering */
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 10px #00f0ff);
}
