-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnakegame.css
99 lines (87 loc) · 1.47 KB
/
snakegame.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
*{
padding: 0;
margin: 0;
}
h1{
color:blue
}
.body{
/* background: url("../img/bg.jpg"); */
min-height: 100vh;
background-size: 100vw 100vh;
background-repeat: no-repeat;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
#scoreBox{
display: flex;
justify-content: center;
align-items: center;
font-size: 39px;
font-family: 'New Tegomin', serif;
color: blue;
}
#hiscoreBox{
position: absolute;
top: 59px;
right: 140px;
font-size: 39px;
font-weight: bold;
font-family: 'New Tegomin', serif;
}
#board{
background: black;
width: 500px;
height: 500px;
border: 2px solid black;
display: grid;
grid-template-rows: repeat(20, 1fr);
grid-template-columns: repeat(20, 1fr);
}
.head{
background: green;
height: 25px;
width: 25px;
}
.snake{
background: green;
border-radius: 25px;
}
.food{
background: red;
border-radius: 25px;
}
.food1{
background: yellow;
border-radius: 25px;
}
.food2{
background: blue;
border-radius: 25px;
}
.direct{
justify-content: center;
align-items: center;
}
button{
margin-top: 20px;
font-size: 50px;
padding: 5px;
background-color: black;
color: red;
border-radius: 50px;
width: 200px;
}
.up{
display: block;
margin-left: 120px;
}
.right{
margin-left: 30px;
}
.down{
display: block;
margin-left: 120px;
}