-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
70 lines (65 loc) · 1.53 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
63
64
65
66
67
68
69
70
@import url('https://fonts.googleapis.com/css2?family=New+Tegomin&display=swap');
*{
padding: 0;
margin: 0;
}
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;
}
h1{
font-size: 50px;
font-weight: bold;
font-family: 'New Tegomin', serif;
text-align: center;
color: #0e025b;
}
#board{
background: linear-gradient(#d0bd6e,#24a740);
height: 78vmin;
width: 84vmin;
margin: 3px 73px;
border: 2px solid black;
box-shadow: 10px 10px 10px;
display: grid;
grid-template-rows: repeat(18, 1fr);
grid-template-columns: repeat(18, 1fr);
}
.head{
/* background: linear-gradient(rgb(36, 37, 35), rgb(102, 108, 96)); */
background-color: black;
border: 2px solid black;
transform: scale(1.02);
border-radius: 9px;
}
.snake{
background-color: rgb(1, 103, 1);
border: .25vmin solid black;
border-radius: 13px;
}
.food{
background: linear-gradient(brown, rgb(9, 2, 69));
border: .25vmin solid rgb(116, 0, 0);
border-radius: 8px;
}
#scoreBox{
position: absolute;
top: 13vmin;
right: 80vmin;
font-size: 39px;
font-weight: bold;
font-family: 'New Tegomin', serif;
}
#hiscoreBox{
position: absolute;
top: 19vmin;
right: 67vmin;
font-size: 39px;
font-weight: bold;
font-family: 'New Tegomin', serif;
}