-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
124 lines (109 loc) · 2.21 KB
/
styles.css
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
:root {
--background: #282a36;
--foreground: #f8f8f2;
--comment: #6272a4;
--cyan: #8be9fd;
--green: #50fa7b;
--orange: #ffb86c;
--pink: #ff79c6;
--purple: #bd93f9;
--red: #ff5555;
--yellow: #f1fa8c;
}
.light-mode {
--background: #282828;
--foreground: #ebdbb2;
--comment: #928374;
--cyan: #83a598;
--green: #b8bb26;
--orange: #fe8019;
--pink: #d3869b;
--purple: #b16286;
--red: #fb4934;
--yellow: #fabd2f;
}
#toggleColorButton {
position: absolute;
top: 10px;
left: 10px;
font-size: 16px;
padding: 10px;
background-color: var(--comment);
color: var(--background);
border: none;
cursor: pointer;
display: block;
}
body, html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
background-color: var(--background);
}
#gameContainer {
position: relative;
width: 100%;
height: 100%;
}
canvas {
display: block;
background-color: var(--background);
}
#startScreen, #loseScreen {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: none;
text-align: center;
color: var(--foreground);
}
#startScreen.active, #loseScreen.active {
display: block;
}
button {
padding: 10px 20px;
font-size: 20px;
background-color: var(--purple);
color: var(--foreground);
border: none;
cursor: pointer;
}
button:hover {
background-color: var(--cyan);
}
#scoreBoard {
position: absolute;
top: 10px;
left: 10px;
font-size: 24px;
color: var(--foreground);
display: none; /* Hide the scoreboard initially */
}
#scoreBoard.active {
display: block; /* Show the scoreboard when the game starts */
}
#fpsCounter {
position: absolute;
top: 10px;
right: 10px;
font-size: 24px;
color: var(--foreground);
display: none; /* Hide the FPS counter initially */
}
#fpsCounter.active {
display: block; /* Show the FPS counter when the game starts */
}
#pauseMenu {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: var(--foreground);
display: none;
}
#pauseMenu.active {
display: block;
}