-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgame.css
More file actions
46 lines (42 loc) · 839 Bytes
/
Copy pathgame.css
File metadata and controls
46 lines (42 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #F2E8C6; /* Light cream background */
}
#game-container {
position: relative;
width: 400px;
height: 600px;
background-color: #DAD4B5; /* Light beige */
border: 2px solid #800000;
overflow: hidden;
}
#player {
position: absolute;
bottom: 20px;
left: 180px;
width: 40px;
height: 40px;
background-color: #E0A75E; /* Golden yellow */
border-radius: 5px;
}
.falling-object {
position: absolute;
width: 40px;
height: 40px;
background-color: #973131; /* Muted red */
top: 0;
border-radius: 5px;
}
#scoreboard {
position: absolute;
top: 10px;
left: 10px;
font-size: 18px;
color: #800000;
font-weight: bold;
}