@font-face {
  font-family: 'PressStart2P';
  src: url('./data/fonts/PressStart2P.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Allow the canvas to receive pointer events */
canvas {
  pointer-events: auto;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1; 
}

/* Keep scrollBar interactive so user can scroll */
#scrollBar {
  position: fixed;
  top: 10%;
  bottom: 10%;
  right: 10px;
  width: 45px;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  z-index: 99999;
  pointer-events: auto;
}

#scrollInstructions {
  position: absolute;
  top: 13%;
  right: 60px;
  transform: translateY(-50%);
  z-index: 100000;
  background-color: rgb(0, 0, 0);
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  font-family: 'PressStart2P';
  font-size: 24px;
  text-align: center;
  opacity: 0; 
  transition: opacity 2s ease; 
  pointer-events: none; 
}

#scrollThumb {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

#continueInstructions {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  background-color: rgb(0, 0, 0);
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  font-family: 'PressStart2P';
  font-size: 32px;
  text-align: center;
  opacity: 0; 
  transition: opacity 2s ease; 
  pointer-events: none;
}


/* Disables text selection and touch callouts */
body {
  -webkit-user-select: none;    /* Disable text selection in Safari */
  -ms-user-select: none;        /* Disable text selection in IE 10+ */
  user-select: none;            /* Disable text selection in modern browsers */
  -webkit-touch-callout: none;  /* Disable callouts like copy/paste on iOS */
  touch-action: manipulation;   /* Prevent default touch behaviors */
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#loading-icon {
  width: 240px; /* Adjust the size as needed */
  height: 240px;
  margin: 10px 0; /* Space around the icon */
}

/* Optional: Add a spinning effect */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#loading-message {
  font-family: 'PressStart2P';
  color: #444;
  font-size: 44px;
  margin-bottom: 20px;
}

#progress-bar-container {
  width: 50%;
  height: 20px;
  background-color: #8e8e8e;
  margin-top: 20px;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background-color: #444;
  transition: width 0.3s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.1); 
  border-top: 5px solid #444;       
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
