-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
172 lines (150 loc) · 2.33 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
* {
box-sizing: border-box;
}
body {
background-size: cover;
overflow: hidden;
}
#wrapper {
display: flex;
flex-direction: column;
position: absolute;
justify-content: center;
align-items: center;
width: 100vw;
height: 100vh;
}
#game {
position: relative;
display: inline-grid;
background: black;
}
.game-status {
position: absolute;
top: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100px;
border: 5px darkblue solid;
background: black;
color: white;
font-family: Arial, Helvetica, sans-serif;
font-size: 1.5rem;
}
#score {
display: flex;
align-items: center;
justify-content: center;
width: 200px;
height: 50px;
border: 5px red solid;
background: black;
margin-top: 20px;
color: white;
font-family: Arial, Helvetica, sans-serif;
font-size: 2rem;
}
#start-button {
margin-top: 20px;
}
.hide {
display: none;
}
.square {
display: block;
}
.blank {
background: black;
}
.wall {
border: 1px solid red;
background-color: rgb(48, 5, 5);
}
.dot {
background: rgb(255, 255, 0);
border: 8px solid black;
border-radius: 50%;
}
.pill {
background: rgb(255, 0, 0);
border: 5px solid black;
border-radius: 50%;
}
.ghost {
position: relative;
border-radius: 10px 10px 2px 2px;
border: none;
}
.ghost::before {
content: '';
display: block;
position: absolute;
width: 3px;
height: 3px;
background: black;
border-radius: 50%;
left: 3px;
top: 5px;
border: 2px solid white;
}
.ghost::after {
content: '';
display: block;
position: absolute;
width: 3px;
height: 3px;
background: black;
border-radius: 50%;
right: 3px;
top: 5px;
border: 2px solid white;
}
.scared {
background: blue !important;
}
.blinky {
background: red;
}
.pinky {
background: pink;
}
.inky {
background: cyan;
}
.clyde {
background: orange;
}
.teleport{
background: black;
}
.pacman {
background: yellow;
border: none;
border-radius: 50%;
clip-path: polygon(
0 0,
20px 0,
20px -5px,
8px 10px,
20px 25px,
20px 20px,
0 20px
);
animation: chew 0.2s linear forwards infinite;
}
@keyframes chew {
50% {
clip-path: polygon(
0 0,
20px 0,
20px 10px,
8px 10px,
20px 10px,
20px 20px,
0 20px
);
}
}