-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
65 lines (57 loc) · 999 Bytes
/
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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
text-align: center;
font-family: sans-serif;
color: cadetblue;
background-color: black;
}
main {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
canvas {
outline: 1px solid whitesmoke;
/* background-color: #00ff21; */
max-width: 610px;
width: 100vw;
height: calc(100vh - 20px);
}
#character {
display: none;
}
#gameover,
#restart,
#start {
display: none;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
background-color: antiquewhite;
padding: 30px;
border-radius: 4px;
}
.restart-btn {
padding: 5px 14px;
color: cadetblue;
font-size: large;
}
#gameover.activate,
#restart.activate,
#start.activate {
display: flex;
flex-direction: column;
gap: 20px;
align-items: center;
}
@media (width < 768px) {
canvas {
outline: none;
}
}