body, html {
    overflow: hidden;
  }
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-color: rgb(0, 0, 0);
    background-position: center;
    background-attachment: fixed;
  }
  #gameUI {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: absolute;
    margin-left: -10%;
    font-family: Libre Baskerville;
    z-index: 100;
  }
  #endGameScreen{
    display: none; 
    position: absolute;
    align-items: center;
    justify-content: center;
    font-family: Libre Baskerville;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    background-color: white; 
    padding: 20px; 
    text-align: center; 
    border: 2px solid #000; 
    z-index: 100;
  }
  canvas {
    z-index: 1;
  }
  .disable-pointer-events {
    pointer-events: none;
}

@media (min-width: 1200px) {
  #gameUI {
    margin-left: 0%;
  }
}

@media (max-width: 600px) {
  canvas {
    margin-top: -20%;
  }
  #gameUI {
    left: 5%;
    margin-left: -20%;
    right: 5%;
    font-size: 14px;
  }

  #endGameScreen {
    width: 70%; /* Take up more screen width for readability */
    padding: 10px; /* Adjust padding */
    font-size: 16px; /* Larger font size for better readability */
  }
}