-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
638 lines (541 loc) · 17.6 KB
/
styles.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
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
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
/* Reset some default browser styles */
body, h1, label, input, p {
margin: 0;
padding: 0;
}
body {
font-family: 'Helvetica Neue', Arial, sans-serif;
background-color: #f8f9fa; /* Light gray background */
color: #333;
display: flex;
flex-direction: column;
align-items: center;
height: 100vh;
margin: 0;
}
header {
background-color: #007bff; /* Blue header */
color: white;
width: 100%;
padding: 20px;
text-align: center;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
h1 {
margin-bottom: 10px;
font-size: 2rem; /* Larger font size for the header */
}
h2 {
margin-bottom: 10px;
font-size: 1.2rem; /* Slightly smaller font size for the section heading */
font-weight: bold;
display: flex;
flex-direction: column; /* Stack heading and tooltip vertically */
align-items: center; /* Center items horizontally */
white-space: nowrap; /* Prevent text from wrapping to a new line */
color: #007bff;
}
.step-number {
display: inline-block;
width: 30px;
height: 30px;
line-height: 30px;
text-align: center;
border-radius: 50%;
background-color: #007bff; /* Adjust color as needed */
color: #ffffff;
font-weight: bold;
margin-right: 10px; /* Adjust the space between the circle and the text */
font-size: 16px; /* Adjust size as needed */
margin-bottom: 25px;
}
.step-title {
vertical-align: middle; /* Aligns the text vertically with the number */
}
.summary, .header-container {
display: flex;
flex-direction: column;
width: 100%;
max-width: 1200px; /* Maximum width to ensure content doesn't stretch too much */
padding: 20px;
box-sizing: border-box;
border: 2px solid #ddd; /* Container border */
border-radius: 12px; /* Rounded corners */
background-color: #ffffff; /* White background for container */
margin-top: 20px; /* Gap between summary and container */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
text-align: center;
}
.summary p {
font-size: 1.2rem; /* Slightly larger font size */
color: #333; /* Darker color for readability */
}
/* styling for containers */
.container {
display: flex;
flex-direction: column;
width: 100%;
max-width: 1200px;
padding: 20px;
box-sizing: border-box;
border: 2px solid #ddd; /* Container border */
border-radius: 12px; /* Rounded corners */
background-color: #ffffff; /* White background for container */
margin-top: 20px; /* Gap between summary and container */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}
/* styling for column wrapper */
.column-wrapper {
display: flex;
justify-content: space-between;
}
.estimator-race-input {
flex: 1;
padding: 20px;
box-sizing: border-box;
background-color: #ffffff; /* Match background color */
border-radius: 6px; /* Match border radius */
}
.estimator-distance-select {
flex: 1;
padding: 20px;
box-sizing: border-box;
background-color: #ffffff; /* Match background color */
border-radius: 6px; /* Match border radius */
border: 1px solid #ddd; /* Subtle border for better definition */
}
/* Style for a professional-looking button */
button {
background-color: #007bff; /* Bootstrap Blue */
color: white; /* White text color */
border: none; /* Remove border */
border-radius: 5px; /* Rounded corners */
padding: 10px 20px; /* Padding inside the button */
font-size: 16px; /* Font size */
font-weight: bold; /* Bold text */
cursor: pointer; /* Pointer cursor on hover */
transition: all 0.3s ease; /* Smooth transition for hover effects */
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}
/* Hover effect */
button:hover {
background-color: #0056b3; /* Darker blue on hover */
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* Slightly deeper shadow */
}
/* Active state effect */
button:active {
background-color: #004080; /* Even darker blue when pressed */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Subtle shadow when pressed */
transform: translateY(2px); /* Slight movement down on click */
}
/* Focus state for accessibility */
button:focus {
outline: 2px solid #0056b3; /* Focus outline with matching color */
outline-offset: 2px; /* Space between the outline and button */
}
.estimator-distance-select-group {
display: flex;
flex-direction: column; /* Stacks options vertically */
gap: 10px; /* Space between each option */
}
.distance-option {
display: flex;
align-items: center; /* Aligns radio button and label vertically */
}
.distance-option input[type="radio"] {
margin-right: 10px; /* More space between radio button and label */
cursor: pointer; /* Pointer cursor on hover for better UX */
}
.distance-option label {
font-size: 1.1em; /* Slightly larger font size for readability */
color: #333; /* Darker text color for better readability */
cursor: pointer; /* Pointer cursor on hover for better UX */
}
/* Style for each radio button and label pair */
.estimator-distance-select-group input[type="radio"] {
margin-right: 5px; /* Space between radio button and label */
}
.estimator-distance-select-group label {
margin-bottom: 5px; /* Space between radio button rows */
}
.estimator-race-results {
flex: 1;
padding: 20px;
box-sizing: border-box;
background-color: #ffffff; /* Match background color */
border-radius: 6px; /* Match border radius */
text-align: center; /* Center text within the container */
margin: 0 auto; /* Center the container itself if it's a block-level element */
}
.estimator-race-results-output {
flex: 1;
min-width: 0; /* Ensures columns don't shrink too small */
}
/* Style for advice paragraph inside results-summary */
#estimator-race-results-output p.result {
font-size: 1.2rem; /* Adjust the font size as needed */
color: #000000; /* Blue color for the advice text */
background-color: #e9ecef; /* Light gray background for readability */
border: 1px solid #ddd; /* Light border around the advice box */
border-radius: 6px; /* Rounded corners */
padding: 10px; /* Padding inside the advice box */
margin: 10px 0; /* Margin above and below the advice box */
display: inline-block; /* Fit content width */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
font-weight: bold;
text-align: center;
}
.estimator-race-input {
text-align: center;
}
.chart-section {
flex: 2;
display: flex;
justify-content: center; /* Horizontally center */
align-items: center; /* Vertically center */
padding: 20px;
background-color: #ffffff; /* Ensure background matches */
border-radius: 6px; /* Match border radius */
}
.input-section, .results-section {
flex: 1;
padding: 20px;
box-sizing: border-box;
background-color: #ffffff; /* Match background color */
border-radius: 6px; /* Match border radius */
}
.chart-section {
flex: 2;
display: flex;
justify-content: center; /* Horizontally center */
align-items: center; /* Vertically center */
padding: 20px;
background-color: #ffffff; /* Ensure background matches */
border-radius: 6px; /* Match border radius */
}
.instructions {
margin-bottom: 20px;
font-size: 1.2rem; /* Slightly larger font size for instructions */
color: #007bff;
display: flex;
flex-direction: column; /* Arrange items in a column */
align-items: center; /* Center items horizontally */
text-align: center;
}
.instructions h2 {
margin-bottom: 10px;
font-size: 1.2rem; /* Slightly smaller font size for the section heading */
font-weight: bold;
display: flex;
flex-direction: column; /* Stack heading and tooltip vertically */
align-items: center; /* Center items horizontally */
white-space: nowrap; /* Prevent text from wrapping to a new line */
}
.instructions h2 .tooltip {
font-size: 1rem; /* Smaller font size for the question mark */
margin-top: 5px; /* Space between text and tooltip */
}
.tooltip {
position: relative;
display: inline-block;
cursor: pointer;
font-size: 1rem; /* Adjust font size for the question mark */
color: #333;
background: #e9ecef; /* Light gray background for the circle */
border-radius: 50%; /* Circular shape */
width: 20px; /* Smaller size */
height: 20px; /* Smaller size */
display: flex;
justify-content: center;
align-items: center;
}
.tooltip .tooltiptext {
visibility: hidden;
width: 300px;
background-color: #333;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 10px;
position: absolute;
z-index: 1;
bottom: 125%; /* Position above the question mark */
left: 50%;
margin-left: -150px;
opacity: 0;
transition: opacity 0.3s;
}
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}
.input-group {
margin-bottom: 20px; /* Increase margin for better spacing */
}
label {
display: block;
font-weight: bold;
margin-bottom: 8px;
font-size: 1rem; /* Adjust font size */
color: #333; /* Darker color for readability */
}
input[type="text"] {
width: 100%;
padding: 12px;
border: 1px solid #ccc; /* Slightly darker border */
border-radius: 6px; /* Rounded corners for input */
box-sizing: border-box;
font-size: 1rem;
}
input[type="range"] {
width: 100%;
margin-top: 10px;
-webkit-appearance: none; /* Remove default appearance */
background: transparent; /* Hide default track */
}
input[type="range"]::-webkit-slider-runnable-track {
width: 100%;
height: 8px;
background: #e9ecef; /* Light gray track */
border-radius: 5px;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 24px;
height: 24px;
border-radius: 50%;
background: #007bff; /* Blue thumb */
cursor: pointer;
position: relative;
z-index: 1;
margin-top: -8px; /* Center thumb vertically */
}
input[type="range"]::-moz-range-track {
width: 100%;
height: 8px;
background: #e9ecef; /* Light gray track */
border-radius: 5px;
}
input[type="range"]::-moz-range-thumb {
width: 24px;
height: 24px;
border-radius: 50%;
background: #007bff; /* Blue thumb */
cursor: pointer;
}
input[type="range"]::-ms-track {
width: 100%;
height: 8px;
background: transparent;
border-color: transparent;
color: transparent;
}
input[type="range"]::-ms-fill-lower {
background: #007bff; /* Blue progress */
border-radius: 5px;
}
input[type="range"]::-ms-fill-upper {
background: #e9ecef; /* Light gray track */
border-radius: 5px;
}
input[type="range"]::-ms-thumb {
width: 24px;
height: 24px;
border-radius: 50%;
background: #007bff; /* Blue thumb */
cursor: pointer;
margin-top: -8px; /* Center thumb vertically */
}
canvas {
max-width: 100%;
max-height: 100%;
}
.results-section {
border-left: 2px solid #ddd;
}
.results {
margin-bottom: 20px;
font-size: 1.2rem; /* Slightly larger font size for instructions */
color: #007bff;
display: flex;
flex-direction: column; /* Arrange items in a column */
align-items: center; /* Center items horizontally */
text-align: center;
}
.results h2 {
margin-bottom: 10px;
font-size: 1.2rem; /* Slightly smaller font size for the section heading */
font-weight: bold;
display: flex;
flex-direction: column; /* Stack heading and tooltip vertically */
align-items: center; /* Center items horizontally */
white-space: nowrap; /* Prevent text from wrapping to a new line */
}
.results span {
font-weight: bold; /* Bold text for the values */
color: #007bff; /* Blue color for the values */
}
/* Style for VO2 slider thumb */
#vo2Slider::-webkit-slider-thumb {
width: 20px; /* Smaller width */
height: 20px; /* Smaller height */
background: #d32f2f; /* Red thumb for VO2 */
border-radius: 50%; /* Circular shape */
cursor: pointer;
-webkit-appearance: none; /* Remove default appearance */
}
#vo2Slider::-moz-range-thumb {
width: 20px; /* Smaller width */
height: 20px; /* Smaller height */
background: #d32f2f; /* Red thumb for VO2 */
border-radius: 50%; /* Circular shape */
cursor: pointer;
}
#vo2Slider::-ms-thumb {
width: 20px; /* Smaller width */
height: 20px; /* Smaller height */
background: #d32f2f; /* Red thumb for VO2 */
border-radius: 50%; /* Circular shape */
cursor: pointer;
}
/* Style for LT2 slider thumb */
#lt2Slider::-webkit-slider-thumb {
width: 20px; /* Smaller width */
height: 20px; /* Smaller height */
background: #ff9800; /* Orange thumb for LT2 */
border-radius: 50%; /* Circular shape */
cursor: pointer;
-webkit-appearance: none; /* Remove default appearance */
}
#lt2Slider::-moz-range-thumb {
width: 20px; /* Smaller width */
height: 20px; /* Smaller height */
background: #ff9800; /* Orange thumb for LT2 */
border-radius: 50%; /* Circular shape */
cursor: pointer;
}
#lt2Slider::-ms-thumb {
width: 20px; /* Smaller width */
height: 20px; /* Smaller height */
background: #ff9800; /* Orange thumb for LT2 */
border-radius: 50%; /* Circular shape */
cursor: pointer;
}
/* Style for LT1 slider thumb */
#lt1Slider::-webkit-slider-thumb {
width: 20px; /* Smaller width */
height: 20px; /* Smaller height */
background: #4caf50; /* Green thumb for LT1 */
border-radius: 50%; /* Circular shape */
cursor: pointer;
-webkit-appearance: none; /* Remove default appearance */
}
#lt1Slider::-moz-range-thumb {
width: 20px; /* Smaller width */
height: 20px; /* Smaller height */
background: #4caf50; /* Green thumb for LT1 */
border-radius: 50%; /* Circular shape */
cursor: pointer;
}
#lt1Slider::-ms-thumb {
width: 20px; /* Smaller width */
height: 20px; /* Smaller height */
background: #4caf50; /* Green thumb for LT1 */
border-radius: 50%; /* Circular shape */
cursor: pointer;
}
/* Style for advice paragraph inside results-summary */
#results-summary p.advice {
font-size: 1.2rem; /* Adjust the font size as needed */
color: #000000; /* Blue color for the advice text */
background-color: #e9ecef; /* Light gray background for readability */
border: 1px solid #ddd; /* Light border around the advice box */
border-radius: 6px; /* Rounded corners */
padding: 10px; /* Padding inside the advice box */
margin: 10px 0; /* Margin above and below the advice box */
display: inline-block; /* Fit content width */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
font-weight: bold;
text-align: center;
}
/* Ensure the container is displayed as flex */
#pace-estimation-container {
display: flex;
flex-wrap: wrap;
gap: 20px; /* Add some spacing between columns */
}
/* Column wrapper style */
.column-wrapper {
display: flex;
flex: 1;
justify-content: space-between;
}
/* Each column */
.pace-estimation-input-section,
.pace-estimation-results-section {
flex: 1;
min-width: 0; /* Ensures columns don't shrink too small */
}
/* Center the button */
.button-container {
display: flex;
justify-content: center;
margin-top: 10px; /* Space above the button */
}
/* Style for error message */
#race-time-error {
color: red;
display: none;
}
/* Style for pace results */
.pace-estimation-results {
margin-top: 10px;
}
.pace-estimation-results p {
margin: 5px 0; /* Space between result lines */
}
/* Common width for sections */
.same-width {
width: 100%; /* Full width of the parent container */
max-width: 400px; /* Adjust as needed */
box-sizing: border-box; /* Include padding and border in the element's total width and height */
padding: 20px;
background-color: #ffffff; /* White background for clarity */
border-radius: 6px; /* Match border radius */
border: 2px solid #ddd; /* Border to match other sections */
}
.column-wrapper {
display: flex;
justify-content: space-between;
flex-wrap: wrap; /* Allow wrapping if needed */
gap: 20px; /* Space between columns */
}
.column-wrapper > .same-width {
flex: 1;
min-width: 0; /* Ensure columns don’t shrink too small */
}
.container {
display: flex;
flex-direction: column;
width: 100%;
max-width: 1200px; /* Maximum width to ensure content doesn't stretch too much */
padding: 20px;
box-sizing: border-box;
border: 2px solid #ddd; /* Container border */
border-radius: 12px; /* Rounded corners */
background-color: #ffffff; /* White background for container */
margin-top: 20px; /* Gap between summary and container */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}
/* Color for VO2 Estimate */
.vo2-color {
color: #d32f2f; /* Red color for VO2 */
}
/* Color for LT2 Estimate */
.lt2-color {
color: #ff9800; /* Orange color for LT2 */
}
/* Color for LT1 Estimate */
.lt1-color {
color: #4caf50; /* Green color for LT1 */
}