-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
376 lines (328 loc) · 8.79 KB
/
Copy pathstyle.css
File metadata and controls
376 lines (328 loc) · 8.79 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
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
/* General Styles */
body {
font-family: 'Courier New', Courier, monospace;
margin: 0;
padding: 0;
overflow-x: hidden; /* Prevent horizontal scroll */
transition: background-color 0.5s ease, color 0.5s ease; /* Smooth transition */
background-color: #f0f0f0; /* Light mode default */
color: #333;
}
.container {
width: 80%;
max-width: 1200px;
margin: 20px auto;
padding: 20px;
perspective: 1000px; /* For 3D effects */
}
/* Add this to your style.css */
.ad-container {
width: 100%; /* Allow ad to take up the full width */
/* Add a minimum height to ensure space is reserved */
min-height: 50px; /* Adjust this value as needed */
margin-bottom: 10px; /* Optional: Add some spacing below the ad */
/* Debugging: add a border to see the container */
/*border: 1px solid blue !important;*/
}
/* Ensure the ad-container is visible */
.ad-container {
display: block !important; /* Ensure it's not accidentally hidden */
visibility: visible !important; /* Ensure it's not invisible */
}
/* Header */
.header {
text-align: center;
margin-bottom: 40px;
transform: rotate(-2deg); /* Slight rotation */
}
.title {
font-size: 3em;
margin-bottom: 0.5em;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.subtitle {
font-size: 1.2em;
color: #666;
}
/* Content Section & Cards */
.content {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
gap: 20px;
}
.card {
width: calc(50% - 20px); /* Two cards per row with gap */
min-width: 300px; /* Minimum width to maintain layout */
background-color: #fff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
overflow: hidden; /* Ensure content doesn't overflow */
transition: transform 0.3s ease, box-shadow 0.3s ease;
position: relative; /* For absolute positioning of inner elements */
}
.card-inner{
padding: 20px;
height: 100%;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.card:hover {
transform: translateY(-5px) rotateY(10deg); /* 3D hover effect */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.card h2 {
margin-top: 0;
margin-bottom: 10px;
font-size: 1.5em;
color: #333;
}
.card p {
color: #555;
line-height: 1.5;
flex-grow: 1; /* Allow paragraph to take up remaining space */
}
/* Footer */
.footer {
text-align: center;
margin-top: 40px;
padding: 20px;
border-top: 1px solid #ddd;
color: #777;
}
.heart {
color: red;
}
/* --- Theme Toggle --- */
.toggle-container {
position: absolute;
top: 20px;
right: 20px;
}
.theme-toggle {
display: none; /* Hide the actual checkbox */
}
.theme-toggle-label {
display: inline-block;
width: 60px;
height: 30px;
background-color: #ccc;
border-radius: 15px;
position: relative;
cursor: pointer;
transition: background-color 0.3s ease;
}
.toggle-ball {
position: absolute;
top: 2px;
left: 2px;
width: 26px;
height: 26px;
background-color: white;
border-radius: 50%;
transition: transform 0.3s ease;
}
.sun-icon, .moon-icon {
position: absolute;
top: 50%;
transform: translateY(-50%);
font-size: 1.2em;
color: #f0f0f0; /* Light gray initially */
transition: color 0.3s ease;
}
.sun-icon {
left: 5px;
}
.moon-icon {
right: 5px;
}
/* Dark Mode Styles */
body.dark-mode {
background-color: #121212;
color: #eee;
}
body.dark-mode .card {
background-color: #222;
box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1); /* Lighter shadow in dark mode */
}
body.dark-mode .card h2 {
color: #ddd;
}
body.dark-mode .card p {
color: #ccc
}
body.dark-mode .footer {
border-top: 1px solid #444;
color: #999;
}
body.dark-mode .theme-toggle-label {
background-color: #333;
}
/* Toggle Ball Position */
.theme-toggle:checked + .theme-toggle-label .toggle-ball {
transform: translateX(30px);
}
/* Icon Colors */
.theme-toggle:checked + .theme-toggle-label .sun-icon {
color: #121212; /* Dark when in dark mode */
}
.theme-toggle:checked + .theme-toggle-label .moon-icon {
color: #eee; /* Light when in dark mode */
}
/* --- Specific Section Styles --- */
/* Section 1: Glitch */
.glitch-container {
position: relative;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.glitch {
position: relative;
font-size: 2em;
font-weight: bold;
color: #333;
letter-spacing: 3px;
text-transform: uppercase;
}
.glitch::before,
.glitch::after {
content: attr(data-text);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
clip: rect(0, 0, 0, 0); /* Hide initially */
}
.glitch::before {
left: 2px;
text-shadow: -1px 0 red;
animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.glitch::after {
left: -2px;
text-shadow: -1px 0 blue;
animation: glitch-anim-2 2s infinite linear alternate-reverse;
}
/* Glitch Keyframes */
@keyframes glitch-anim-1 {
0% { clip: rect(29px, 9999px, 35px, 0); }
5% { clip: rect(51px, 9999px, 53px, 0); }
10% { clip: rect(59px, 9999px, 74px, 0); }
15% { clip: rect(27px, 9999px, 91px, 0); }
20% { clip: rect(65px, 9999px, 65px, 0); }
25% { clip: rect(37px, 9999px, 21px, 0); }
30% { clip: rect(84px, 9999px, 43px, 0); }
35% { clip: rect(87px, 9999px, 28px, 0); }
40% { clip: rect(88px, 9999px, 79px, 0); }
45% { clip: rect(95px, 9999px, 93px, 0); }
50% { clip: rect(44px, 9999px, 34px, 0); }
55% { clip: rect(5px, 9999px, 75px, 0); }
60% { clip: rect(39px, 9999px, 51px, 0); }
65% { clip: rect(74px, 9999px, 28px, 0); }
70% { clip: rect(67px, 9999px, 74px, 0); }
75% { clip: rect(50px, 9999px, 61px, 0); }
80% { clip: rect(93px, 9999px, 36px, 0); }
85% { clip: rect(64px, 9999px, 87px, 0); }
90% { clip: rect(56px, 9999px, 69px, 0); }
95% { clip: rect(55px, 9999px, 78px, 0); }
100% { clip: rect(53px, 9999px, 49px, 0); }
}
@keyframes glitch-anim-2 {
0% { clip: rect(64px,9999px,91px,0) }
5% { clip: rect(76px,9999px,52px,0) }
10% { clip: rect(50px,9999px,65px,0) }
15% { clip: rect(88px,9999px,31px,0) }
20% { clip: rect(28px,9999px,27px,0) }
25% { clip: rect(91px,9999px,89px,0) }
30% { clip: rect(97px,9999px,45px,0) }
35% { clip: rect(92px,9999px,97px,0) }
40% { clip: rect(60px,9999px,53px,0) }
45% { clip: rect(41px,9999px,64px,0) }
50% { clip: rect(50px,9999px,24px,0) }
55% { clip: rect(79px,9999px,41px,0) }
60% { clip: rect(29px,9999px,68px,0) }
65% { clip: rect(72px,9999px,57px,0) }
70% { clip: rect(51px,9999px,47px,0) }
75% { clip: rect(50px,9999px,47px,0) }
80% { clip: rect(76px,9999px,50px,0) }
85% { clip: rect(90px,9999px,93px,0) }
90% { clip: rect(84px,9999px,51px,0) }
95% { clip: rect(59px,9999px,60px,0) }
100% { clip: rect(77px,9999px,71px,0) }
}
/* Dark Mode Glitch */
body.dark-mode .glitch {
color: #eee;
}
/* Section 2: Void */
.void {
width: 100px;
height: 100px;
border-radius: 50%;
background-color: #000;
margin: 20px auto;
cursor: pointer;
transition: transform 0.5s ease, width 0.5s ease, height 0.5s ease;
animation: pulse 2s infinite alternate;
}
.void.expanded {
width: 200px;
height: 200px;
transform: scale(1.2);
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
}
100% {
box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
}
}
body.dark-mode .void{
animation: pulse-dark 2s infinite alternate;
}
@keyframes pulse-dark {
0% {
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
}
100% {
box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
}
}
/* Section 3: Impossible Shape */
#impossible-shape {
border: 1px solid #ccc;
cursor: grab;
background-color: transparent;
}
body.dark-mode #impossible-shape{
border: 1px solid #555;
}
/* Section 4: Particle Canvas */
#particle-canvas {
background-color: rgba(0, 0, 0, 0.05); /* Slightly transparent background */
border-radius: 5px;
}
/* Dark mode Particle */
body.dark-mode #particle-canvas{
background-color: rgba(255, 255, 255, 0.05);
}
/* Section 5 Shifting Sands */
#shifting-sands {
display: block;
background-color: black; /* Initial background */
}
/* Media Queries for Responsiveness */
@media (max-width: 768px) {
.card {
width: 100%; /* Full width on smaller screens */
}
.header{
transform: none;
}
}