blob: 0c4a37ed8629803e0227ada4b6d0d8d46d34210a (
plain)
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
|
#kuchen-wrapper {
display: flex;
flex-direction: column;
align-items: center;
margin: auto;
max-width: 50%;
}
img.kuchen-hintergrund {
position: relative;
max-width: 100%;
opacity: 0.4;
}
img.kuchen-vordergrund {
position: relative;
}
#streak {
position: relative;
}
.klassen-navigation {
list-style-type: none;
margin: auto;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
}
ul.klassen-navigation li {
display: block;
padding: 14px 16px;
text-decoration: none;
}
ul li:hover {
background-color: #111111;
}
.konfetti-wrapper {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none; /* Prevent interaction */
overflow: hidden;
}
@keyframes konfetti-fall {
0% {
transform: translateY(-100%) rotate(0deg);
opacity: 1;
}
100% {
transform: translateY(100vh) rotate(360deg);
opacity: 0.8;
}
}
.konfetti-stueck {
position: absolute;
width: 10px;
height: 20px;
background: var(--konfetti-color, red);
opacity: 0.9;
animation: konfetti-fall var(--fall-dauer, 4s) linear infinite;
}
/* Randomize confetti properties */
.konfetti-stueck:nth-child(1) {
left: 10%;
--konfetti-farbe: #ff6347;
--fall-dauer: 3s;
}
.konfetti-stueck:nth-child(2) {
left: 25%;
--konfetti-farbe: #ffa500;
--fall-dauer: 5s;
}
.konfetti-stueck:nth-child(3) {
left: 40%;
--konfetti-farbe: #32cd32;
--fall-dauer: 4.5s;
}
.konfetti-stueck:nth-child(4) {
left: 60%;
--konfetti-farbe: #1e90ff;
--fall-dauer: 3.5s;
}
.konfetti-stueck:nth-child(5) {
left: 80%;
--konfetti-farbe: #ff69b4;
--fall-dauer: 6s;
}
|