forked from NextCommunity/NextCommunity.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
339 lines (307 loc) · 8.2 KB
/
style.css
File metadata and controls
339 lines (307 loc) · 8.2 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
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
/**
* 1. THEME VARIABLES & CORE RESET
*/
:root {
--bg-page: #f8fafc;
--bg-card: #ffffff;
--bg-footer: #f1f5f9;
--text-main: #0f172a;
--text-muted: #64748b;
--border-color: #e2e8f0;
--accent: #2563eb;
--accent-light: #dbeafe;
--accent-rgb: 37, 99, 235;
--danger: #ef4444;
}
.dark {
--bg-page: #020617;
--bg-card: #0f172a;
--bg-footer: #1e293b50;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--border-color: #1e293b;
--accent: #60a5fa;
--accent-light: rgba(96, 165, 250, 0.15);
}
html, body {
overflow-x: clip;
min-height: 100%;
background-color: var(--bg-page);
color: var(--text-main);
transition: background-color 0.4s ease, color 0.4s ease;
scroll-behavior: smooth;
}
/**
* 2. USER CARDS & LEGIBILITY
*/
.user-card h2 {
color: #1e40af !important;
font-weight: 800;
transition: all 0.3s ease;
}
.dark .user-card h2 {
color: #60a5fa !important;
}
.user-card:hover h2 {
color: var(--accent) !important;
transform: translateX(4px);
}
/**
* 3. PILL-SHAPED INTERACTIVES
*/
.skill-item {
position: relative;
overflow: hidden;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.4rem;
padding: 0.4rem 0.9rem;
background-color: var(--accent-light) !important;
color: var(--accent) !important;
border: 1px solid rgba(var(--accent-rgb), 0.2);
border-radius: 9999px;
font-size: 0.7rem;
font-weight: 800;
text-transform: uppercase;
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
line-height: 1;
}
.skill-item:hover {
background-color: var(--accent) !important;
color: #ffffff !important;
transform: translateY(-3px) scale(1.05);
box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.4);
}
/**
* FIXED SURPRISE BUTTON & SKILL SHIMMER
*/
.surprise-btn, .skill-item {
position: relative; /* REQUIRED to contain the ::after element */
overflow: hidden; /* REQUIRED to hide the diagonal ribbon outside the button */
isolation: isolate; /* Prevents z-index bleeding */
}
/* Ensure the ribbon starts off-screen and is actually a gradient, not a solid block */
.surprise-btn::after, .skill-item::after {
content: '';
position: absolute;
top: 0;
left: -150%; /* Start much further left */
width: 100%; /* Match width of parent */
height: 100%;
background: linear-gradient(
90deg,
transparent,
rgba(255, 255, 255, 0.4),
transparent
);
transform: skewX(-20deg); /* Use skew instead of rotate for better clipping */
transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.surprise-btn:hover::after, .skill-item:hover::after {
left: 150%; /* Slide all the way across */
}
/**
* 4. DEVELOPER TOOLS & CONSOLE LOCK
*/
#dev-tools {
backdrop-filter: blur(20px);
background-color: rgba(15, 23, 42, 0.95);
border: 2px solid var(--accent);
padding: 1.5rem;
border-radius: 1rem;
z-index: 99999 !important;
position: fixed !important;
}
/* NUCLEAR LOCK: Keeps console visible during Self Destruct & Shake */
html body #dev-tools[data-lock="true"] {
display: block !important;
visibility: visible !important;
opacity: 1 !important;
position: fixed !important;
top: 20px !important;
right: 20px !important;
z-index: 2147483647 !important;
transform: none !important;
transition: none !important;
pointer-events: auto !important;
border-color: var(--danger);
box-shadow: 0 0 50px rgba(239, 68, 68, 0.4);
}
#dev-tools button {
font-family: 'Courier New', monospace;
background: rgba(0, 0, 0, 0.4);
color: white;
display: flex;
justify-content: space-between;
width: 100%;
padding: 0.6rem 0.8rem;
margin-bottom: 0.5rem;
border-radius: 0.5rem;
border: 1px solid rgba(255, 255, 255, 0.1);
transition: 0.2s;
cursor: pointer;
}
/* Console Neon Overrides */
#dev-tools button[onclick*="matrix"] { color: #00ff41 !important; border-color: rgba(0, 255, 65, 0.4) !important; }
#dev-tools button[onclick*="konami"] { color: #ffcc00 !important; border-color: rgba(255, 204, 0, 0.4) !important; }
#dev-tools button[onclick*="gravity"] { color: #ff3333 !important; border-color: rgba(255, 51, 51, 0.4) !important; }
#dev-tools button[onclick*="badge_click"] { color: #bc13fe !important; border-color: rgba(188, 19, 254, 0.4) !important; }
#dev-tools button[onclick*="resetPlayer"] { color: #f97316 !important; border-color: rgba(249, 115, 22, 0.4) !important; }
#dev-tools button:hover {
background: rgba(255, 255, 255, 0.1);
box-shadow: 0 0 15px currentColor;
transform: translateX(4px);
}
/**
* 5. SELF DESTRUCT & PROGRESS BARS
*/
#self-destruct-btn.is-destructing {
background: linear-gradient(270deg, #2563eb, #f97316, #ef4444) !important;
background-size: 400% 400% !important;
animation: heat-up 2s linear infinite !important;
color: white !important;
border: 2px solid white !important;
pointer-events: none;
overflow: hidden;
}
#destruct-bar-container {
width: 100%;
height: 14px;
background: #000;
border: 2px solid #333;
margin-top: 15px;
border-radius: 4px;
}
#destruct-bar-progress {
height: 100%;
width: 0%;
background: #22c55e;
transition: width 1s linear, background-color 0.3s;
}
/* Fix for the Ribbon Artifact */
#destruct-bar {
position: absolute;
bottom: 0;
left: 0;
height: 4px;
width: 0%;
background-color: transparent;
transition: width 1s linear, background-color 0.5s ease;
z-index: 10;
pointer-events: none;
}
/**
* 6. ANIMATIONS
*/
@keyframes heat-up {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
@keyframes shake-anim {
0% { transform: translate(0, 0); }
25% { transform: translate(3px, -3px); }
50% { transform: translate(-3px, 3px); }
100% { transform: translate(0, 0); }
}
.glitch-shake {
animation: shake-anim 0.1s infinite;
overflow: hidden;
}
.bar-jitter { animation: jitter 0.1s infinite; }
@keyframes jitter {
0% { transform: translateX(0); }
50% { transform: translateX(2px); filter: brightness(1.5); }
100% { transform: translateX(-1px); }
}
#repair-btn {
background-color: var(--danger) !important;
color: #fff !important;
border: 4px solid #fff;
border-radius: 9999px;
padding: 1.5rem 3rem;
font-weight: 900;
box-shadow: 0 0 60px rgba(239, 68, 68, 0.6);
z-index: 10001;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
#level-progress { box-shadow: 0 0 10px var(--accent); transition: width 1s ease; }
/* Ensure Hash Button remains top-level */
button[onclick*="gravity"] {
position: relative;
z-index: 10;
}
/**
* RE-ASSERTING SURPRISE BUTTON BLUE
*/
.surprise-btn {
/* Explicitly use the blue hex if the variable is failing */
background-color: #2563eb !important;
color: #ffffff !important;
display: inline-flex !important;
align-items: center;
justify-content: center;
padding: 0.6rem 1.5rem;
border-radius: 9999px;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 0.05em;
border: none;
cursor: pointer;
box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
/* Ensure Dark Mode uses its specific blue/accent */
.dark .surprise-btn {
background-color: var(--accent) !important;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.surprise-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
filter: brightness(1.1);
}
/* The "Shimmer" fix from before to prevent the gray ribbon */
.surprise-btn::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
transparent,
rgba(255, 255, 255, 0.3),
transparent
);
transition: 0.5s;
}
.surprise-btn:hover::after {
left: 100%;
}
/* Konami Secret Animation */
.konami-roll {
animation: konami-barrel-roll 2s cubic-bezier(0.45, 0.05, 0.55, 0.95);
overflow: hidden; /* Prevents scrollbars during rotation */
}
@keyframes konami-barrel-roll {
0% {
transform: rotate(0deg) scale(1);
filter: hue-rotate(0deg);
}
50% {
transform: rotate(180deg) scale(0.8);
filter: hue-rotate(180deg);
}
100% {
transform: rotate(360deg) scale(1);
filter: hue-rotate(360deg);
}
}