Spaces:
Running
Running
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
body, html { | |
width: 100%; | |
height: 100%; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
background-color: #000; | |
overflow: hidden; | |
font-family: 'Arial', sans-serif; | |
} | |
.game-container { | |
position: relative; | |
width: 800px; | |
height: 600px; | |
border: 3px solid #fff; | |
background-color: #111; | |
} | |
#game-area { | |
position: relative; | |
width: 100%; | |
height: 100%; | |
overflow: hidden; | |
} | |
.player { | |
position: absolute; | |
bottom: 10px; | |
left: 50%; | |
width: 100px; | |
height: 20px; | |
background-color: #0f0; | |
transform: translateX(-50%); | |
border-radius: 10px; | |
} | |
.orb { | |
position: absolute; | |
width: 30px; | |
height: 30px; | |
border-radius: 50%; | |
background-color: #f00; | |
} | |
.bonus { | |
position: absolute; | |
width: 30px; | |
height: 30px; | |
border-radius: 50%; | |
background-color: #ff0; | |
} | |
#score-board { | |
position: absolute; | |
top: 10px; | |
left: 10px; | |
color: #fff; | |
font-size: 24px; | |
} | |
#game-over { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
color: #fff; | |
font-size: 48px; | |
display: none; | |
} | |