-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
252 lines (217 loc) · 4.67 KB
/
Copy pathstyle.css
File metadata and controls
252 lines (217 loc) · 4.67 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
:root {
--bg-color: #ffe6e6;
/* Soft pink */
--card-bg: #fff5f5;
/* Creamy white */
--text-color: #5c3a3a;
/* Dark warm brown */
--primary-color: #ff8fa3;
/* Popup pink */
--secondary-color: #ffb3c1;
/* Lighter pink */
--accent-color: #ff4d6d;
/* Reddish pink */
--chaos-rotation: 2deg;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Outfit', sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
overflow: hidden;
/* Prevent scroll */
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
/* Background floating hearts */
.heart-bg {
position: absolute;
color: rgba(255, 143, 163, 0.3);
font-size: 2rem;
animation: floatUp 10s linear infinite;
z-index: -1;
pointer-events: none;
user-select: none;
}
@keyframes floatUp {
0% {
transform: translateY(100vh) rotate(0deg);
opacity: 0;
}
10% {
opacity: 0.5;
}
90% {
opacity: 0.5;
}
100% {
transform: translateY(-10vh) rotate(360deg);
opacity: 0;
}
}
.main-container {
width: 100%;
max-width: 600px;
padding: 20px;
z-index: 10;
}
.card {
background: var(--card-bg);
border-radius: 30px;
padding: 40px;
text-align: center;
box-shadow: 0 10px 30px rgba(255, 77, 109, 0.15);
transition: transform 0.3s ease, opacity 0.3s ease;
border: 3px solid white;
position: relative;
/* Chaotic Tilt */
transform: rotate(var(--chaos-rotation));
}
h1 {
font-size: 2.5rem;
margin-bottom: 20px;
color: var(--accent-color);
}
p {
font-size: 1.2rem;
margin-bottom: 30px;
line-height: 1.6;
}
.buttons-container {
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
position: relative;
/* Identify positioning context */
min-height: 60px;
/* Space for buttons */
}
button {
background: var(--primary-color);
color: white;
border: none;
padding: 15px 30px;
font-size: 1.1rem;
border-radius: 50px;
cursor: pointer;
font-family: 'Outfit', sans-serif;
font-weight: 700;
transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
box-shadow: 0 4px 10px rgba(255, 77, 109, 0.2);
}
button:hover {
transform: scale(1.1) rotate(-3deg);
background: var(--accent-color);
}
button:active {
transform: scale(0.95);
}
/* Animations */
@keyframes shake {
0% {
transform: translateX(0) rotate(var(--chaos-rotation));
}
25% {
transform: translateX(-10px) rotate(calc(var(--chaos-rotation) - 2deg));
}
50% {
transform: translateX(10px) rotate(calc(var(--chaos-rotation) + 2deg));
}
75% {
transform: translateX(-10px) rotate(calc(var(--chaos-rotation) - 2deg));
}
100% {
transform: translateX(0) rotate(var(--chaos-rotation));
}
}
.shake {
animation: shake 0.4s ease-in-out;
}
.fade-in {
opacity: 0;
animation: fadeIn 0.8s forwards;
}
@keyframes fadeIn {
to {
opacity: 1;
}
}
.moving-btn {
position: absolute;
/* This allows it to move freely within the relative container or viewport context */
transition: top 0.2s ease, left 0.2s ease;
/* Smooth movement but fast */
z-index: 100;
}
/* Grid for 4-option questions */
.buttons-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
width: 100%;
}
/* Letter Styles */
.letter-content {
text-align: left;
background: white;
padding: 30px;
border-radius: 20px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
max-height: 60vh;
overflow-y: auto;
font-size: 1.1rem;
line-height: 1.8;
color: #4a4a4a;
border: 2px dashed var(--primary-color);
}
.letter-content h2 {
color: var(--accent-color);
margin-bottom: 15px;
text-align: center;
}
/* Utilities */
.hidden {
display: none;
}
.pop-heart {
position: absolute;
color: var(--accent-color);
font-size: 2rem;
animation: popAndFly 1s ease-out forwards;
pointer-events: none;
}
@keyframes popAndFly {
0% {
transform: scale(0) translate(0, 0);
opacity: 1;
}
100% {
transform: scale(1.5) translate(var(--tx), var(--ty));
opacity: 0;
}
}
/* Media Queries */
@media (max-width: 600px) {
h1 {
font-size: 2rem;
}
.card {
padding: 30px 20px;
}
button {
padding: 12px 24px;
font-size: 1rem;
}
.buttons-grid {
grid-template-columns: 1fr;
/* Stack on small screens for better readability */
}
}