-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
62 lines (59 loc) · 1.18 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
*{
margin: 0;
padding: 0;
}
#board
{ background: url(snake.jpg);
min-height: 100vh;
min-width:100vw;
background-size:100vw 100vh;
display:flex;
justify-content: center;
align-items: center;
}
#gameArea
{ background:linear-gradient(rgb(219, 219, 188),rgb(200, 240, 200));
display:grid;
grid-template-rows: repeat(15,1fr);
grid-template-columns: repeat(15,1fr);
height:90vmin;
width:92vmin;
border:2px solid black;
}
.head
{
background-color: red;
border-radius: 10px;
}
.snake
{
background-color: purple;
border-radius: 10px;
}
.food
{
background-color: yellow;
border-radius: 10px;
}
#score
{
position: absolute;
min-height: 100px;
min-width: 100px;
right:100px;
top: 20px;
font-size: 25px;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
text-align:center;
}
#highScore
{
position: absolute;
min-height: 100px;
min-width: 100px;
right:100px;
top:120px;
font-size: 25px;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
text-align:center;
}