-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
96 lines (86 loc) · 1.67 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
93
94
95
96
*{
padding: 0;
margin: 0;
}
body{
background: url("./image/bg.jpg");
}
/* #speed{
position: absolute;
top: 9px;
left: 30px;
} */
/* #scoreBox{
position: absolute;
top: 9px;
right: 30px;
font-size: 20px;
font-weight: bold;
color: rgb(18, 20, 22);
} */
#cont{
padding-top: 10px;
/* border: 1px solid red; */
width: 50%;
margin: auto;
display:grid;
grid-template-columns: repeat(auto-fill,minmax(100px,1fr));
gap: 10px;
}
#speed{
width: 45px;
}
.body{
/* border: 3px solid teal; */
/* background: url("bg.jpg"); */
/* min-height: 100vh; */
/* background-size: 100vw 100vh;
background-repeat: no-repeat; */
margin-top: 20px;
display: flex;
justify-content: center;
/* align-items: center; */
}
#buttons{
margin-top: 20px;
display: none;
}
#buttons>div{
display: flex;
justify-content: center;
gap: 60px;
}
#buttons>div>span{
width: 30px;
}
@media screen and (max-width: 900px) {
#buttons{
display: flex;
flex-direction: column;
}
}
#board{
background: url("./image/board.jpg");
width: 90vmin;
height: 92vmin;
border: 2px solid black;
display: grid;
grid-template-rows: repeat(20, 1fr);
grid-template-columns: repeat(20, 1fr);
}
.head{
background: linear-gradient(rgb(19, 0, 0), rgb(43, 43, 3));
border: 2px solid black;
transform: scale(1.02);
border-radius: 9px;
}
.snake{
background-color: rgba(237, 245, 167, 0.911);
border: .25vmin solid black;
border-radius: 12px;
}
.food{
background: linear-gradient(red,yellow);
border: .25vmin solid black;
border-radius: 40px;
}