body {
  margin: 0;
  height: 100vh;
  width: 100vw;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, yellow, yellow 20px, black 20px, black 40px);
  opacity: 0.5;
  z-index: -1;
  animation: stripeScroll 10s linear infinite; /* Add animation for moving stripes */
}

@keyframes bannerAnimation {
  0% { top: -80px; opacity: 0; }
  50% { top: 10px; opacity: 1; }
  100% { top: -80px; opacity: 0; }
}

@keyframes stripeScroll {
  0% {
    transform: translateY(0); /* Starts at the top */
  }
  100% {
    transform: translateY(100%); /* Moves down */
  }
}

.safety-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 20px;
  width: 100%;
  background-color: red;
  color: white;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  padding: 15px;
  z-index: 9999;
  animation: bannerAnimation 1s ease-in-out infinite;
}

.safety-banner:nth-child(odd) {
  animation-delay: 0.2s;
}

.safety-banner:nth-child(even) {
  animation-delay: 2s;
}

body::before,
body::after,
.safety-banner,
.safety-banner:nth-child(odd),
.safety-banner:nth-child(even) {
  content: "SAFETY ALERT! ⚠️";
  display: block;
  position: fixed;
  top: 20px;
  width: 100%;
  background-color: red;
  color: white;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  padding: 15px;
  z-index: 9999;
  animation: bannerAnimation 1s ease-in-out infinite;
}

body::after {
  content: "SAFETY ALERT! ⚠️";
  animation-delay: 1s;
}

.safety-banner:nth-child(odd),
.safety-banner:nth-child(even) {
  animation-delay: 1s;
}