-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
73 lines (64 loc) · 1.26 KB
/
styles.css
File metadata and controls
73 lines (64 loc) · 1.26 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #333;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
font-family: Arial, sans-serif;
}
.game-container {
position: relative;
}
#gameCanvas {
background-color: #4a752c;
border: 2px solid #666;
}
.hud {
position: absolute;
top: 20px;
left: 20px;
color: white;
font-size: 18px;
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}
.hud div {
margin-bottom: 10px;
background-color: rgba(0, 0, 0, 0.5);
padding: 5px 10px;
border-radius: 5px;
}
.start-screen {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
color: white;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 10; /* Ensure it appears above the game */
}
.start-screen h1 {
font-size: 48px;
}
.start-screen p {
font-size: 24px;
}
.start-screen ul {
list-style-type: none;
padding: 0;
}
.start-screen button {
margin-top: 20px;
padding: 10px 20px;
font-size: 18px;
cursor: pointer;
}