-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrontend-v2.html
More file actions
4561 lines (3881 loc) · 158 KB
/
frontend-v2.html
File metadata and controls
4561 lines (3881 loc) · 158 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>Nethra — Vision assistant</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Inter:wght@600&family=Lora:ital,wght@0,400..700;1,400..700&family=Noto+Color+Emoji&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<style>
.font-inter {
font-family: 'Inter', sans-serif;
}
.font-caveat {
font-family: "Caveat", cursive;
font-optical-sizing: auto;
font-weight: 500;
font-style: normal;
}
.lora-title {
font-family: "Lora", serif;
font-optical-sizing: auto;
font-weight: 600;
font-style: normal;
}
.partial-underline {
position: relative;
display: inline-block;
}
.partial-underline::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
height: 6px;
width: 50%;
background: linear-gradient(to right, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0));
border-radius: 2px;
transform: translateY(6px);
}
/* Glass Card Styles */
.glass-card {
background: rgba(255, 255, 255, 0.2);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
/* Reduced border thickness for better aesthetic while keeping glint visible */
border: 2px solid rgba(255, 255, 255, 0.3);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
/* Default size for desktop */
width: 220px;
height: 200px;
/* Ensure cards are always above navigation areas */
z-index: 20;
position: relative;
}
.glass-card.active {
background: rgba(255, 255, 255, 0.35);
transform: translateY(-20px) scale(1.05);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
/* Thinner border but more visible */
border: 3px solid rgba(255, 255, 255, 0.6);
z-index: 2; /* Ensure active card is on top */
opacity: 1 !important; /* Always fully visible */
}
.card-emoji {
font-size: 4rem; /* Larger emoji */
transition: transform 0.3s ease;
}
.glass-card.active .card-emoji {
transform: scale(1.2);
}
.carousel-container {
perspective: 1000px;
/* Fix: Added padding to prevent cards from getting cut off */
padding-top: 30px;
/* Fix: Ensure content doesn't overflow */
overflow: visible;
/* Ensure carousel container is above navigation areas */
position: relative;
z-index: 15;
}
.carousel-wrapper {
/* Remove any transition that might be moving cards */
transition: none;
display: flex;
justify-content: center;
align-items: center;
gap: 2rem;
/* Fix: Ensure the wrapper has enough space */
padding-top: 20px;
/* Ensure wrapper is above navigation areas */
position: relative;
z-index: 15;
}
.nav-area {
position: fixed; /* Changed from absolute to fixed */
top: 0;
height: 100vh; /* Full viewport height */
width: 50vw; /* Half viewport width */
z-index: 10; /* Below cards (z-index: 20) */
cursor: pointer;
opacity: 0;
/* Ensure nav areas don't overlap cards visually */
pointer-events: auto;
}
@media (max-aspect-ratio: 1/1), (max-width: 768px) {
.carousel-wrapper {
flex-direction: column;
align-items: center;
gap: 0.3rem; /* Reduced from 1rem for tighter vertical spacing */
padding: 0;
width: 100%;
}
.nav-area {
position: fixed;
left: 0;
width: 100vw;
height: 40vh;
}
.nav-area#prevBtn {
top: 0;
}
.nav-area#nextBtn {
bottom: 0;
top: auto;
}
/* Dock-like behavior for cards - larger inactive cards */
.glass-card {
width: 140px; /* Smaller base size */
height: 120px;
padding: 6px;
transform: scale(0.85); /* Increased from 0.7 for larger inactive cards */
/* Remove fixed opacity so we can control it with JS */
/* opacity: 0.8; */
margin: 0; /* Remove margin, we'll handle spacing with gap */
transition: all 0.3s ease, opacity 0.3s ease; /* Add opacity transition */
}
.glass-card.active {
transform: scale(1); /* Active card at full size */
opacity: 1 !important; /* Force fully visible */
width: 160px;
height: 140px;
}
.glass-card:not(.active) {
margin-top: -8px; /* Reduced vertical distance between cards */
}
.glass-card h3 {
font-size: 1.1rem;
margin-bottom: 0.25rem !important;
}
.card-emoji {
font-size: 2.2rem !important;
margin-top: 0.25rem !important;
}
/* Fixed positioning for carousel container - less space after subtitle */
.carousel-container {
position: absolute;
top: 28% !important; /* Reduced from 35% to bring cards closer to subtitle */
bottom: auto !important; /* Override previous settings */
left: 0;
right: 0;
width: 100%;
max-height: 65vh; /* Limit height to prevent overflow */
overflow-y: auto; /* Allow scrolling if needed */
overflow-x: hidden;
display: flex;
justify-content: center;
align-items: center;
margin: 0 auto;
padding: 0;
}
}
@media (max-width: 375px) {
.glass-card {
transform: scale(0.75); /* Increased from 0.6 for larger inactive cards */
}
.glass-card.active {
transform: scale(0.9);
width: 150px;
height: 130px;
}
.glass-card:not(.active) {
margin-top: -10px; /* Reduced vertical distance */
}
/* Ensure the title has enough space but not too much */
.carousel-container {
top: 32% !important; /* Reduced from 40% */
}
}
/* Fix: Add proper container height for desktop view */
@media (min-aspect-ratio: 1/1) and (min-width: 769px) {
.carousel-container {
height: auto;
min-height: 280px; /* Enough room for the card + transform */
position: absolute;
bottom: 140px; /* Adjusted position to ensure cards are fully visible */
left: 0;
right: 0;
}
}
</style>
<style>
/* From styles.css */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
background-color: rgb(240, 240, 240);
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 2vh;
overflow: hidden;
}
.hero-container {
width: 100%;
height: 96vh;
border-radius: 16px;
background-image: url('https://cdn-uploads.huggingface.co/production/uploads/6479f6dbed75e95d3e97bb4d/W_OaxgxXPxUsanOTCJvzB.png');
background-size: cover;
background-position: center;
position: relative;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.hero-content {
position: absolute;
top: 18%;
left: 50%;
transform: translateX(-50%);
color: rgb(10, 10, 10);
}
.hero-content h1 {
font-size: 4rem;
margin-bottom: 1rem;
font-weight: 700;
color: rgb(10, 10, 10);
}
.hero-content p {
font-size: 1.5rem;
max-width: 60%;
color: rgb(10, 10, 10);
}
/* Glass Container Styles - DYNAMIC OUTLINE */
.glass-container {
background: transparent;
backdrop-filter: none;
-webkit-backdrop-filter: none;
border-radius: 24px;
/* Remove the simple border, we'll use a pseudo-element for the dynamic border */
border: none;
box-shadow: none;
padding: 20px 30px;
margin: 0 auto;
max-width: 95%;
width: auto;
display: inline-block;
position: relative;
z-index: 15;
overflow: visible;
}
/* Create a dynamic border with a pseudo-element */
.glass-container::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: 24px;
z-index: -1;
/* Default horizontal outline position for center item (Camera) */
background: linear-gradient(90deg,
rgba(255, 255, 255, 0.08) 0%, /* Greatly reduced opacity from 0.25 to 0.08 */
rgba(255, 255, 255, 0.08) 30%, /* Greatly reduced opacity from 0.25 to 0.08 */
rgba(255, 255, 255, 0.6) 50%,
rgba(255, 255, 255, 0.08) 70%, /* Greatly reduced opacity from 0.25 to 0.08 */
rgba(255, 255, 255, 0.08) 100% /* Greatly reduced opacity from 0.25 to 0.08 */
);
/* Make only the outline visible by creating a cutout */
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
mask-composite: exclude;
-webkit-mask-composite: source-out;
padding: 2px; /* This controls border thickness */
box-sizing: border-box;
}
/* Card-specific dynamic borders - these will be toggled by JavaScript */
.glass-container.highlight-card-0::before {
background: linear-gradient(90deg,
rgba(255, 255, 255, 0.6) 0%,
rgba(255, 255, 255, 0.6) 15%, /* Extend the highlight slightly */
rgba(255, 255, 255, 0.08) 30%, /* Greatly reduced opacity from 0.25 to 0.08 */
rgba(255, 255, 255, 0.08) 100% /* Greatly reduced opacity from 0.25 to 0.08 */
);
}
.glass-container.highlight-card-1::before {
background: linear-gradient(90deg,
rgba(255, 255, 255, 0.08) 0%, /* Greatly reduced opacity from 0.25 to 0.08 */
rgba(255, 255, 255, 0.6) 35%, /* Changed from 30-50% to 35% for better positioning */
rgba(255, 255, 255, 0.6) 45%, /* Changed from 50% to 45% to shift highlight left */
rgba(255, 255, 255, 0.08) 60%, /* Changed from 70% to 60% for better positioning */
rgba(255, 255, 255, 0.08) 100% /* Greatly reduced opacity from 0.25 to 0.08 */
);
}
.glass-container.highlight-card-2::before {
background: linear-gradient(90deg,
rgba(255, 255, 255, 0.08) 0%, /* Greatly reduced opacity from 0.25 to 0.08 */
rgba(255, 255, 255, 0.08) 50%, /* Start highlight at same position as card 1 */
rgba(255, 255, 255, 0.6) 65%,
rgba(255, 255, 255, 0.08) 80% /* End at 80% to match card 1's length */
);
}
.glass-container.highlight-card-3::before {
background: linear-gradient(90deg,
rgba(255, 255, 255, 0.08) 0%, /* Greatly reduced opacity from 0.25 to 0.08 */
rgba(255, 255, 255, 0.08) 70%, /* Greatly reduced opacity from 0.25 to 0.08 */
rgba(255, 255, 255, 0.6) 85%,
rgba(255, 255, 255, 0.6) 100%
);
}
/* Portrait mode gradient borders */
@media (max-aspect-ratio: 1/1), (max-width: 768px) {
.glass-container::before {
/* Default vertical outline position for center item (Camera) */
background: linear-gradient(180deg,
rgba(255, 255, 255, 0.08) 0%, /* Greatly reduced opacity from 0.25 to 0.08 */
rgba(255, 255, 255, 0.08) 30%, /* Greatly reduced opacity from 0.25 to 0.08 */
rgba(255, 255, 255, 0.6) 50%,
rgba(255, 255, 255, 0.08) 70%, /* Greatly reduced opacity from 0.25 to 0.08 */
rgba(255, 255, 255, 0.08) 100% /* Greatly reduced opacity from 0.25 to 0.08 */
);
}
.glass-container.highlight-card-0::before {
background: linear-gradient(180deg,
rgba(255, 255, 255, 0.6) 5%,
rgba(255, 255, 255, 0.6) 20%,
rgba(255, 255, 255, 0.08) 35%, /* Greatly reduced opacity from 0.25 to 0.08 */
rgba(255, 255, 255, 0.08) 100% /* Greatly reduced opacity from 0.25 to 0.08 */
);
}
.glass-container.highlight-card-1::before {
background: linear-gradient(180deg,
rgba(255, 255, 255, 0.08) 0%, /* Greatly reduced opacity from 0.25 to 0.08 */
rgba(255, 255, 255, 0.6) 35%, /* Changed from 30% to 35% for better positioning */
rgba(255, 255, 255, 0.6) 45%, /* Changed from 50% to 45% to shift highlight up */
rgba(255, 255, 255, 0.08) 60%, /* Changed from 70% to 60% for better positioning */
rgba(255, 255, 255, 0.08) 100% /* Greatly reduced opacity from 0.25 to 0.08 */
);
}
.glass-container.highlight-card-2::before {
background: linear-gradient(180deg,
rgba(255, 255, 255, 0.08) 0%, /* Greatly reduced opacity from 0.25 to 0.08 */
rgba(255, 255, 255, 0.08) 50%, /* Start highlight at same position as card 1 */
rgba(255, 255, 255, 0.6) 65%,
rgba(255, 255, 255, 0.08) 80% /* End at 80% to match card 1's length */
);
}
.glass-container.highlight-card-3::before {
background: linear-gradient(180deg,
rgba(255, 255, 255, 0.08) 0%, /* Greatly reduced opacity from 0.25 to 0.08 */
rgba(255, 255, 255, 0.08) 70%, /* Greatly reduced opacity from 0.25 to 0.08 */
rgba(255, 255, 255, 0.6) 85%,
rgba(255, 255, 255, 0.6) 100%
);
}
}
/* Card Carousel Styles */
.carousel-container {
max-width: 100%;
padding: 0;
margin-bottom: 2rem;
overflow: visible; /* Changed from hidden to visible */
/* Fix: Add padding to prevent active card from being cut off */
padding-top: 30px;
display: flex;
justify-content: center;
}
.carousel-wrapper {
display: flex;
justify-content: center;
align-items: center;
gap: 1.5rem;
width: 100%;
/* Fix: Add padding to ensure active cards have room to expand upward */
padding-top: 20px;
}
.glass-card {
cursor: pointer;
border-radius: 1.5rem;
user-select: none;
position: relative;
overflow: visible;
transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
will-change: transform, opacity, box-shadow;
border: 2px solid rgba(255, 255, 255, 0.7);
z-index: 20;
box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
/* Add opacity transition for smooth fading */
opacity: 1;
/* Ensure the card is clickable by positioning it above navigation areas */
position: relative;
}
/* Make sure the active card has more presence and space to transform */
.glass-card.active {
/* Increase background opacity for more whiteness while keeping transparency */
background: rgba(255, 255, 255, 0.55);
/* Brighter border for better visibility */
border: 3px solid rgba(255, 255, 255, 0.9);
/* Enhanced glow effect */
box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
position: relative; /* Ensure positioning context */
/* Fix: Adjust to prevent the card from being cut off */
margin-top: 0;
}
/* Add a pulsing animation that can be applied on selection */
@keyframes pulse {
0% {
box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
border-color: rgba(255, 255, 255, 0.9);
background: rgba(255, 255, 255, 0.55);
}
50% {
box-shadow: 0 0 35px rgba(255, 255, 255, 0.8);
border-color: rgba(255, 255, 255, 1);
background: rgba(255, 255, 255, 0.65);
}
100% {
box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
border-color: rgba(255, 255, 255, 0.9);
background: rgba(255, 255, 255, 0.55);
}
}
.glass-card.pulse {
animation: pulse 0.7s ease-in-out;
}
/* Scroll Indicator Styles */
.scroll-indicator {
padding: 0.5rem 1rem;
border-radius: 30px;
background-color: rgba(0, 0, 0, 0.8);
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
backdrop-filter: blur(4px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
z-index: 30;
transition: opacity 0.3s ease;
}
.indicator-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background-color: rgba(160, 160, 160, 0.6);
transition: all 0.3s ease;
}
.indicator-dot.active {
background-color: white !important;
transform: scale(1.2);
box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}
/* Sound Wave Animation Styles */
.sound-wave-container {
position: absolute;
top: 20px;
left: 20px;
width: 50px;
height: 50px;
background-color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
z-index: 50;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sound-wave-container.speaking {
opacity: 1;
visibility: visible;
}
.sound-wave-icon {
width: 30px;
height: 20px;
display: flex;
align-items: center;
justify-content: space-between;
}
.sound-wave-icon span {
width: 3px;
height: 100%;
background-color: #000;
border-radius: 3px;
animation: sound-wave 1.2s ease-in-out infinite;
}
.sound-wave-icon span:nth-child(1) {
animation-delay: 0s;
height: 30%;
}
.sound-wave-icon span:nth-child(2) {
animation-delay: 0.2s;
height: 60%;
}
.sound-wave-icon span:nth-child(3) {
animation-delay: 0.4s;
height: 80%;
}
.sound-wave-icon span:nth-child(4) {
animation-delay: 0.6s;
height: 40%;
}
.sound-wave-icon span:nth-child(5) {
animation-delay: 0.8s;
height: 20%;
}
@keyframes sound-wave {
0%, 100% {
transform: scaleY(1);
}
50% {
transform: scaleY(2);
}
}
/* Responsive adjustments for sound wave icon */
@media (max-width: 640px) {
.sound-wave-container {
top: 15px;
left: 15px;
width: 40px;
height: 40px;
}
.sound-wave-icon {
width: 24px;
height: 16px;
}
.sound-wave-icon span {
width: 2px;
}
}
/* Responsive adjustments */
@media (max-width: 640px) {
.carousel-wrapper {
gap: 0.75rem;
}
.glass-card {
width: 160px; /* Smaller on mobile */
height: 140px;
padding: 0.75rem;
}
.glass-card h3 {
font-size: 1.25rem;
margin-bottom: 0.25rem;
}
.card-emoji {
font-size: 2.5rem;
margin-top: 0.25rem;
}
.hero-content h1 {
font-size: 2.5rem;
margin-bottom: 0.5rem;
}
.hero-content p {
font-size: 1.25rem;
max-width: 80%;
}
}
/* Extra small screens */
@media (max-width: 375px) {
.glass-card {
width: 140px;
height: 120px;
}
.glass-card h3 {
font-size: 1rem;
}
.card-emoji {
font-size: 2rem;
}
.hero-content h1 {
font-size: 2rem;
}
.hero-content p {
font-size: 1rem;
max-width: 90%;
}
}
/* Navigation area styles */
.nav-area {
position: fixed;
top: 0;
height: 100vh;
width: 50vw;
z-index: 10; /* Below the cards z-index of 20 */
cursor: pointer;
opacity: 0;
/* Make sure it doesn't capture events over cards */
pointer-events: auto;
}
/* Screen reader only class */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
/* Optional visual feedback for mouse users on hover */
.nav-area:hover {
background-color: rgba(255, 255, 255, 0.05);
}
/* Feedback state for touch */
.nav-area:active {
background-color: rgba(255, 255, 255, 0.1);
}
/* Portrait orientation specific styles */
@media (max-aspect-ratio: 1/1), (max-width: 768px) {
.carousel-wrapper {
flex-direction: column;
align-items: center;
gap: 0.3rem; /* Reduced from 0.5rem for tighter vertical spacing */
width: 100%;
padding: 0;
}
/* Position the nav areas at top and bottom */
.nav-area {
position: fixed;
left: 0;
width: 100vw;
height: 40vh;
z-index: 10; /* Keep below cards */
}
.nav-area#prevBtn {
top: 0;
height: 40vh;
}
.nav-area#nextBtn {
top: 60vh;
height: 40vh;
}
/* Implement dock-like behavior with larger inactive cards */
.glass-card {
width: 140px;
height: 120px;
margin: 0;
transform: scale(0.85); /* Increased from 0.7 for larger inactive cards */
transition: all 0.3s ease, opacity 0.3s ease; /* Add opacity to transition */
/* Remove the fixed opacity so we can control it with JS */
/* opacity: 0.8; */
}
/* Base state for active card */
.glass-card.active {
transform: scale(1);
opacity: 1 !important; /* Force active card to be fully visible */
width: 160px;
height: 140px;
z-index: 5; /* Ensure active card appears above others */
margin: 0.5rem 0; /* Add some spacing for the active card */
/* Increase background opacity for more whiteness */
background: rgba(255, 255, 255, 0.55);
/* Enhance border */
border: 3px solid rgba(255, 255, 255, 0.9);
box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}
/* Fix positioning for the entire carousel */
.carousel-container {
position: absolute;
top: 28%; /* Reduced from 35% to bring cards closer to subtitle */
bottom: auto;
left: 0;
right: 0;
max-height: 70vh;
display: flex;
justify-content: center;
align-items: center;
overflow-y: visible;
margin: 0 auto;
padding: 0;
/* Ensure it's above navigation areas */
z-index: 15;
}
/* Additional styling for card contents */
.glass-card h3 {
font-size: 1.1rem;
margin-bottom: 0.25rem;
transition: all 0.3s ease;
}
.card-emoji {
font-size: 2.2rem;
transition: all 0.3s ease;
}
.glass-card.active h3 {
font-size: 1.25rem;
}
.glass-card.active .card-emoji {
font-size: 2.5rem;
}
.scroll-indicator {
bottom: 5vh !important;
padding: 0.4rem 0.8rem;
gap: 0.5rem;
}
.indicator-dot {
width: 8px;
height: 8px;
}
.glass-container {
background: transparent;
padding: 15px;
width: auto;
max-width: 80%;
overflow: visible;
min-height: 240px;
/* Border is now handled by ::before */
border: none;
}
/* Fixed positioning for carousel container - less space after subtitle */
.carousel-container {
position: absolute;
top: 28% !important; /* Reduced from 35% to bring cards closer to subtitle */
bottom: auto !important; /* Override previous settings */
left: 0;
right: 0;
width: 100%;
max-height: 65vh; /* Limit height to prevent overflow */
overflow-y: auto; /* Allow scrolling if needed */
overflow-x: hidden;
display: flex;
justify-content: center;
align-items: center;
margin: 0 auto;
padding: 0;
}
}
/* Tighter spacing for very small devices */
@media (max-width: 375px) {
.carousel-container {
top: 32%; /* Reduced from 40% */
}
.carousel-wrapper {
gap: 0.2rem; /* Reduced from 0.25rem for tighter spacing on small devices */
}
.glass-card {
transform: scale(0.75); /* Increased from 0.6 for larger inactive cards */
width: 130px;
height: 110px;
}
.glass-card.active {
transform: scale(0.9);
width: 150px;
height: 130px;
}
.glass-card:not(.active) {
margin-top: -10px; /* Reduced from -20px for less aggressive overlap */
}
.scroll-indicator {
bottom: 3vh !important;
padding: 0.3rem 0.6rem;
}
.indicator-dot {
width: 6px;
height: 6px;
}
.glass-container {
background: transparent;
padding: 10px;
max-width: 85%;
/* Border is now handled by ::before */
border: none;
}
}
/* Specific desktop styles to fix cut off issue */
@media (min-aspect-ratio: 1/1) and (min-width: 769px) {
.carousel-container {
position: absolute;
bottom: 140px !important;
top: auto !important;
min-height: 280px; /* Space for cards even with transforms */
padding-top: 30px;
overflow: visible;
}
.carousel-wrapper {
padding-top: 20px; /* Extra space at top for transformed cards */
}
/* Adjust the active card transform to ensure it stays in view */
.glass-card.active {
transform: translateY(-20px) scale(1.05);
will-change: transform;
}
.glass-container {
background: transparent;
padding: 25px 40px;
min-width: 750px;
/* Border is now handled by ::before */
border: none;
}
}
/* Camera and Image Preview Styles */
#cameraContainer {
background-color: #000;
z-index: 100;
}
#videoElement {
width: 100%;
height: 100%;
object-fit: cover;
}
#captureButton {
width: 70px;
height: 70px;
background-color: rgba(255, 255, 255, 0.8);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
#captureButton div {
width: 54px;
height: 54px;
border: 3px solid #444;
border-radius: 50%;
}
#closeCameraButton {
padding: 10px;
font-size: 40px;
background: none;
border: none;
cursor: pointer;
color: white;
opacity: 0.8;
}
#closeCameraButton:hover {
opacity: 1;
}
/* Image Preview Modal */
#imagePreviewModal {
backdrop-filter: blur(8px);
}
#previewImage {
max-width: 90vw;
max-height: 70vh;
object-fit: contain;
border-radius: 12px;
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}
#confirmImageButton, #cancelImageButton {
padding: 12px 24px;
border: none;
border-radius: 30px;
cursor: pointer;
font-weight: bold;
font-size: 16px;
transition: transform 0.2s, box-shadow 0.2s;
}
#confirmImageButton:hover, #cancelImageButton:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}
#confirmImageButton {
background-color: #4CAF50;
color: white;
}
#cancelImageButton {
background-color: #f44336;
color: white;
}
@media (max-width: 640px) {
#captureButton {
width: 60px;
height: 60px;
}