forked from videomimic-1/videomimic-1.github.io
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyle.css
More file actions
1125 lines (981 loc) · 25.5 KB
/
style.css
File metadata and controls
1125 lines (981 loc) · 25.5 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
/* CSS styles for the article */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto+Mono:wght@300;700&display=swap');
body {
background-color: #fdfaf4;
font-family: 'Playfair Display', serif;
color: #1b1b1b;
padding: 60px 30px;
line-height: 1.6;
}
/* Responsive padding for mobile */
@media (max-width: 768px) {
body {
padding: 30px 15px;
}
}
.toc {
width: 180px;
font-family: 'Roboto Mono', monospace;
position: fixed;
top: 250px;
/* Hide TOC by default */
display: none;
/* left: max(30px, calc(25vw - 330px)); */ /* Move left positioning into media query */
z-index: 1000; /* Add a high z-index to ensure TOC stays on top */
}
/* Media Query: Apply styles only when viewport width is 1400px or wider */
@media (min-width: 1400px) {
.toc {
/* Show the TOC */
display: block;
/* Apply the calculated left position */
left: max(30px, calc(25vw - 330px));
}
}
.toc h3 {
font-family: 'Playfair Display', serif;
font-size: 24px;
margin-top: 0;
margin-bottom: 10px;
}
.toc hr {
border: 0;
height: 1px;
background-color: #ccc;
margin-bottom: 15px;
}
.toc ul {
list-style: none;
padding: 0;
margin: 0;
}
.toc li {
margin-bottom: 10px;
}
.toc a {
text-decoration: none;
color: #333;
font-size: 16px;
transition: color 0.2s ease;
}
.toc a:hover {
color: #000;
text-decoration: underline;
}
.main-content {
max-width: 960px;
margin: 0 auto;
}
.hero-text {
font-size: 60px;
font-weight: 700;
letter-spacing: -1px;
line-height: 1.1;
margin-bottom: 10px;
}
.sub-hero-text {
font-size: 40px;
font-weight: 400;
margin-bottom: 50px;
line-height: 1.2;
}
/* Responsive hero text */
@media (max-width: 768px) {
.hero-text {
font-size: 40px;
}
.sub-hero-text {
font-size: 28px;
margin-bottom: 30px;
}
}
/* New style for authors */
.authors {
font-family: 'Roboto Mono', monospace; /* Use a monospace font like taglines */
font-size: 16px; /* Slightly smaller font size */
color: #333; /* Dark grey color */
line-height: 1.6; /* Adjust line spacing */
margin-top: -32.5px; /* Reduce space below subtitle */
margin-bottom: 17.5px; /* Add space below authors */
text-align: left; /* Ensure left alignment */
}
.authors span { /* Style for affiliation/notes */
display: block; /* Put affiliation/note on new line */
font-size: 14px;
color: #555;
margin-top: 0px;
}
/* Style for the affiliation specifically */
.authors .affiliation {
/* Change from bold to a higher numeric weight */
/* font-weight: bold; */
/* Set font-weight to 700 (standard bold) */
font-weight: 600;
font-size: 16px;
color: #111;
}
/* Style for links within the authors block */
.authors a {
color: inherit; /* Inherit the color from the .authors class */
text-decoration: none; /* Remove default underline */
transition: color 0.2s ease;
}
.authors a:hover {
text-decoration: underline; /* Add underline on hover */
}
/* End new style */
.tagline {
font-family: 'Roboto Mono', monospace;
font-size: 24px;
background: #000;
color: #fff;
display: inline-block;
padding: 8px 16px;
margin: 40px 0 20px 0;
border-radius: 4px;
}
img {
width: 100%;
/* Update border: set width (e.g., 4px), style (solid), color (#000) */
/* border: 0cm solid #000; */
border: 1.5px solid #000;
/* Add border-radius for rounded corners */
border-radius: 15px;
margin: 0px 20px; /* Keep global rule if needed elsewhere */
/* Ensure images behave correctly with border-box sizing */
box-sizing: border-box;
transition: transform 0.2s ease;
}
img:hover {
transform: scale(1.02);
}
/* Override for images directly within .main-content that need to align */
.main-content > img {
margin-left: 0;
margin-right: 0;
}
/* General style for the specific image links */
a#figure-1-img,
a#figure-2-img,
a#figure-3-img {
display: block; /* Ensures proper layout and application of margins */
text-decoration: none; /* Removes hyperlink underline */
cursor: default; /* Makes it not look like a clickable link */
/* margin-top is already set in their specific ID rules below */
}
/* Ensure images within these links take full width and are block */
a#figure-1-img img,
a#figure-2-img img,
a#figure-3-img img {
display: block; /* Removes extra space below if image were inline */
width: 100%; /* Makes image fill the link's width */
height: auto; /* Maintains aspect ratio */
/* General img border styles will apply unless overridden below */
}
/* Style for Figure 1 (TeaserFig.jpeg) link container */
#figure-1-img {
margin-top: 20px; /* Consistent top margin */
margin-left: auto; /* Center the figure */
margin-right: auto; /* Center the figure */
width: 80%; /* Make it smaller */
display: block; /* Ensure proper centering */
}
/* Style for Figure 2 (figs/4.png) link container */
#figure-2-img {
/* border: none; */ /* Remove border from the link itself */
border-radius: 0; /* Match the link's border-radius removal */
margin-left: -25px; /* Override global img margin */
margin-right: 17.5px; /* Override global img margin */
margin-top: 20px; /* Consistent top margin */
}
/* Specific border handling for image inside #figure-2-img link */
a#figure-2-img img {
border: none; /* Ensure the image inside the borderless link is also borderless */
border-radius: 0; /* Match the link's border-radius removal */
}
/* Style for Figure 3 (figs/3.png) link container */
#figure-3-img {
padding-left: 15px;
background-color: #fff;
margin-top: 20px;
/* The image inside will get the default border from global img styles */
border: 1.5px solid #000; /* Add border to the <a> tag */
border-radius: 15px; /* Add border-radius to the <a> tag */
box-sizing: border-box; /* Ensure padding and border are within the element's width */
overflow: hidden; /* Clip child elements (the img) to the rounded corners */
}
/* Specific style for the image inside #figure-3-img link */
a#figure-3-img img {
border: none; /* Remove border from the image itself */
border-radius: 0; /* Remove border-radius from the image */
margin: 0; /* Override global img margin to prevent interference with padding */
}
/* --- Updated Styles for Video Gallery --- */
/* New outer wrapper for the whole section */
.video-gallery-section {
margin: 30px 0;
padding: 20px 0;
border-top: 1px solid #eee;
border-bottom: 1px solid #eee;
}
/* Container for the scrollable videos - now wider */
.video-gallery-container {
/* Remove position: relative */
/* Remove padding: 0 45px */
box-sizing: border-box;
/* width: 100%; */ /* Remove this to use max-width */
max-width: 1150px; /* Set a maximum width for the gallery container */
margin-left: auto; /* Center the container */
margin-right: auto; /* Center the container */
overflow-x: auto; /* Enable horizontal scrolling */
scroll-behavior: smooth; /* Smooth scrolling effect */
/* Hide scrollbar */
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE and Edge */
margin-bottom: 15px;
}
.video-gallery-container::-webkit-scrollbar {
display: none; /* Chrome, Safari, Opera */
}
/* The actual scrolling div holding the videos */
.video-gallery {
display: flex;
gap: 15px;
padding: 10px 0;
min-width: max-content;
}
.gallery-video {
width: 250px;
height: 200px;
object-fit: cover;
border: 1.5px solid #000;
border-radius: 10px;
flex-shrink: 0;
transition: transform 0.2s ease;
}
.gallery-video:hover {
transform: scale(1.05);
}
/* Styles for the navigation buttons */
.gallery-nav {
/* ... existing button styles (background, color, border, radius, size, etc.) ... */
background: #000;
color: #fff;
border: none;
padding: 8px 12px;
cursor: pointer;
border-radius: 4px;
font-size: 16px;
transition: background-color 0.2s ease;
}
.gallery-nav:hover {
background: #333;
}
/* Container for the navigation buttons - remove centering margin */
.gallery-nav-controls {
/* max-width: 960px; */ /* No longer needed */
/* margin: 15px auto 0 auto; */ /* Remove auto margin */
display: flex; /* Keep as flex to layout buttons */
/* justify-content: center; */ /* No longer needed */
gap: 10px;
justify-content: center;
margin-bottom: 10px;
}
/* Container to center the gallery caption and buttons */
.gallery-caption-container {
text-align: center;
margin-top: 10px;
}
/* Specific style adjustments for the gallery caption text */
.figure-caption.gallery-caption {
font-size: 16px;
color: #333;
margin: 0;
font-style: italic;
}
/* --- End Video Gallery Styles --- */
/* --- Styles for Real-to-Sim Vertical Video Layout --- */
.r2s-vertical-layout {
display: flex;
flex-direction: column;
gap: 10px; /* Space between the top and bottom rows */
margin-bottom: 5px;
/* padding: 0px 20px; */ /* REMOVE this horizontal padding */
box-sizing: border-box;
}
.r2s-video-row {
display: flex;
gap: 15px; /* Space between items in a row */
align-items: center; /* Vertically align items in the row */
justify-content: center; /* Center the group of items if they don't fill the width */
}
/* Styling for the "slots" - direct children of .r2s-video-row */
/* These are the elements that will grow to fill the row. */
.r2s-video-row > .r2s-video-item, /* Targets <video class="r2s-video-item"> directly in a row */
.r2s-video-row > .stacked-ego-videos { /* Targets <div class="stacked-ego-videos"> directly in a row */
flex-grow: 1; /* Allow the slot to grow */
flex-basis: 0; /* Good practice with flex-grow */
/* max-height: 240px; */ /* REMOVE max-height from general slot rule */
/* Make the slot a flex container to center its actual content (the video or the stack) */
display: flex;
justify-content: center;
align-items: center;
border: 1px solid #fdfaf4; /* Border for the slot */
box-sizing: border-box;
background-color: #fdfaf4; /* Background for the slot */
}
/* Set max-height for slots in the TOP row */
.r2s-top-row > .r2s-video-item,
.r2s-top-row > .stacked-ego-videos { /* Though top row doesn't have stacked videos, good for consistency */
max-height: 400px;
}
/* Set max-height for slots in the BOTTOM row */
.r2s-bottom-row > .r2s-video-item,
.r2s-bottom-row > .stacked-ego-videos {
max-height: 400px;
}
/* General styling for ALL <video> elements with class r2s-video-item */
/* This applies to videos directly in a row AND those inside .stacked-ego-videos */
video.r2s-video-item {
display: block; /* Behaves well for sizing */
max-width: 100%; /* Video won't exceed the width of its parent container (slot or stacked-ego-videos div) */
max-height: 100%; /* Video won't exceed the height of its parent container */
width: auto; /* Maintain aspect ratio */
height: auto; /* Maintain aspect ratio */
object-fit: contain; /* Show entire video, letterbox if needed */
background-color: #fdfaf4; /* Black background for letterboxing */
border: none; /* Video itself has no border; the slot has one if applicable */
}
/* Apply a slight scale to SMPL and G1 videos to hide potential 1px edge artifacts */
.r2s-video-smpl,
.r2s-video-g1 {
transform: scale(1.001);
}
/* Styling for the container of stacked videos */
.stacked-ego-videos {
/* This element is a flex item within .r2s-video-row (handled by the rule above) */
/* and also a flex container for its children. */
display: flex; /* This ensures it behaves as a flex container for its children */
/* It might override display:flex from the slot rule if that rule also targeted this class directly,
but the current slot rule uses the child selector '>' so it's fine. */
flex-direction: column;
gap: 5px;
width: auto; /* Width determined by its 1:1 children */
height: 100%; /* Take full available height of its slot (which is max 180px) */
max-width: 100%; /* Ensure it doesn't overflow its slot if children are unexpectedly wide */
/* Remove any slot-like styling if it was applied by a more general class,
as its appearance is defined by its children and its slot parent. */
border: none; /* The slot around .stacked-ego-videos has the border */
background-color: transparent; /* The slot around .stacked-ego-videos has the background */
/* max-height is effectively controlled by its parent slot */
}
/* Styling for videos INSIDE the .stacked-ego-videos container */
.stacked-ego-videos > video.r2s-video-item {
/* These videos are already styled by 'video.r2s-video-item' for object-fit, background, etc. */
/* We just need to enforce their 1:1 aspect ratio and height calculation. */
aspect-ratio: 1 / 1;
width: auto; /* Width will be derived from height and 1:1 aspect ratio */
height: calc(50% - (5px / 2)); /* Each takes half the parent's height, minus half the gap */
min-height: 0;
/* max-width and max-height of 100% (from video.r2s-video-item) are fine here,
as they refer to 100% of this specific video's calculated 1:1 box. */
}
/* --- End Real-to-Sim Vertical Video Layout Styles --- */
/* --- Styles for Real-to-Sim Captions --- */
.r2s-caption-row {
display: flex;
gap: 15px; /* Should match the gap in .r2s-video-row */
justify-content: center; /* Should match justify-content in .r2s-video-row */
margin-top: -15px; /* Small space between videos and captions */
}
.r2s-caption-item {
flex-grow: 1; /* Allow caption item to grow, similar to video slots */
flex-basis: 0;
text-align: center; /* Center text within its slot */
font-size: 13px; /* Adjust as needed */
color: #555; /* Adjust as needed */
font-family: 'Roboto Mono', monospace;
/* Optional: to better align with video slots if they have borders/padding */
/* padding: 0 5px; */
}
/* --- End Styles for Real-to-Sim Captions --- */
.section {
font-size: 18px;
line-height: 1.7;
margin: 20px 0;
color: #333;
}
.pull-quote {
font-size: 24px;
font-style: italic;
text-align: center;
margin: 40px 0;
color: #555;
}
.footer {
text-align: center;
margin-top: 60px;
padding: 20px 0;
border-top: 1px solid #ccc;
color: #666;
font-size: 14px;
}
.footer a {
color: #333;
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
/* New style for figure captions */
.figure-caption {
font-size: 16px;
color: #555;
text-align: center;
margin: 10px 0 30px 0;
font-style: italic;
}
/* New styles for quick links */
.quick-links {
text-align: center;
margin: 30px 0;
}
.quick-links a {
display: inline-block;
margin: 0 10px;
padding: 8px 16px;
background: #000;
color: #fff;
text-decoration: none;
border-radius: 4px;
font-family: 'Roboto Mono', monospace;
font-size: 14px;
transition: background-color 0.2s ease;
}
.quick-links a:hover,
.quick-links a:focus {
background: #333;
transform: translateY(-1px);
}
/* End new styles for quick links */
/* Adding subsection styling in the table of contents */
.toc-subsection {
margin-left: 20px;
font-size: 14px;
}
/* Style for section subtitles (subsection headers) */
.section-subtitle {
font-family: 'Roboto Mono', monospace;
font-size: 20px;
font-weight: 600;
color: #333;
margin: 30px 0 15px 0;
padding-left: 10px;
border-left: 3px solid #000;
}
/* Styling for individual videos within the gallery */
.video-gallery .gallery-video {
/* width: auto; */ /* Let height dictate width for consistency */
height: 400px; /* Fixed height for all gallery videos */
margin-right: 0px; /* Spacing between videos */
flex-shrink: 0; /* Prevent videos from shrinking in the flex container */
}
/* Make videos in the Reconstruction Gallery taller */
#reconstructionGallerySection .gallery-video {
height: 220px; /* Adjust this value as needed for desired taller height */
}
/* Styling for the caption and navigation controls container */
.gallery-caption-container {
max-width: 960px; /* Align container with main content */
margin: 15px auto 0 auto; /* Top margin, centered horizontally */
padding: 0 20px; /* Match original caption padding */
box-sizing: border-box;
display: flex; /* Make it a flex container */
align-items: flex-start; /* Align items to the top */
justify-content: center; /* Center content horizontally */
}
/* --- BibTeX Styling --- */
.bibtex-code {
background: #f5f5f5;
border: 1px solid #ddd;
border-radius: 8px;
padding: 20px;
margin: 40px 0;
font-family: 'Roboto Mono', monospace;
}
.bibtex-title {
font-weight: bold;
margin-bottom: 10px;
color: #333;
}
.bibtex-code pre {
margin: 0;
white-space: pre-wrap;
word-wrap: break-word;
}
.bibtex-code code {
font-size: 14px;
color: #333;
}
/* --- End BibTeX Styling --- */
/* Responsive design improvements */
@media (max-width: 768px) {
.video-gallery {
gap: 10px;
}
.gallery-video {
width: 250px;
height: 150px;
}
.section {
font-size: 16px;
}
.tagline {
font-size: 20px;
padding: 6px 12px;
}
.section-subtitle {
font-size: 18px;
}
}
/* Smooth scrolling for better UX */
html {
scroll-behavior: smooth;
}
/* Enhanced focus states for accessibility */
a:focus,
button:focus {
outline: 2px solid #007acc;
outline-offset: 2px;
}
/* Side-by-side video comparison styles */
.side-by-side-videos {
margin: 30px 0;
padding: 20px 0;
}
.video-comparison-container {
display: flex;
gap: 30px;
justify-content: center;
align-items: flex-start;
max-width: 100%;
margin: 0 auto;
}
.video-item {
flex: 1;
max-width: 300px;
text-align: center;
}
.video-item video {
width: 100%;
height: 300px;
object-fit: cover;
border: 1.5px solid #000;
border-radius: 10px;
margin-bottom: 10px;
transition: transform 0.2s ease;
}
.video-item2 {
flex: 1;
max-width: 300px;
text-align: center;
}
.video-item2 video {
width: 100%;
height: 300px;
object-fit: cover;
border: 1.5px solid #000;
border-radius: 10px;
margin-bottom: 10px;
transition: transform 0.2s ease;
}
.video-item video:hover {
transform: scale(1.02);
}
.video-caption {
font-size: 16px;
color: #333;
margin: 0;
font-style: italic;
line-height: 1.4;
}
/* Responsive design for side-by-side videos */
@media (max-width: 768px) {
.video-comparison-container {
flex-direction: column;
gap: 20px;
}
.video-item {
max-width: 100%;
}
}
/* Condensed recovery layout styles */
.condensed-recovery-layout {
margin: 30px 0;
}
.recovery-row {
display: flex;
gap: 40px;
margin-bottom: 40px;
justify-content: center;
align-items: flex-start;
}
.recovery-item {
flex: 1;
max-width: 45%;
}
.recovery-item.centered {
max-width: 45%;
margin: 0 auto;
}
.recovery-description {
font-size: 16px;
color: #333;
margin-bottom: 15px;
font-style: italic;
text-align: center;
}
/* Responsive design for condensed recovery layout */
@media (max-width: 768px) {
.recovery-row {
flex-direction: column;
gap: 30px;
}
.recovery-item,
.recovery-item.centered {
max-width: 100%;
}
}
/* Teaser video styling */
#teaser-video {
width: 95%;
height: auto;
border: 1.5px solid #000;
border-radius: 15px;
margin: 20px auto;
display: block;
max-width: 800px;
}
/* BC and RISE video styling */
.video-bc {
border: 3px solid #ff6666 !important;
box-shadow: 0 0 8px rgba(255, 102, 102, 0.4);
}
.video-rise {
border: 3px solid #66cc66 !important;
box-shadow: 0 0 8px rgba(102, 204, 102, 0.4);
}
/* Hover effects for BC and RISE videos */
.video-bc:hover {
border-color: #ff3333 !important;
box-shadow: 0 0 12px rgba(255, 102, 102, 0.6);
}
.video-rise:hover {
border-color: #33cc33 !important;
box-shadow: 0 0 12px rgba(102, 204, 102, 0.6);
}
/* Expandable dropdown styles */
.expandable-section {
margin: 20px 0;
border: 1px solid #ddd;
border-radius: 8px;
overflow: hidden;
}
.expandable-header {
background: #f8f8f8;
padding: 15px 20px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
transition: background-color 0.2s ease;
border-bottom: 1px solid #ddd;
}
.expandable-header:hover {
background: #f0f0f0;
}
.expandable-header h4 {
margin: 0;
font-family: 'Roboto Mono', monospace;
font-size: 16px;
color: #333;
}
.expandable-icon {
font-size: 18px;
transition: transform 0.3s ease;
color: #666;
}
.expandable-icon.expanded {
transform: rotate(180deg);
}
.expandable-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
background: white;
}
.expandable-content.expanded {
max-height: 2000px;
}
/* Demo gallery styles */
.demo-gallery {
padding: 20px;
}
.demo-gallery-container {
overflow-x: auto;
scrollbar-width: thin;
scrollbar-color: #ccc transparent;
margin-bottom: 15px;
}
.demo-gallery-container::-webkit-scrollbar {
height: 6px;
}
.demo-gallery-container::-webkit-scrollbar-track {
background: transparent;
}
.demo-gallery-container::-webkit-scrollbar-thumb {
background: #ccc;
border-radius: 3px;
}
.demo-gallery-inner {
display: flex;
gap: 15px;
padding: 10px 0;
min-width: max-content;
}
.demo-video-item {
flex-shrink: 0;
width: 250px;
text-align: center;
}
.demo-video-item video {
width: 250px;
height: 300px;
object-fit: cover;
border: 1.5px solid #000;
border-radius: 10px;
margin-bottom: 10px;
transition: transform 0.2s ease;
}
.demo-video-item2 {
flex-shrink: 0;
width: 250px;
text-align: center;
}
.demo-video-item2 video {
width: 250px;
height: 250px;
object-fit: cover;
border: 1.5px solid #000;
border-radius: 10px;
margin-bottom: 10px;
transition: transform 0.2s ease;
}
.demo-video-item video:hover {
transform: scale(1.02);
}
.demo-video-caption {
font-size: 14px;
color: #555;
font-style: italic;
line-height: 1.4;
margin: 0;
padding: 0 5px;
}
/* Styling for individual videos within the gallery */
.video-gallery .gallery-video {
/* width: auto; */ /* Let height dictate width for consistency */
height: 400px; /* Fixed height for all gallery videos */
margin-right: 0px; /* Spacing between videos */
flex-shrink: 0; /* Prevent videos from shrinking in the flex container */
}
.env-comparison-section {
max-width: 900px;
margin: 40px auto 30px auto;
padding: 25px 20px 20px 20px;
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.env-comparison-header {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 18px;
gap: 20px;
}
.env-arrow {
background: #000;
color: #fff;
border: none;
border-radius: 50%;
width: 38px;
height: 38px;
font-size: 22px;
cursor: pointer;
transition: background 0.2s;
}
.env-arrow:hover { background: #333; }
#env-title {
font-family: 'Roboto Mono', monospace;
font-size: 20px;
font-weight: 600;
color: #222;
}
.env-comparison-videos {
display: flex;
gap: 30px;
justify-content: center;
align-items: flex-start;
}
.env-video-item {
flex: 1;
max-width: 260px;
text-align: center;
}
.env-video-item video {
width: 100%;
height: 320px;
object-fit: cover;
border: 3px solid #000;
border-radius: 10px;
margin-bottom: 10px;
transition: transform 0.2s;
}
.env-video-caption {
font-size: 15px;
color: #333;
font-style: italic;
margin: 0;
}
@media (max-width: 900px) {
.env-comparison-videos { gap: 15px; }
.env-video-item { max-width: 33vw; }
.env-video-item video { height: 180px; }
}
@media (max-width: 600px) {
.env-comparison-videos { flex-direction: column; gap: 10px; }
.env-video-item { max-width: 100%; }
.env-video-item video { height: 160px; }
}
/* 2x2 Video Grid Section */
.video-grid-2x2-section {
max-width: 900px;
margin: 40px auto 30px auto;
padding: 20px 10px;
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.video-grid-2x2 {