-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
67 lines (58 loc) · 1.07 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
/* border: 1px solid plum; */
}
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 30px;
height: 100vh;
background-color: #cecece;
}
.grid {
border-radius: 5.5px;
display: grid;
grid-template-columns: auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto;
grid-template-rows: auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto auto;
background: #fff;
border: 2px solid #333;
}
.cell,
.food,
.snake,
.head {
height: 25px;
width: 25px;
color: white;
/* border: 1px solid black; */
}
.food {
border-radius: 20px;
background: rgb(41, 216, 41);
}
.snake {
border-radius: 5.5px;
background: blue;
}
.head {
background: rgb(255, 110, 134);
border-radius: 5.5px;
}
.score {
text-align: center;
color: #333;
font-size: 20px;
z-index: 100;
font-weight: bold;
}
#p {
font-weight: bold;
}
small {
letter-spacing: 2px;
font-size: 20px;
}