/* Container that maintains aspect ratio and centers the game */
.game-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000; /* Black letterbox bars */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.game-container {
    position: relative;
    width: 1920px;  /* Your design width */
    height: 1080px; /* Your design height */
    
    /*   
    max-width: 100vw;
    max-height: 100vh; */
    
    /* This maintains the aspect ratio while scaling */
    aspect-ratio: 16 / 9;
    
    /* Scale to fit screen while maintaining ratio */
    width: 100vw;
    height: calc(100vw * 9 / 16); /* height based on width for 16:9 */
        
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    overflow: hidden;
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .game-container {
    width: 100vw;
    height: 56.25vw; /* 9/16 = 0.5625 */
    max-height: 100vh;
  }
  
  /* When height is the limiting factor */
  @media (min-aspect-ratio: 16/9) {
    .game-container {
      width: 177.78vh; /* 16/9 = 1.7778 */
      height: 100vh;
    }
  }
}

/* Optional: Disable text selection for game elements */
.game-container * {
  user-select: none;
  -webkit-user-select: none;
}

/* Optional: Cursor styles */
.game-container {
  cursor: default;
}