body { margin: 0; overflow: hidden; background-color: black; } #gameCanvas { display: block; background-image: url("bg.png"); background-size: cover; cursor: url("gun_cursor.png"), auto; } #score { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); color: yellow; font-size: 30px; font-weight: bold; text-shadow: 2px 2px 4px #000; } #chances { position: absolute; top: 10px; left: 10px; color: red; font-size: 30px; font-weight: bold; text-shadow: 2px 2px 4px #000; } #gameOver { display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 50px; font-weight: bold; text-shadow: 4px 4px 8px #000; }