-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnake.css
More file actions
72 lines (60 loc) · 1.14 KB
/
snake.css
File metadata and controls
72 lines (60 loc) · 1.14 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
#gameContainer {
font-family: cursive;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#gameBoard {
border: 2px solid;
}
#scoreText {
font-size: 50px;
margin: 10px 0;
}
#resetBtn {
width: 80px;
height: 40px;
border: none;
border-radius: 10px;
background-color: darkturquoise;
color: yellow;
cursor: pointer;
display: inline-block;
}
#resetBtn:hover {
opacity: 0.8;
}
#resetBtn:active {
opacity: 0.6;
}
#btnContainer {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr;
justify-content: space-around;
gap: 30px;
}
#btnUp {
grid-column-start: 2;
}
#btnDown {
grid-column-start: 2;
}
#btnLeft {
grid-column-start: 1;
}
#btnRight {
grid-column-start: 3;
}
.movementBtns {
border: none;
border-radius: 10px;
background-color: rgb(209, 0, 167);
color: rgb(103, 253, 83);
font-size: 40px;
text-align: center;
cursor: pointer;
display: inline-block;
}