-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.css
146 lines (127 loc) · 2.7 KB
/
site.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
@import url(https://fonts.googleapis.com/css?family=Press+Start+2P);
*, *::before, *::after {
box-sizing: border-box;
}
html {
font-size: 6px;
}
@media screen and (min-width: 640px) and (min-height: 400px) {
html { font-size: 10px; }
}
@media screen and (min-width: 768px) and (min-height: 540px) {
html { font-size: 14px; }
}
@media screen and (min-width: 832px) and (min-height: 620px) {
html { font-size: 16px; }
}
body {
margin: 0;
color: #fff;
background-color: #4b6473;
background-image: url(images/stars1.png), url(images/stars2.png), url(images/stars3.png);
background-position: 0 0, 0 0, 0 0; /* firefox needs this */
font: 2rem 'Press Start 2P', monospace;
text-transform: uppercase;
overflow: hidden;
}
.fly-up {
background-position: 0 4096px, 0 8192px, 0 16384px;
transition: background-position 11.8s ease;
animation: space-darken 11.8s steps(8) forwards;
}
.fly-across {
background-color: #1d272d;
animation: stars-fly-across 8s linear infinite;
}
.get-ready {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.splash {
display: none;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: calc(100% - 6rem);
text-align: center;
}
.title {
margin: 0 0 2rem;
font-size: 6rem;
line-height: 1.5;
}
.start {
margin: 0;
padding: 1rem 2rem;
border: 0.5rem solid #fff;
border-radius: 0;
color: #fff;
background-color: #f89f1b;
font: inherit;
text-transform: inherit;
cursor: pointer;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.start:disabled {
visibility: hidden;
}
.toast {
display: none;
position: absolute;
top: 25%;
left: 50%;
margin: -64px 0 0 -64px;
animation: fade-in 4s steps(4), toast-bob 6s ease infinite;
}
.dialog {
display: none;
position: absolute;
top: calc(75% - 8.5rem);
left: calc(50% - 24rem);
width: 48rem;
height: 17rem;
padding: 2rem;
border: solid 0.5rem #000;
color: #000;
background-color: #fff;
line-height: 2;
white-space: pre;
overflow: hidden;
animation: dialog-grow-in 1s linear;
}
.the-end {
display: none;
position: absolute;
top: calc(75%);
left: 50%;
transform: translate(-50%, -50%);
width: calc(100% - 6rem);
margin: 0 0 2rem;
text-align: center;
font-size: 6rem;
line-height: 1.5;
animation: fade-in 4s steps(4);
}
@keyframes fade-in {
0% { opacity: 0; }
100% { opacity: 1; }
}
@keyframes dialog-grow-in {
0% { transform: scaleY(0); }
100% { transform: scaleY(1); }
}
@keyframes toast-bob {
50% { transform: translateY(4rem); }
100% { transform: translateY(0); }
}
@keyframes space-darken {
100% { background-color: #1d272d; }
}
@keyframes stars-fly-across {
100% { background-position: -2048px 512px, -4096px 512px, -8192px 512px; }
}