-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
4419 lines (3915 loc) · 201 KB
/
index.html
File metadata and controls
4419 lines (3915 loc) · 201 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
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
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>D&D Day/Night Cycle Tracker</title>
<!-- Google Fonts for fantasy aesthetic (Cinzel Decorative) and modern UI (Poppins) -->
<link href="https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Poppins:wght@300;400;600&display=swap" rel="stylesheet">
<!-- Tone.js for programmatic audio generation -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/tone/14.8.49/Tone.min.js"></script>
<style>
/* --- CSS Global Reset & Base Styles --- */
:root {
/* Sky Colors - Define your gradient stops for different times of day */
--sky-dawn-top: #2a0b3b; /* Deep violet */
--sky-dawn-bottom: #8e44ad; /* Amethyst */
--sky-morning-top: #007bff; /* Bright blue */
--sky-morning-bottom: #52a8ff; /* Lighter blue */
--sky-midday-top: #87ceeb; /* Sky blue */
--sky-midday-bottom: #e0f7fa; /* Light cyan */
--sky-dusk-top: #6a008a; /* Dark purple */
--sky-dusk-bottom: #f5a623; /* Orange/Gold */
--sky-night-top: #0a0b1f; /* Very dark blue/black */
--sky-night-bottom: #1c0f4f; /* Deep indigo */
/* Icewind Dale specific sky colors */
--sky-icewind-day-top: #6080a0; /* Colder blue */
--sky-icewind-day-bottom: #a0c0d0; /* Lighter icy blue */
--sky-icewind-night-top: #050a10; /* Very dark cold blue */
--sky-icewind-night-bottom: #101a25; /* Dark cold blue */
/* Curse of Strahd specific sky colors */
--sky-strahd-day-top: #202020; /* Dark grey */
--sky-strahd-day-bottom: #404040; /* Medium grey */
--sky-strahd-night-top: #050505; /* Almost black */
--sky-strahd-night-bottom: #151515; /* Darker grey */
/* Celestial Body Colors */
--sun-color-inner: #ffe100; /* Gold */
--sun-color-outer: #ff8c00; /* Dark orange */
--moon-color-inner: #f0f0f0; /* Light silver */
--moon-color-outer: #a0a0a0; /* Dark silver */
/* UI Colors */
--ui-bg: rgba(20, 10, 30, 0.85); /* Dark translucent background */
--ui-border: #6d421d; /* Wood/leather brown */
--ui-accent: #c09f52; /* Aged gold */
--ui-text: #fff; /* White text */
--button-hover: #e0c885; /* Lighter gold for hover */
--button-active: #9e7f3c; /* Darker gold for active */
--error-color: #ff4d4d; /* Red for errors */
/* Animation Durations & Easing */
--time-transition-duration: 3s; /* For smooth sky/light changes */
--celestial-move-duration: 0.8s; /* For sun/moon movement updates */
--cloud-drift-duration: 180s; /* How long for clouds to cross screen (base) */
--star-twinkle-duration: 2s; /* Star twinkle animation speed */
--aurora-animation-duration: 40s; /* Aurora animation speed */
--haze-animation-duration: 5s; /* Heat haze animation speed */
--lightning-flash-duration: 0.1s; /* Duration of lightning flash */
--shooting-star-duration: 0.8s; /* Duration of shooting star flash */
/* Current dynamic values (set by JS) */
--current-sky-top: var(--sky-midday-top);
--current-sky-bottom: var(--sky-midday-bottom);
--sun-x-pos: 50%; /* Horizontal position of sun/moon (0% left, 100% right) */
--sun-y-pos: 80%; /* Vertical position of sun/moon (0% top, 100% bottom/horizon) */
--sun-glow-intensity: 1; /* Opacity/brightness of sun's glow */
--moon-x-pos: -10%;
--moon-y-pos: 80%;
--moon-opacity: 0; /* Controls moon visibility */
--stars-opacity: 0; /* Controls star field visibility */
--aurora-opacity: 0; /* Controls aurora visibility */
--heat-haze-opacity: 0; /* Controls heat haze visibility */
--landscape-shadow-opacity: 0.5; /* Opacity of landscape shadow */
--landscape-shadow-blur: 10px; /* Blur of landscape shadow */
--landscape-shadow-offset-x: 0px; /* Horizontal offset of landscape shadow */
--landscape-shadow-offset-y: 0px; /* Vertical offset of landscape shadow */
--landscape-shadow-color: rgba(0, 0, 0, 0.5); /* Color of landscape shadow */
--landscape-color: #2c3e50; /* Base landscape color */
--landscape-filter: none; /* For weather effects on landscape */
/* Weather effect opacities (controlled via JS, rendered on canvas) */
--fog-opacity: 0;
--wind-strength: 0; /* Controls wind effects like cloud speed */
--lightning-opacity: 0; /* For lightning flash effect */
--shooting-star-opacity: 0; /* For shooting star effect */
/* Sleek UI Colors */
--sleek-bg: rgba(255, 255, 255, 0.08); /* Frosted glass effect */
--sleek-border: rgba(255, 255, 255, 0.2);
--sleek-text: #e0e0e0;
--sleek-accent: #87ceeb; /* Lighter blue for accents */
--sleek-button-bg: rgba(255, 255, 255, 0.15);
--sleek-button-hover: rgba(255, 255, 255, 0.25);
--sleek-button-active: rgba(255, 255, 255, 0.05);
--sleek-input-bg: rgba(0, 0, 0, 0.3);
--sleek-input-border: rgba(255, 255, 255, 0.3);
/* Task List Variables */
--task-list-height: 0; /* Controlled by JS for expansion */
}
/* Universal box-sizing and overflow hidden for full-screen effects */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html, body {
height: 100%;
overflow: hidden; /* Crucial for full-screen effects without scrollbars */
font-family: 'Poppins', sans-serif; /* Primary UI font */
color: var(--ui-text); /* Default text color */
-webkit-font-smoothing: antialiased; /* Smoother font rendering */
-moz-osx-font-smoothing: grayscale;
}
/* Main application container */
#app-container {
width: 100vw;
height: 100vh;
position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
background: linear-gradient(to top, var(--current-sky-bottom), var(--current-sky-top));
transition: background var(--time-transition-duration) ease-in-out; /* Smooth sky color transitions */
cursor: grab; /* Indicate draggable sky */
}
#app-container.dragging {
cursor: grabbing;
}
/* --- Sky & Celestial Bodies Container --- */
#sky-container {
position: absolute; /* Allows full coverage of the top part of the app */
width: 100%;
height: 75%; /* Occupies top 75% of the screen */
overflow: hidden; /* Hides celestial bodies when off-screen */
top: 0;
left: 0;
z-index: 1; /* Below UI elements */
}
/* Base style for Sun and Moon */
.celestial-body {
position: absolute;
border-radius: 50%;
transition: transform var(--celestial-move-duration) linear,
opacity var(--celestial-move-duration) ease-in-out,
box-shadow var(--celestial-move-duration) ease-in-out;
/* Initial positions are set by JS */
transform: translate(-50%, -50%); /* Center the body on its calculated position */
pointer-events: auto; /* Make them clickable/draggable */
cursor: grab;
}
.celestial-body.dragging {
cursor: grabbing;
}
#sun {
width: 10vmin; /* Responsive size based on viewport */
height: 10vmin;
background: radial-gradient(circle at 50% 50%, var(--sun-color-inner), var(--sun-color-outer), transparent 70%);
box-shadow: 0 0 calc(5vmin * var(--sun-glow-intensity)) calc(2vmin * var(--sun-glow-intensity)) rgba(255, 215, 0, 0.7 * var(--sun-glow-intensity));
top: var(--sun-y-pos);
left: var(--sun-x-pos);
opacity: var(--sun-glow-intensity);
}
#moon {
width: 8vmin;
height: 8vmin;
background: radial-gradient(circle at 50% 50%, var(--moon-color-inner), var(--moon-color-outer), transparent 70%);
box-shadow: 0 0 calc(4vmin * var(--moon-opacity)) calc(1.5vmin * var(--moon-opacity)) rgba(192, 192, 192, 0.6 * var(--moon-opacity));
top: var(--moon-y-pos);
left: var(--moon-x-pos);
opacity: var(--moon-opacity);
/* Moon phases can be simulated with clip-path or multiple layers, simplified here */
}
/* Star field for night */
#stars {
position: absolute;
width: 100%;
height: 100%;
background: radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1px),
radial-gradient(circle, rgba(255,255,255,0.6) 0.8px, transparent 0.8px),
radial-gradient(circle, rgba(255,255,255,0.4) 0.6px, transparent 0.6px);
background-size: 100px 100px, 150px 150px, 200px 200px; /* Density of stars */
background-position: 0 0, 50px 50px, 100px 100px; /* Offset for more random distribution */
opacity: var(--stars-opacity);
transition: opacity var(--time-transition-duration) ease-in-out;
animation: twinkle var(--star-twinkle-duration) infinite alternate ease-in-out;
pointer-events: none; /* Allows clicks to pass through */
}
@keyframes twinkle {
0%, 100% { opacity: 0.8; }
50% { opacity: 0.3; }
}
/* --- Atmospheric Effects --- */
.clouds {
position: absolute;
background: rgba(255, 255, 255, 0.1);
border-radius: 50% 50% 0 0 / 100% 100% 0 0; /* Cloud shape */
filter: blur(8px); /* Soft blur for wispy effect */
opacity: 0; /* Default hidden, controlled by JS */
transition: opacity var(--time-transition-duration) ease-in-out;
pointer-events: none;
}
#clouds-layer-1 {
width: 150%; /* Wider than screen to allow continuous drift */
height: 20%;
top: 10%;
animation: drift var(--cloud-drift-duration) linear infinite;
}
#clouds-layer-2 {
width: 120%;
height: 15%;
top: 30%;
animation: drift calc(var(--cloud-drift-duration) * 0.8) linear infinite reverse; /* Different speed/direction */
}
@keyframes drift {
0% { transform: translateX(-20%); }
100% { transform: translateX(100%); }
}
#aurora {
position: absolute;
width: 100%;
height: 100%;
background: linear-gradient(to right,
transparent,
rgba(0, 255, 127, 0.1), /* Green */
rgba(0, 200, 255, 0.15), /* Blue */
rgba(150, 0, 255, 0.1), /* Purple */
transparent
);
filter: blur(20px);
opacity: var(--aurora-opacity);
transition: opacity var(--time-transition-duration) ease-in-out;
animation: aurora-shimmer var(--aurora-animation-duration) infinite alternate ease-in-out;
pointer-events: none;
}
@keyframes aurora-shimmer {
0%, 100% { transform: scaleY(1) translateX(0); }
50% { transform: scaleY(1.2) translateX(10%); }
}
#heat-haze {
position: absolute;
width: 100%;
height: 10%; /* Thin band near horizon */
bottom: 0;
background: rgba(255, 255, 0, 0.05);
filter: blur(5px);
opacity: var(--heat-haze-opacity);
transition: opacity var(--time-transition-duration) ease-in-out;
animation: heat-haze-shimmer var(--haze-animation-duration) infinite alternate ease-in-out;
pointer-events: none;
}
@keyframes heat-haze-shimmer {
0%, 100% { transform: translateY(0) scaleX(1); }
50% { transform: translateY(-5px) scaleX(1.02); }
}
/* --- Canvas for Weather Effects --- */
#weather-canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 5; /* Below celestial bodies, above sky */
opacity: 1; /* Managed by JS for specific effects */
transition: opacity var(--time-transition-duration) ease-in-out;
}
#fog-effect {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle at 50% 50%, rgba(180, 180, 180, 0.1) 0%, rgba(180, 180, 180, 0.05) 50%, transparent 100%);
filter: blur(15px);
animation: fog-drift var(--fog-animation-duration) linear infinite alternate;
opacity: var(--fog-opacity);
pointer-events: none;
z-index: 6; /* Above canvas particles */
}
@keyframes fog-drift {
0% { transform: translateX(0) scale(1.0); }
50% { transform: translateX(10%) scale(1.05); }
100% { transform: translateX(0) scale(1.0); }
}
#lightning-flash {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 200, 0.8); /* Yellowish white flash */
opacity: var(--lightning-opacity);
transition: opacity var(--lightning-flash-duration) ease-out;
pointer-events: none;
z-index: 7; /* Above all other effects */
}
#shooting-star-effect {
position: absolute;
width: 20px; /* Size of the star */
height: 20px;
background: radial-gradient(circle at 50% 50%, #fff, rgba(255, 255, 255, 0.5), transparent 70%);
border-radius: 50%;
filter: blur(2px);
opacity: var(--shooting-star-opacity);
transition: opacity var(--shooting-star-duration) ease-out;
pointer-events: none;
z-index: 8; /* Above stars, below lightning */
transform: translate(-50%, -50%); /* Center the element */
}
/* --- Landscape/Horizon --- */
#landscape-container {
position: absolute;
bottom: 0;
width: 100%;
height: 30%; /* Overlaps sky-container slightly */
background-color: var(--landscape-color); /* Base landscape color */
z-index: 10; /* Ensure it's above sky elements */
transition: background-color var(--time-transition-duration) ease-in-out;
filter: var(--landscape-filter); /* Apply dynamic filters */
overflow: hidden; /* Hide overflowing SVG parts during scroll */
}
#landscape-svg {
position: absolute;
bottom: 0;
left: 0;
width: 150%; /* Make it wider than container for scrolling */
height: 100%;
animation: landscape-scroll linear infinite; /* Apply scrolling animation */
transition: filter var(--time-transition-duration) ease-in-out, animation-duration 0.5s linear; /* Changed to linear for smoothness */
transform: translateX(0); /* Initial position */
animation-duration: 180s; /* Base duration, adjusted by JS */
animation-play-state: running; /* Always running */
}
/* Removed .scrolling-active as animation-play-state is always running */
/* #landscape-svg.scrolling-active {
animation-play-state: running;
} */
.landscape-layer {
/* These styles are mostly for fill and opacity within the SVG now */
display: block;
filter: drop-shadow(
var(--landscape-shadow-offset-x)
var(--landscape-shadow-offset-y)
var(--landscape-shadow-blur)
var(--landscape-shadow-color)
);
}
@keyframes landscape-scroll {
0% { transform: translateX(0); }
100% { transform: translateX(-33.33%); } /* Scrolls 1/3 of the extra width */
}
#campfire {
position: absolute;
bottom: 5%; /* Adjust based on landscape height */
left: 20%; /* Example position */
width: 2vmin;
height: 2vmin;
fill: #ff8c00; /* Orange/red flame color */
opacity: 0;
transition: opacity 1s ease-in-out;
animation: campfire-flicker 1s infinite alternate ease-in-out;
z-index: 11; /* Above landscape */
pointer-events: none;
}
@keyframes campfire-flicker {
0%, 100% { transform: scale(1); opacity: 0.8; }
50% { transform: scale(1.05); opacity: 1; }
}
/* --- Time Display (more unobtrusive) --- */
#time-display-container {
position: absolute;
top: 5%; /* Positioned near the top */
left: 50%;
transform: translateX(-50%);
z-index: 20; /* Above sky and landscape */
padding: 1.2vmin 2.5vmin; /* Reduced padding */
background: var(--sleek-bg); /* Frosted glass */
border: 1px solid var(--sleek-border); /* Subtle border */
border-radius: 12px; /* Slightly less rounded */
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Softer shadow */
text-align: center;
font-family: 'Cinzel Decorative', serif;
font-size: 3.5vmin; /* Slightly smaller font */
letter-spacing: 0.08vmin;
color: var(--sleek-text); /* Lighter text color */
text-shadow: 0 0 3px rgba(0, 0, 0, 0.5); /* Softer glow */
backdrop-filter: blur(5px); /* Frosted glass effect */
}
/* --- Weather Indicator (More Info & Sleek) --- */
#weather-indicator {
position: absolute;
top: 5%;
right: 5%;
z-index: 20;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.8vmin; /* Reduced gap */
padding: 1.8vmin; /* Slightly reduced padding */
background: var(--sleek-bg); /* Frosted glass */
border: 1px solid var(--sleek-border); /* Subtle border */
border-radius: 15px; /* Slightly less rounded */
box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4); /* Softer shadow */
font-family: 'Poppins', sans-serif;
color: var(--sleek-text); /* Lighter text color */
transition: all 0.5s ease-in-out;
backdrop-filter: blur(5px); /* Frosted glass effect */
min-width: 18vmin; /* Ensure enough space for content */
}
#weather-icon-display {
position: relative;
width: 7vmin; /* Slightly smaller icon area */
height: 7vmin;
margin-bottom: 0.5vmin;
display: flex;
justify-content: center;
align-items: center;
}
#weather-icon-svg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
fill: var(--sleek-accent); /* Accent color for icons */
transition: fill 0.5s ease-in-out;
}
.wind-line {
position: absolute;
background-color: var(--sleek-accent);
height: 0.2vmin; /* Thinner wind lines */
border-radius: 1px;
opacity: 0;
animation: wind-flow 2s linear infinite;
z-index: 1; /* Above SVG icon */
}
@keyframes wind-flow {
0% { transform: translateX(-100%); opacity: 0; }
50% { transform: translateX(0); opacity: 1; }
100% { transform: translateX(100%); opacity: 0; }
}
#weather-description {
font-size: 2vmin; /* Smaller font */
font-weight: 400;
color: var(--sleek-text);
margin-bottom: 0.3vmin;
}
.weather-detail {
font-size: 1.8vmin; /* Smaller font for details */
color: rgba(255, 255, 255, 0.7);
margin-top: 0.2vmin;
text-align: center;
}
#temperature-display {
font-family: 'Poppins', sans-serif; /* Poppins for temp for sleek look */
font-size: 3.2vmin; /* Smaller temp display */
font-weight: 600;
color: var(--sleek-accent);
text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
margin-top: 0.5vmin;
}
#temp-toggle-btn {
background: var(--sleek-button-bg);
border: 1px solid var(--sleek-border);
border-radius: 8px; /* Slightly less rounded */
color: var(--sleek-text);
font-family: 'Poppins', sans-serif;
font-size: 1.6vmin; /* Smaller font */
padding: 0.6vmin 1vmin; /* Reduced padding */
cursor: pointer;
outline: none;
transition: background 0.2s, color 0.2s, box-shadow 0.2s;
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
}
#temp-toggle-btn:hover {
background: var(--sleek-button-hover);
color: var(--sleek-text);
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}
/* --- Control Panel (Sleek & Minimal) --- */
#control-panel {
position: absolute; /* Changed to absolute */
top: 2vmin; /* Positioned in top-left */
left: 2vmin; /* Positioned in top-left */
z-index: 20;
padding: 1.5vmin; /* Reduced padding */
background: var(--sleek-bg); /* Frosted glass */
border: 1px solid var(--sleek-border);
border-radius: 18px; /* Slightly less rounded */
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); /* Softer shadow */
display: flex;
flex-direction: column;
gap: 1vmin; /* Reduced gap for more compactness */
align-items: center;
transition: all 0.5s ease-in-out;
width: 38vmin; /* Increased width by 4vmin (~40px) */
max-height: calc(100vh - 10vmin); /* Reduced height by 6vmin (~60px) */
overflow-y: auto; /* Enable vertical scrolling */
padding-right: 2.5vmin; /* Add padding for scrollbar */
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
/* Hide scrollbar for Webkit browsers */
#control-panel::-webkit-scrollbar {
display: none;
}
.control-group {
width: 100%;
display: flex;
flex-direction: column;
gap: 0.6vmin; /* Reduced gap */
padding-bottom: 1vmin; /* Reduced padding to bottom of each group */
border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Separator line */
margin-bottom: 1vmin; /* Reduced margin below separator */
position: relative; /* For premium overlay */
}
.control-group:last-child {
border-bottom: none; /* No border for the last group */
padding-bottom: 0;
margin-bottom: 0;
}
.control-group-title {
font-family: 'Cinzel Decorative', serif;
font-size: 2.2vmin;
color: var(--sleek-accent);
text-align: center;
margin-bottom: 0.8vmin; /* Reduced margin */
text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
.input-row, .buttons-group {
display: flex;
align-items: center;
gap: 0.8vmin; /* Reduced gap */
font-size: 1.8vmin; /* Smaller font */
color: var(--sleek-text); /* Lighter text color */
text-shadow: none; /* No text shadow for minimal look */
width: 100%;
justify-content: center;
flex-wrap: wrap; /* Allow wrapping for smaller screens */
}
#real-time-rate, .control-select, #set-day-input, #travel-time-input,
#event-modal input[type="number"], #event-modal input[type="text"], #event-modal textarea {
width: 8vmin; /* More compact width */
padding: 0.8vmin 1.2vmin; /* Reduced padding */
background: var(--sleek-input-bg); /* Darker input background */
border: 1px solid var(--sleek-input-border); /* Subtle input border */
border-radius: 10px; /* Slightly less rounded */
color: var(--sleek-text);
font-family: 'Poppins', sans-serif;
font-size: 1.8vmin;
text-align: center;
outline: none;
box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4); /* Softer inner shadow */
transition: border-color 0.3s, box-shadow 0.3s;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-image: url('data:image/svg+xml;utf8,<svg fill="%23e0e0e0" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'); /* White custom dropdown arrow */
background-repeat: no-repeat;
background-position: right 0.8vmin center;
background-size: 2vmin;
}
#real-time-rate:focus, .control-select:focus, #set-day-input:focus, #travel-time-input:focus,
#event-modal input[type="number"]:focus, #event-modal input[type="text"]:focus, #event-modal textarea:focus {
border-color: var(--sleek-accent); /* Accent color on focus */
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.6), 0 0 8px var(--sleek-accent); /* Softer glow */
}
.buttons-group {
display: flex;
gap: 1.5vmin; /* Reduced gap */
flex-wrap: wrap; /* Allow wrapping for smaller screens */
justify-content: center;
}
.control-btn {
padding: 1.2vmin 2vmin; /* Reduced padding */
background: var(--sleek-button-bg);
border: 1px solid var(--sleek-border);
border-radius: 10px; /* Slightly less rounded */
color: var(--sleek-text);
font-family: 'Poppins', sans-serif; /* Poppins for buttons */
font-size: 2vmin; /* Smaller font */
cursor: pointer;
outline: none;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Softer shadow */
transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
text-shadow: none; /* No text shadow */
position: relative;
overflow: hidden;
}
.control-btn:hover {
background: var(--sleek-button-hover);
transform: translateY(-1px); /* Subtle lift */
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}
.control-btn:active {
background: var(--sleek-button-active);
transform: translateY(0);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.control-btn.disabled {
opacity: 0.5;
cursor: not-allowed;
background: rgba(0, 0, 0, 0.1);
box-shadow: none;
}
/* Mute Button */
#mute-btn {
background: none;
border: none;
color: var(--sleek-text); /* Lighter text color */
cursor: pointer;
font-size: 2.5vmin; /* Smaller icon */
padding: 0.6vmin;
transition: color 0.2s, transform 0.1s;
outline: none;
}
#mute-btn:hover {
color: var(--sleek-accent); /* Accent color on hover */
transform: scale(1.05);
}
#mute-btn svg {
width: 2.5vmin;
height: 2.5vmin;
vertical-align: middle;
}
/* Message Box for alerts */
#message-box {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: var(--sleek-bg);
border: 1px solid var(--sleek-border);
border-radius: 15px;
padding: 3vmin;
box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
z-index: 100;
display: none;
flex-direction: column;
align-items: center;
gap: 2vmin;
font-family: 'Poppins', sans-serif;
font-size: 2.5vmin;
color: var(--sleek-text);
text-align: center;
backdrop-filter: blur(8px);
}
#message-box p {
margin: 0;
text-shadow: none;
}
#message-box button {
padding: 1vmin 2vmin;
background: var(--sleek-button-bg);
border: 1px solid var(--sleek-border);
border-radius: 8px;
color: var(--sleek-text);
font-family: 'Poppins', sans-serif;
font-size: 2vmin;
cursor: pointer;
outline: none;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
transition: background 0.2s, transform 0.1s;
text-shadow: none;
}
#message-box button:hover {
background: var(--sleek-button-hover);
transform: translateY(-1px);
}
/* --- Task List Panel --- */
#task-list-toggle {
position: fixed;
bottom: 2vmin;
left: 2vmin;
z-index: 30;
background: var(--sleek-bg);
border: 1px solid var(--sleek-border);
border-radius: 50%; /* Circular button by default */
width: 6vmin;
height: 6vmin;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
transition: transform 0.3s ease, background 0.2s ease, border-radius 0.3s ease, bottom 0.3s ease, width 0.3s ease, height 0.3s ease; /* Added width/height */
backdrop-filter: blur(5px);
}
#task-list-toggle:hover {
background: var(--sleek-button-hover);
transform: scale(1.05);
}
#task-list-toggle svg {
width: 70%;
height: 70%;
fill: var(--sleek-text);
transition: transform 0.3s ease; /* Smooth rotation */
}
/* When task list is expanded, the toggle button changes shape and position */
#task-list-toggle.expanded {
border-radius: 15px; /* Change to rounded rectangle when expanded */
bottom: calc(2vmin + var(--task-list-height)); /* Position directly above panel */
width: 40vmin; /* Match panel width */
height: 4vmin; /* Smaller height for bar */
left: 2vmin;
justify-content: flex-start;
padding-left: 1.5vmin;
}
#task-list-toggle.expanded span {
display: block; /* Show text */
margin-left: 1vmin;
font-size: 2vmin;
color: var(--sleek-text);
font-family: 'Poppins', sans-serif;
white-space: nowrap;
}
#task-list-toggle span {
display: none; /* Hide text by default */
}
#task-list-panel {
position: fixed;
bottom: 2vmin;
left: 2vmin;
z-index: 29; /* Below toggle button */
background: var(--sleek-bg);
border: 1px solid var(--sleek-border);
border-radius: 15px;
padding: 2vmin;
width: 40vmin; /* Fixed width for the panel */
max-height: calc(100vh - 20vmin); /* Max height to prevent overflow */
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
transition: transform 0.3s ease, opacity 0.3s ease;
transform: translateY(100%); /* Initially hidden below screen */
opacity: 0;
pointer-events: none; /* Do not block clicks when hidden */
display: flex;
flex-direction: column;
gap: 1.5vmin;
backdrop-filter: blur(5px);
overflow-y: auto; /* Enable scrolling for tasks */
}
#task-list-panel.visible {
transform: translateY(0); /* Slide up into view */
opacity: 1;
pointer-events: auto; /* Enable clicks when visible */
}
.task-input-group {
display: flex;
gap: 1vmin;
width: 100%;
}
#new-task-input {
flex-grow: 1;
padding: 1vmin 1.5vmin;
background: var(--sleek-input-bg);
border: 1px solid var(--sleek-input-border);
border-radius: 8px;
color: var(--sleek-text);
font-family: 'Poppins', sans-serif;
font-size: 1.8vmin;
outline: none;
}
#add-task-btn {
padding: 1vmin 1.5vmin;
background: var(--sleek-accent);
border: none;
border-radius: 8px;
color: #fff;
font-family: 'Poppins', sans-serif;
font-size: 1.8vmin;
cursor: pointer;
transition: background 0.2s;
}
#add-task-btn:hover {
background: #6ab0d1; /* Slightly darker accent */
}
#tasks-list {
list-style: none;
display: flex;
flex-direction: column;
gap: 0.8vmin;
padding: 0;
margin: 0;
}
.task-item {
display: flex;
align-items: center;
background: rgba(0, 0, 0, 0.2);
padding: 0.8vmin 1.2vmin;
border-radius: 8px;
font-size: 1.8vmin;
color: var(--sleek-text);
transition: background 0.2s;
}
.task-item.completed {
text-decoration: line-through;
color: rgba(255, 255, 255, 0.5);
background: rgba(0, 0, 0, 0.1);
}
.task-item input[type="checkbox"] {
margin-right: 1vmin;
width: 1.8vmin;
height: 1.8vmin;
cursor: pointer;
accent-color: var(--sleek-accent); /* Style checkbox */
}
.task-item span {
flex-grow: 1;
}
.task-item .delete-btn {
background: none;
border: none;
color: rgba(255, 255, 255, 0.7);
font-size: 2vmin;
margin-left: 1vmin;
cursor: pointer;
transition: color 0.2s;
}
.task-item .delete-btn:hover {
color: #ff4d4d; /* Red on hover */
}
/* --- Patreon Button --- */
#patreon-button {
position: fixed;
bottom: 2vmin;
right: 2vmin;
z-index: 30;
background-color: #FF424D; /* Patreon red */
border: none;
border-radius: 12px; /* Rounded corners */
padding: 1.5vmin 2.5vmin;
display: flex;
align-items: center;
gap: 1vmin;
cursor: pointer;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
text-decoration: none; /* Remove underline for link */
}
#patreon-button:hover {
background-color: #e63946; /* Slightly darker red on hover */
transform: translateY(-2px); /* Subtle lift */
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
#patreon-button:active {
background-color: #cc333d; /* Even darker on active */
transform: translateY(0);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
#patreon-button svg {
width: 2.5vmin;
height: 2.5vmin;
fill: #fff; /* White heart icon */
}
#patreon-button span {
color: #fff; /* White text */
font-family: 'Poppins', sans-serif;
font-weight: 600;
font-size: 2vmin;
white-space: nowrap;
}
/* --- Event Timeline --- */
#timeline-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 5vmin; /* Height of the timeline bar */
background: rgba(0, 0, 0, 0.2); /* Semi-transparent background */
z-index: 25; /* Above sky, below main UI */
overflow-x: scroll; /* Enable horizontal scrolling */
overflow-y: hidden; /* Hide vertical scrollbar */
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
backdrop-filter: blur(3px);
display: flex; /* Use flexbox for inner content */
align-items: center;
scroll-behavior: smooth; /* Smooth scrolling for JS updates */
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
/* Hide scrollbar for Webkit browsers */
#timeline-container::-webkit-scrollbar {
display: none;
}
#timeline-content {
position: relative; /* All event markers are positioned relative to this */
height: 100%;
/* Width will be set dynamically by JS to cover many days */
min-width: 100%; /* Ensure it's at least as wide as the container */
display: flex;
align-items: center;
}
/* The blue line is now fixed relative to the viewport, outside the scrolling container */
#timeline-current-time-marker {
position: fixed; /* Changed to fixed to be relative to viewport */
top: 0; /* Will be adjusted by JS to align with timeline-container's top */
left: 50%; /* Center horizontally on the screen */
transform: translateX(-50%); /* Adjust for its own width */
width: 2px;
height: 5vmin; /* Match timeline-container height */