-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.css
105 lines (92 loc) · 1.4 KB
/
index.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
html,
body{
height: 100vh;
margin: 0;
padding: 0;
overflow: hidden;
font-family: 'Roboto', 'Noto', sans-serif;
font-size: 16px;
}
body {
display: flex;
flex-direction: column;
}
header {
height: 56px;
display: flex;
flex-direction: row;
align-items: center;
padding: 0 20px;
font-size: 20px;
font-weight: 400;
background-color: #000;
color: #fff;
}
footer {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
padding: 4px 0;
}
.game-platform {
flex: 1;
position: relative;
overflow: hidden;
}
.game-canvas {
width: 100%;
height: 100%;
user-select: none;
}
.game-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
opacity: 1;
transition: opacity 0.25s ease;
}
.game-overlay.hidden {
opacity: 0;
}
.closed {
display: none;
}
.overlay {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
background-color: #ffffff;
opacity: 0.60;
z-index: 1;
}
.controls {
padding: 40px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #ffffff;
z-index: 2;
position: relative;
}
.start,
.restart {
cursor: pointer;
}
.demo {
position: absolute;
background: transparent;
top: 0;
bottom: 0;
left: 0;
right: 0;
}