-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgame.css
More file actions
102 lines (85 loc) · 1.31 KB
/
game.css
File metadata and controls
102 lines (85 loc) · 1.31 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
html {
height: 100vh;
width: 100vw;
background-color: #224633;
/* font-family: 'Fredericka the Great', cursive; */
font-family: 'Paprika', cursive;
}
body {
width: 95%;
position: fixed;
}
.main {
display: flex;
}
#canvas {
border: 8px solid #8E888F;
background-color: white;
}
h1 {
color: #8E888F;
text-align: center;
padding-right: 50px;
font-size: 40px;
}
h2 {
margin-top: 0;
}
.snake-s {
height: 70px;
vertical-align: text-bottom;
}
.header-container {
width: 100vw;
}
.instructions-container {
margin: 65px 25px 0 25px;
padding: 10px;
width: 25%;
background-color: #8E888F;
height: 100%;
color: #ffffff;
font-size: .9rem;
}
.color-gold {
color: #F1C624;
}
.score-container {
margin: 65px 25px 0 25px;
padding: 15px;
font-size: 1rem;
background-color: #8E888F;
color: #ffffff;
height: 100%;
width: 25%;
display: flex;
flex-direction: column;
justify-content: center;
}
.score {
padding: 10px;
margin: 0;
}
.game-over-container {
display: flex;
position: absolute;
flex-direction: column;
left: 38%;
top: 15%;
color: red;
}
.game-over {
font-size: 3em;
margin-bottom: 0;
}
.reset-game-paragraph {
text-align: center;
}
.game-over-display {
display: none;
}
#theme-song {
position: fixed;
bottom: 0;
left: 0;
}