-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
104 lines (90 loc) · 1.72 KB
/
index.css
File metadata and controls
104 lines (90 loc) · 1.72 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
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
@import './data/assets/Adventurer.ttf';
* {
margin: 0;
padding: 0;
box-sizing: border-box;
image-rendering: pixelated;
font-family: 'Adventurer', sans-serif;
}
body {
overflow: hidden;
display: grid;
place-items: center;
height: 100vh;
background-color: #2c3e50;
}
canvas {
position: absolute;
z-index: -1;
top: 0;
left: 0;
/* width: 100vw;
height: 100vh; */
}
.hidden {
display: none !important;
}
#curtain {
content: '';
z-index: -1;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: max(270vw, 270vh);
height: max(270vw, 270vh);
border: max(70vw, 70vh) solid #17202a;
border-radius: 100%;
}
#curtain {
transition: all 500ms linear;
}
.closed {
width: max(140vw, 140vh) !important;
height: max(140vw, 140vh) !important;
}
.container {
width: 40vw;
height: 50vh;
padding: 10px;
display: flex;
flex-direction: column;
align-items: center;
row-gap: 50px;
transition: all 0.5s ease-in-out;
}
.container > * {
width: 100%;
}
.out-of-view {
transform: translateY(-200%);
}
button {
padding: 10px 20px;
font-size: 2rem;
color: white;
background-color: #2e4053;
border: 2px solid #95a5a6;
border-radius: 5px;
cursor: pointer;
transition: all 0.2s ease-out;
}
button:hover {
width: 120% !important;
}
#pauseScreen {
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.6);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
cursor: default;
}
#pauseScreenContainer {
justify-content: center;
}