-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnake.css
More file actions
55 lines (53 loc) 路 1.05 KB
/
Copy pathsnake.css
File metadata and controls
55 lines (53 loc) 路 1.05 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
body {
font-family: Arial, sans-serif;
background-color: #121212;
color: #fff;
display: grid;
align-items: center;
justify-content: space-evenly;
}
button{
background: linear-gradient(135deg, #1d1d1d, #333333);
margin: 20px;
color: white;
padding: 20px;
width: max-contents;
text-align: center;
border-radius: 10px;
cursor: pointer;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
button:hover {
transform: translateY(-10px);
box-shadow: 0 0 20px rgba(255, 0, 127, 0.7);
}
#game-screen.hidden, #game-over-screen.hidden {
display: none;
}
#gameCanvas {
background-color: #222;
}
#game-over-screen {
text-align: left;
}
#game-over-screen button {
margin-top: 20px;
padding: 20px 20px;
font-size: 16px;
cursor: pointer;
}
#start-game-btn {
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}
#player-name {
padding: 8px;
font-size: 16px;
margin-right: 10px;
}
#player-score {
padding: 8px;
font-size: 16px;
margin-right: 10px;
}