-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmain.css
More file actions
249 lines (210 loc) · 5.4 KB
/
main.css
File metadata and controls
249 lines (210 loc) · 5.4 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
@font-face {
font-family: 'Pacifico';
src: url('Fonts/Pacifico.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
body {
overflow: hidden;
background: #111;
margin: 0;
font-family: 'Pacifico', sans-serif;
display: flex;
align-items: center; /* vertical center */
justify-content: flex-start;
}
.lastpage {
position: absolute; /* ya fixed, agar full screen me dikhana hai */
top: 0;
font-family: 'Pacifico', sans-serif;
left: 0;
width: 100%;
min-height: 100vh; /* full page height */
background: transparent; /* apne hisaab se background */
display: none; /* default hidden */
z-index: 9999; /* sabse upar dikhne ke liye */
padding: 20px; /* thoda andar space */
box-sizing: border-box;
justify-content: center; /* horizontally center */
align-items: center;
}
.lastPage.show {
opacity: 1;
visibility: visible; /* visible when class added */
transition-delay: 0s;
}
/* Canvas upar hoga pehle */
canvas {
position: fixed;
inset: 0;
z-index: 2;
background: transparent;
transition: opacity 2s ease;
}
canvas.fade-out {
opacity: 0;
pointer-events: none;
}
/* Main initially hidden */
.main-content {
position: relative;
z-index: 1;
display: flex;
flex-direction: column; /* stack items vertically */
align-items: center; /* center horizontally */
justify-content: flex-start; /* start from top */
width: 100%;
min-height: 100vh;
padding-top: 40px; /* some space from top */
text-align: center;
background: transparent;
color: #fff;
opacity: 0;
visibility: hidden; /* hidden initially */
transition: opacity 2s ease, visibility 0s linear;
}
.main-content.show {
opacity: 1;
visibility: visible; /* visible when class added */
transition-delay: 0s;
}
p {
margin: 0 0;
position: absolute;
font: 16px Verdana;
color: #eee;
height: 25px;
top: calc(100vh - 30px);
text-shadow: 0 0 2px white;
}
p a {
text-decoration: none;
color: #aaa;
}
span {
font-size: 11px;
}
p > a:first-of-type {
font-size: 20px;
}
#start-btn-container {
position: absolute;
top: 70%;
left: 50%;
transform: translate(-50%, -50%);
display: none; /* JS se control hoga */
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 0.6s ease;
z-index: 10;
}
/* CYBERPUNK NEON BUTTON */
#start-btn {
--neon: #00e5ff; /* primary glow (cyan) */
--accent: #ff00e6; /* secondary glow (magenta) */
background: rgba(5, 8, 12, 0.55); /* dark, semi-glass */
color: #eaffff;
font-size: 1.3rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
padding: 16px 38px;
border: 2px solid var(--neon);
border-radius: 14px;
cursor: pointer;
/* hard neon glow + inner rim
box-shadow:
0 0 8px var(--neon),
0 0 22px var(--neon),
0 0 2px rgba(255,255,255,0.3) inset,
0 6px 24px rgba(0, 229, 255, 0.18);
backdrop-filter: blur(6px); */
-webkit-backdrop-filter: blur(6px);
position: relative;
overflow: hidden;
/* keep your existing transitions intact */
transition: transform 0.3s ease, filter 0.3s ease;
}
/* corner notches (no gradients, no animation) */
#start-btn::before,
#start-btn::after {
content: "";
position: absolute;
inset: 0;
border-radius: 14px;
pointer-events: none;
}
#start-btn::before {
/* cyan halo outline */
box-shadow: 0 0 0 2px rgba(0,229,255,0.4), 0 0 28px rgba(0,229,255,0.35);
mix-blend-mode: screen;
}
#start-btn::after {
/* magenta corner cuts */
border: 2px solid transparent;
clip-path: polygon(
0% 18%, 6% 18%, 6% 0%, 94% 0%, 94% 18%, 100% 18%,
100% 82%, 94% 82%, 94% 100%, 6% 100%, 6% 82%, 0% 82%
);
box-shadow:
inset 0 0 0 2px var(--accent),
0 0 16px var(--accent);
opacity: 0.75;
}
/* text glow */
#start-btn .btn-text {
font-size: 0.8rem;
color: white;
text-shadow:
0 0 6px var(--neon),
0 0 14px var(--neon),
0 0 2px rgba(255,255,255,0.6);
}
/* hover: stronger dual-glow, slight lift */
#start-btn:hover {
transform: translateY(-2px) scale(1.04);
background: cyan;
box-shadow:
0 0 10px var(--neon),
0 0 30px var(--neon),
0 0 20px rgba(255, 0, 230, 0.35),
0 10px 30px rgba(0, 229, 255, 0.25);
filter: saturate(1.15);
}
.fireworks {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none; /* taki clicks block na ho */
z-index: -1; /* background me dikhne ke liye */
}
/* unique birthday tag */
.bday-unique {
width: 90%;
margin: 20px auto; /* center in page */
padding: 20px;
font-size: clamp(14px, 2vw, 20px); /* responsive font size */
line-height: 1.6;
text-align: center;
border: 4px solid transparent;
border-radius: 18px;
/* multicolor border */
background-image:
linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb, #a1c4fd, #c2e9fb),
linear-gradient(135deg, #ffdde1, #fcc2e0, #fddde6, #fff6f6);
/* cute background inside */
box-shadow: 0 8px 24px rgba(0,0,0,0.2);
color: #333;
font-family: 'Pacifico', cursive, sans-serif;
}
.fade-out {
opacity: 0;
pointer-events: none;
}
.fade-in {
opacity: 1;
pointer-events: auto;
}