-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
2470 lines (2120 loc) · 117 KB
/
Copy pathindex.html
File metadata and controls
2470 lines (2120 loc) · 117 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, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<meta name="description" content="Breathe Please - A minimalist mindfulness application.">
<title>Breathe Please</title>
<meta name="theme-color" content="#000000" id="themeColorMeta">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" id="appleStatusBar">
<meta name="apple-mobile-web-app-title" content="ConCal">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="manifest" href="manifest.json">
<link rel="icon" href="icon-512.png" type="image/jpeg">
<style>
@import url('https://fonts.googleapis.com/css2?family=Asap:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Be+Vietnam+Pro:wght@400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&family=Crimson+Pro:ital,wght@0,200..900;1,200..900&family=Inter:wght@300;400;500;600;700&family=Nunito+Sans:wght@300;400;600&family=Source+Sans+3:wght@300;400;500&display=swap');
:root {
/* --- FREEDOM MODE (Morning Energy: Bright & Peaceful) --- */
/* Background: Morning Mist Gradient (Crisp White to Soft Airy Blue) */
--bg-color: radial-gradient(circle at center, #FFFFFF 0%, #D1EAFF 100%);
--text-color: #002838; /* Deep Navy for readability */
--subtle-text: #598596;
/* Accent: Daybreak Blue (Vibrant & Energetic) */
--accent-happy: #0091EA;
--accent-text: #0077C2;
--btn-active-text: #FFFFFF;
/* UPDATED: Lower opacity for Frosty Effect */
--modal-bg: rgba(240, 250, 255, 0.65);
--modal-shadow: rgba(0, 145, 234, 0.12);
--modal-border: rgba(255, 255, 255, 0.5); /* Lighter border for glass */
--btn-border: rgba(0, 145, 234, 0.3);
--btn-hover-bg: rgba(0, 145, 234, 0.08);
--ios-btn-bg: rgba(255, 255, 255, 0.5);
--ios-btn-border: rgba(0, 145, 234, 0.25);
--ios-btn-hover: #fff;
--ios-btn-text: #002838;
--control-bg: transparent;
--control-active-bg: #FFFFFF;
--timer-color: #598596;
/* --- 3D SPHERE (Freedom: Morning Dewdrop) --- */
/* High Gloss, Clean Whites, Fresh Cyans */
--sphere-highlight: rgba(255, 255, 255, 1.0);
--sphere-tint: rgba(64, 196, 255, 0.5);
--sphere-mid: rgba(0, 145, 234, 0.35);
--sphere-shadow: rgba(1, 87, 155, 0.15);
/* Status Colors */
--status-red: #FF3B30;
--status-green: #34C759;
}
[data-theme="dark"] {
/* --- FOCUS MODE (Concentration & Depth) --- */
/* Background: Darker Galactic Void Gradient */
--bg-color: radial-gradient(circle at center, #240a36 0%, #050008 100%);
--text-color: #F3E5F5;
--subtle-text: #AA90B5;
/* Accent: Deep Royal Indigo */
--accent-happy: #6200EA;
--accent-text: #9D46FF;
--btn-active-text: #FFFFFF;
/* UPDATED: Lower opacity for Frosty Effect */
--modal-bg: rgba(15, 5, 25, 0.65);
--modal-shadow: rgba(0, 0, 0, 0.85);
--modal-border: rgba(98, 0, 234, 0.3);
--btn-border: rgba(98, 0, 234, 0.5);
--btn-hover-bg: rgba(98, 0, 234, 0.2);
--ios-btn-bg: rgba(255, 255, 255, 0.08);
--ios-btn-border: rgba(98, 0, 234, 0.4);
--ios-btn-hover: rgba(255, 255, 255, 0.15);
--ios-btn-text: #F3E5F5;
--control-bg: transparent;
--control-active-bg: #1A052A;
--timer-color: #AA90B5;
/* --- 3D SPHERE (Focus: Deep Amethyst) --- */
--sphere-highlight: rgba(200, 160, 255, 0.6);
--sphere-tint: rgba(98, 0, 234, 0.5);
--sphere-mid: rgba(40, 0, 80, 0.9);
--sphere-shadow: rgba(0, 0, 0, 1);
--status-red: #FF453A;
--status-green: #32D74B;
}
[data-theme="blue"] {
/* --- PEACE MODE (Calm & Sleep) --- */
/* Background: Midnight Trench Gradient */
--bg-color: radial-gradient(circle at center, #0d2138 0%, #010205 100%);
--text-color: #E1F5FE;
--subtle-text: #81D4FA;
/* Accent: Neon Azure */
--accent-happy: #2196F3;
--accent-text: #64B5F6;
--btn-active-text: #FFFFFF;
/* UPDATED: Lower opacity for Frosty Effect */
--modal-bg: rgba(5, 12, 25, 0.65);
--modal-shadow: rgba(0, 0, 0, 0.8);
--modal-border: rgba(33, 150, 243, 0.3);
--btn-border: rgba(33, 150, 243, 0.5);
--btn-hover-bg: rgba(33, 150, 243, 0.2);
--ios-btn-bg: rgba(255, 255, 255, 0.08);
--ios-btn-border: rgba(33, 150, 243, 0.4);
--ios-btn-hover: rgba(255, 255, 255, 0.15);
--ios-btn-text: #E1F5FE;
--control-bg: transparent;
--control-active-bg: #0A182E;
--timer-color: #81D4FA;
/* --- 3D SPHERE (Peace: Sapphire Depth) --- */
--sphere-highlight: rgba(180, 230, 255, 0.7);
--sphere-tint: rgba(33, 150, 243, 0.5);
--sphere-mid: rgba(5, 50, 100, 0.8);
--sphere-shadow: rgba(0, 0, 10, 1);
}
[data-theme="green"] {
/* --- WISE MODE (Nature & Grounding) --- */
/* Background: Deep Crystalline Green Gradient */
--bg-color: radial-gradient(circle at center, #072e20 0%, #000502 100%);
--text-color: #E0F2F1;
--subtle-text: #69F0AE;
/* Accent: Mature Emerald/Jade */
--accent-happy: #00A86B;
--accent-text: #69F0AE;
--btn-active-text: #001005;
/* UPDATED: Lower opacity for Frosty Effect */
--modal-bg: rgba(2, 25, 18, 0.65);
--modal-shadow: rgba(0, 0, 0, 0.8);
--modal-border: rgba(0, 168, 107, 0.3);
--btn-border: rgba(0, 168, 107, 0.4);
--btn-hover-bg: rgba(0, 168, 107, 0.15);
--ios-btn-bg: rgba(255, 255, 255, 0.08);
--ios-btn-border: rgba(0, 168, 107, 0.3);
--ios-btn-hover: rgba(255, 255, 255, 0.15);
--ios-btn-text: #E0F2F1;
--control-bg: transparent;
--control-active-bg: #032E1F;
--timer-color: #69F0AE;
/* --- 3D SPHERE (Wise: Solid Emerald) --- */
--sphere-highlight: rgba(200, 255, 220, 0.6);
--sphere-tint: rgba(0, 168, 107, 0.5);
--sphere-mid: rgba(0, 60, 40, 0.8);
--sphere-shadow: rgba(0, 15, 5, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
background: var(--bg-color);
min-height: 100vh;
display: flex;
flex-direction: column;
font-family: 'Inter', sans-serif;
overflow: hidden;
position: relative;
color: var(--text-color);
transition: background 0.5s ease, color 0.5s ease;
}
/* Background & Animation */
.breathing-bg {
position: fixed;
/* CENTER LOCKING */
top: 50%;
left: 50%;
/* 3D GLOSSY FROSTY SPHERE CSS */
width: 55vmin; height: 55vmin;
border-radius: 50%;
background: radial-gradient(circle at 30% 30%,
var(--sphere-highlight) 0%,
var(--sphere-tint) 20%,
var(--sphere-mid) 60%,
var(--sphere-shadow) 100%
);
box-shadow:
inset -20px -20px 60px var(--sphere-shadow),
inset 10px 10px 30px var(--sphere-highlight),
inset 0 0 100px var(--sphere-mid),
0 20px 60px var(--sphere-shadow);
z-index: 0;
pointer-events: none;
filter: blur(20px);
transform: translate(-50%, -50%) scale(0.8);
opacity: 0.9;
will-change: transform, opacity;
transition: background 0.5s ease, opacity 0.5s ease, box-shadow 0.5s ease;
}
.breathing-active {
animation: breathe 12s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
/* DRAMATIC ANIMATION (0.6x to 3.2x) */
@keyframes breathe {
0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.5; }
33.333% { transform: translate(-50%, -50%) scale(3.2); opacity: 1; }
66.666% { transform: translate(-50%, -50%) scale(3.2); opacity: 1; }
100% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.5; }
}
/* Interactive Liquid Ripple */
.ripple-overlay {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
pointer-events: none; z-index: 1;
}
.ripple-wave {
position: absolute;
transform: translate(-50%, -50%);
border-radius: 50%;
will-change: width, height, opacity, box-shadow;
border: 1px solid var(--sphere-highlight);
box-shadow: 0 0 15px 2px var(--sphere-mid), inset 0 0 10px 0 var(--sphere-highlight);
opacity: 0;
pointer-events: none;
animation: ripple-spread 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes ripple-spread {
0% { width: 10px; height: 10px; opacity: 0.6; border-width: 2px; }
100% { width: 120vmax; height: 120vmax; opacity: 0; border-width: 0px; box-shadow: 0 0 50px 20px var(--sphere-shadow); }
}
/* --- HEADER LAYOUT --- */
.header {
padding: 40px 50px;
position: relative; top: 0; left: 0; width: 100%;
height: 100px;
z-index: 100;
display: flex; justify-content: space-between; align-items: center;
transition: opacity 0.5s ease;
}
/* UPDATED: Fixed size for ALL Main Screen Button Icons (including Sound) */
.fullscreen-btn svg,
.info-icon svg,
.sound-icon,
.mode-icon svg {
width: 24px;
height: 24px;
fill: currentColor;
}
/* Maintain clamp for settings panel icon to avoid shrinking it accidentally */
.setting-icon svg {
width: clamp(24px, 5vw, 28px);
height: clamp(24px, 5vw, 28px);
}
.sound-icon {
display: block;
transition: all 0.3s ease;
}
@keyframes button-breathe {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.08); }
}
/* UPDATED: Main Screen Buttons Uniform Styles (Opacity 0.35) */
.fullscreen-btn,
.info-btn,
.sound-btn,
.mode-icon-btn {
background: none;
border: none;
cursor: pointer;
color: var(--subtle-text);
opacity: 0.35; /* NEW DEFAULT OPACITY */
transition: all 0.3s ease;
display: flex; align-items: center; justify-content: center;
padding: 6px;
width: 40px; height: 40px;
/* Ensure Mode Icon Btn resets */
border-radius: 50%;
}
.fullscreen-btn:hover,
.info-btn:hover,
.sound-btn:hover,
.mode-icon-btn:hover {
color: var(--accent-happy);
opacity: 1;
animation: button-breathe 3s ease-in-out infinite;
/* Ensure mode button hover bg logic is preserved or reset if desired */
background: var(--btn-hover-bg);
}
.fullscreen-btn:hover, .info-btn:hover { background: none; } /* keep top buttons clean */
/* Icon Switcher Logic */
.fullscreen-btn .icon-compress { display: none; }
.fullscreen-btn .icon-expand { display: block; }
body.fullscreen-active .fullscreen-btn .icon-expand { display: none; }
body.fullscreen-active .fullscreen-btn .icon-compress { display: block; }
/* SOUND ICON TOGGLE LOGIC */
.sound-btn .icon-mute { display: none; }
.sound-btn.muted-state .icon-mute { display: block; }
.sound-btn.muted-state .icon-sound { display: none; }
/* Disable animation when muted */
.sound-btn.muted-state .sound-icon { animation: none !important; filter: none !important; }
.app-title-header {
position: absolute;
left: 50%; top: 50%;
transform: translate(-50%, -50%);
font-family: 'Asap', sans-serif;
font-size: 0.85rem;
font-weight: 400;
color: var(--subtle-text);
opacity: 0.5;
letter-spacing: 0.5px;
user-select: none;
transition: opacity 0.5s ease;
white-space: nowrap;
z-index: 101;
text-shadow: 0 0 20px var(--bg-color);
cursor: pointer;
}
.app-title-header:hover { opacity: 1; }
body.fullscreen-active .bottom-bar,
body.fullscreen-active .sound-control,
body.fullscreen-active .app-title-header {
opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
body.fullscreen-active .fullscreen-btn,
body.fullscreen-active .info-btn {
opacity: 0.5;
pointer-events: auto;
}
body.fullscreen-active .fullscreen-btn:hover,
body.fullscreen-active .info-btn:hover { opacity: 1; }
/* GRAPHIC MODE LOGIC */
.graphic-mode .quote-box,
.graphic-mode .timer-container,
.graphic-mode .breath-cycle-text {
opacity: 0 !important;
pointer-events: none !important;
transition: opacity 0.5s ease;
}
/* Modals */
.info-overlay, .author-overlay, .intro-overlay, .disclaimer-overlay {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0,0,0,0.2);
/* This is the background overlay blur, kept distinct from the box blur */
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
z-index: 200; display: flex; justify-content: center; align-items: center;
opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.info-overlay.active, .author-overlay.active, .disclaimer-overlay.active { opacity: 1; pointer-events: all; }
.intro-overlay {
z-index: 300; background: var(--bg-color); backdrop-filter: none;
opacity: 1; pointer-events: all;
transition: opacity 1.5s ease, filter 1.5s ease, transform 1.5s ease;
filter: blur(0px); transform: scale(1);
}
.intro-overlay.hidden { opacity: 0; pointer-events: none; filter: blur(15px); transform: scale(1.05); }
/* UPDATED: Frosty Glass Panel Style */
.info-box, .author-box, .intro-box, .disclaimer-box {
background: var(--modal-bg);
/* KEY UPDATE: Backdrop filter added directly to boxes */
backdrop-filter: blur(35px);
-webkit-backdrop-filter: blur(35px);
border-radius: 24px;
box-shadow: 0 15px 50px var(--modal-shadow);
width: min(650px, 88vw);
max-height: 90svh;
text-align: center;
transform: translateY(20px);
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
position: relative; border: 1px solid var(--modal-border);
display: flex; flex-direction: column; overflow: hidden; padding: 0;
}
.info-overlay.active .info-box,
.author-overlay.active .author-box,
.intro-overlay .intro-box,
.disclaimer-overlay.active .disclaimer-box { transform: translateY(0); }
/* Panel Structure - Optimized for "Seamless Look" */
.panel-header {
padding: 30px 30px 10px 30px;
flex-shrink: 0;
}
.panel-scrollable-content {
flex: 1;
overflow-y: auto;
padding: 5px 30px;
-webkit-overflow-scrolling: touch;
}
.panel-scrollable-content::-webkit-scrollbar { width: 4px; }
.panel-scrollable-content::-webkit-scrollbar-thumb { background-color: var(--subtle-text); border-radius: 4px; }
.panel-footer {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 30px 30px 30px;
flex-shrink: 0;
background: transparent;
z-index: 2;
}
.footer-left {
display: flex;
gap: 12px;
align-items: flex-start;
flex-wrap: wrap;
}
.footer-right {
text-align: right;
display: flex;
flex-direction: column;
justify-content: center;
}
.intro-box {
padding: clamp(40px, 8vmin, 80px);
display: flex; flex-direction: column; justify-content: center; align-items: center;
width: min(550px, 88vw); max-height: 90svh; overflow-y: auto;
}
.author-box, .disclaimer-box { padding: 0; }
/* UPDATED: Modal Text Containers with Light Background & Scrollbar */
.author-list-container, .disclaimer-content {
overflow-y: auto;
margin: 10px 20px 20px 20px;
padding: 25px;
text-align: left;
flex: 1;
/* NEW STYLES for Legibility */
background-color: rgba(255, 255, 255, 0.85);
color: #000000;
font-family: 'Crimson Pro', serif;
font-size: 1.1rem;
line-height: 1.6;
border-radius: 12px;
box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}
/* Custom Scrollbar for Modal Text Containers */
.author-list-container::-webkit-scrollbar,
.disclaimer-content::-webkit-scrollbar {
width: 6px;
}
.author-list-container::-webkit-scrollbar-track,
.disclaimer-content::-webkit-scrollbar-track {
background: rgba(0,0,0,0.05);
}
.author-list-container::-webkit-scrollbar-thumb,
.disclaimer-content::-webkit-scrollbar-thumb {
background-color: var(--accent-happy);
border-radius: 10px;
}
.author-box .info-title, .disclaimer-box .info-title {
margin-top: clamp(35px, 6vmin, 50px);
margin-bottom: 20px;
}
.author-item {
font-family: 'Crimson Pro', serif; font-size: 1.1rem;
color: #000000; padding: 12px 0;
border-bottom: 1px solid rgba(0,0,0,0.1);
}
.author-item:last-child { border-bottom: none; }
.disclaimer-content h3 { font-family: 'Source Sans 3', sans-serif; font-size: 1em; margin-top: 25px; margin-bottom: 10px; color: #000000; font-weight: 600; }
.disclaimer-content h3:first-child { margin-top: 0; }
.disclaimer-content p { font-family: 'Crimson Pro', serif; font-size: 1.1rem; color: #000000; line-height: 1.6; margin-bottom: 15px; padding: 0; text-align: left; }
.info-logo {
margin: 0 auto 10px auto; display: block; fill: none;
stroke: var(--accent-happy); stroke-width: 2.5;
stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.5s ease;
animation: lotus-spin 30s linear infinite;
}
.intro-box .info-logo { width: clamp(80px, 18vmin, 110px); height: clamp(80px, 18vmin, 110px); margin-bottom: clamp(30px, 6vmin, 50px); stroke-width: 2; }
.info-box .info-logo { width: 36px; height: 36px; margin-bottom: 6px; }
.info-title { font-family: 'Asap', sans-serif; font-size: 1.5em; color: var(--text-color); margin-bottom: 2px; font-weight: 600; }
/* VERSION TEXT CSS */
.info-version { font-family: 'Inter', sans-serif; font-size: 0.6em; color: var(--subtle-text); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; font-weight: 500; display: block; }
.about-text-small {
font-family: 'Inter', sans-serif;
font-size: 0.9rem;
color: var(--subtle-text);
line-height: 1.6;
margin-bottom: 5px;
margin-top: 5px;
text-align: center;
opacity: 0.9;
max-width: 90%;
margin-left: auto;
margin-right: auto;
}
.intro-main-text {
font-family: 'Inter', sans-serif;
font-size: clamp(0.8rem, 2.5vw, 0.95rem);
color: var(--text-color);
line-height: 1.7;
margin-top: 0;
margin-bottom: clamp(20px, 4vmin, 30px);
padding: 0 clamp(10px, 3vw, 20px);
font-weight: 400;
max-width: 600px;
}
.intro-box .info-title {
color: var(--accent-happy);
font-size: clamp(2rem, 5vw, 2.8rem);
margin-bottom: 24px;
}
.intro-tweak-text {
font-family: 'Inter', sans-serif; font-size: clamp(0.75rem, 2.5vw, 0.9rem);
color: var(--subtle-text); line-height: 1.6;
margin-bottom: clamp(40px, 8vmin, 60px); padding: 0 clamp(10px, 3vw, 20px);
font-weight: 400; max-width: 600px; opacity: 0.8;
}
.splash-actions { display: flex; flex-direction: column; align-items: center; gap: clamp(25px, 5vmin, 40px); margin-top: 0; width: 100%; }
.splash-btn-group {
display: flex; gap: 20px;
width: 100%;
justify-content: center;
flex-wrap: wrap;
}
.splash-checkbox-wrapper { display: flex; align-items: center; justify-content: center; gap: 8px; }
.splash-label { font-family: 'Inter', sans-serif; font-size: 0.8em; color: var(--subtle-text); font-weight: 400; }
.start-btn {
background: var(--ios-btn-bg);
border: 1px solid var(--ios-btn-border);
color: var(--ios-btn-text);
padding: 10px 28px;
border-radius: 50px;
cursor: pointer; font-family: 'Inter', sans-serif;
font-size: 0.9rem;
font-weight: 400;
transition: all 0.3s ease;
min-width: 140px;
backdrop-filter: blur(12px);
letter-spacing: 0.5px;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
.start-btn:hover {
background: var(--accent-happy);
color: #FFFFFF;
border-color: var(--accent-happy);
transform: scale(1.03);
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
animation: button-breathe 3s ease-in-out infinite;
}
/* Mode Icon Button Specifics */
.mode-icon-btn {
backdrop-filter: blur(4px);
}
.mode-icon-btn:active { transform: scale(0.96); }
.mode-icon {
/* Width/Height now handled by svg rule above */
display: none;
}
.info-footer-text {
font-size: clamp(0.7rem, 2vmin, 0.75rem); color: var(--subtle-text);
font-weight: 500; text-transform: none; letter-spacing: 0.5px; line-height: 1.6;
}
.creator-link {
color: var(--accent-text); text-decoration: none;
border-bottom: 1px dotted var(--accent-text); transition: all 0.3s ease;
}
.creator-link:hover { color: var(--accent-happy); border-color: var(--accent-happy); opacity: 0.8; }
.close-modal {
position: absolute; top: 15px; right: 15px; background: none; border: none;
cursor: pointer; color: var(--subtle-text); font-size: 24px; line-height: 1;
transition: color 0.2s; padding: 5px; z-index: 10;
}
.close-modal:hover { color: var(--text-color); }
.settings-container {
display: grid;
grid-template-columns: 1fr;
gap: 10px;
width: 100%;
margin-top: 10px;
}
.setting-row {
display: grid;
grid-template-columns: clamp(120px, 30vw, 150px) 1fr;
align-items: center;
gap: 15px;
background: transparent;
transition: opacity 0.4s ease;
min-height: 38px;
}
.setting-row.disabled-row {
opacity: 0.3;
pointer-events: none;
filter: grayscale(100%);
}
.setting-label {
font-size: 0.75rem;
color: var(--subtle-text);
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
text-align: left;
white-space: nowrap;
display: flex; align-items: center; gap: 8px;
}
.toggle-group {
display: flex;
gap: 6px;
width: 100%;
flex-wrap: wrap;
}
.toggle-btn {
flex: 1;
height: 28px;
font-size: 0.7rem;
padding: 0 8px;
background: transparent;
border: 1px solid var(--btn-border);
color: var(--subtle-text);
border-radius: 50px;
cursor: pointer;
font-family: 'Inter', sans-serif;
font-weight: 400;
transition: all 0.3s ease;
backdrop-filter: blur(4px);
white-space: nowrap;
letter-spacing: 0.5px;
text-align: center;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
}
.toggle-btn:hover {
background: var(--btn-hover-bg);
color: var(--accent-text);
border-color: var(--accent-happy);
transform: scale(1.02);
box-shadow: 0 0 5px var(--btn-hover-bg);
}
.toggle-btn.active {
background: var(--btn-hover-bg);
color: var(--text-color);
border-color: var(--accent-happy);
font-weight: 600;
box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
/* UPDATED: OFF BUTTONS (RED & GLOWING) */
.toggle-btn.active#trackBtnOff,
.toggle-btn.active#bellBtnOff {
color: var(--status-red);
border-color: var(--status-red);
background: rgba(255, 59, 48, 0.1);
box-shadow: 0 0 8px rgba(255, 59, 48, 0.3);
}
/* UPDATED: ON BUTTONS (GREEN & GLOWING) */
.toggle-btn.active#trackBtnOn,
.toggle-btn.active#bellBtnOn {
color: var(--status-green);
border-color: var(--status-green);
background: rgba(52, 199, 89, 0.1);
box-shadow: 0 0 8px rgba(52, 199, 89, 0.3);
}
.toggle-btn.disabled {
opacity: 0.5; pointer-events: none;
}
/* THEME BUTTON COLORS - UPDATED TO GRADIENTS */
/* Freedom: Sky Blue Gradient */
#themeBtnLight {
background: linear-gradient(135deg, #40C4FF 0%, #0091EA 100%);
color: #FFFFFF;
border: none; font-weight: 600;
}
/* Focus: Deep Purple Gradient */
#themeBtnDark {
background: linear-gradient(135deg, #9D46FF 0%, #6200EA 100%);
color: #FFFFFF;
border: none; font-weight: 500;
}
/* UPDATED: Peace: Darker Desaturated Blue Grey Gradient */
#themeBtnBlue {
background: linear-gradient(135deg, #455A64 0%, #263238 100%);
color: #FFFFFF;
border: none; font-weight: 500;
}
/* Wise: Emerald Green Gradient */
#themeBtnGreen {
background: linear-gradient(135deg, #69F0AE 0%, #00A86B 100%);
color: #001005; /* Very dark green/black for contrast */
border: none; font-weight: 600;
}
.toggle-btn.active#themeBtnLight,
.toggle-btn.active#themeBtnDark,
.toggle-btn.active#themeBtnBlue,
.toggle-btn.active#themeBtnGreen {
box-shadow: 0 4px 12px rgba(0,0,0,0.2), inset 0 0 0 2px rgba(255,255,255,0.2);
transform: scale(1.03);
}
#fontBtnSerif { font-family: 'Crimson Text', serif; font-size: 1rem; }
#fontBtnSans { font-family: 'Source Sans 3', sans-serif; font-weight: 400; }
.waveform-icon { display: none; alignItems: flex-end; gap: 2px; height: 10px; margin-left: 2px; }
#trackBtnOn.active .waveform-icon,
#bellBtnOn.active .waveform-icon { display: inline-flex; color: currentColor; }
.waveform-icon span { display: block; width: 2px; background-color: currentColor; animation: wave 1s ease-in-out infinite; }
.waveform-icon span:nth-child(1) { height: 6px; animation-delay: 0s; }
.waveform-icon span:nth-child(2) { height: 10px; animation-delay: 0.1s; }
.waveform-icon span:nth-child(3) { height: 7px; animation-delay: 0.2s; }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 100%; } }
.btn-icon { width: 14px; height: 14px; }
/* Settings icon in panel retains variable sizing */
@keyframes icon-breathe-subtle { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes icon-rotate-slow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#modeSwitchBtn .book-icon svg { animation: icon-breathe-subtle 4s ease-in-out infinite; }
/* Sphere Icon now breathes like the Book Icon */
#modeSwitchBtn .sphere-icon svg { animation: icon-breathe-subtle 4s ease-in-out infinite; }
.line-control {
display: flex; align-items: center; justify-content: space-between;
position: relative; width: 100%; height: 28px; padding: 0;
}
.line-track {
position: absolute; top: 50%; left: 10px; right: 10px;
height: 1px; background: var(--subtle-text); opacity: 0.3;
transform: translateY(-50%); z-index: 0;
}
.footer-action-btn {
padding: 6px 16px; font-size: 0.7rem; background: transparent;
border: 1px solid var(--modal-border); color: var(--subtle-text);
border-radius: 50px; cursor: pointer; font-family: 'Inter', sans-serif;
font-weight: 500; transition: all 0.3s ease; letter-spacing: 0.5px;
text-align: center;
}
.footer-action-btn:hover { border-color: var(--accent-happy); color: var(--text-color); background: var(--btn-hover-bg); }
.theme-switch { position: relative; display: inline-block; width: 34px; height: 18px; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 12px; width: 12px; left: 3px; bottom: 3px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: var(--accent-happy); }
input:focus + .slider { box-shadow: 0 0 1px var(--accent-happy); }
input:checked + .slider:before { transform: translateX(16px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }
.lotus-container {
position: absolute; top: 22%; left: 50%; transform: translate(-50%, -50%);
z-index: 5; opacity: 0.9; pointer-events: auto; cursor: pointer; transition: opacity 0.3s;
}
.lotus-container:hover { opacity: 0.8; }
.lotus-active { animation: lotus-breathe 12s ease-in-out infinite; }
.lotus-icon { width: 40px; height: 40px; fill: none; stroke: var(--accent-happy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; animation: lotus-spin 30s linear infinite; }
@keyframes lotus-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.sound-control {
position: fixed; bottom: 90px; left: 50px; z-index: 100;
display: flex; align-items: center; gap: 12px; padding: 12px 16px;
background: var(--modal-bg); backdrop-filter: blur(5px);
border-radius: 8px; box-shadow: 0 4px 20px var(--modal-shadow);
opacity: 0; pointer-events: none; transform: translateY(10px);
transition: all 0.3s ease; font-family: 'Inter', sans-serif;
border: 1px solid var(--modal-border);
}
.sound-control.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.sound-label { font-size: 10px; color: var(--subtle-text); font-family: 'Inter', sans-serif; font-weight: 500; min-width: 35px; text-align: left; }
.mute-btn { font-size: 16px; min-width: 24px; text-align: center; color: var(--subtle-text); cursor: pointer; background: none; border: none; display: flex; align-items: center; justify-content: center; transition: transform 0.1s; }
.mute-btn:active { transform: scale(0.9); }
.sound-btn.playing .sound-icon { fill: var(--accent-happy); filter: drop-shadow(0 0 8px var(--accent-happy)); animation: icon-pulse-glow 1.5s ease-in-out infinite; }
@keyframes icon-pulse-glow { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px var(--accent-happy)); opacity: 1; } 50% { transform: scale(1.15); filter: drop-shadow(0 0 12px var(--accent-happy)); opacity: 0.8; } }
.container { flex: 1; position: relative; width: 100%; overflow: hidden; z-index: 10; pointer-events: none; }
/* UPDATED: FIXED CENTER LOCKING FOR TEXT - 10px offset */
.quote-box {
position: fixed; /* Locked to viewport */
top: calc(50% + 32px); /* Moved down 30px from true center */
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
max-width: 1000px;
width: 100%;
padding: 0 48px;
pointer-events: auto;
z-index: 10; /* Above Sphere(0) and Ripple(1), below Modals(200) */
}
.quote-box.no-author { top: 50%; }
.quote-wrapper { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.quote-text.fs-2 { font-size: clamp(1.5rem, 3.2vw, 2.8rem); }
.quote-text.fs-2.sans-mode { font-size: clamp(1.5rem, 3vw, 2.6rem); }
.quote-text.fs-1 { font-size: clamp(1.1rem, 2.5vw, 2.0rem); }
.quote-text.fs-1.sans-mode { font-size: clamp(1.1rem, 2.3vw, 1.9rem); }
.quote-text.fs-3 { font-size: clamp(2.0rem, 4.5vw, 3.8rem); }
.quote-text.fs-3.sans-mode { font-size: clamp(2.0rem, 4.3vw, 3.6rem); }
.quote-text {
font-family: 'Crimson Text', 'Crimson Pro', serif;
font-weight: 400; color: var(--text-color); padding: 0 50px;
line-height: 1.5em; margin: 0;
transition: opacity 0.5s ease, font-family 0.3s ease, color 0.5s ease, font-size 0.5s ease;
opacity: 1; text-shadow: 0 1px 0 rgba(255,255,255,0.1);
user-select: none; word-spacing: 0.5px; cursor: pointer;
}
.quote-text.sans-mode { font-family: 'Source Sans 3', sans-serif; font-weight: 400; letter-spacing: 0px; line-height: 1.5em; }
.quote-text.force-sans { font-family: 'Source Sans 3', sans-serif !important; font-weight: 300 !important; letter-spacing: 0px; }
/* UPDATED: Uses Source Sans 3 for the breathing text */
.breathe-text-large {
font-family: 'Source Sans 3', sans-serif !important;
font-size: clamp(3rem, 10vw, 5rem) !important;
font-weight: 300 !important;
}
.quote-text.breathe-mode-active { opacity: 0.5 !important; transition: none !important; }
[data-theme="dark"] .quote-text.sans-mode,
[data-theme="blue"] .quote-text.sans-mode,
[data-theme="green"] .quote-text.sans-mode { font-weight: 300; }
.quote-author {
/* REPLACED Absolute Positioning with Relative Logic for Better Sync */
position: relative;
/* INCREASED MARGIN for substantial spacing */
margin-top: 8vh;
width: 100%; text-align: center;
font-size: 0.75em; color: var(--subtle-text); font-style: normal; font-family: 'Inter', sans-serif; font-weight: 400; letter-spacing: 1px; text-transform: uppercase;
/* Transition handled by animation loop logic mostly */
opacity: 0;
z-index: 10;
}
/* Helper class for immediate hiding */
.instant-hide {
opacity: 0 !important;
transition: none !important;
}
.text-faded { opacity: 0 !important; }
/* --- BOTTOM BAR --- */
.bottom-bar {
position: fixed; bottom: 40px; bottom: calc(40px + env(safe-area-inset-bottom));
left: 50px; right: 50px; display: flex; justify-content: space-between;
align-items: center; z-index: 150; opacity: 0.9; transition: opacity 0.5s ease;
pointer-events: none;
}
.bottom-bar > * { pointer-events: auto; }
.bottom-bar:hover { opacity: 1; }
.controls-left, .controls-center, .controls-right { display: flex; align-items: center; }
/* UPDATED: Added gap for line spacing */
.controls-center {
display: flex;
align-items: center;
justify-content: center;
flex: 1;
text-align: center;
flex-direction: column;
gap: 4px; /* Added spacing between lines */
}
.breath-cycle-text { font-family: 'Inter', sans-serif; font-size: clamp(0.65rem, 1.5vmin, 0.75rem); font-weight: 300; letter-spacing: 1px; word-spacing: 1px; color: var(--subtle-text); opacity: 0.5; letter-spacing: 0.5px; user-select: none; display: none; white-space: nowrap; }
/* --- UPDATED TIMER CONTAINER & ANIMATIONS --- */
@keyframes ring-expand {
0%, 100% {
top: 0; left: 0; right: 0; bottom: 0;
border-width: 1px;
opacity: 0.3;
}
50% {
top: -4px; left: -4px; right: -4px; bottom: -4px;
border-width: 1.5px;
opacity: 0.9;
}
}
.timer-container {
/* ABSOLUTE POSITIONING RETAINED FOR STABILITY */
position: absolute;
top: 75%; left: 50%; transform: translateX(-50%);
display: flex; align-items: center; justify-content: center;
/* Reduced gap to tighten the center elements */
gap: 4px;
color: var(--timer-color);
font-family: 'ASAP', sans-serif;
font-weight: 700;
line-height: 1;
/* MODIFIED: STRICT HIDDEN DEFAULT */
opacity: 0;
pointer-events: none;
transition: opacity 0.5s ease;
letter-spacing: 1.5px;
z-index: 10;
/* Ring Size (Kept responsive & slightly larger as requested previously) */
width: clamp(44px, 8vmin, 56px);
height: clamp(44px, 8vmin, 56px);
/* TEXT SIZE REDUCED for more padding */
font-size: clamp(.85rem, 2vmin, 0.95rem);
}