-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
104 lines (84 loc) · 1.44 KB
/
style.css
File metadata and controls
104 lines (84 loc) · 1.44 KB
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
100
101
102
103
104
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
:root {
--font-family: 'VT323', monospace;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
scroll-behavior: smooth;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-family: var(--font-family);
}
body,
.snake {
background-color: #414141;
}
.game-board {
border-radius: 100px;
display: grid;
grid-template-columns: repeat(20, 20px);
grid-template-rows: repeat(20, 20px);
margin: 5px;
}
.game-border-1 {
border: 10px solid #595f43;
border-radius: 30px;
box-shadow: inset 0 0 0 10px #595f43;
}
.game-border-2 {
border: 8px solid #abb788;
border-radius: 26px;
box-shadow: inset 0 0 0 10px #abb788;
}
.game-border-3 {
border: 30px solid #8b966c;
border-radius: 20px;
box-shadow: inset 0 0 0 5px #8b966c;
}
.instructions {
position: absolute;
top: 60%;
color: #333;
width: 300px;
text-align: center;
text-transform: capitalize;
padding: 30px;
margin: 0;
}
.scores {
display: flex;
justify-content: space-between;
}
.score {
color: #abb788;
}
.score,
.highScore {
font-size: 40px;
font-weight: bold;
margin: 10px 0;
}
.highScore {
color: #d8ddca;
display: none;
}
.game-border-3,
.logo {
background-color: #c4cfa3;
}
.snake {
border: 1px dotted #5a5a5a;
}
.food {
background-color: #dedede;
border: 5px solid #999;
}
.logo {
position: absolute;
}