-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
244 lines (213 loc) · 4.85 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
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
body {
font-size: 18px;
font-family: 'Poppins', 'courier', sans-serif;;
background-color: black;
color: white;
margin: 0;
overflow:hidden;
}
h5 {
margin: 1rem;
}
button {
font-size: 16px;
background-color: #fff62c;
border: none;
color: black;
padding: 15px 26px;
text-align: center;
text-decoration: none;
display: inline-block;
border-radius: 0.8rem;
width: 88%;
margin: auto;
}
#startconsoledebug {
background-color: yellow
}
#stopconsoledebug {
background-color: orange
}
#microphonestatus, #audiostatus, #recording {
font-size: 36px;
background-color: black;
color: white;
}
td, th {
border: 1px solid;
text-align: left;
padding: 10px;
}
body {
background-color: #2d282f;
}
.cake {
position: absolute;
width: 250px;
height: 200px;
top: 50%;
left: 50%;
margin-top: -70px;
margin-left: -125px;
}
.plate {
width: 270px;
height: 110px;
position: absolute;
bottom: -10px;
left: -10px;
background-color: #ccc;
border-radius: 50%;
box-shadow: 0 2px 0 #b3b3b3, 0 4px 0 #b3b3b3, 0 5px 40px rgba(0, 0, 0, 0.5);
}
.cake > * {
position: absolute;
}
.layer {
position: absolute;
display: block;
width: 250px;
height: 100px;
border-radius: 50%;
background-color: #553c13;
box-shadow: 0 2px 0px #6a4b18, 0 4px 0px #33240b, 0 6px 0px #32230b, 0 8px 0px #31230b, 0 10px 0px #30220b, 0 12px 0px #2f220b, 0 14px 0px #2f210a, 0 16px 0px #2e200a, 0 18px 0px #2d200a, 0 20px 0px #2c1f0a, 0 22px 0px #2b1f0a, 0 24px 0px #2a1e09, 0 26px 0px #2a1d09, 0 28px 0px #291d09, 0 30px 0px #281c09;
}
.layer-top {
top: 0px;
}
.layer-middle {
top: 33px;
}
.layer-bottom {
top: 66px;
}
.icing {
top: 2px;
left: 5px;
background-color: #f0e4d0;
width: 240px;
height: 90px;
border-radius: 50%;
}
.icing:before {
content: "";
position: absolute;
top: 4px;
right: 5px;
bottom: 6px;
left: 5px;
background-color: #f4ebdc;
box-shadow: 0 0 4px #f6efe3, 0 0 4px #f6efe3, 0 0 4px #f6efe3;
border-radius: 50%;
z-index: 1;
}
.drip {
display: block;
width: 50px;
height: 60px;
border-bottom-left-radius: 25px;
border-bottom-right-radius: 25px;
background-color: #f0e4d0;
}
.drip1 {
top: 53px;
left: 5px;
transform: skewY(15deg);
height: 48px;
width: 40px;
}
.drip2 {
top: 69px;
left: 181px;
transform: skewY(-15deg);
}
.drip3 {
top: 54px;
left: 90px;
width: 80px;
border-bottom-left-radius: 40px;
border-bottom-right-radius: 40px;
}
.candle {
background-color: #7b020b;
width: 16px;
height: 50px;
border-radius: 8px / 4px;
top: -20px;
left: 50%;
margin-left: -8px;
z-index: 10;
}
.candle:before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 16px;
height: 8px;
border-radius: 50%;
background-color: #ad030f;
}
.flame {
position: absolute;
background-color: orange;
width: 15px;
height: 35px;
border-radius: 10px 10px 10px 10px / 25px 25px 10px 10px;
top: -34px;
left: 50%;
margin-left: -7.5px;
z-index: 10;
box-shadow: 0 0 10px rgba(255, 165, 0, 0.5), 0 0 20px rgba(255, 165, 0, 0.5), 0 0 60px rgba(255, 165, 0, 0.5), 0 0 80px rgba(255, 165, 0, 0.5);
transform-origin: 50% 90%;
animation: flicker 1s ease-in-out alternate infinite;
}
@keyframes flicker {
0% {
transform: skewX(5deg);
box-shadow: 0 0 10px rgba(255, 165, 0, 0.2), 0 0 20px rgba(255, 165, 0, 0.2), 0 0 60px rgba(255, 165, 0, 0.2), 0 0 80px rgba(255, 165, 0, 0.2);
}
25% {
transform: skewX(-5deg);
box-shadow: 0 0 10px rgba(255, 165, 0, 0.5), 0 0 20px rgba(255, 165, 0, 0.5), 0 0 60px rgba(255, 165, 0, 0.5), 0 0 80px rgba(255, 165, 0, 0.5);
}
50% {
transform: skewX(10deg);
box-shadow: 0 0 10px rgba(255, 165, 0, 0.3), 0 0 20px rgba(255, 165, 0, 0.3), 0 0 60px rgba(255, 165, 0, 0.3), 0 0 80px rgba(255, 165, 0, 0.3);
}
75% {
transform: skewX(-10deg);
box-shadow: 0 0 10px rgba(255, 165, 0, 0.4), 0 0 20px rgba(255, 165, 0, 0.4), 0 0 60px rgba(255, 165, 0, 0.4), 0 0 80px rgba(255, 165, 0, 0.4);
}
100% {
transform: skewX(5deg);
box-shadow: 0 0 10px rgba(255, 165, 0, 0.5), 0 0 20px rgba(255, 165, 0, 0.5), 0 0 60px rgba(255, 165, 0, 0.5), 0 0 80px rgba(255, 165, 0, 0.5);
}
}
#cake-holder .cake-off {
opacity: 0;
transition: 1s ease-in all;
}
#cake-holder.done .cake-off {
opacity: 1;
transition: 1s ease-in all;
}
#cake-holder .cake .flame {
opacity: 1;
transition: 0.3s ease-in all;
}
#cake-holder.done .flame {
opacity: 0;
}
.text-center {
text-align: center;
}
#countdown {
font-size: 28px;
font-weight: 800;
margin-top: 3rem;
}
#canvas {
height: 500px;
width: 100%;
}