/* Loading Zenith Font */
@font-face {
  font-family: "Zenith Z-100";
  src: url("/fonts/Zenith_Z-100_Alt.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "DSEG14";
  src: url("/fonts/DSEG14Classic-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 400;
  opacity: .8;
  pointer-events: none;

  &:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://ice-creme.de/images/background-noise.png');
    pointer-events: none;
  }

  &-moving {
    opacity: 1;
    z-index: 450;

    &:before {
      will-change: background-position;
      animation: noise 1s infinite alternate;
    }
  }
}

.scanlines {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 300;
  opacity: .6;
  will-change: opacity;
  animation: opacity 3s linear infinite;

  &:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, .5) 51%);
    background-size: 100% 4px;
    will-change: background, background-size;
    animation: scanlines .2s linear infinite;
  }
}

/* Animations */
@keyframes noise {
  0%, 100% {background-position: 0 0;}
  10% {background-position: -5% -10%;}
  20% {background-position: -15% 5%;}
  30% {background-position: 7% -25%;}
  40% {background-position: 20% 25%;}
  50% {background-position: -25% 10%;}
  60% {background-position: 15% 5%;}
  70% {background-position: 0 15%;}
  80% {background-position: 25% 35%;}
  90% {background-position: -10% 10%;}
}

@keyframes opacity {
  0% {opacity: .6;}
  20% {opacity:.3;}
  35% {opacity:.5;}
  50% {opacity:.8;}
  60% {opacity:.4;}
  80% {opacity:.7;}
  100% {opacity:.6;}
}

@keyframes scanlines {
  from {
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, .5) 51%);
		background-size: 100% 4px;
  }
  to {
    background: linear-gradient(to bottom, rgba(0, 0, 0, .5) 50%, transparent 51%);
		background-size: 100% 4px;
  }
}

@keyframes rgbText {
  0% {
    text-shadow: -1px 1px 8px rgba(255, 255, 255, 0.6), 1px -1px 8px rgba(255, 255, 235, 0.7), 0px 0 1px rgba(251, 0, 231, 0.8), 0 0px 3px rgba(0, 233, 235, 0.8), 0px 0 3px rgba(0, 242, 14, 0.8), 0 0px 3px rgba(244, 45, 0, 0.8), 0px 0 3px rgba(59, 0, 226, 0.8);
  }
  25% {
    text-shadow: -1px 1px 8px rgba(255, 255, 255, 0.6), 1px -1px 8px rgba(255, 255, 235, 0.7), 0px 0 1px rgba(251, 0, 231, 0.8), 0 0px 3px rgba(0, 233, 235, 0.8), 0px 0 3px rgba(0, 242, 14, 0.8), 0 0px 3px rgba(244, 45, 0, 0.8), 0px 0 3px rgba(59, 0, 226, 0.8);
  }
  45% {
    text-shadow: -1px 1px 8px rgba(255, 255, 255, 0.6), 1px -1px 8px rgba(255, 255, 235, 0.7), 5px 0 1px rgba(251, 0, 231, 0.8), 0 5px 1px rgba(0, 233, 235, 0.8), -5px 0 1px rgba(0, 242, 14, 0.8), 0 -5px 1px rgba(244, 45, 0, 0.8), 5px 0 1px rgba(59, 0, 226, 0.8);
  }
  50% {
    text-shadow: -1px 1px 8px rgba(255, 255, 255, 0.6), 1px -1px 8px rgba(255, 255, 235, 0.7), -5px 0 1px rgba(251, 0, 231, 0.8), 0 -5px 1px rgba(0, 233, 235, 0.8), 5px 0 1px rgba(0, 242, 14, 0.8), 0 5px 1px rgba(244, 45, 0, 0.8), -5px 0 1px rgba(59, 0, 226, 0.8);
  }
  55% {
    text-shadow: -1px 1px 8px rgba(255, 255, 255, 0.6), 1px -1px 8px rgba(255, 255, 235, 0.7), 0px 0 3px rgba(251, 0, 231, 0.8), 0 0px 3px rgba(0, 233, 235, 0.8), 0px 0 3px rgba(0, 242, 14, 0.8), 0 0px 3px rgba(244, 45, 0, 0.8), 0px 0 3px rgba(59, 0, 226, 0.8);
  }
  90% {
    text-shadow: -1px 1px 8px rgba(255, 255, 255, 0.6), 1px -1px 8px rgba(255, 255, 235, 0.7), -5px 0 1px rgba(251, 0, 231, 0.8), 0 5px 1px rgba(0, 233, 235, 0.8), 5px 0 1px rgba(0, 242, 14, 0.8), 0 -5px 1px rgba(244, 45, 0, 0.8), 5px 0 1px rgba(59, 0, 226, 0.8);
  }
  100% {
    text-shadow: -1px 1px 8px rgba(255, 255, 255, 0.6), 1px -1px 8px rgba(255, 255, 235, 0.7), 5px 0 1px rgba(251, 0, 231, 0.8), 0 -5px 1px rgba(0, 233, 235, 0.8), -5px 0 1px rgba(0, 242, 14, 0.8), 0 5px 1px rgba(244, 45, 0, 0.8), -5px 0 1px rgba(59, 0, 226, 0.8);
  }
}

