-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
85 lines (72 loc) · 1.5 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
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');
html, body {
margin: 0;
padding: 0;
background-color: rgb(10,10,10);
font-family: 'Space Mono', monospace;
}
canvas {
display: block;
}
.menuBox {
width: 1200px;
height: 600px;
position: absolute;
opacity: 0.7;
}
#notification {
display: none;
}
.menuItem {
color: white;
padding: 8px 20px;
margin-top: 24px;
border-radius: 100px;
cursor: pointer;
width: 150px;
text-align: center;
display: none;
}
#pauseMenu {
display: none;
text-align: center;
}
#pauseReset, #instruction {
display: none;
}
.levels {
color: white;
}
.lvl {
width: 40px;
height: 40px;
border-radius: 100%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.title {
font-weight: 700;
font-size: 32px;
}
.typewriter p {
overflow: hidden; /* Ensures the content is not revealed until the animation */
border-right: .15em solid gray; /* The typwriter cursor */
white-space: nowrap; /* Keeps the content on a single line */
margin: 0 auto; /* Gives that scrolling effect as the typing happens */
letter-spacing: .8em; /* Adjust as needed */
animation:
typing 3s steps(40, end),
blink-caret .75s step-end infinite;
}
/* The typing effect */
@keyframes typing {
from { width: 0 }
to { width: 100% }
}
/* The typewriter cursor effect */
@keyframes blink-caret {
from, to { border-color: transparent }
50% { border-color: gray; }
}