-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
3496 lines (3122 loc) · 170 KB
/
Copy pathindex.html
File metadata and controls
3496 lines (3122 loc) · 170 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, maximum-scale=1" />
<title>Studio Dự Án Người Việt - Nơi Sáng Tạo Mã Hóa</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="icon" type="image/png" href="https://cdn2.scratch.mit.edu/get_image/user/149945770_60x60.png">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;700;800&display=swap" rel="stylesheet">
<style>
/* Universal box-sizing */
*, ::before, ::after {
box-sizing: border-box;
}
/* Định nghĩa các biến CSS cho hiệu ứng kính */
:root {
--tint-color: 255, 255, 255;
--tint-opacity: 0.1;
/* Độ trong suốt tinh tế */
--frost-blur: 30px;
/* Tăng độ mờ sương để nổi bật và mượt mà hơn */
--outer-shadow-blur: 60px;
/* Tăng độ mờ của bóng đổ bên ngoài */
}
html {
margin: 0;
padding: 0;
overflow-x: hidden; /* Ẩn thanh trượt ngang cho toàn bộ tài liệu */
overflow-y: scroll; /* Buộc một thanh trượt dọc duy nhất cho toàn bộ tài liệu */
min-height: 100%; /* Đảm bảo html có chiều cao ít nhất 100% */
}
body {
margin: 0;
padding: 0;
min-height: 100%; /* Đảm bảo body có chiều cao ít nhất 100% */
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
background-color: #ffffff;
/* Nền màu trắng */
font-family: 'Open Sans', sans-serif;
/* Sử dụng font Open Sans */
color: #333;
/* Màu chữ tối hơn cho nền trắng */
position: relative;
/* Đã bỏ animation chuyển màu nền */
}
/* Lớp container cho các phần tử có hiệu ứng Liquid Glass */
.liquid-glass-container {
position: relative;
border-radius: 40px;
/* Bo tròn góc nhiều hơn nữa */
overflow: hidden;
isolation: isolate;
box-shadow: 0px 20px var(--outer-shadow-blur) rgba(0, 0, 0, 0.1);
/* Bóng đổ nhẹ hơn cho nền trắng */
transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
/* Easing mượt mà hơn */
border: 1px solid rgba(0, 0, 0, 0.1);
/* Đường viền rõ hơn */
transform-origin: center; /* Add transform-origin for centered scaling */
}
.liquid-glass-container:hover {
transform: translateY(-5px) scale(1.01); /* Nâng nhẹ hơn và phóng to nhẹ */
box-shadow: 0px 30px calc(var(--outer-shadow-blur) * 1.5) rgba(0, 0, 0, 0.15); /* Bóng đổ mềm mại hơn */
border: 1px solid rgba(0, 0, 0, 0.18); /* Viền sáng hơn */
}
/* Lớp overlay tạo hiệu ứng kính */
.liquid-glass-overlay {
position: absolute;
inset: 0;
z-index: -1;
border-radius: 40px;
/* Phù hợp với container */
background-color: rgba(var(--tint-color), var(--tint-opacity));
backdrop-filter: blur(var(--frost-blur));
-webkit-backdrop-filter: blur(var(--frost-blur));
}
/* Đảm bảo nội dung nằm trên lớp overlay */
.liquid-glass-content {
position: relative;
z-index: 1;
padding: inherit;
}
/* CSS cho các "cục nước trôi nổi" */
.floating-blobs-container {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
overflow: hidden;
filter: blur(8px);
/* Làm mờ nhẹ toàn bộ container blob */
}
.blob {
position: absolute;
/* Màu blob điều chỉnh để hiển thị trên nền trắng */
background: radial-gradient(circle, rgba(150, 180, 255, 0.2) 0%, rgba(150, 180, 255, 0) 70%);
border-radius: 50%;
animation-duration: 20s;
/* Tăng tốc độ animation */
animation-iteration-count: infinite;
animation-timing-function: ease-in-out;
opacity: 0.9;
/* Tăng opacity để rõ ràng hơn */
will-change: transform, opacity;
/* Tối ưu hóa hiệu suất animation */
}
/* Định nghĩa nhiều animation hơn cho blob */
@keyframes float1 {
0% {
transform: translate(0, 0) scale(1);
opacity: 0.8;
}
25% {
transform: translate(28vw, 38vh) scale(1.3);
opacity: 0.9;
}
50% {
transform: translate(18vw, 68vh) scale(0.95);
opacity: 0.7;
}
75% {
transform: translate(48vw, 28vh) scale(1.2);
opacity: 0.95;
}
100% {
transform: translate(0, 0) scale(1);
opacity: 0.8;
}
}
@keyframes float2 {
0% {
transform: translate(0, 0) scale(0.9);
opacity: 0.7;
}
30% {
transform: translate(-22vw, 48vh) scale(1.2);
opacity: 0.8;
}
60% {
transform: translate(-12vw, 18vh) scale(1.0);
opacity: 0.75;
}
100% {
transform: translate(0, 0) scale(0.9);
opacity: 0.7;
}
}
@keyframes float3 {
0% {
transform: translate(0, 0) scale(1.2);
opacity: 0.9;
}
40% {
transform: translate(38vw, -28vh) scale(0.95);
opacity: 0.8;
}
80% {
transform: translate(18vw, -58vh) scale(1.3);
opacity: 0.98;
}
100% {
transform: translate(0, 0) scale(1.2);
opacity: 0.9;
}
}
@keyframes float4 {
0% {
transform: translate(0, 0) scale(1.0);
opacity: 0.6;
}
50% {
transform: translate(-28vw, -38vh) scale(1.2);
opacity: 0.7;
}
100% {
transform: translate(0, 0) scale(1.0);
opacity: 0.6;
}
}
@keyframes float5 {
0% {
transform: translate(0, 0) scale(1.3);
opacity: 0.9;
}
35% {
transform: translate(58vw, 18vh) scale(0.95);
opacity: 0.78;
}
70% {
transform: translate(28vw, -48vh) scale(1.2);
opacity: 0.85;
}
100% {
transform: translate(0, 0) scale(1.3);
opacity: 0.9;
}
}
@keyframes float6 {
0% {
transform: translate(0, 0) scale(0.8);
opacity: 0.6;
}
45% {
transform: translate(-38vw, 28vh) scale(1.1);
opacity: 0.7;
}
90% {
transform: translate(-18vw, -18vh) scale(0.9);
opacity: 0.65;
}
100% {
transform: translate(0, 0) scale(0.8);
opacity: 0.6;
}
}
/* Vị trí và kích thước ban đầu của các blob */
.blob-1 {
top: 10%;
left: 5%;
width: 300px;
height: 300px;
animation-name: float1;
animation-duration: 25s;
animation-delay: 0s;
}
.blob-2 {
top: 50%;
right: 10%;
width: 220px;
height: 220px;
animation-name: float2;
animation-duration: 20s;
animation-delay: 5s;
}
.blob-3 {
bottom: 20%;
left: 15%;
width: 380px;
height: 380px;
animation-name: float3;
animation-duration: 28s;
animation-delay: 10s;
}
.blob-4 {
top: 30%;
left: 40%;
width: 160px;
height: 160px;
animation-name: float4;
animation-duration: 18s;
animation-delay: 2s;
}
.blob-5 {
bottom: 5%;
right: 5%;
width: 280px;
height: 280px;
animation-name: float5;
animation-duration: 23s;
animation-delay: 7s;
}
.blob-6 {
top: 70%;
left: 60%;
width: 200px;
height: 200px;
animation-name: float6;
animation-duration: 21s;
animation-delay: 12s;
}
.blob-7 {
top: 15%;
right: 25%;
width: 250px;
height: 250px;
animation-name: float1;
animation-duration: 26s;
animation-delay: 3s;
}
.blob-8 {
bottom: 30%;
right: 30%;
width: 180px;
height: 180px;
animation-name: float2;
animation-duration: 19s;
animation-delay: 8s;
}
.blob-9 {
top: 60%;
left: 5%;
width: 270px;
height: 270px;
animation-name: float3;
animation-duration: 24s;
animation-delay: 15s;
}
.blob-10 {
bottom: 10%;
left: 50%;
width: 220px;
height: 220px;
animation-name: float4;
animation-duration: 22s;
animation-delay: 1s;
}
.blob-11 {
top: 5%;
left: 70%;
width: 350px;
height: 350px;
animation-name: float5;
animation-duration: 29s;
animation-delay: 6s;
}
.blob-12 {
bottom: 40%;
right: 40%;
width: 170px;
height: 170px;
animation-name: float6;
animation-duration: 17s;
animation-delay: 11s;
}
.blob-13 {
top: 20%;
left: 80%;
width: 190px;
height: 190px;
animation-name: float1;
animation-duration: 20s;
animation-delay: 4s;
}
.blob-14 {
bottom: 15%;
left: 70%;
width: 260px;
height: 260px;
animation-name: float2;
animation-duration: 23s;
animation-delay: 9s;
}
.blob-15 {
top: 40%;
right: 5%;
width: 290px;
height: 290px;
animation-name: float3;
animation-duration: 27s;
animation-delay: 14s;
}
.blob-16 {
bottom: 50%;
left: 45%;
width: 130px;
height: 130px;
animation-name: float4;
animation-duration: 16s;
animation-delay: 0.5s;
}
.blob-17 {
top: 25%;
left: 15%;
width: 150px;
height: 150px;
animation-name: float5;
animation-duration: 24s;
animation-delay: 2.5s;
}
.blob-18 {
bottom: 25%;
right: 15%;
width: 210px;
height: 210px;
animation-name: float6;
animation-duration: 26s;
animation-delay: 7.5s;
}
.blob-19 {
top: 45%;
left: 55%;
width: 100px;
height: 100px;
animation-name: float1;
animation-duration: 18s;
animation-delay: 10.5s;
}
.blob-20 {
bottom: 35%;
left: 35%;
width: 190px;
height: 190px;
animation-name: float2;
animation-duration: 20s;
animation-delay: 13.5s;
}
/* Animation cho các phần tử UI khi cuộn */
.animate-on-scroll {
opacity: 0.2;
/* Mặc định là mờ đi */
transform: translateY(50px);
/* Dịch chuyển nhẹ khi mờ */
transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1), transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.animate-on-scroll.is-visible {
opacity: 1;
/* Rõ nét khi hiển thị */
transform: translateY(0);
/* Về vị trí ban đầu */
}
/* Các hiệu ứng slide-in cũng sẽ mờ đi khi không hiển thị */
.animate-slide-in-left {
opacity: 0.2;
transform: translateX(-100px);
transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1), transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.animate-slide-in-left.is-visible {
opacity: 1;
transform: translateX(0);
}
.animate-slide-in-right {
opacity: 0.2;
transform: translateX(100px);
transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1), transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.animate-slide-in-right.is-visible {
opacity: 1;
transform: translateX(0);
}
/* Menubar styles */
.menubar {
position: fixed;
top: 0;
left: 0;
width: 100%;
padding: 0.5rem 2rem;
z-index: 1000;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom-left-radius: 40px;
border-bottom-right-radius: 40px;
border-top-left-radius: 0;
border-top-right-radius: 0;
box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
/* Bóng đổ nhẹ hơn */
transition: all 0.3s ease-in-out;
perspective: 1000px;
background-color: rgba(255, 255, 255, 0.8);
/* Nền menubar sáng hơn */
}
.menubar .liquid-glass-overlay {
border-bottom-left-radius: 40px;
border-bottom-right-radius: 40px;
border-top-left-radius: 0;
border-top-right-radius: 0;
background-color: rgba(var(--tint-color), 0.05);
/* Overlay trong suốt hơn cho menubar */
}
.menubar-logo {
display: flex;
align-items: center;
}
.menubar-logo img {
width: 375px;
height: 49px;
object-fit: contain;
}
.menubar-nav ul {
display: flex;
gap: 1.5rem;
flex-wrap: nowrap;
}
.menubar-nav a {
color: #333;
/* Màu chữ tối hơn cho menu */
font-weight: 500;
font-size: 1rem;
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
position: relative;
text-decoration: none;
opacity: 0.8;
white-space: nowrap;
text-transform: capitalize;
/* Viết hoa chữ cái đầu */
}
.menubar-nav a:hover {
opacity: 1;
text-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
/* Bóng chữ tối hơn */
}
.menubar-nav a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -5px;
left: 50%;
transform: translateX(-50%);
background-color: #3b82f6;
/* Màu xanh nổi bật */
transition: width 0.3s ease-in-out;
}
.menubar-nav a:hover::after {
width: 100%;
}
/* Mobile Menu */
.mobile-menu-button {
background: none;
border: none;
color: #333;
font-size: 2rem;
cursor: pointer;
display: none; /* Ẩn trên desktop theo mặc định */
}
.mobile-menu-overlay {
/* Mặc định ẩn hoàn toàn trên mọi kích thước */
display: none;
visibility: hidden;
pointer-events: none;
transform: translateX(100%); /* Đảm bảo ẩn khỏi màn hình */
transition: transform 0.3s ease-in-out;
}
@media (max-width: 767px) {
.menubar-nav {
display: none; /* Ẩn nav desktop trên mobile */
}
.mobile-menu-button {
display: block; /* Hiện hamburger trên mobile */
}
.mobile-menu-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
z-index: 1001;
display: flex; /* Hiện lại trên mobile */
flex-direction: column;
align-items: center;
justify-content: center;
}
.mobile-menu-overlay.active {
transform: translateX(0); /* Hiện ra */
visibility: visible; /* Hiện hoàn toàn khi active */
pointer-events: auto; /* Cho phép tương tác khi active */
}
.mobile-menu-overlay .close-button {
position: absolute;
top: 1rem; /* Giảm khoảng cách từ trên xuống */
right: 1rem; /* Giảm khoảng cách từ phải sang */
background: none;
border: none;
font-size: 2.5rem;
color: #333;
cursor: pointer;
padding: 0.5rem; /* Tăng padding để dễ bấm hơn */
}
.mobile-menu-overlay ul {
list-style: none;
padding: 0;
text-align: center;
}
.mobile-menu-overlay li {
margin-bottom: 1.5rem;
}
.mobile-menu-overlay a {
color: #333;
font-size: 1.8rem;
font-weight: 600;
text-decoration: none;
transition: color 0.2s ease;
}
.mobile-menu-overlay a:hover {
color: #3b82f6;
}
}
/* Styles cho phần chia đôi màn hình */
.split-section {
display: flex;
flex-direction: column;
/* Mặc định là cột trên mobile */
gap: 2rem;
padding: 2rem;
text-align: center;
}
@media (min-width: 768px) {
.split-section {
flex-direction: row;
/* Chia 2 cột trên desktop */
text-align: left;
}
}
.split-half {
flex: 1;
padding: 2rem;
border-radius: 24px;
background: rgba(0, 0, 0, 0.05);
/* Nền trong suốt nhẹ cho nền trắng */
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease-in-out;
color: #333;
/* Màu chữ tối hơn */
}
.split-half:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.manager-avatar {
width: 90px;
height: 90px;
border-radius: 50%;
object-fit: cover;
margin: 0 auto 1rem auto;
/* Canh giữa avatar */
border: 3px solid rgba(0, 0, 0, 0.2);
/* Viền tối hơn */
transition: transform 0.3s ease-in-out;
}
.manager-avatar:hover {
transform: scale(1.1);
}
/* Styles riêng cho Studio Host */
.host-avatar {
width: 120px;
/* Lớn hơn */
height: 120px;
border-width: 5px;
/* Viền dày hơn */
border-color: #3b82f6;
/* Màu xanh nổi bật */
box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
/* Bóng đổ phát sáng */
}
.host-name {
font-size: 2.5rem;
/* Kích thước chữ lớn hơn */
color: #3b82f6;
/* Màu xanh nổi bật */
text-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
/* Bóng chữ phát sáng */
}
/* Other Managers in a single row - Carousel styles */
.horizontal-scroll-container {
display: flex;
overflow-x: auto;
/* Cho phép cuộn ngang */
-webkit-overflow-scrolling: touch;
/* Cuộn mượt trên iOS */
gap: 1.5rem;
/* Khoảng cách giữa các manager */
padding-bottom: 1rem;
/* Đủ không gian cho thanh cuộn */
scrollbar-width: none; /* Ẩn thanh trượt cho Firefox */
}
/* Ẩn thanh trượt cho Webkit (Chrome, Safari) */
.horizontal-scroll-container::-webkit-scrollbar {
display: none;
}
.horizontal-scroll-container .manager-item {
flex-shrink: 0;
/* Ngăn các item co lại */
width: 150px;
/* Chiều rộng cố định cho mỗi manager item */
text-align: center;
padding: 1rem 0; /* Thêm padding để tạo khoảng trống */
}
/* Button special effects */
.animated-button {
position: relative;
overflow: hidden;
z-index: 1;
/* Ensure the button's background and text are visible */
background: inherit;
color: inherit;
}
.animated-button::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background: rgba(0, 0, 0, 0.1);
/* Màu tối hơn cho hiệu ứng button trên nền trắng */
border-radius: 50%;
transform: translate(-50%, -50%);
transition: width 0.4s ease-out, height 0.4s ease-out;
z-index: -1;
}
.animated-button:hover::before {
width: 300px;
height: 300px;
}
.animated-button:active {
transform: scale(0.98);
}
/* AI Chat Specific Styles */
.ai-chat-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.7); /* Nền tối mờ */
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
z-index: 2000; /* Cao hơn mọi thứ */
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease-in-out;
}
.ai-chat-overlay.active {
opacity: 1;
pointer-events: auto;
}
.ai-chat-container {
border-radius: 20px; /* Giảm bo tròn để trông gọn gàng hơn trên mobile */
box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.3); /* Giảm bóng đổ */
border: 1px solid rgba(255, 255, 255, 0.2);
background-color: rgba(255, 255, 255, 0.9);
padding: 1rem; /* Giảm padding tổng thể */
display: flex;
flex-direction: column;
width: 95%; /* Rộng hơn trên mobile */
max-width: 600px; /* Giới hạn chiều rộng trên desktop */
min-height: 450px; /* Giảm min-height */
max-height: 95vh; /* Tối ưu chiều cao trên mobile */
color: #333;
position: relative; /* Dành cho nút đóng */
}
@media (min-width: 768px) {
.ai-chat-container {
border-radius: 40px;
box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
padding: 1.5rem;
max-width: 700px;
min-height: 500px;
max-height: 90vh;
}
}
.ai-chat-close-button {
position: absolute;
top: 0.5rem; /* Điều chỉnh vị trí nút X */
right: 0.5rem; /* Điều chỉnh vị trí nút X */
background: none;
border: none;
font-size: 1.8rem; /* Giảm kích thước nút X */
color: #666;
cursor: pointer;
transition: color 0.2s ease;
padding: 0.3rem; /* Thêm padding để dễ bấm */
}
.ai-chat-close-button:hover {
color: #333;
}
.ai-chat-avatar-center {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 0.75rem; /* Giảm margin */
}
.ai-chat-avatar-center img {
width: 80px; /* Giảm kích thước avatar */
height: 80px; /* Giảm kích thước avatar */
border-radius: 50%;
object-fit: cover;
border: 3px solid #3b82f6;
box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); /* Giảm bóng đổ */
}
.ai-chat-avatar-center p {
font-size: 1.1rem; /* Giảm kích thước chữ */
font-weight: bold;
margin-top: 0.4rem; /* Giảm margin */
color: #3b82f6;
}
.chat-messages {
flex-grow: 1;
overflow-y: auto;
padding-right: 0.5rem; /* Giảm padding để tránh thanh cuộn kép */
margin-bottom: 0.75rem; /* Giảm margin */
display: flex;
flex-direction: column;
gap: 0.6rem; /* Giảm khoảng cách giữa các tin nhắn */
}
.message-wrapper {
display: flex;
align-items: flex-end;
gap: 0.4rem; /* Giảm khoảng cách giữa avatar và bubble */
}
.message-user .message-wrapper {
justify-content: flex-end; /* Căn phải tin nhắn người dùng */
}
.message-ai .message-wrapper {
justify-content: flex-start;
}
.message-avatar {
width: 30px; /* Giảm kích thước avatar tin nhắn */
height: 30px; /* Giảm kích thước avatar tin nhắn */
border-radius: 50%;
object-fit: cover;
border: 2px solid rgba(0, 0, 0, 0.1);
flex-shrink: 0;
}
.message-bubble {
padding: 0.6rem 0.9rem; /* Giảm padding bubble */
border-radius: 1rem; /* Giảm bo tròn bubble */
max-width: 75%; /* Tăng max-width để tận dụng không gian */
word-wrap: break-word;
flex-shrink: 1;
color: #fff;
position: relative;
font-size: 0.95rem; /* Điều chỉnh kích thước font */
}
.message-user .message-bubble {
background-color: #3b82f6;
border-bottom-right-radius: 0.2rem; /* Giảm bo tròn góc dưới */
text-align: right;
}
.message-ai .message-bubble {
background-color: #10b981;
border-bottom-left-radius: 0.2rem; /* Giảm bo tròn góc dưới */
text-align: left;
}
/* Ensure newlines are respected */
.message-text-content {
white-space: pre-wrap;
}
.chat-input-area {
display: flex;
gap: 0.4rem; /* Giảm khoảng cách giữa các phần tử input */
flex-wrap: wrap;
align-items: center;
}
.chat-input-area input[type="text"] {
flex-grow: 1;
padding: 0.6rem 0.9rem; /* Giảm padding input */
border-radius: 9999px;
border: none;
background-color: rgba(0, 0, 0, 0.1);
color: #333;
outline: none;
transition: background-color 0.3s ease;
min-width: 120px; /* Giảm min-width cho input */
font-size: 0.95rem;
}
.chat-input-area input[type="text"]:focus {
background-color: rgba(0, 0, 0, 0.15);
}
.chat-input-area button {
width: 48px; /* Giảm kích thước nút */
height: 48px; /* Giảm kích thước nút */
padding: 0;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-weight: bold;
border: none;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
flex-shrink: 0;
}
@media (min-width: 768px) {
.chat-input-area button {
width: 60px;
height: 60px;
}