@keyframes type {
  0%, 19% {opacity:0;}
  20%, 100% {opacity:1;}
}

/* General Styles */
body {
  margin: 0;
  padding: 0;
  background-color: black;
  /* Black background for an 80s aesthetic */
  color: #ff9b00;
  /* 610nm orange phosphor */
  font-family: "Zenith Z-100", monospace;
  /* Monospace for ASCII look */
  font-size: 1.5rem;
  line-height: 1.5;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

header {
  text-align: center;
  padding: 1rem 0;
  border-bottom: 1px solid #ffcf00;
  /* 595nm amber phosphor */
}

h1 {
  font-size: 2rem;
  color: #007bff;
  /* 460nm blue phosphor */
  margin: 0;
}

h3 {
  font-size: 1.5rem;
  color: #007bff;
  /* 460nm blue phosphor */
  text-align: center;
  margin: 0;
  font-family: "DSEG14";
  text-shadow: 0 0 20px #007bff;
  /* 460nm blue phosphor */
}

/* Scrolling Text Container */
.scrolling-text-container {
  display: inline-block;
  display: flex;
  border: 2px solid #b3ff00;
  /* 555nm green phosphor */
  padding: 0.5rem;
  /* Padding inside the box */
  margin: 1rem;
  /* Space outside the box */
  overflow: hidden;
  /* Hide any overflow, allowing scroll */
}

/* Glowing and Scrolling Text */
.scrolling-text {
  display: inline-block;
  white-space: nowrap;
  animation: scrollText 15s linear infinite,
    flicker 0.01s steps(2, start) infinite;
  font-size: 1.5rem;
  color: #007bff;
  text-shadow: 0 0 5px rgba(0, 123, 255, 0.8), 0 0 10px rgba(0, 123, 255, 0.6),
    0 0 20px rgba(0, 123, 255, 0.4), 0 0 30px rgba(0, 123, 255, 0.2);
}

/* Scrolling Animation */
@keyframes scrollText {
  0% {
    transform: translateX(360%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Flickering Text Animation */
@keyframes flicker {
  0% {
    text-shadow: 0 0 5px rgba(0, 123, 255, 0.8), 0 0 10px rgba(0, 123, 255, 0.6),
      0 0 20px rgba(0, 123, 255, 0.4), 0 0 30px rgba(0, 123, 255, 0.2);
  }

  25% {
    text-shadow: 0 0 5px rgba(0, 123, 255, 1), 0 0 10px rgba(0, 123, 255, 0.9),
      0 0 15px rgba(0, 123, 255, 0.8), 0 0 20px rgba(0, 123, 255, 0.6);
  }

  50% {
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.4),
      0 0 15px rgba(0, 123, 255, 0.7), 0 0 20px rgba(0, 123, 255, 0.9),
      0 0 30px rgba(0, 123, 255, 0.5);
  }

  75% {
    text-shadow: 0 0 5px rgba(0, 123, 255, 0.8), 0 0 10px rgba(0, 123, 255, 0.6),
      0 0 20px rgba(0, 123, 255, 0.4), 0 0 30px rgba(0, 123, 255, 0.2);
  }

  100% {
    text-shadow: 0 0 5px rgba(0, 123, 255, 0.9), 0 0 10px rgba(0, 123, 255, 1),
      0 0 20px rgba(0, 123, 255, 0.8), 0 0 30px rgba(0, 123, 255, 0.6);
  }
}

.container {
  flex-direction: column;
  /* Stack the elements vertically */
  align-items: center;
  /* Center the elements horizontally */
  justify-content: center;
  /* Center the elements vertically */
  text-align: center;
  /* Center text inside the elements */
}

/* Image Scaling */
img {
  max-width: 100%;
}

/* Shell-style Navbar Styles */
nav {
  background-color: black;
  padding: 1rem;
  /* border-bottom: 1px solid #b3ff00; */
  /* 555nm green phosphor */
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  font-family: "Zenith Z-100", monospace;
}

nav a {
  color: #ffcf00;
  /* 595nm amber phosphor */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  border: 2px solid #b3ff00;
  /* 555nm green phosphor */
  margin: 0.5rem;
  display: inline-block;
  transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
  background-color: #b3ff00;
  /* 555nm green phosphor */
  color: #007bff;
}

/* Blinking Text for Retro Aesthetic */
.blinking {
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Content Section */
section {
  padding: 2rem;
  text-align: center;
}

/* Footer */
footer {
  background-color: black;
  color: #b3ff00;
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid #b3ff00;
  /* 555nm green phosphor */
  margin-top: 2rem;
  color: #ffcf00;
  /* 595nm amber phosphor */
  font-family: "Zenith Z-100", monospace;
}

a {
  text-decoration: none;
  color: #892ae0;
  /* Purple */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  nav a {
    font-size: 1rem;
    padding: 0.5rem;
  }
}

/* Audio Controls */
.audio-controls {
  margin-top: 2rem;
  text-align: center;
}

.track-info {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

button {
  background-color: black;
  color: #ffcf00;
  /* Amber phosphor */
  font-family: "Zenith Z-100", monospace;
  font-size: 1.5rem;
  padding: 0.5rem 2rem;
  border: 2px solid #b3ff00;
  /* Green phosphor */
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  text-shadow: 1px 1px #000;
}

button:hover {
  background-color: #b3ff00;
  /* Green phosphor */
  color: #007bff;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 300px;
  height: 8px;
  background: #b3ff00;
  /* Green phosphor */
  border: 1px solid #b3ff00;
  /* Green phosphor */
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  margin-top: 1rem;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #ffcf00;
  /* Amber phosphor */
  border-radius: 50%;
  border: 2px solid #b3ff00;
  /* Green phosphor */
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  background-color: #ff9b00;
  /* 610nm orange phosphor */
  border: 2px solid #ff9b00;
  /* 610nm orange phosphor */
  border-radius: 50%;
  cursor: pointer;
}

/* Styling for the volume slider */
.volume-slider {
  flex-direction: column;
  /* Stack the elements vertically */
  align-items: center;
  /* Center the elements horizontally */
  justify-content: center;
  /* Center the elements vertically */
  text-align: center;
  /* Center text inside the elements */
}

audio {
  margin-top: 20px;
}

/* Initially hide the track list */
.hidden {
  display: none;
}

/* Style for the track list (optional) */
#trackList {
  list-style-type: none;
  padding: 0;
}

#trackList li {
  cursor: pointer;
  padding: 5px;
  margin: 3px;
  border: 1px solid #b3ff00;
  /* Green phosphor */
  border-radius: 4px;
}

#trackList li:hover {
  background-color: #b3ff00;
  /* Green phosphor */
  color: #007bff;
}
