forked from anushkaa-dubey/QuickQR
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
2455 lines (2107 loc) · 50.1 KB
/
Copy pathstyle.css
File metadata and controls
2455 lines (2107 loc) · 50.1 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
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
:root {
--background-color: #f5f5f5;
--primary-color: #2563eb;
--primary-dark: #1d4ed8;
--secondary-color: #64748b;
--accent-color: #3b82f6;
--surface-color: #ffffff;
--error-color: #ef4444;
--success-color: #22c55e;
--border-radius: 10px;
--box-shadow: 0 4px 10px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
--transition: all 0.3s ease;
}
/* Logo Styling */
.logo-container {
display: flex;
align-items: center;
gap: 15px; /* Increased gap for better spacing */
cursor: pointer; /* Add pointer cursor for interactivity */
transition: var(--transition); /* Smooth transition for hover effects */
}
.logo-container:hover {
transform: scale(1.05); /* Slightly scale up on hover */
}
.logo-img {
width: 60px; /* Slightly larger logo */
height: 60px; /* Ensure height matches width for a square aspect ratio */
border-radius: 50%; /* Circular logo (optional) */
object-fit: cover; /* Ensure the image fits well */
box-shadow: var(--box-shadow); /* Add a subtle shadow */
transition: var(--transition); /* Smooth transition for hover effects */
}
.logo-img:hover {
transform: rotate(10deg); /* Add a fun rotation effect on hover */
}
.logo-text {
font-size: 1.75rem; /* Larger font size */
font-weight: 700; /* Bolder font weight */
color: var(--primary-color);
text-transform: uppercase; /* Uppercase text for a modern look */
letter-spacing: 1px; /* Add spacing between letters */
transition: var(--transition); /* Smooth transition for hover effects */
}
.logo-text:hover {
color: var(--primary-dark); /* Darker color on hover */
}
/* Dark Mode Colors */
body.dark-mode {
--background-color: #0d0d0d; /* Deep black for a true dark mode */
--surface-color: #161616; /* Darker surface for contrast */
--secondary-color: #d4d4d4; /* Lighter text for readability */
--primary-color: #4facfe; /* Gradient blue for modern touch */
--primary-dark: #00c6ff;
--accent-color: #a1c4fd; /* Soft neon accent */
--error-color: #ff6b6b;
--success-color: #66ff99;
background-color: var(--background-color);
color: var(--secondary-color);
}
/* Dark Mode Header with Gradient */
body.dark-mode .header {
background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
box-shadow: 0px 2px 10px rgba(255, 255, 255, 0.1);
}
/* Dark Mode Auth Button with Neon Glow */
body.dark-mode .auth-btn {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
color: white;
border: none;
text-shadow: 0px 0px 8px rgba(79, 172, 254, 0.6);
transition: all 0.3s ease-in-out;
}
body.dark-mode .auth-btn:hover {
background: var(--primary-dark);
box-shadow: 0px 0px 15px var(--primary-color);
transform: translateY(-3px);
}
/* Dark Mode Dropdown with Glassmorphism */
body.dark-mode .dropdown-menu {
background: rgba(22, 22, 22, 0.9);
border: 1px solid rgba(255, 255, 255, 0.1);
backdrop-filter: blur(8px);
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}
body.dark-mode .dropdown-item {
color: var(--secondary-color);
transition: all 0.3s ease-in-out;
}
body.dark-mode .dropdown-item:hover {
background: rgba(255, 255, 255, 0.1);
color: var(--primary-color);
}
/* Dark Mode Input Fields with Glow */
body.dark-mode .input-field {
background: #1e1e1e;
border: 1px solid #333;
color: white;
box-shadow: inset 0px 0px 5px rgba(255, 255, 255, 0.1);
}
body.dark-mode .input-field:focus {
border-color: var(--primary-color);
box-shadow: 0px 0px 10px var(--primary-color);
}
/* Dark Mode Primary Buttons */
body.dark-mode .primary-button {
background: var(--primary-color);
color: white;
border-radius: 8px;
transition: all 0.3s ease-in-out;
}
body.dark-mode .primary-button:hover {
background: var(--primary-dark);
box-shadow: 0px 0px 15px var(--primary-color);
}
/* Dark Mode Secondary Buttons */
body.dark-mode .secondary-button {
background: #252525;
color: var(--secondary-color);
border: 1px solid rgba(255, 255, 255, 0.2);
}
body.dark-mode .secondary-button:hover {
background: rgba(255, 255, 255, 0.1);
}
/* Dark Mode Modal */
body.dark-mode .modal-content {
background: rgba(22, 22, 22, 0.95);
color: white;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.7);
}
/* Dark Mode Scroll Button with Glow */
body.dark-mode .scroll-btn {
background: var(--primary-color);
color: white;
box-shadow: 0px 0px 15px var(--primary-dark);
}
body.dark-mode .scroll-btn:hover {
background: var(--primary-dark);
box-shadow: 0px 0px 20px var(--primary-color);
}
/* Dark Mode Footer */
body.dark-mode .footer {
background: #161616;
}
/* Neon Glow for Links */
body.dark-mode a {
color: var(--accent-color);
transition: color 0.3s ease-in-out;
}
body.dark-mode a:hover {
text-shadow: 0px 0px 10px var(--accent-color);
color: white;
}
/* Header Styling */
.header {
background-color: rgb(204, 242, 255);
padding: 1.5rem 2rem; /* Increased padding for better spacing */
box-shadow: var(--box-shadow);
display: flex;
align-items: center;
justify-content: space-between;
position: sticky;
top: 0;
z-index: 1000; /* Ensure header stays on top */
}
body.dark-mode .header {
background-color: var(--surface-color);
}
/* Auth Button Styling */
.auth-section {
display: flex;
align-items: center;
gap: 10px; /* Add spacing between buttons */
}
.auth-btn {
background: var(--primary-color);
border: none;
color: white;
padding: 0.75rem 1.5rem; /* Larger padding for better clickability */
border-radius: 25px; /* Rounded corners */
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
transition: var(--transition);
font-weight: 600; /* Bolder text */
text-transform: uppercase; /* Uppercase text */
}
.auth-btn:hover {
background: var(--primary-dark);
transform: translateY(-2px); /* Slight lift on hover */
}
.auth-btn i {
font-size: 1.2rem; /* Larger icon */
}
/* Dropdown Menu Styling */
.dropdown-menu {
position: absolute;
top: 100%;
right: 0;
background-color: var(--surface-color);
border: 1px solid #e2e8f0;
border-radius: var(--border-radius);
box-shadow: var(--box-shadow);
display: none; /* Hidden by default */
flex-direction: column;
z-index: 1000;
min-width: 150px; /* Minimum width for dropdown */
}
.dropdown-item {
padding: 0.75rem 1rem;
border: none;
background: none;
cursor: pointer;
text-align: left;
color: var(--secondary-color);
transition: var(--transition);
}
.dropdown-item:hover {
background-color: var(--background-color);
color: var(--primary-color);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Playfair Display", serif;
font-optical-sizing: auto;
}
/* Default Light Mode Styles */
body {
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2),rgba(52, 52, 52, 0.2), rgba(86, 86, 86, 0.2)),
url('https://www.overflow.design/src/assets/img/covers/oc.png') no-repeat center center/cover;
backdrop-filter: blur(3px);
animation: rainbowAnimation 10s ease infinite;
color: var(--secondary-color);
line-height: 1.5;
transition: var(--transition);
}
/* Dark Mode Styles */
body.dark-mode {
--background-color: #121212;
--surface-color: #1f1f1f;
--secondary-color: #b0b0b0;
--primary-color: #4095db;
--primary-dark: #42a5f5;
--accent-color: #64b5f6;
--error-color: #ef5350;
--success-color: #66bb6a;
background-color: var(--background-color);
color: var(--secondary-color);
}
.header{
display: flex;
justify-content: center;
align-items: center;
}
.mode{
color: var(--primary-color);
}
/* Dark Mode Styles */
body.dark-mode {
background-color: #121212;
color: #ffffff;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7),rgba(52, 52, 52, 0.7), rgba(86, 86, 86, 0.7)),
url('https://www.overflow.design/src/assets/img/covers/oc.png') no-repeat center center/cover;
backdrop-filter: blur(3px);
/* background-size: 400% 400%;
background-attachment: fixed;
background-image: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #00ff00, #0000ff, #8b00ff);
background-position: 0% 50%;
background-size: 400% 400%; */
}
/* @keyframes rainbowAnimation {
0% {
background-position: 0% 50%;
}
25% {
background-position: 100% 50%;
}
50% {
background-position: 100% 50%;
}
75% {
background-position: 0% 50%;
}
100% {
background-position: 0% 50%;
}
} */
.app-container {
min-height: 100vh;
display: flex;
flex-direction: column;
}
.header {
background-color: rgb(204, 242, 255);
padding: 1.2rem;
box-shadow: var(--box-shadow);
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
}
body.dark-mode .header {
background-color: var(--surface-color);
}
.logo {
display: flex;
align-items: center;
gap: 0.5rem;
justify-content: center;
}
.logo i {
color: var(--primary-color);
font-size: 1.5rem;
}
.logo h1 {
color: var(--primary-color);
font-size: 1.5rem;
font-weight: 600;
}
.main-content {
flex: 1;
padding: 2rem;
display: flex;
justify-content: center;
align-items: flex-start;
}
.container {
background-color: var(--surface-color);
border-radius: var(--border-radius);
box-shadow: -2px 8px 12px -1px rgb(0 0 0 / 0.2), -1px 4px 8px -2px rgb(0 0 0 / 0.2);
width: 100%;
max-width: 800px;
padding: 2.5rem;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
}
.tabs {
display: flex;
gap: 0.5rem;
margin-bottom: 1rem;
}
.tab-btn {
padding: 0.5rem 1rem;
border: none;
background-color: var(--background-color);
color: var(--secondary-color);
border-radius: var(--border-radius);
cursor: pointer;
transition: var(--transition);
}
.tab-btn:hover{
background-color: rgb(197, 197, 197);
color: black;
}
.dark-mode .tab-btn:hover{
background-color: var(--secondary-color);
color: black;
}
.tab-btn.active {
background-color: var(--primary-color);
color: white;
}
.tab-btn.active:hover{
background-color: var(--accent-color);
}
.dark-mode .tab-btn.active:hover{
background-color: var(--accent-color);
color: white;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
.input-field {
width: 100%;
padding: 0.75rem;
border: 1px solid #e2e8f0;
border-radius: var(--border-radius);
margin-bottom: 1rem;
font-size: 0.875rem;
transition: var(--transition);
}
.input-field:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
textarea.input-field {
min-height: 100px;
resize: vertical;
}
.customization-section {
background-color: var(--background-color);
padding: 1rem;
border-radius: var(--border-radius);
}
.option-group {
margin-bottom: 1rem;
}
.option-group label {
display: block;
margin-bottom: 0.5rem;
font-size: 0.875rem;
color: var(--secondary-color);
}
.select-field {
width: 100%;
padding: 0.5rem;
border: 1px solid #a4a8ae;
border-radius: var(--border-radius);
background-color: white;
font-size: 0.875rem;
}
.color-picker {
width: 100%;
height: 40px;
padding: 0;
border: none;
border-radius: var(--border-radius);
background-color: white ;
cursor: pointer;
}
body.dark-mode .color-picker {
border-radius: 0;
background-color: black;
}
.custom-file-upload {
display: inline-block;
padding: 0.5rem 1rem;
background-color: var(--surface-color);
border: 1px solid #a7acb3;
border-radius: var(--border-radius);
cursor: pointer;
transition: var(--transition);
}
.custom-file-upload:hover {
background-color: var(--background-color);
}
.file-input {
display: none;
}
.preview-section {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
}
.qr-body {
width: 100%;
aspect-ratio: 1;
background-color: #80808036;
border-radius: var(--border-radius);
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
.qr-body canvas {
max-width: 100%;
height: auto;
border-radius: var(--border-radius);
}
.loading-spinner {
position: absolute;
font-size: 2rem;
color: var(--primary-color);
}
.action-buttons {
display: flex;
gap: 1rem;
width: 100%;
}
.primary-button, .secondary-button {
flex: 1;
padding: 0.75rem 1rem;
border: none;
border-radius: var(--border-radius);
font-weight: 500;
cursor: pointer;
transition: var(--transition);
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
.primary-button {
background-color: var(--primary-color);
color: white;
}
.primary-button:hover {
background-color: var(--primary-dark);
}
.secondary-button {
background-color: var(--background-color);
color: var(--secondary-color);
}
.secondary-button:hover {
background-color: #e2e8f0;
}
.secondary-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.footer {
background: linear-gradient(135deg, #e6f2ff 0%, #cce6ff 100%);
padding: 3rem 1rem;
position: relative;
overflow: hidden;
color: var(--secondary-color);
}
.footer::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle at center, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
animation: subtle-pulse 10s infinite alternate;
z-index: 1;
}
@keyframes subtle-pulse {
0% {
transform: scale(1);
opacity: 0.7;
}
100% {
transform: scale(1.1);
opacity: 0.9;
}
}
.footer-container {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: 2fr 1fr 1fr;
gap: 2rem;
position: relative;
z-index: 2;
}
.footer-brand {
display: flex;
flex-direction: column;
gap: 1rem;
align-items: center;
}
.footer-logo {
display: flex;
align-items: center;
gap: 1rem;
font-size: 1.5rem;
font-weight: 700;
color: var(--primary-color);
}
.footer-logo i {
font-size: 2rem;
color: var(--primary-color);
}
.footer-description {
font-size: 0.9rem;
line-height: 1.6;
color: var(--secondary-color);
opacity: 0.8;
}
.footer-links {
display: flex;
flex-direction: column;
gap: 0.75rem;
text-align: left;
}
.footer-links h4 {
font-size: 1.1rem;
margin-bottom: 1rem;
color: var(--primary-color);
position: relative;
text-align: left;
}
.footer-links h4::after {
content: '';
position: absolute;
bottom: -0.5rem;
left: 0;
width: 50px;
height: 3px;
background-color: var(--primary-color);
left: 0; /* Ensure underline starts from left */
transform: none; /* Remove any existing transform */
margin: 0; /* Remove any margins */
}
.footer-links a {
color: var(--secondary-color);
text-decoration: none;
transition: var(--transition);
display: flex;
align-items: center;
gap: 0.5rem;
opacity: 0.8;
justify-content: flex-start; /* Align links to left */
padding: 0.5rem 0;
}
.footer-links a:hover {
color: var(--primary-color);
opacity: 1;
transform: translateX(5px);
}
.footer-links a i {
transition: var(--transition);
}
.footer-social {
display: flex;
gap: 1rem;
}
.social-link {
color: var(--secondary-color);
font-size: 1.5rem;
transition: var(--transition);
display: flex;
align-items: center;
justify-content: center;
width: 45px;
height: 45px;
border-radius: 50%;
background-color: rgba(37, 99, 235, 0.1);
}
.social-link:hover {
color: white;
background-color: var(--primary-color);
transform: scale(1.1) rotate(360deg);
}
.footer-bottom {
border-top: 1px solid rgba(0, 0, 0, 0.1);
padding-top: 1.5rem;
margin-top: 2rem;
text-align: center;
font-size: 0.8rem;
color: var(--secondary-color);
}
.made-with-love {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
.made-with-love i {
color: var(--error-color);
animation: heart-beat 1.5s infinite alternate;
}
@keyframes heart-beat {
0% {
transform: scale(1);
}
100% {
transform: scale(1.2);
}
}
.dark-mode .footer {
background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
color: #d1d5db;
}
.dark-mode .footer-logo,
.dark-mode .footer-links h4 {
color: #60a5fa;
}
.dark-mode .footer-links a {
color: #9ca3af;
}
.dark-mode .footer-links a:hover {
color: #60a5fa;
}
.dark-mode .social-link {
background-color: rgba(96, 165, 250, 0.1);
color: #9ca3af;
}
.dark-mode .social-link:hover {
background-color: #60a5fa;
color: white;
}
.dark-mode .footer-bottom {
border-top-color: rgba(255, 255, 255, 0.1);
}
.dark-mode .signup,
.dark-mode .login{
color: rgb(83, 83, 83);
}
.dark-mode .modal-content label{
color: rgb(66, 65, 65);
}
@media (max-width: 768px) {
.footer-container {
grid-template-columns: 1fr;
gap: 1.5rem;
}
}
.footer {
text-align: center;
padding: 20px;
background-color: rgb(204, 242, 255);
font-family: Arial, sans-serif;
}
/* Social Links Container */
.social-links {
margin-top: 10px;
display: inline-flex; /* Align links horizontally */
gap: 20px; /* Add space between the social links */
}
/* Social Links Styling */
.social-icon {
display: inline-flex;
align-items: center; /* Center-align icon and text */
text-decoration: none; /* Remove underline */
color: #333; /* Default text color */
font-size: 16px; /* Text size */
font-weight: 500; /* Make text slightly bold */
transition: all 0.3s ease; /* Smooth hover effect */
padding: 10px 10px; /* Add padding around the link */
}
/* Padding Between Icon and Text */
.social-icon i {
margin-right: 8px; /* Space between icon and text */
font-size: 18px; /* Slightly larger icon size */
}
/* Hover Effect */
.social-icon:hover {
color: #007BFF; /* Change text and icon color on hover */
background-color: #a6f9fc; /* Add a subtle background on hover */
border-radius: 5px; /* Rounded corners */
transform: translateY(-2px); /* Slight upward movement on hover */
text-decoration: none; /* Ensure underline doesn't appear on hover */
}
.footer i {
color: var(--error-color);
}
.toast {
position: fixed; /* Change from absolute to fixed */
top: 70px; /* Change from 100% to fixed distance from top */
right: 20px;
margin-top: 0; /* Remove margin-top */
padding: 1rem;
border-radius: var(--border-radius);
background-color: var(--surface-color);
box-shadow: var(--box-shadow);
display: none;
animation: slideIn 0.3s ease;
color: white; /* Ensure text is white */
z-index: 9999; /* Increase z-index to ensure it's always on top */
min-width: 250px; /* Add minimum width */
max-width: 350px; /* Add maximum width */
}
.toast.success {
background-color: var(--success-color);
}
.toast.error {
background-color: var(--error-color);
}
@keyframes slideIn {
from {
transform: translateX(100%) translateY(-100%);
opacity: 0;
}
to {
transform: translateX(0) translateY(0);
opacity: 1;
}
}
/* Add fade out animation */
.toast.hide {
animation: slideOut 0.3s ease forwards;
}
@keyframes slideOut {
from {
transform: translateX(0) translateY(0);
opacity: 1;
}
to {
transform: translateX(100%) translateY(-100%);
opacity: 0;
}
}
@media (max-width: 768px) {
.container {
grid-template-columns: 1fr;
}
.main-content {
padding: 1rem;
}
.header {
flex-direction: column;
justify-content: center;
}
.auth-section {
position: static;
margin-left: 1rem;
}
.auth-btn {
padding: 4px 8px;
font-size: 0.75rem;
}
.auth-section {
position: static;
margin-top: 1rem;
}
}
.scroll-btn {
position: fixed;
bottom: 30px;
right: 30px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 50%;
width: 50px;
height: 50px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease-in-out;
opacity: 0;
visibility: hidden;
z-index: 1000;
}
.scroll-btn:hover {
background-color: #3b82f6;
transform: scale(1.1);
}
.scroll-btn i {
font-size: 25px;
}
.scroll-btn.show {
opacity: 1;
visibility: visible;
}
a {
text-decoration: none;
color: inherit;
}
/* Auth Button Styles */
.auth-section {
position: absolute;
right: 1rem;
display: flex;
align-items: center;
}
.auth-btn {
position: relative; /* Add this */
background: #fff;
border: 2px solid #000;
color: #000;
padding: 8px 16px;
margin-right: 50px;
border-radius: 20px;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
transition: all 0.3s ease;
}
/* Modal Styles */
.modal {