-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
87 lines (80 loc) · 1.29 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
87
:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
--dkClr: #181818;
--liClr: whitesmoke;
--accClr: #0d0d35;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
height: 100%;
}
body {
background-color: var(--dkClr);
color: var(--liClr);
display: flex;
flex-direction: column;
min-height: 100vh;
}
header,
footer {
display: flex;
justify-content: center;
align-items: center;
padding: 40px 20px;
}
main {
flex: 1;
display: flex;
}
#gameCanvas {
border: 1px solid red;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
z-index: 1;
}
.gameUI {
width: 100%;
height: 100%;
background-color: var(--accClr);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 2;
}
.gameUI * {
text-align: center;
margin-top: 5px;
}
#gameStartDiv {
display: flex;
}
#gameEndDiv {
display: none;
}
#gameStartBtn {
display: inline-block;
width: 100px;
padding: 8px 15px;
margin: 20px 0;
text-align: center;
font-family: inherit;
border-radius: 10px;
}
#gameStartBtn p {
margin-top: 0;
}
#gameStartBtn:hover {
background-color: var(--dkClr);
border: 0.5px solid var(--liClr);
color: var(--liClr);
cursor:pointer;
}