-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
73 lines (64 loc) · 1.13 KB
/
styles.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
body {
align-items: center;
background-color: black;
display: flex;
height: 100vh;
justify-content: center;
margin: 0;
width: 100vw;
}
.container {
display: flex;
flex-direction: column;
}
.scoreboard {
display: flex;
flex-direction: column;
color: white;
font-family: 'Press Start 2P', cursive;
height: 10vmin;
gap: 1vmin;
font-size: 2.8vmin;
}
#stage {
border: 1vmin solid white;
display: grid;
grid-template-columns: repeat(22, 1fr);
grid-template-rows: repeat(22, 1fr);
height: 80vmin;
width: 80vmin;
}
.snake {
border: 0.5vmin solid white;
}
.food {
background-color: white;
}
.game-over.hidden {
display: none;
}
.game-over {
gap: 3vmin;
display: flex;
flex-direction: column;
justify-content: center;
position: absolute;
font-family: 'Press Start 2P', cursive;
left: 0;
right: 0;
color: white;
margin-left: auto;
margin-right: auto;
width: 50vmin;
text-align: center;
font-size: 3.8vmin;
text-shadow: 0.4vmin 0.4vmin 0.1vmin black;
}
.game-over img {
width: 8vmin;
height: 8vmin;
border: 0.1vmin solid black;
}
.game-over img:hover {
transform: scale(1.1);
}