-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
90 lines (84 loc) · 1.22 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
* {
padding: 0;
margin: 0;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
width: 100vw;
background: #95afc0;
}
button {
border: none;
outline: none;
}
#initpage {
position: absolute;
/* display: none; */
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
width: 100vw;
background: #95afc0;
}
.startgame {
width: 7rem;
height: 3rem;
background: #f0932b;
}
.container {
display: flex;
flex-wrap: wrap;
justify-content: center;
height: 30rem;
width: 30rem;
max-height: 480px;
max-width: 480px;
}
.pause {
float: right;
margin: 1rem;
width: 4rem;
height: 2rem;
font-size: 1rem;
}
.cell {
width: 1rem;
height: 1rem;
border-top: solid 1px #777;
border-left: solid 1px #777;
background: #0a3d62;
box-sizing: border-box;
}
.snake {
background: rgb(239, 239, 239);
}
.food {
background: red;
}
.score {
font-size: 1.4rem;
display: inline-block;
margin: 1rem;
}
#endpage {
display: none;
font-size: 3rem;
text-align: center;
}
.endScore {
font-size: 3rem;
}
.endIsWin {
color: red;
font-size: 3rem;
}
.reStart {
font-size: 2rem;
width: 10rem;
height: 4rem;
background: #fab1a0;
}