-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
197 lines (175 loc) · 7.63 KB
/
style.css
File metadata and controls
197 lines (175 loc) · 7.63 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
:root {
--red: #e63946;
--green: #2a9d8f;
--gold: #f4a261;
--cream: #fffaf0;
--dark: #1d3557;
}
* { margin:0; padding:0; box-sizing:border-box; cursor: none !important; } /* Custom cursor */
body {
background: linear-gradient(135deg, #0b132b, #1c2526);
min-height: 100vh;
font-family: 'Poppins', sans-serif;
color: white;
overflow-x: hidden;
padding: 20px 10px;
user-select: none;
}
/* Custom cursor (heart + snowflake) */
.custom-cursor {
position: fixed;
width: 24px; height: 24px;
pointer-events: none;
z-index: 9999;
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23e63946"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>') center/100% no-repeat;
transform: translate(-50%, -50%);
transition: transform 0.1s;
mix-blend-mode: difference;
pointer-events: none !important;
}
/* Christmas lights border */
.lights-border {
position: fixed;
inset: 0;
pointer-events: none;
background:
repeating-linear-gradient(0deg, transparent 0px, transparent 30px, #ff006622 30px, #ff006622 60px),
repeating-linear-gradient(90deg, transparent 0px, transparent 30px, #00ff0022 30px, #00ff0022 60px),
repeating-linear-gradient(45deg, transparent 0px, transparent 25px, #ffd70022 25px, #ffd70022 50px);
animation: pulseLights 8s infinite;
z-index: 0;
}
@keyframes pulseLights {
0%, 100% { opacity: 0.4; }
50% { opacity: 0.8; }
}
/* Snow (same as before) */
.snow-container { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
@keyframes fall { 0% { transform: translateY(-100vh) rotate(0deg); } 100% { transform: translateY(110vh) rotate(360deg); } }
.snowflake { position: absolute; color: white; opacity: 0.8; animation: fall linear infinite; }
/* Header & Calendar (same as before) */
header { text-align: center; margin: 30px 0 50px; position: relative; z-index: 2; }
h1 { font-family: 'Dancing Script', cursive; font-size: 3.5rem; background: linear-gradient(90deg, var(--red), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 5px 20px rgba(0,0,0,0.3); }
.subtitle { font-size: 1.2rem; opacity: 0.9; margin-top: 10px; }
.calendar { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; position: relative; z-index: 2; }
/* Gift box */
.gift { position: relative; aspect-ratio: 1; background: var(--red); border-radius: 20px; cursor: pointer; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.4); transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); pointer-events: auto !important; touch-action: manipulation; -webkit-tap-highlight-color: transparent;}
.gift:hover:not(.locked):not(.opened) { transform: translateY(-12px) scale(1.05); box-shadow: 0 20px 40px rgba(230, 57, 70, 0.5); }
.gift.locked { filter: grayscale(100%) brightness(70%); cursor: not-allowed; }
.gift.opened { background: var(--green); transform: scale(0.95); }
.gift::before, .gift::after { content: ''; position: absolute; background: var(--gold); box-shadow: 0 0 20px rgba(244,162,97,0.6); }
.gift::before { top: 50%; left: 50%; width: 60%; height: 18%; transform: translate(-50%, -50%); border-radius: 8px; }
.gift::after { top: 50%; left: 50%; width: 18%; height: 60%; transform: translate(-50%, -50%); border-radius: 8px; }
.number { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 3.2rem; font-weight: 700; color: white; text-shadow: 0 4px 10px rgba(0,0,0,0.6); z-index: 2; }
.check { position: absolute; top: 50%; left: 50%; width: 30px; height: 50px; border: solid white; border-width: 0 8px 8px 0; transform: translate(-50%, -70%) rotate(45deg) scale(0.7); opacity: 0; transition: opacity 0.4s; z-index: 3; }
.gift.opened .check { opacity: 1; }
/* Countdown on locked days */
.countdown { position: absolute; bottom: 8px; left: 0; right: 0; font-size: 0.65rem; text-align: center; color: #ffefef; opacity: 0.9; }
/* Secret note (long press) */
.secret-note {
position: fixed;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
background: rgba(230, 57, 70, 0.95);
color: white;
padding: 20px 30px;
border-radius: 20px;
font-family: 'Dancing Script', cursive;
font-size: 1.8rem;
text-align: center;
box-shadow: 0 15px 40px rgba(0,0,0,0.6);
z-index: 1000;
opacity: 0;
visibility: hidden;
transition: all 0.4s;
}
.secret-note.show { opacity: 1; visibility: visible; }
/* Modal (same + polaroid style) */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.9); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; z-index: 100; opacity: 0; visibility: hidden; transition: all 0.4s; }
.modal.active { opacity: 1; visibility: visible; }
.modal-content { background: var(--cream); color: var(--dark); padding: 40px 25px; border-radius: 24px; max-width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.6); transform: scale(0.8); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.modal.active .modal-content { transform: scale(1); }
.close { position: absolute; top: 15px; right: 25px; font-size: 2.8rem; background: none; border: none; color: var(--red); cursor: pointer; }
.day-title { font-family: 'Dancing Script', cursive; font-size: 3.5rem; color: var(--red); text-align: center; margin-bottom: 20px; }
.message { font-size: 1.4rem; line-height: 1.9; text-align: center; max-width: 700px; margin: 0 auto 30px; }
.photos { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 20px 0; }
.photos img { background: white; padding: 12px 12px 35px; border-radius: 4px; max-width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.3); position: relative; }
.photos img::after { content: attr(alt); position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-family: 'Dancing Script', cursive; font-size: 1.3rem; color: var(--red); }
@media (max-width: 480px) {
h1 { font-size: 2.8rem; }
.day-title { font-size: 2.8rem; }
.number { font-size: 2.6rem; }
}
/* Photo carousel inside modal */
.carousel {
position: relative;
max-width: 90%;
margin: 30px auto;
height: 50vh; /* ← fixed height */
overflow: hidden;
border-radius: 20px;
box-shadow: 0 15px 40px rgba(0,0,0,0.5);
background: #fffaf0;
}
.carousel-inner {
display: flex;
transition: transform 0.5s ease;
width: 100%;
}
.carousel-item {
min-width: 100%;
text-align: center;
}
.carousel-item img {
width: 85% !important;
height: 40vh !important; /* ← fixed height = same size */
object-fit: contain !important; /* keeps proportions but fits nicely */
object-position: center;
background: white;
padding: 15px;
border-radius: 16px;
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
display: block;
margin: 0 auto;
}
.carousel-item img::after {
content: attr(alt);
display: block;
margin-top: 12px;
font-family: 'Dancing Script', cursive;
font-size: 1.5rem;
color: #e63946;
}
.carousel-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(230,57,70,0.7);
color: white;
border: none;
width: 50px;
height: 50px;
border-radius: 50%;
font-size: 2rem;
cursor: pointer;
z-index: 10;
backdrop-filter: blur(5px);
}
.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }
.carousel-dots {
text-align: center;
margin-top: 15px;
}
.dot {
display: inline-block;
width: 10px;
height: 10px;
margin: 0 6px;
background: #ccc;
border-radius: 50%;
cursor: pointer;
}
.dot.active {
background: #e63946;
}