html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;

  background-image:
    url('/assets/BG2.png'), radial-gradient(ellipse at center, #fdbd85, #e65345);
  background-repeat: repeat-x, no-repeat;
  background-size:
    auto 100%,
    cover;
  background-position:
    center top,
    center;
  position: relative;
}

@media (min-width: 800px) {
  body {
    background-image:
      url('/assets/BG5.png'),
      radial-gradient(ellipse at center, #fdbd85, #e65345);
  }
}

/* Add a dark overlay to dim the background */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.1); /* Dark overlay */
  pointer-events: none; /* Allow clicks to pass through */
  z-index: -1; /* Behind the game canvas */
}

canvas {
  max-width: 100%;
  max-height: 100%;
}
@keyframes backgroundScroll {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 256px 0px;
  }
}
