/* ANIMATION KEYFRAMES */

@keyframes scanline {
  0% {
    transform: translate3d(0, 200000%, 0);
  }
}

@keyframes scanlines {
  0% {
    background-position: 0 50%;
  }
}

main {
  font-family: "Comic Sans MS", cursive, sans-serif;
}

/* SCANLINES CLASS */

.scanlines {
  position: relative;
  overflow: hidden;
}

.scanlines::before,
.scanlines::after {
  display: block;
  pointer-events: none;
  content: "";
  position: absolute;
}

/* MOVING SCANLINE SETTINGS */

.scanlines::before {
  width: 100%;
  height: 2px; /* $scan-width * 1 */
  z-index: 2147483649; /* $scan-z-index + 1 */
  background: rgba(0, 0, 0, 0.3); /* $scan-color */
  opacity: 0.75; /* $scan-opacity */
  animation: scanline 6s linear infinite;
}

/* STATIC SCANLINES */

.scanlines::after {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2147483648; /* $scan-z-index */
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(48, 24, 189, 0.3) 51%
  );
  background-size: 100% 4px; /* $scan-width * 2 */
  animation: scanlines 5s steps(100) infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes marquee {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 0%;
  }
}
.animate-blink {
  animation: blink 1s step-end infinite;
}
.animate-spin-slow {
  animation: spin-slow 5s linear infinite;
}
.animate-marquee {
  animation: marquee 2s linear infinite;
  background-size: 300% 100%;
}
.winamp-button {
  background: #333333;
  border: 1px solid #666666;
  padding: 2px 5px;
}
.winamp-button:active {
  border-color: #333333;
  background: #222222;
}
.winamp-visualizer {
  display: flex;
  align-items: flex-end;
  height: 30px;
  gap: 2px;
}
.winamp-visualizer .bar {
  width: 3px;
  background: linear-gradient(to top, #00ff00, #ffff00);
  animation: visualizer 0.8s infinite alternate;
  animation-delay: calc(var(--i) * 0.1s);
}
@keyframes visualizer {
  0% {
    height: 20%;
  }
  100% {
    height: 100%;
  }
}
.text-shadow {
  text-shadow: 1px 1px 0px #000000;
}

/* First text shadow style */
.text-shadow-style-1 {
  text-shadow: 2px 2px 0 #d94600, 4px 4px 0 #b33c00,
    0 0 10px rgba(255, 165, 0, 0.5);
}

/* Second text shadow style (more pronounced) */
.text-shadow-style-2 {
  text-shadow: 3px 3px 0 #d94600, 6px 6px 0 #b33c00,
    0 0 10px rgba(255, 165, 0, 0.5);
}

.borderstyle {
  border: 3px solid;
  border-color: #ff8c00 #ff7000 #ff5500 #ffa500;
  box-shadow: 6px 6px 0 0 rgba(0, 0, 0, 0.2),
    inset 2px 2px 4px rgba(255, 255, 255, 0.3),
    inset -2px -2px 4px rgba(0, 0, 0, 0.1);
}

/* STYLES 2 */

.retro-desktop-warning {
  --orange-light: #ffb347;
  --orange-med: #ff8c00;
  --orange-dark: #e67300;
  --yellow-light: #fffacd;
  --yellow-dark: #f5deb3;
  --shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.warning-container {
  position: relative;
  background: linear-gradient(135deg, var(--yellow-light), var(--yellow-dark));
  border: 3px solid;
  border-color: var(--orange-light) var(--orange-med) var(--orange-dark)
    var(--orange-light);
  border-radius: 8px;
  box-shadow: var(--shadow), inset 0 0 15px rgba(0, 0, 0, 0.1),
    0 0 10px rgba(255, 140, 0, 0.3);
  animation: pulse 1s infinite;
  overflow: hidden;
}

.corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-width: 4px;
  border-style: solid;
  opacity: 0.8;
}
.top-left {
  top: 0;
  left: 0;
  border-color: var(--orange-light) transparent transparent var(--orange-light);
}
.top-right {
  top: 0;
  right: 0;
  border-color: var(--orange-light) var(--orange-light) transparent transparent;
}
.bottom-left {
  bottom: 0;
  left: 0;
  border-color: transparent transparent var(--orange-dark) var(--orange-dark);
}
.bottom-right {
  bottom: 0;
  right: 0;
  border-color: transparent var(--orange-dark) var(--orange-dark) transparent;
}

.texture-overlay {
  position: absolute;
  inset: 0;
  background: url("https://www.transparenttextures.com/patterns/cartographer.png"),
    url("https://www.transparenttextures.com/patterns/rice-paper.png");
  background-blend-mode: overlay;
  opacity: 0.2;
  pointer-events: none;
}

.warning-content {
  position: relative;
  z-index: 2;
}

.crt-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 3px,
    rgba(255, 255, 255, 0.1) 3px,
    rgba(255, 255, 255, 0.1) 4px
  );
  pointer-events: none;
}

.warning-icon {
  position: absolute;
  font-size: 8rem;
  color: #ff4500;
  text-shadow: 0 0 8px rgba(255, 69, 0, 0.5);
  animation: blink 1.5s infinite;
}

.warning-title {
  color: #8b4513;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 0 white, 2px 2px 0 var(--orange-med);
}

.warning-message {
  color: #8b4513;
  font-size: 0.75rem;
  line-height: 1.4;
  font-family: "Courier New", monospace;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: var(--shadow);
  }
  50% {
    transform: scale(1.005);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.5);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
