@@ -79,6 +79,7 @@ $main-shadow: 0 6px 6px 1px $shadow-color;
79
79
80
80
.after-visibility {
81
81
--after-visibility : visible ;
82
+ --animation-duration : 1.5s ;
82
83
--number : 2 ;
83
84
--color : black ;
84
85
}
@@ -88,7 +89,8 @@ $main-shadow: 0 6px 6px 1px $shadow-color;
88
89
margin-left : 0.5em ;
89
90
content : ' +' counter (number );
90
91
position : absolute ;
91
- animation : 1.5s ease-in-out counterMove;
92
+ animation : ease-in-out counterMove;
93
+ animation-duration : var (--animation-duration );
92
94
visibility : var (--after-visibility );
93
95
color : var (--color );
94
96
font-weight : bold ;
@@ -181,6 +183,102 @@ $main-shadow: 0 6px 6px 1px $shadow-color;
181
183
}
182
184
}
183
185
186
+ .winner-container {
187
+ position : absolute ;
188
+ display : grid ;
189
+ justify-self : center ;
190
+ align-content : center ;
191
+ justify-items : center ;
192
+ align-self : center ;
193
+ grid-template-rows : 0.1fr 0.2fr 0.2fr 0.2fr 0.1fr ;
194
+ grid-template-columns : 0.5fr 0.5fr ;
195
+ width : 60% ;
196
+ height : 50% ;
197
+ top : 25% ;
198
+ left : 20% ;
199
+ .upline {
200
+ grid-row : 1 ;
201
+ grid-column-start : 1 ;
202
+ grid-column-end : 3 ;
203
+ }
204
+
205
+ .downline {
206
+ grid-row : 5 ;
207
+ grid-column-start : 1 ;
208
+ grid-column-end : 3 ;
209
+ }
210
+
211
+ .upline , .downline {
212
+ height : 6px ;
213
+ background : linear-gradient (-90deg , #00ff4000 , $success-primary , #00ff4000 );
214
+ }
215
+
216
+ @keyframes width-left-anim {
217
+ from {
218
+ width : 10% ;
219
+ left : 45% ;
220
+ }
221
+ to {
222
+ width : 100% ;
223
+ left : 0% ;
224
+ }
225
+ }
226
+
227
+ .line ::before {
228
+ position : absolute ;
229
+ left : 45% ;
230
+ content : " " ;
231
+ display : flex ;
232
+ align-self : center ;
233
+ justify-self : center ;
234
+ width : 10% ;
235
+ background : linear-gradient (-90deg , #00000000 , #000000de , #00000000 );
236
+ height : 6px ;
237
+ margin-bottom : -12px ;
238
+ opacity : 50% ;
239
+ animation : .7s ease-in-out width- left- anim .7s ;
240
+ animation-fill-mode : both ;
241
+ }
242
+
243
+ .button-play {
244
+ grid-row : 4 ;
245
+ grid-column : 1 ;
246
+ }
247
+
248
+ .button-menu {
249
+ grid-row : 4 ;
250
+ grid-column : 2 ;
251
+ }
252
+
253
+ .button-menu , .button-play {
254
+ width : 80% ;
255
+ }
256
+
257
+ h1 {
258
+ display : block ;
259
+ text-align : center ;
260
+ text-shadow : 0 0.1rem 0.4rem $shadow-color , 0 0.4rem 0.8rem black ,
261
+ 0 0 0.8rem $shadow-color ;
262
+ }
263
+
264
+ #player-box {
265
+ color : $success-primary ;
266
+ grid-row : 2 ;
267
+ grid-column-start : 1 ;
268
+ grid-column-end : 3 ;
269
+ }
270
+
271
+ #wintext-box {
272
+ color : $success-primary ;
273
+ grid-row : 3 ;
274
+ grid-column-start : 1 ;
275
+ grid-column-end : 3 ;
276
+ }
277
+ }
278
+
279
+
280
+
281
+
184
282
@media screen and (max-width : 1100px ) {
185
283
.game-container {
186
284
grid-template-columns : 25% 50% 25% ;
0 commit comments