body { margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #f0f0f0; } .game-container { width: 500px; height: 500px; background-color: #fff; border: 2px solid #000; position: relative; } .player { width: 50px; height: 50px; background-color: #ff0000; position: absolute; top: 0; left: 0; }