-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
47 lines (41 loc) · 821 Bytes
/
style.css
File metadata and controls
47 lines (41 loc) · 821 Bytes
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
body {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: lightgreen;
margin: 0;
}
.boundary {
border: 5px solid rgb(0, 58, 0);
border-radius: 10px;
/* box-shadow: 10px 10px rgb(0, 58, 0); */
box-shadow: inset 0 0 0 10px rgb(0, 58, 0);
}
#board {
display: grid;
grid-template-columns: repeat(20, 20px);
grid-template-rows: repeat(20, 20px);
background-color: greenyellow;
margin: 5px;
}
.snake {
background-color: black;
}
.food {
background-color: white;
}
#startBtn {
background-color: green;
position: absolute;
font-size: 30px;
top: 78%;
border: 5px solid black;
border-radius: 20px
}
img {
position: absolute;
width: 400px;
height: 50%;
margin-right: 20px;
}