-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyle.css
More file actions
336 lines (297 loc) · 6.94 KB
/
Copy pathstyle.css
File metadata and controls
336 lines (297 loc) · 6.94 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
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
:root {
--color-background: oklch(46.06% 0.0735 277.3);
--color-light: oklch(98.04% 0.0042 13.06);
--color-dark: oklch(53.6% 0.002 325.6);
--color-indicator: oklch(82.08% 0.0184 89.37);
}
body {
color: var(--color-darktext);
scroll-behavior: smooth;
}
html, body {
font-family: 'Segoe UI', Roboto, sans-serif;
background-color: var(--color-background);
width: 100%;
max-width: 100vw;
overflow-x: hidden; /* Prevents horizontal scrolling */
margin: 0;
padding: 0;
box-sizing: border-box;
}
.visualization{
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-evenly; /* Distributes content evenly */
height: 100vh; /* Full screen height */
width: 90%;
}
.title-screen {
position: fixed;
top: 0;
width: 100%;
height:100vh;
background-color: var(--color-background);
color: var(--color-light);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
z-index: 100;
transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
h3{
font-size: 150%;
font-style: oblique;
font-weight: bold;
margin: 5%;
}
}
/* Hide title screen when scrolled */
.hide-title {
transform: translateY(-100%);
opacity: 0;
pointer-events: none;
}
.scroll-indicator {
font-size: 18px;
font-style: italic;
color: var(--color-indicator);
margin-top: 20px;
animation: bounce 1.5s infinite;
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(10px); }
}
#title {
display: flex;
align-items: center;
justify-content: center;
gap: 5%;
font-weight: bold;
margin-bottom: 5%;
font-family: 'Trebuchet MS';
font-size: 200%;
}
.emoji{
max-width: 80px;
height: auto;
}
.visualization{
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-evenly; /* Distributes content evenly */
height: 100vh; /* Full screen height */
width: 90%;
}
.charts-section {
display: flex;
justify-content: space-between;
min-height: 30vh;
gap: 2%;
margin-top: 3%;
margin-left: 10%;
margin-right: 10%;
margin-bottom: 5%;
box-sizing: border-box;
}
.chart {
width: 20%;
max-height: 70vh;
background-color: var(--color-light);
padding: 3%;
border-radius: 8px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
h2{
color: var(--color-dark);
font-size: 100%;
margin: 0;
margin-bottom: 3%;
}
}
svg {
width: 80%;
aspect-ratio: 1 / 2;
background-color: var(--color-dark);
display: flex;
align-items: center;
justify-content: center;
border-radius: 8px;
}
svg:not(#legend-svg):hover {
outline: 5px solid var(--color-indicator);
border-radius: 5px;
cursor: pointer;
}
.hint{
display: flex;
flex-direction: column;
justify-content: space-evenly;
align-items: center;
font-size: 100%;
font-weight: bold;
width: 100%;
p{
color: var(--color-indicator);
margin: 0;
opacity: 0;
position: relative;
transform: translateY(-10px); /* Start slightly above */
animation: blink 2s infinite ease-in-out;
}
}
@keyframes blink {
0%, 100% {
opacity: 1; /* Fully visible */
}
50% {
opacity: 0; /* Hidden */
}
}
/* Apply blinking animation only initially */
.hint p {
color: var(--color-indicator);
margin: 0;
position: relative;
transform: translateY(-10px);
animation: blink 2s infinite ease-in-out;
}
/* Stop blinking when 'no-blink' class is added */
.hint p.no-blink {
animation: none;
opacity: 1; /* Keep the hint visible */
color: var(--color-light)
}
.weight-height-filter {
display: flex;
flex-direction: column;
justify-content: space-evenly;
border-radius: 8px;
width: 100%;
}
.filter-box {
display: flex;
justify-content: column;
align-items: center;
width: 100%;
border-radius: 8px;
}
.input-container {
position: relative;
width: 100%;
padding-bottom: 15%;
display: flex;
align-items: center;
}
.input-container input:hover {
outline: 5px solid var(--color-indicator);
border-radius: 25px;
}
/* Make the input take up most of the width */
.input-container input {
width: 100%;
padding: 10px;
height: 30px;
border: none;
border-radius: 20px;
font-size: 18px;
font-weight: bold;
text-align: center;
background-color: white;
outline: none;
}
.unit {
position: absolute;
right: 20%;
font-size: 100%;
font-weight: bold;
color: var(--color-dark);
opacity: 0.7;
}
.unit:hover {
opacity: 1;
}
.scale {
display: flex;
flex-direction: column;
/* background-color: var(--color-light); */
/* border-radius: 20px; */
width: 66%; /* Adjust width to make the scale box longer */
margin: 0 auto 20px auto; /* Center the scale and add margin to the bottom */
justify-items: center;
align-items: center;
text-align: center;
padding: 10px;
box-sizing: border-box; /* Include padding in the element's total width and height */
}
.scale p {
font-size: 20px;
font-weight: bold;
color: var(--color-light);
margin: 0; /* Remove default margin */
}
#left, #supine, #right {
width: 100%;
}
.reset{
background-color: var(--color-indicator);
color: var(--color-light);
border: none;
border-radius: 20px;
width: 100%;
padding: 10%;
font-size: 100%;
font-weight: semi-bold;
cursor: pointer;
outline: none;
}
.ui{
display: flex;
flex-direction: column;
justify-content: space-evenly;
margin-bottom: 5%;
}
.text-section{
display: flex;
flex-direction: column;
justify-content: space-evenly;
align-items: center;
color: var(--color-light);
padding: 5%;
}
.scale-box {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
padding: 0; /* Remove padding to eliminate white space */
margin: 0; /* Remove margin to eliminate white space */
box-sizing: border-box; /* Include padding in the element's total width and height */
}
.scale-box svg {
width: 100%;
height: 3.4em;
background-color: var(--color-background);
justify-content: center;
align-items: center;
margin: 0; /* Remove margin to eliminate white space */
padding: 0; /* Remove padding to eliminate white space */
box-sizing: border-box; /* Include padding in the element's total width and height */
}
.scale-box {
display: flex;
flex-direction: column;
justify-content: space-evenly;
align-items: center;
background-color: var(--color-background);
/* border-radius: 0px; */
width: 100%;
padding: 0%;
margin-bottom: 5%;
}