-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
200 lines (172 loc) · 3.52 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
/* General Styles */
body {
font-family: Arial, sans-serif;
color: #ffffff;
margin: 0;
padding: 0;
background: url('./space.gif') no-repeat center center fixed;
background-size: cover;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
}
header {
position: absolute;
top: 10px;
left: 10px;
}
.logo {
width: 150px;
height: auto;
}
/* History Bar */
.history-bar {
display: flex;
justify-content: center;
gap: 5px;
margin: 15px 0;
flex-wrap: wrap;
}
.history-item {
padding: 5px 10px;
border-radius: 5px;
font-size: 14px;
color: #fff;
text-align: center;
min-width: 50px;
}
.history-item.red {
background-color: #e74c3c; /* Red for below 2x */
}
.history-item.green {
background-color: #2ecc71; /* Green for 2x to 10x */
}
.history-item.light-blue {
background-color: #3498db; /* Light Blue for 10x to 20x */
}
.history-item.yellow {
background-color: #f1c40f; /* Yellow for above 20x */
}
/* Container Layout */
.container {
display: flex;
flex-direction: row;
width: 80%;
}
.player-list {
flex: 1;
margin-right: 20px;
background: rgba(30, 30, 30, 0.9);
padding: 10px;
border-radius: 5px;
height: 500px;
overflow-y: auto;
}
table {
width: 100%;
border-collapse: collapse;
}
table th, table td {
padding: 10px;
text-align: left;
}
table th {
background: #333;
}
table tbody tr:nth-child(odd) {
background: rgba(34, 34, 34, 0.9);
}
.game-area {
flex: 2;
text-align: center;
padding: 20px;
background: rgba(30, 30, 30, 0.9);
border-radius: 5px;
}
#multiplier-display {
font-size: 48px;
margin: 20px 0;
}
.rocket-container {
position: relative;
width: 100%;
height: 300px;
overflow: hidden;
}
.rocket {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 50px;
height: auto;
transition: bottom 0.1s linear;
}
.smoke-container {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 100px;
height: 100px;
overflow: visible;
}
.smoke {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 20px;
height: 20px;
background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 30%, transparent 70%);
border-radius: 50%;
animation: smoke 2s infinite;
opacity: 0.8;
}
.smoke:nth-child(1) {
animation-delay: 0s;
}
.smoke:nth-child(2) {
animation-delay: 0.2s;
}
.smoke:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes smoke {
0% {
transform: translateX(-50%) scale(0.5);
opacity: 1;
}
50% {
transform: translateX(-50%) translateY(-30px) scale(1.2);
opacity: 0.5;
}
100% {
transform: translateX(-50%) translateY(-60px) scale(1.5);
opacity: 0;
}
}
/* Game Status */
#game-status {
font-size: 24px;
margin: 10px 0;
}
/* Controls */
.controls input, .controls button {
margin: 10px 5px;
padding: 10px;
font-size: 16px;
border: none;
border-radius: 5px;
}
.controls button {
background-color: #28a745;
color: white;
cursor: pointer;
}
.controls button:disabled {
background-color: #555555;
cursor: not-allowed;
}