Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
217 lines (196 loc) · 4.94 KB
/
Copy pathstyles.css
File metadata and controls
217 lines (196 loc) · 4.94 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
/* 80s Chill Vibe Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Raleway:wght@300;700&display=swap');
body {
background: linear-gradient(135deg, #ff00ff, #00ffff);
background-attachment: fixed;
font-family: 'Raleway', sans-serif;
text-align: center;
color: white;
margin: 0;
padding: 0;
overflow: hidden;
}
/* Partikel-Effekt */
#particles-js {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none; /* Verhindert, dass Partikel das UI blockieren */
}
/* Start Menü */
#start-menu {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background: rgba(0, 0, 0, 0.6);
animation: fadeIn 1.5s ease-in-out;
}
button {
background: #ff00ff;
border: none;
padding: 15px 30px;
color: white;
font-size: 18px;
font-weight: bold;
border-radius: 12px;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.3s;
margin-bottom: 20px; /* Abstände zwischen den Buttons */
}
button:hover {
transform: scale(1.1);
box-shadow: 0px 0px 15px rgba(255, 0, 255, 0.8);
}
/* Animationen */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.color-transition {
animation: bgShift 3s infinite alternate;
}
@keyframes bgShift {
0% { background: #ff00ff; }
100% { background: #00ffff; }
}
/* Witz-Container */
#joke-container {
display: block; /* Direkt sichtbar nach Start */
opacity: 0;
z-index: 10;
animation: fadeIn 1s ease-in-out forwards; /* Fade-In Animation */
text-align: center;
}
#joke-search {
padding: 10px;
margin-bottom: 20px;
z-index: 10;
border-radius: 8px;
border: 2px solid #ff00ff;
background-color: #000000;
color: white;
font-size: 16px;
width: 80%;
max-width: 400px;
}
#joke-output {
margin: 20px;
font-size: 22px;
z-index: 10;
font-weight: bold;
color: #fff;
background-color: rgba(0, 0, 0, 0.6); /* Halbdurchsichtiger Hintergrund für den Witz */
border-radius: 8px;
padding: 10px;
}
/* Partikel-Animation */
.particle {
position: absolute;
z-index: -1;
background-color: #ff00ff;
border-radius: 50%;
animation: particleAnimation 3s infinite;
}
@keyframes particleAnimation {
0% {
transform: translate(0, 0) scale(1);
opacity: 1;
}
100% {
transform: translate(var(--x), var(--y)) scale(0);
opacity: 0;
}
}
button {
margin: 10px;
}
/* Titel "Find the perfect joke!" */
#find-joke-title {
font-family: 'Press Start 2P', sans-serif;
font-size: 2rem;
color: #ff00ff;
text-transform: uppercase;
letter-spacing: 3px;
opacity: 0;
animation: subtleAnimation 3s ease-out forwards, titleColorChange 5s infinite alternate;
text-shadow: 0 0 10px rgba(255, 0, 255, 0.8); /* Glowing Effekt */
-webkit-text-stroke: 1px black; /* Outline-Effekt */
}
@keyframes subtleAnimation {
0% {
transform: translateY(-10px); /* Leicht nach oben verschoben */
opacity: 0;
}
50% {
transform: translateY(0); /* Normalposition erreichen */
opacity: 1;
}
100% {
transform: translateY(-5px); /* Ein leichtes Heben für einen subtilen Effekt */
}
}
@keyframes titleColorChange {
0% {
color: #ff00ff;
}
50% {
color: #00ffff;
}
100% {
color: #ff00ff;
}
}
/* Benachrichtigung-Stil */
.copy-notification {
position: fixed;
top: 320px;
left: 50%;
transform: translateX(-50%);
background-color: rgba(0, 255, 255, 0.9); /* Helles Cyan für den Hintergrund */
color: #fff;
padding: 15px;
font-size: 18px;
font-weight: bold;
border-radius: 8px;
box-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
opacity: 0;
pointer-events: none;
z-index: 9999; /* Sicherstellen, dass es im Vordergrund ist */
animation: slideIn 0.5s ease-out forwards; /* Animation für das Einblenden */
}
/* Animation für das Einblenden der Benachrichtigung */
@keyframes slideIn {
0% {
transform: translateX(-50%) translateY(-20px);
opacity: 0;
}
100% {
transform: translateX(-50%) translateY(0);
opacity: 1;
}
}
/* Animations-Effekt für das Ausblenden der Benachrichtigung */
@keyframes slideOut {
0% {
transform: translateX(-50%) translateY(0);
opacity: 1;
}
100% {
transform: translateX(-50%) translateY(20px);
opacity: 0;
}
}
.copy-notification.show {
animation: slideIn 0.5s ease-out forwards; /* Einblenden */
}
.copy-notification.hide {
animation: slideOut 0.5s ease-out forwards; /* Ausblenden */
}