-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
91 lines (77 loc) · 1.56 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
body {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
font-family: "VT323", monospace;
}
body,
.snake {
background-color: #414141;
}
#game-board {
border-radius: 100px;
display: grid;
grid-template-columns: repeat(20, 19px);
grid-template-rows: repeat(20, 19px);
margin: 5px;
}
.game-border-1 {
border: #595f43 solid 10px;
border-radius: 30px;
box-shadow: inset 0 0 0 10px #595f43; /* Get back to this to understand how it affects visuals */
}
.game-border-2 {
border: #abb7a8 solid 8px;
border-radius: 26px;
box-shadow: inset 0 0 0 10px #abb7a8; /* Get back to this to understand how it affects visuals */
}
.game-border-3 {
border: #8b966c solid 30px;
border-radius: 20px;
box-shadow: inset 0 0 0 5px #8b966c; /* Get back to this to understand how it affects visuals */
}
#instruction-text {
position: absolute;
top: 60%;
color: #333;
width: 300px;
text-align: center;
text-transform: capitalize;
padding: 30px;
margin: 0;
z-index: 1;
}
.scores {
display: flex;
justify-content: space-between;
}
#score {
color: #abb7a8;
}
#score,
#high-score {
font-size: 40px;
font-weight: bolder;
margin: 10px 0;
}
#high-score {
color: #d8ddca;
display: none;
}
/* Logo wasn't defined yet */
.game-border-3,
#logo {
background-color: #c4cfa3;
}
.snake {
border: #5a5a5a 1px dotted;
}
.food {
background-color: #dedede;
border: #999 5px solid;
}
#logo {
position: absolute;
}