-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
356 lines (295 loc) · 6.87 KB
/
style.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
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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
/* importing font family from google fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cedarville+Cursive&family=Dancing+Script&display=swap');
/* adding different keyframes for our different animations */
@keyframes floating1{
0% {
transform: translateY(0);
}
50%{
transform: translateY(8px);
}
100%{
transform: translateY(0);
}
}
@keyframes floating2{
0% {
transform: translateY(0);
}
50%{
transform: translateY(5px);
}
100%{
transform: translateY(0);
}
}
@keyframes transformationone {
0%{
transform: scale(1);
}
100%{
transform: scale(2.2);
}
}
@keyframes increraseup {
0%{
transform: scale(1);
}
100%{
transform: scale(2.5);
}
}
/* this glow webkit keyframe was taken from the w3 schools but text shadows is changed */
@keyframes glow {
from {
text-shadow: 0 0 10px #332f2f, 0 0 20px #211e1e, 0 0 30px #3b3538, 0 0 40px #3f3c3d, 0 0 50px #1e1c1d, 0 0 60px #1c191a, 0 0 70px #241f22;
}
to {
text-shadow: 0 0 20px #393030, 0 0 30px #443d41, 0 0 40px #eadde4, 0 0 50px #3c373a, 0 0 60px #201d1e, 0 0 70px #3d383b, 0 0 80px #1a1819;
}
}
/* making background settings for our game page by giving properties to canvas */
#canvas{
background-image: url('./srcImages/giphy\ \(1\).gif');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
body{
margin: 0;
padding: 0;
box-sizing: border-box;
overflow: hidden;
cursor: crosshair;
}
/* first user interface styling */
.startGame{
display: flex;
justify-content: center;
align-items: center;
width: 100vw;
height: 100vh;
position: absolute;
/* adding top 0 gave us full scale view */
top: 0;
font-family: 'Dancing Script';
background-image: url('./srcImages/50cd3bed5c4763ec64f5082010e9b09e.gif');
background-attachment: fixed;
background-repeat: no-repeat;
background-size:cover;
color: rgb(239, 232, 232);
}
/* styling of our start button */
.home{
display: flex;
flex-direction: column;
align-items: center;
background-color: rgba(55, 53, 53, 0.622);
padding: 10px;
border-radius: 10px;
font-family:cursive;
padding-left: 10px;
padding-right: 10px;
animation: floating1 3s ease-in-out infinite;
}
.home h1{
text-align: center;
margin: 0px;
}
#timerone{
font-size: 2vw;
}
.home h1 span{
font-size: 2.3vw;
font-family:'Dancing Script';
}
/* start button styling */
#startGameBtn{
display: flex;
justify-content: center;
align-items: center;
margin: 12px ;
padding: 8px 16px;
color: rgb(37, 36, 36);
width: 40%;
background-color: rgb(44, 194, 228);
font-size: 22px;
font-family: 'Poppins';
font-weight: 800;
border-radius: 18px 10px;
border: none;
cursor: pointer;
transition: .2s;
animation: floating2 3s ease-in-out infinite;
}
#startGameBtn:hover{
background-color: rgb(9, 4, 4);
color: skyblue;
font-weight: 900;
}
/* styling the first timer button */
.firstTimer{
color: rgb(227, 219, 219);
font-family: 'Poppins';
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
z-index: 13;
}
.firstTimer h1{
animation: transformationone 8s linear ease-in;
}
/* styling our game interface */
#mainContainer{
/* adding position absolute for correct positioning */
position: absolute;
width: 100vw;
height: 100vh;
top: 0;
background-color: transparent;
color: rgb(28, 22, 16);
box-sizing: border-box;
pointer-events: none;
display: none;
padding: 10px 20px;
font-size: 18px;
}
#mainContainer .gameCountTime{
position: absolute;
top: 5px;
right: 10px;
}
.strikeCount{
color: bisque;
font-style: italic;
}
.gameCountTime h1{
width: 120px;
}
#strikeCountDiv{
position: absolute;
bottom: 10px;
right: 30px;
}
.strikeCount{
animation: increraseup .2s linear;
width: 45px;
height: 45px;
}
.gameHeading{
position: absolute;
top: 0;
left: 50%;
z-index: 12;
font-family: 'Poppins';
transform: translateX(-50%);
background-color: rgba(30, 15, 17, 0.829);
color: rgb(170, 183, 190);
padding: 4px 14px;
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
font-size: 25px;
}
.gameHeading p{
margin: 0;
}
#gameEndDiv{
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(27, 29, 31, 0.38);
z-index: 15;
display: none;
pointer-events: none;
align-items: center;
justify-content: center;
}
.gameEndContainer{
background-color: rgb(20, 17, 18,0.94);
/* background-color: rgb(255, 49, 84); */
/* border: 2px solid white; */
border-radius: 6px;
pointer-events: all;
color: rgb(221, 212, 212);
padding: 25px;
box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.697);
text-align: center;
font-family: 'Poppins';
animation: floating1 2s ease-in-out infinite;
}
.gameEndContainer h1{
font-size: 2rem;
text-align: center;
}
.gameEndContainer p{
font-size: 4vw;
}
/* last interface styling */
#endgame{
background-color: transparent;
border: none;
outline: none;
border-bottom: 2px solid white;
color: white;
font-size: 22px;
cursor: pointer;
}
.work{
background-color: rgb(9, 3, 3,0.3);
color: bisque;
opacity: 200%;
padding: 5px;
border-radius: 12px 5px;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
/* styling our timer */
#second{
animation: glow 1s ease-in-out infinite alternate;
color: bisque;
background-color: rgb(28, 27, 25,0.6);
padding-left: 12px;
border-radius: 12px 5px;
}
#endgame{
color: bisque;
font-family: 'Dancing Script';
font-size: 3vw;
}
#endgame:hover{
animation: glow 1s ease-in-out infinite alternate;
color: gold;
}
#firstphone , #phone{
display: none;
}
/* adding responsiveness for mobile view */
@media(max-width:600px){
#phone{
display: flex;
background-image: url('./srcImages/gLAYGvglay\ \(1\).gif');
height: 50vh;
background-repeat: no-repeat;
background-size: contain;
color: beige;
font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
align-items: center;
}
#main{
display: none;
}
#canvas{
overflow: hidden;
}
body{
background-color: black;
}
#firstphone{
display: flex;
justify-content: center;
align-items: center;
}
}