-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
173 lines (150 loc) · 3 KB
/
styles.css
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.hide {
display: none;
}
body {
padding: 2rem;
width: 100%;
min-height: 100vh;
background-image: linear-gradient(to right bottom, #cffafe, #22d3ee);
display: flex;
flex-direction: column;
}
.header-img {
display: flex;
width: 100%;
max-width: 600px;
margin-inline: auto;
filter: drop-shadow(5px 5px 20px rgba(0, 0, 0, 0.2));
}
.container {
flex: 1;
position: relative;
isolation: isolate;
width: 100%;
max-width: 1200px;
margin-inline: auto;
}
.image-1,
.image-2 {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.image-1 {
width: 175px;
}
.image-2 {
width: 250px;
}
.btn {
position: absolute;
top: calc(100% - 5rem);
min-width: 120px;
padding: 0.75rem 1rem;
font-size: 1.25rem;
outline: none;
border: none;
background-color: #f8fafc;
border-radius: 5px;
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
cursor: pointer;
transition: 0.3s;
}
.btn:hover {
background-color: #e2e8f0;
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}
.btn-yes {
left: 50%;
transform: translateX(calc(-100% - 1rem));
z-index: 1;
}
.btn-no {
left: calc(50% + 1rem);
transition: all 0.5s ease;
z-index: 2;
}
/* Additional styles for the birthday page */
.birthday-page {
position: relative;
overflow: hidden; /* To hide the overflowing elements */
background-image: url('assets/birthday-background.jpg'); /* Use your birthday background */
background-size: cover;
animation: moveBackground 30s linear infinite; /* Move background */
}
@keyframes moveBackground {
0% { background-position: 0 0; }
100% { background-position: 100% 0; }
}
.birthday-title {
font-size: 3rem;
color: white; /* Text color */
animation: slideIn 1s ease-in-out;
}
.birthday-message {
font-size: 1.5rem;
color: white; /* Text color */
animation: fadeIn 2s ease-in-out;
}
@keyframes slideIn {
from {
transform: translateY(-50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.birthday-container {
background-color: rgba(255, 192, 203, 0.7); /* Light pink background */
padding: 2rem;
border-radius: 10px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
text-align: center;
}
/* Confetti styles */
.confetti {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
pointer-events: none; /* Allow clicks through confetti */
}
.confetti-piece {
position: absolute;
width: 10px;
height: 10px;
background: #f00;
opacity: 0.7;
animation: fall 3s infinite forwards;
}
@keyframes fall {
0% {
transform: translateY(0);
}
100% {
transform: translateY(100vh);
opacity: 0;
}
}
.cake-image {
width: 200px; /* Adjust as needed */
height: auto;
margin-top: 1rem;
}