-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
53 lines (45 loc) · 966 Bytes
/
style.css
File metadata and controls
53 lines (45 loc) · 966 Bytes
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
* { box-sizing: border-box; }
body {
padding-top: 30px;
min-width: 100vw;
min-height: 100vh;
background-color: white;
margin: 0;
background: black;
}
main {
width: 90%;
margin: 0 auto;
display: flex;
/* justify-content: center; */
flex-direction: column;
align-items: center;
/* background-color: #404257; */
}
#screen {
background-color: #777964;
padding: 20px;
}
#game-board {
width: 70vmin;
height: 70vmin;
border: 4px solid #06050a;
display: grid;
grid-template-rows: repeat(30, 1fr);
grid-template-columns: repeat(30, 1fr);
}
.snake {
background-color: #06050a;
border: 1px solid #777964;
}
.food {
border: 5px dashed #06050a;
}
#controls {
margin-top: 30px;
}
button {
font-size: 1.2em;
width: 60px;
height: 60px;
}