/
main.css
95 lines (84 loc) · 1.62 KB
/
main.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
* {
margin: 0;
padding: 0;
}
body {
min-height: 100px;
background-color: #191a2e;
}
.ghost {
margin-top: 15%;
left: 47%;
right: 50%;
height: 120px;
width: 100px;
background-color: white;
border-radius: 100rem 100rem 0 0;
position: relative;
display: flex;
justify-content: center;
align-items: center;
animation: ghost 1.5s linear alternate infinite;
}
.ghost::before {
content: "";
position: absolute;
width: 20px;
height: 20px;
background-color: white;
bottom: 0;
left: 0;
transform: translateY(50%);
border-radius: 0 0 100rem 100rem;
box-shadow: 20px 0 0 0 white, 40px 0 0 0 white, 60px 0 0 0 white, 80px 0 0 0 white;
}
.ghost::after {
content: "";
position: absolute;
background-color: white;
width: 30px;
height: 20px;
left: -15px;
border-radius: 100rem;
box-shadow: 100px 0 0 0 white;
}
.ghost-body {
width: 100%;
max-width: 50%;
height: 50px;
}
.ghost-eye {
width: 20px;
height: 20px;
background-color: #191a2e;
border-radius: 100rem;
box-shadow: 30px 0 0 0 #191a2e;
}
.ghost-mouth {
width: 100%;
max-width: 80%;
margin: 10px auto 0;
background-color: #191a2e;
height: 20px;
border-radius: 0 0 100rem 100rem;
position: relative;
}
.ghost-mouth::before {
content: "";
position: absolute;
width: 5px;
height: 5px;
background-color: white;
left: 30%;
}
@keyframes ghost {
from {
transform: translateY(30%);
}
}
h2 {
text-align: center;
margin-top: 50px;
font-size: 50px;
color: orange;
}