@import 'https://fonts.googleapis.com/css2?family=Goldman&display=swap';

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}

@keyframes glitch {
  0% {
    clip-path: inset(50% 0 30% 0);
    transform: translate(-5px, 5px);
  }

  10% {
    clip-path: inset(40% 0 43% 0);
    transform: translate(5px, -5px);
  }

  20% {
    clip-path: inset(25% 0 58% 0);
    transform: translate(-5px, 5px);
  }

  30% {
    clip-path: inset(75% 0 5% 0);
    transform: translate(5px, -5px);
  }

  40% {
    clip-path: inset(15% 0 75% 0);
    transform: translate(-5px, 5px);
  }

  50% {
    clip-path: inset(50% 0 30% 0);
    transform: translate(5px, -5px);
  }

  60% {
    clip-path: inset(40% 0 43% 0);
    transform: translate(-5px, 5px);
  }

  70% {
    clip-path: inset(25% 0 58% 0);
    transform: translate(5px, -5px);
  }

  80% {
    clip-path: inset(75% 0 5% 0);
    transform: translate(-5px, 5px);
  }

  90% {
    clip-path: inset(15% 0 75% 0);
    transform: translate(5px, -5px);
  }

  100% {
    clip-path: inset(50% 0 30% 0);
    transform: translate(0);
  }
}

html,
body {
  background: #000000;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  aspect-ratio: 16/9;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid transparent;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  width: 500%;
  height: 500%;
  background: conic-gradient(transparent 0deg,
      transparent 30deg,
      #ff0000 60deg,
      #ff0000 90deg,
      transparent 120deg,
      transparent 360deg);
  animation: rotate 4s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.container::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: #000;
  z-index: 2;
}

.text-change-container {
  width: 100%;
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 3;
}

.text-change-container::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 0, 0, 0.2),
      rgba(255, 0, 0, 0.8),
      rgba(255, 0, 0, 0.2),
      transparent);
  animation: scanline 3s linear infinite;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.text-change {
  font-family: 'Goldman', monospace;
  font-weight: normal;
  font-size: 2.5rem;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5),
    0 0 20px rgba(255, 0, 0, 0.3),
    0 0 30px rgba(255, 0, 0, 0.1);
  padding: 20px;
  word-wrap: break-word;
  line-height: 1.4;
  position: relative;
}

.dud {
  color: #ff0000;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.8),
    0 0 20px rgba(255, 0, 0, 0.6),
    0 0 30px rgba(255, 0, 0, 0.4);
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
  .container {
    width: 95%;
    padding: 30px;
  }

  .text-change {
    font-size: 1.8rem;
  }
}

@media screen and (max-width: 480px) {
  .container {
    width: 98%;
    padding: 20px;
  }

  .text-change {
    font-size: 1.4rem;
  }
}