-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
182 lines (158 loc) · 3.2 KB
/
style.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
174
175
176
177
178
179
180
181
182
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
min-height: 100vh;
min-width: 600px;
/* !Change the background image(cake) */
background-image: url(./images/cake.png), url(./images/cake.png);
/* *If you want you can remove images and add a gradient color for background */
/* background-image: linear-gradient(120deg, #aaa7b0, #ff002b); */
background-color: #c88cfc;
background-position: left top, right top;
background-repeat: no-repeat, no-repeat;
background-size: contain, contain;
background-attachment: fixed;
overflow: hidden;
position: relative;
}
/* !You can customize wishing msg */
#msgSet {
line-height: 1.4;
font-size: 106%;
}
/* !You can customize wishing msg h3 tags */
#msgSet h3 {
margin: 0px 0;
font-family: cursive;
font-weight: normal;
}
/* *Play Button */
#playButton {
z-index: 6;
color: #ffd4f7;
background: linear-gradient(to bottom, rgba(255, 0, 230, 0.627), rgb(255, 0, 106));
}
#playButton:hover {
cursor: pointer;
color: #d8ffd4;
background: green;
}
/* *Rectangle Layer */
#bgImg {
background: linear-gradient(to bottom, rgb(86, 204, 255), #fefefe78);
width: 32.5%;
min-width: 250px;
height: 25%;
margin: auto;
padding: 10px;
border-radius: 25px;
z-index: 3;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.461);
backdrop-filter: blur(2px);
}
/* *Whole page(main div tag) */
#main {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
margin-top: 20px;
}
/* *Main div tag of candles */
#image-container {
display: flex;
justify-content: center;
align-items: top;
max-width: 100%;
margin: 0 auto;
}
/* *Adjust the spacing between the candles */
#image-container div {
margin: 0 10px;
}
/* !Instruction text */
#birthday-message {
margin: 5px 0;
font-size: 24px;
color: #000000;
max-width: 100%;
text-align: center;
}
/* *Volume display(only need for the debugging) */
#volume-display {
margin-top: 10px;
font-size: 18px;
color: #555;
}
/* !Scale up the main photo on hover */
#img-after:hover #photo {
transform: scale(1.1);
margin: 0px auto;
border-radius: 25px;
}
#img-after {
width: 270px;
height: auto;
overflow: hidden;
border-radius: 25px;
margin: 0px auto;
box-shadow: 0 0 20px #ffffffb1;
}
/* !Main photo */
#photo {
border-radius: 25px;
display: none;
width: 100%;
height: auto;
transition: opacity 1s ease;
transition: transform 0.5s ease;
margin: 0px auto;
}
/* !Separate controlling for candles */
#candle1 {
display: block;
}
#candle2 {
display: none;
}
#candle3 {
display: none;
}
#candle4 {
display: none;
}
/* *Falling dots */
.confetti {
position: absolute;
width: 10px;
height: 10px;
background-color: #6636c5;
border-radius: 50%;
animation: confetti-animation 3s infinite;
z-index: 1;
opacity: 0.4;
}
/* *Falling dots animation */
@keyframes confetti-animation {
0% {
transform: translateY(0) rotate(0);
}
100% {
transform: translateY(600px) rotate(360deg);
}
}
.rotating-image {
position: absolute;
z-index: 2;
opacity: 0.9;
}
@keyframes float {
0% {
transform: translateY(0);
}
50% {
transform: translateY(-20px);
}
100% {
transform: translateY(0);
}
}