CMU Coding Bootcamp
1body {
2 margin: 0;
3 padding: 0;
4 display: flex;
5 justify-content: center;
6 align-items: center;
7 min-height: 100vh;
8 background-color: #f7f7f7;
9 font-family: Arial, sans-serif;
10}
11
12.game-container {
13 position: relative;
14}
15
16#gameCanvas {
17 border: 2px solid #535353;
18 background-color: #fff;
19 display: block;
20}
21
22#score {
23 position: absolute;
24 top: 10px;
25 right: 10px;
26 font-size: 20px;
27 font-weight: bold;
28 color: #535353;
29}
30
31#gameOver {
32 position: absolute;
33 width: 100%;
34 text-align: center;
35 top: 50%;
36 left: 50%;
37 transform: translate(-50%, -50%);
38 font-size: 24px;
39 font-weight: bold;
40 color: #535353;
41 display: none;
42}