/*
  Global styles for all games.
  This file handles the page background color, disables scrolling,
  and centers the game container.
*/

body {
  background-color: #2c3e50; /* Distinct dark blue-grey */
  margin: 0;
  padding: 0;
  overflow: hidden; 
  /* Use flexbox to center the game container */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

#canvas-container {
  position: relative; /* Needed for absolute positioning of children like the link */
  max-width: 90vw;
  max-height: 90vh;
  display: flex; /* For centering the canvas inside */
  justify-content: center;
  align-items: center;
}

#canvas-container canvas {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}

/* Style for the back to home link, positioned as an overlay */
a {
  color: #fff;
  text-decoration: none;
  font-family: sans-serif;
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0,0,0,0.5);
  padding: 5px 10px;
  border-radius: 5px;
  z-index: 10;
}