-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
200 lines (174 loc) · 3.98 KB
/
style.css
File metadata and controls
200 lines (174 loc) · 3.98 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Georgia', serif;
min-height: 100vh;
background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
position: relative;
}
/* Floating hearts background */
.hearts-background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}
.bg-heart {
position: absolute;
font-size: 20px;
opacity: 0.3;
animation: floatUp 8s infinite ease-in;
}
@keyframes floatUp {
0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
10% { opacity: 0.3; }
90% { opacity: 0.3; }
100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}
/* Envelope animation */
.envelope-wrapper {
position: relative;
z-index: 10;
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
cursor: pointer;
transition: transform 0.3s ease;
}
.envelope-wrapper:hover { transform: scale(1.05); }
.envelope {
position: relative;
width: 280px;
height: 180px;
animation: float 2s infinite ease-in-out;
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
.body {
position: absolute;
bottom: 0;
width: 280px;
height: 180px;
background: #fff;
border-radius: 0 0 10px 10px;
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.flap {
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
border-left: 140px solid transparent;
border-right: 140px solid transparent;
border-top: 100px solid #f8b4d9;
transform-origin: top center;
transition: transform 0.6s ease;
z-index: 2;
}
.envelope.open .flap {
transform: rotateX(180deg);
}
/* Hint */
.click-hint {
color: #fff;
font-size: 18px;
font-weight: bold;
text-shadow: 0 0 10px rgba(0,0,0,0.3);
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0%,100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.7; transform: scale(1.1); }
}
/* Letter Styles */
.letter-container {
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
display: none;
justify-content: center;
align-items: center;
z-index: 100;
background: rgba(0,0,0,0.5);
animation: fadeIn 0.5s ease forwards;
}
.letter-container.active { display: flex; }
.letter {
background: #fffef7;
max-width: 700px;
padding: 50px;
border-radius: 10px;
box-shadow: 0 20px 60px rgba(0,0,0,0.4);
position: relative;
animation: slideIn 1s ease;
}
@keyframes slideIn {
from { transform: translateY(100vh) scale(0.9); opacity: 0; }
to { transform: translateY(0) scale(1); opacity: 1; }
}
.animated-title {
color: #764ba2;
text-align: center;
font-size: 36px;
margin-bottom: 10px;
animation: glow 2s infinite alternate;
}
@keyframes glow {
from { text-shadow: 0 0 10px rgba(118,75,162,0.4); }
to { text-shadow: 0 0 25px rgba(118,75,162,0.8); }
}
.letter-content {
color: #333;
line-height: 1.8;
margin-top: 30px;
}
.paragraph {
opacity: 0;
transform: translateY(20px);
animation: fadeUp 0.8s forwards;
}
.paragraph:nth-child(1) { animation-delay: 0.5s; }
.paragraph:nth-child(2) { animation-delay: 0.8s; }
.paragraph:nth-child(3) { animation-delay: 1.1s; }
.paragraph:nth-child(4) { animation-delay: 1.4s; }
.paragraph:nth-child(5) { animation-delay: 1.7s; }
@keyframes fadeUp {
to { opacity: 1; transform: translateY(0); }
}
.signature {
text-align: right;
margin-top: 40px;
color: #764ba2;
font-style: italic;
font-size: 20px;
}
.close-btn {
position: absolute;
top: 20px; right: 20px;
background: #f8b4d9;
border: none;
color: #fff;
padding: 10px 25px;
border-radius: 25px;
font-weight: bold;
cursor: pointer;
transition: 0.3s;
}
.close-btn:hover {
background: #764ba2;
transform: scale(1.1);
}