body {
  margin: 0;
  padding: 20px;
  font-family: Arial, sans-serif;
  background-color: #000000;
  /* Prevent mobile drag/scroll */
  touch-action: pan-x pan-y;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#canvasContainer {
  display: flex;
  justify-content: center;
  margin-top: 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  /* Prevent canvas area from being draggable */
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Prevent selection and dragging on canvas */
canvas {
  touch-action: none !important;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Splash screen styles */
#splashScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: transparent; /* Transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* High z-index to appear above everything */
  opacity: 1;
  transition: opacity 1s ease-out;
  pointer-events: none; /* Prevent interaction during fade */
}

#splashScreen img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* Animation class to trigger fade out */
#splashScreen.fade-out {
  opacity: 0;
}

/* Hide splash screen after animation completes */
#splashScreen.hidden {
  display: none;
}
