-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
271 lines (237 loc) · 6.59 KB
/
style.css
File metadata and controls
271 lines (237 loc) · 6.59 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
/* General Styling */
body {
font-family: 'Quicksand', sans-serif; /* Softer body font */
background: linear-gradient(135deg, #e0f2f7 0%, #d4eaf7 100%); /* Lighter, more serene background */
color: #333;
display: flex;
justify-content: center;
align-items: flex-start;
min-height: 100vh;
padding: 2rem;
box-sizing: border-box;
overflow-x: hidden; /* Prevent horizontal scroll */
}
/* The Main Card Container */
.card-container {
width: 100%;
max-width: 1200px;
background: #ffffff;
border-radius: 20px; /* More rounded corners */
box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15); /* Stronger shadow for depth */
padding: 0; /* Adjust padding due to hero section */
box-sizing: border-box;
overflow: hidden; /* Ensure hero image respects border-radius */
animation: slideIn 0.8s ease-out forwards; /* Initial card animation */
transform: translateY(20px);
opacity: 0;
}
@keyframes slideIn {
to {
transform: translateY(0);
opacity: 1;
}
}
/* Hero Section - The top part with image and main message */
.hero-section {
position: relative;
background: linear-gradient(45deg, #a8dadc, #457b9d); /* Gradient background if no image */
color: #ffffff;
padding: 3rem; /* Adjusted padding for better visual balance */
border-bottom: 3px solid rgba(255, 255, 255, 0.2);
text-align: center;
margin-bottom: 2.5rem;
overflow: hidden;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
}
.hero-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('https://images.unsplash.com/photo-1517486804561-e0c26569f935?q=80&w=2940&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D'); /* Example Unsplash image */
background-size: cover;
background-position: center;
opacity: 0.7; /* Make it subtle */
z-index: 0;
}
.hero-content {
position: relative;
z-index: 1;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}
.hero-section h1 {
font-family: 'Playfair Display', serif; /* Elegant heading font */
font-size: 3.5rem; /* Larger, more impactful */
margin: 0 0 1rem 0;
line-height: 1.2;
letter-spacing: 0.5px;
animation: fadeInScale 1s ease-out forwards;
}
.hero-section .subtitle {
font-size: 1.3rem; /* Slightly larger subtitle */
line-height: 1.7;
margin-top: 1.5rem;
max-width: 800px;
margin-left: auto;
margin-right: auto;
animation: fadeIn 1.2s ease-out forwards;
animation-delay: 0.2s;
}
.divider {
width: 80px;
height: 3px;
background: #f1faee;
margin: 2rem auto 0;
border-radius: 5px;
animation: expandWidth 1s ease-out forwards;
animation-delay: 0.4s;
}
@keyframes fadeInScale {
from { opacity: 0; transform: scale(0.9); }
to { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes expandWidth {
from { width: 0; }
to { width: 80px; }
}
/* Wishes Grid Container */
#wishes-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1.8rem; /* Slightly larger gap */
padding: 0 3rem; /* Apply padding here for the grid content */
margin-bottom: 2.5rem;
}
.loading {
font-size: 1.2rem;
color: #777;
text-align: center;
grid-column: 1 / -1;
padding: 2rem;
}
.loading i {
margin-right: 0.8rem;
color: #457b9d;
}
/* Individual Wish Cards */
.wish-card {
background: #fdfdfd;
border: 1px solid #e0e0e0; /* Softer border */
border-radius: 12px; /* Slightly more rounded */
padding: 1.8rem; /* More internal padding */
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* More pronounced, soft shadow */
transition: transform 0.2s ease, box-shadow 0.2s ease; /* Hover effect */
opacity: 0;
transform: translateY(20px);
animation: fadeInCard 0.6s ease forwards; /* Custom animation for cards */
}
.wish-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
@keyframes fadeInCard {
to {
opacity: 1;
transform: translateY(0);
}
}
.wish-card p {
font-size: 1.05rem; /* Slightly larger text */
line-height: 1.7;
color: #444;
margin: 0 0 1rem 0;
font-style: italic;
}
.wish-card span {
font-weight: 700;
font-size: 0.9rem;
color: #2a9d8f; /* A new accent color */
display: block;
text-align: right;
margin-top: 1rem;
padding-top: 0.8rem;
border-top: 1px dashed #e0e0e0; /* Subtle separator */
}
/* Footer Section */
footer {
text-align: center;
margin-top: 3rem;
padding: 2.5rem 3rem;
border-top: 2px solid #e0e0e0;
}
.cta-button {
display: inline-flex; /* Align icon and text */
align-items: center;
gap: 0.8rem; /* Space between icon and text */
background: linear-gradient(45deg, #2a9d8f, #264653); /* Gradient button */
color: #ffffff;
font-family: 'Quicksand', sans-serif;
font-weight: 700;
font-size: 1.1rem;
text-decoration: none;
padding: 1.1rem 3rem;
border-radius: 50px;
transition: all 0.3s ease;
box-shadow: 0 8px 25px rgba(42, 157, 143, 0.3);
}
.cta-button:hover,
.cta-button:focus {
background: linear-gradient(45deg, #264653, #2a9d8f); /* Reverse gradient on hover */
box-shadow: 0 12px 30px rgba(42, 157, 143, 0.4);
transform: translateY(-3px);
}
.footer-note {
font-size: 0.9rem;
color: #777;
margin-top: 1.5rem;
}
/* Responsive Design */
@media (max-width: 768px) {
body {
padding: 1rem;
}
.card-container {
border-radius: 12px;
}
.hero-section {
padding: 2rem 1.5rem;
margin-bottom: 2rem;
border-top-left-radius: 12px;
border-top-right-radius: 12px;
}
.hero-section h1 {
font-size: 2.5rem;
}
.hero-section .subtitle {
font-size: 1rem;
}
#wishes-grid {
grid-template-columns: 1fr;
padding: 0 1.5rem;
}
footer {
padding: 2rem 1.5rem;
}
.cta-button {
padding: 0.9rem 2rem;
font-size: 1rem;
}
}
@media (max-width: 480px) {
.hero-section h1 {
font-size: 2rem;
}
.hero-section .subtitle {
font-size: 0.9rem;
}
.cta-button {
font-size: 0.9rem;
padding: 0.8rem 1.5rem;
}
}