-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
92 lines (75 loc) · 1.46 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
92
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.main-container {
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background:linear-gradient(rgb(115, 185, 217),rgb(233, 158, 171));
}
.snake-board {
display: grid;
width: 95vmin;
height: 92vmin;
border: 3px solid #e51f7f;
background:linear-gradient(rgb(244, 220, 115),rgb(166, 247, 167)) ;
margin: 4px 0 12px 0;
grid-template-rows: repeat(28, 1fr);
grid-template-columns: repeat(28, 1fr);
}
.keycontrol {
width: 95vw;
height: 30vh;
position: relative;
}
.btn {
position: absolute;
width: 18vw;
background-color: #0f100f;
color: #1fb9e5;
height: 8vh;
border: 2px solid #1fb9e5;
border-radius: 12px;
font-weight: 900;
font-size: 19px;
}
#UP {
top: 1vh;
left: 38vw;
}
#DOWN {
bottom: 3vh;
left: 38vw;
}
#RIGHT{
top: 8vh;
right: 10vw;
}
#LEFT {
top: 8vh;
left: 8vw;
}
.head {
background-color:#250380;
border: 2px solid black;
}
.snake {
background-color: #ff6700;
border: 2px solid #b14c08;
}
.food {
background-color: #f10404;
border: 1px solid #9b3d3d;
}
#scoreBox {
position: absolute;
top: 9px;
right: 200px;
font-size: 39px;
font-weight: bold;
}