-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
59 lines (52 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
* {
padding: 0;
margin: 0;
}
.body {
background: url("../image/bg.jpg");
min-height: 100vh;
background-size: 100vw 100vh;
background-repeat: no-repeat;
display: flex;
justify-content: center;
align-items: center;
}
#scoreBox {
position: absolute;
top: 20px;
right: 150px;
font-size: 39px;
font-weight: bold;
}
#hiscoreBox {
position: absolute;
top: 70px;
right: 90px;
font-size: 39px;
font-weight: bold;
}
#board {
background: linear-gradient(rgb(150, 230, 150), rgb(221, 221, 113));
width: 90vmin;
height: 90vmin;
border: 2px solid black;
display: grid;
grid-template-rows: repeat(18, 1fr);
grid-template-columns: repeat(18, 1fr);
}
.head {
background: linear-gradient(rgb(228, 90, 90), rgb(214, 214, 92));
border: 2px solid purple;
transform: scale(1.02);
border-radius: 9px;
}
.snake {
background-color: rgb(0, 2, 128);
border: -25vmin solid white;
border-radius: 8px;
}
.food {
background: linear-gradient(rgb(214, 31, 31), rgb(230, 30, 153));
border: -25vmin solid black;
border-radius: 8px;
}