-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
52 lines (49 loc) · 1.18 KB
/
Copy pathstyle.css
File metadata and controls
52 lines (49 loc) · 1.18 KB
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
*, *:before, *:after {
box-sizing: border-box;
}
#root, html, body {
height: 100vh;
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: #f5f5f5;
display: flex;
align-items: center;
justify-content: center;
}
#game-board {
background-color: #000;
width: 100vmin;
height: 100vmin;
display: grid;
grid-template: repeat(21, 1fr)/repeat(21, 1fr);
overflow: hidden;
}
.food {
background-color: #f0d0e4;
box-shadow: 0px 0px 0 rgb(255 34 157 / 20%), 0px 0px 4px rgb(255 34 157 / 20%), 0px 0px 8px rgb(255 34 157 / 31%), 0px 0px 16px rgb(255 34 157 / 51%);
border-radius: 50%;
animation: pulse 0.4s 1 linear;
}
.snake {
background-color: #d0f0dd;
box-shadow: 0px 0px 0 rgb(64 255 34 / 20%),
0px 0px 4px rgb(64 255 34 / 20%),
0px 0px 8px rgb(64 255 34 / 31%),
0px 0px 16px rgb(64 255 34 / 51%);
border-radius: 25%;
}
@keyframes pulse {
0% {
opacity: 1;
}
100% {
background-color: #ff82ad;
opacity: 0.3;
}
}