-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
223 lines (190 loc) · 4.02 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
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
@import url('https://fonts.googleapis.com/css?family=Muli&display=swap');
* {
box-sizing: border-box;
}
body {
font-family: 'Muli', sans-serif;
margin: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
height: 100vh;
overflow: hidden;
background-color: rgb(122, 145, 111);
}
.container {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 50vh;
width: 80vw;
background-color: rgb(245, 237, 171);
border-radius: 10px;
box-shadow: 10px 24px 16px 7px rgba(0, 0, 0, 0.45);
-webkit-box-shadow: 10px 24px 16px 7px rgba(0, 0, 0, 0.45);
-moz-box-shadow: 10px 24px 16px 7px rgba(0, 0, 0, 0.45);
padding: 20px 40px;
text-align: center;
}
.container h4 {
margin: 0;
opacity: .5;
letter-spacing: 2px;
}
.joke {
font-size: 15px;
letter-spacing: 2px;
line-height: 30px;
}
.container .btn {
align-self: center;
}
.btn {
background-color: rgb(122, 145, 111);
color: rgb(245, 237, 171);
outline: none;
border: none;
border-radius: 10px;
padding: 14px 40px;
font-size: 11px;
cursor: pointer;
text-align: center;
}
.btn:active {
transform: scale(0.98);
}
.btn:focus {
outline: 0;
}
/*cup animation*/
#wrapper {
position: absolute;
bottom: 0;
left: 50%;
transform: translate(-50%, -50%);
}
.steam {
position: absolute;
height: 150px;
width: 150px;
border-radius: 50%;
background-color: #fff;
margin-top: -75px;
margin-left: 75px;
z-index: 0;
opacity: 0;
}
#steam1 {
-webkit-animation: steam1 4s ease-out infinite;
animation: steam1 4s ease-out infinite;
}
#steam3 {
-webkit-animation: steam1 4s ease-out 1s infinite;
animation: steam1 4s ease-out 1s infinite;
}
@-webkit-keyframes steam1 {
0% {
transform: translateY(0) translateX(0) scale(0.25);
opacity: 0.2;
}
100% {
transform: translateY(-200px) translateX(-20px) scale(1);
opacity: 0;
}
}
@keyframes steam1 {
0% {
transform: translateY(0) translateX(0) scale(0.25);
opacity: 0.2;
}
100% {
transform: translateY(-200px) translateX(-20px) scale(1);
opacity: 0;
}
}
#steam2 {
-webkit-animation: steam2 4s ease-out 0.5s infinite;
animation: steam2 4s ease-out 0.5s infinite;
}
#steam4 {
-webkit-animation: steam2 4s ease-out 1.5s infinite;
animation: steam2 4s ease-out 1.5s infinite;
}
@-webkit-keyframes steam2 {
0% {
transform: translateY(0) translateX(0) scale(0.25);
opacity: 0.2;
}
100% {
transform: translateY(-200px) translateX(20px) scale(1);
opacity: 0;
}
}
@keyframes steam2 {
0% {
transform: translateY(0) translateX(0) scale(0.25);
opacity: 0.2;
}
100% {
transform: translateY(-200px) translateX(20px) scale(1);
opacity: 0;
}
}
#cup {
z-index: 1;
}
#cup-wrapper {
margin-bottom: 5px;
}
#cup-body {
position: absolute;
height: 200px;
width: 300px;
border-radius: 0 0 150px 150px;
background-color: #fff;
margin: auto;
display: inline-block;
overflow: hidden;
z-index: 1;
}
#cup-shade {
position: relative;
height: 300px;
width: 200px;
background-color: #F3F3F3;
display: inline-block;
margin-left: 42%;
margin-top: -3px;
transform: rotate(50deg);
z-index: 1;
}
#cup-handle {
position: relative;
height: 75px;
width: 80px;
border-radius: 0 150px 150px 0;
border: 15px solid #F3F3F3;
margin-bottom: 95px;
margin-left: 270px;
display: inline-block;
z-index: 0;
}
#saucer {
position: absolute;
height: 30px;
width: 300px;
border-radius: 0 0 100px 100px;
background-color: #F9F9F9;
margin-top: -1px;
margin-left: 5px;
z-index: 2;
}
#shadow {
height: 15px;
width: 300px;
border-radius: 50%;
margin-top: 25px;
margin-left: 6px;
background-color: rgb(111,126,100);
}