-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
86 lines (72 loc) · 1.25 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
/* reset */
html, body, header, section, form, ul, li, p, h1, h2, h3, a, img {
margin: 0;
border: 0;
padding: 0;
font: inherit;
text-decoration: none;
color: inherit;
background: transparent;
}
body {
margin: 0;
overflow: hidden;
background-color: #000;
}
canvas {
display: block;
margin: 0 auto;
background-image: url('./assets/potw1809a.jpg');
background-color: #111;
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
}
.modal-wrapper {
position: absolute;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
}
.start-game {
}
.pause.modal {
display: none;
}
.game-over.modal {
display: none;
}
.modal {
position: absolute;
display: inline-block;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border: 3px solid white;
border-radius: 4px;
padding: 20px;
color: #0f0;
background: #111;
font-size: 24px;
font-family: monospace;
text-align: center;
}
.modal h1 {
padding-bottom: 20px;
font-size: 48px;
font-weight: bold;
}
.modal-text {
padding-bottom: 20px;
text-align: left;
}
.button {
display: inline-block;
padding: 10px;
border-radius: 4px;
border: 1px solid #0f0;
cursor: pointer;
}
.button:hover {
background: #222;
}