-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
318 lines (268 loc) · 8.22 KB
/
style.css
File metadata and controls
318 lines (268 loc) · 8.22 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
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
@import url("https://fonts.googleapis.com/css?family=Oxanium|PT+Mono&display=swap");
* {
box-sizing: border-box;
}
:root {
--primary-color: dodgerblue;
--select-color: dodgerblue;
--success: rgb(15, 158, 2);
--danger: rgb(214, 23, 23);
}
body {
margin: 0;
font-family: PT Mono, sans-serif;
overflow: hidden;
display: flex;
justify-content: center;
height: 100vh;
background: #e8e8e8;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='192' height='192' viewBox='0 0 192 192'%3E%3Cpath fill='%23161616' fill-opacity='0.1' d='M192 15v2a11 11 0 0 0-11 11c0 1.94 1.16 4.75 2.53 6.11l2.36 2.36a6.93 6.93 0 0 1 1.22 7.56l-.43.84a8.08 8.08 0 0 1-6.66 4.13H145v35.02a6.1 6.1 0 0 0 3.03 4.87l.84.43c1.58.79 4 .4 5.24-.85l2.36-2.36a12.04 12.04 0 0 1 7.51-3.11 13 13 0 1 1 .02 26 12 12 0 0 1-7.53-3.11l-2.36-2.36a4.93 4.93 0 0 0-5.24-.85l-.84.43a6.1 6.1 0 0 0-3.03 4.87V143h35.02a8.08 8.08 0 0 1 6.66 4.13l.43.84a6.91 6.91 0 0 1-1.22 7.56l-2.36 2.36A10.06 10.06 0 0 0 181 164a11 11 0 0 0 11 11v2a13 13 0 0 1-13-13 12 12 0 0 1 3.11-7.53l2.36-2.36a4.93 4.93 0 0 0 .85-5.24l-.43-.84a6.1 6.1 0 0 0-4.87-3.03H145v35.02a8.08 8.08 0 0 1-4.13 6.66l-.84.43a6.91 6.91 0 0 1-7.56-1.22l-2.36-2.36A10.06 10.06 0 0 0 124 181a11 11 0 0 0-11 11h-2a13 13 0 0 1 13-13c2.47 0 5.79 1.37 7.53 3.11l2.36 2.36a4.94 4.94 0 0 0 5.24.85l.84-.43a6.1 6.1 0 0 0 3.03-4.87V145h-35.02a8.08 8.08 0 0 1-6.66-4.13l-.43-.84a6.91 6.91 0 0 1 1.22-7.56l2.36-2.36A10.06 10.06 0 0 0 107 124a11 11 0 0 0-22 0c0 1.94 1.16 4.75 2.53 6.11l2.36 2.36a6.93 6.93 0 0 1 1.22 7.56l-.43.84a8.08 8.08 0 0 1-6.66 4.13H49v35.02a6.1 6.1 0 0 0 3.03 4.87l.84.43c1.58.79 4 .4 5.24-.85l2.36-2.36a12.04 12.04 0 0 1 7.51-3.11A13 13 0 0 1 81 192h-2a11 11 0 0 0-11-11c-1.94 0-4.75 1.16-6.11 2.53l-2.36 2.36a6.93 6.93 0 0 1-7.56 1.22l-.84-.43a8.08 8.08 0 0 1-4.13-6.66V145H11.98a6.1 6.1 0 0 0-4.87 3.03l-.43.84c-.79 1.58-.4 4 .85 5.24l2.36 2.36a12.04 12.04 0 0 1 3.11 7.51A13 13 0 0 1 0 177v-2a11 11 0 0 0 11-11c0-1.94-1.16-4.75-2.53-6.11l-2.36-2.36a6.93 6.93 0 0 1-1.22-7.56l.43-.84a8.08 8.08 0 0 1 6.66-4.13H47v-35.02a6.1 6.1 0 0 0-3.03-4.87l-.84-.43c-1.59-.8-4-.4-5.24.85l-2.36 2.36A12 12 0 0 1 28 109a13 13 0 1 1 0-26c2.47 0 5.79 1.37 7.53 3.11l2.36 2.36a4.94 4.94 0 0 0 5.24.85l.84-.43A6.1 6.1 0 0 0 47 84.02V49H11.98a8.08 8.08 0 0 1-6.66-4.13l-.43-.84a6.91 6.91 0 0 1 1.22-7.56l2.36-2.36A10.06 10.06 0 0 0 11 28 11 11 0 0 0 0 17v-2a13 13 0 0 1 13 13c0 2.47-1.37 5.79-3.11 7.53l-2.36 2.36a4.94 4.94 0 0 0-.85 5.24l.43.84A6.1 6.1 0 0 0 11.98 47H47V11.98a8.08 8.08 0 0 1 4.13-6.66l.84-.43a6.91 6.91 0 0 1 7.56 1.22l2.36 2.36A10.06 10.06 0 0 0 68 11 11 11 0 0 0 79 0h2a13 13 0 0 1-13 13 12 12 0 0 1-7.53-3.11l-2.36-2.36a4.93 4.93 0 0 0-5.24-.85l-.84.43A6.1 6.1 0 0 0 49 11.98V47h35.02a8.08 8.08 0 0 1 6.66 4.13l.43.84a6.91 6.91 0 0 1-1.22 7.56l-2.36 2.36A10.06 10.06 0 0 0 85 68a11 11 0 0 0 22 0c0-1.94-1.16-4.75-2.53-6.11l-2.36-2.36a6.93 6.93 0 0 1-1.22-7.56l.43-.84a8.08 8.08 0 0 1 6.66-4.13H143V11.98a6.1 6.1 0 0 0-3.03-4.87l-.84-.43c-1.59-.8-4-.4-5.24.85l-2.36 2.36A12 12 0 0 1 124 13a13 13 0 0 1-13-13h2a11 11 0 0 0 11 11c1.94 0 4.75-1.16 6.11-2.53l2.36-2.36a6.93 6.93 0 0 1 7.56-1.22l.84.43a8.08 8.08 0 0 1 4.13 6.66V47h35.02a6.1 6.1 0 0 0 4.87-3.03l.43-.84c.8-1.59.4-4-.85-5.24l-2.36-2.36A12 12 0 0 1 179 28a13 13 0 0 1 13-13zM84.02 143a6.1 6.1 0 0 0 4.87-3.03l.43-.84c.8-1.59.4-4-.85-5.24l-2.36-2.36A12 12 0 0 1 83 124a13 13 0 1 1 26 0c0 2.47-1.37 5.79-3.11 7.53l-2.36 2.36a4.94 4.94 0 0 0-.85 5.24l.43.84a6.1 6.1 0 0 0 4.87 3.03H143v-35.02a8.08 8.08 0 0 1 4.13-6.66l.84-.43a6.91 6.91 0 0 1 7.56 1.22l2.36 2.36A10.06 10.06 0 0 0 164 107a11 11 0 0 0 0-22c-1.94 0-4.75 1.16-6.11 2.53l-2.36 2.36a6.93 6.93 0 0 1-7.56 1.22l-.84-.43a8.08 8.08 0 0 1-4.13-6.66V49h-35.02a6.1 6.1 0 0 0-4.87 3.03l-.43.84c-.79 1.58-.4 4 .85 5.24l2.36 2.36a12.04 12.04 0 0 1 3.11 7.51A13 13 0 1 1 83 68a12 12 0 0 1 3.11-7.53l2.36-2.36a4.93 4.93 0 0 0 .85-5.24l-.43-.84A6.1 6.1 0 0 0 84.02 49H49v35.02a8.08 8.08 0 0 1-4.13 6.66l-.84.43a6.91 6.91 0 0 1-7.56-1.22l-2.36-2.36A10.06 10.06 0 0 0 28 85a11 11 0 0 0 0 22c1.94 0 4.75-1.16 6.11-2.53l2.36-2.36a6.93 6.93 0 0 1 7.56-1.22l.84.43a8.08 8.08 0 0 1 4.13 6.66V143h35.02z'%3E%3C/path%3E%3C/svg%3E");
}
.game-container {
border: 1px solid black;
box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.5);
width: 530px;
height: 750px;
position: relative;
background: rgba(255, 255, 255, 0.5);
user-select: none;
margin-top: 100px;
}
.header {
background: var(--primary-color);
color: white;
font-family: Oxanium, sans-serif;
font-size: 24px;
text-shadow: 1px 2px 2px black;
letter-spacing: 2px;
height: 100px;
display: flex;
justify-content: center;
align-items: center;
}
.card {
margin: 5px auto 10px;
height: 600px;
}
/* Splash Page -------------------- */
input[type="radio"] {
opacity: 0;
width: 100%;
height: 75px;
position: relative;
top: -40px;
cursor: pointer;
z-index: 2;
}
.selection-container {
position: relative;
top: 65px;
}
.radio-container {
width: 90%;
height: 75px;
margin: 25px;
cursor: pointer;
border: 2px solid black;
border-radius: 5px;
}
label {
position: relative;
top: 20px;
left: 20px;
font-size: 30px;
}
.selected-label {
background: var(--select-color);
color: white;
}
.best-score {
position: relative;
top: -100px;
left: 330px;
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
font-size: 18px;
max-width: fit-content;
}
.best-score span {
margin: 0;
}
.best-score span:last-child {
font-size: 24px;
}
.selection-footer {
top: 134px;
}
/* Game Page -------------------------- */
.height-240 {
height: 240px;
width: 100%;
}
.height-500 {
height: 500px;
width: 100%;
}
.item-container {
height: 552px;
overflow-y: scroll;
position: relative;
-ms-overflow-style: none;
}
.item-container::-webkit-scrollbar {
display: none;
}
.item {
display: flex;
align-items: baseline;
justify-content: space-between;
height: 80px;
margin: 0 50px;
user-select: none;
}
.finished > h1 {
opacity: 0.5;
}
.selected-item {
background: var(--select-color);
position: fixed;
top: 443px;
z-index: -1;
width: 529px;
height: 80px;
}
.item-footer,
.selection-footer {
width: 100%;
height: 90px;
background: rgba(0, 0, 0, 1);
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
.item-footer {
top: 1px;
}
button {
cursor: pointer;
height: 50px;
border-radius: 5px;
font-size: 25px;
font-family: Oxanium, sans-serif;
color: white;
border: none;
outline: none;
}
button:hover {
filter: brightness(110%);
}
button:active {
transform: scale(0.99);
}
.wrong,
.right {
width: 40%;
}
.wrong {
background: var(--danger);
margin-right: 25px;
}
.right {
background: var(--success);
}
.start,
.play-again {
width: 90%;
background: var(--primary-color);
}
/* Countdown Page ---------------------- */
.countdown {
margin-top: 45%;
font-size: 100px;
text-align: center;
user-select: none;
cursor: pointer;
}
/* Score Page ------------------------- */
.score-container {
height: 600px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.score-footer {
width: 100%;
height: 90px;
display: flex;
justify-content: center;
position: relative;
top: -30px;
}
.title {
font-size: 45px;
}
.final-time {
font-size: 100px;
margin: 0;
color: var(--success);
}
.base-time {
margin-top: 100px;
margin-bottom: 0;
}
.penalty-time {
color: var(--danger);
}
/* Media Query: Laptop */
@media screen and (max-width: 1800px) {
.game-container {
margin-top: 35px;
}
.selected-item {
top: 380px;
}
}
/* Media Query: Large Smartphone (Vertical) */
@media screen and (max-width: 500px) {
.game-container {
width: 100%;
margin-top: 0;
border: none;
}
.selected-item {
top: 345px;
}
.header {
font-size: 1.2rem;
}
.countdown {
margin-top: 60%;
}
.selection-container {
top: 100px;
}
.radio-container {
width: 93%;
margin: 15px;
}
label {
font-size: 1.7rem;
}
.best-score {
font-size: 1rem;
left: 245px;
}
.selection-footer {
top: 183px;
}
}
/* Media Query: iPhone */
@media screen and (max-width: 376px) {
.best-score {
left: 232px;
}
}