File size: 912 Bytes
adb3c25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57ebac0
 
adb3c25
 
57ebac0
 
adb3c25
 
 
 
 
57ebac0
 
adb3c25
 
 
 
57ebac0
 
adb3c25
 
 
 
 
 
 
 
57ebac0
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

:root {
    --red: #ef4444;
    --blue: #3b82f6;
    --yellow: #f59e0b;
    --green: #10b981;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --indigo: #6366f1;
    --teal: #14b8a6;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.flash-animation {
    animation: flash 0.5s ease-in-out;
}

.game-over {
    animation: shake 0.5s ease-in-out;
    background: linear-gradient(45deg, var(--red), var(--pink), var(--purple));
    background-size: 400% 400%;
    animation: gradient 2s ease infinite, shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    transition: background 0.5s ease;
}