/* Background Slider CSS */
#bg-slider {
  position: fixed; /* Fixes the slider to the background */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Ensures the slider is behind all other content */
}

#bg-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0; /* Starts with all slides hidden */
  animation: bg-fade 15s infinite; /* Adjust timing as needed */
}

/* Delay the animation for each slide */
#bg-slider .slide:nth-child(1) { animation-delay: 0s; }
#bg-slider .slide:nth-child(2) { animation-delay: 5s; }
#bg-slider .slide:nth-child(3) { animation-delay: 10s; }

/* The fading keyframe animation */
@keyframes bg-fade {
  0% { opacity: 0; }
  25% { opacity: 1; }
  50% { opacity: 1; }
  75% { opacity: 0; }
  100% { opacity: 0; }
}

/* To ensure your content is readable, add a background overlay */
#wrapper:before {
  background: rgba(46, 52, 64, 0.75); /* Adjust the color and transparency */
  content: '';
  display: block;
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: -1;
}