forked from ankit071105/Ticket-Booking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
779 lines (686 loc) · 14.6 KB
/
index.css
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
/* Your styles go here */
body {
font-family: Arial, sans-serif;
}
/* Popup Styles */
.popup {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
justify-content: center; /* Center the popup */
align-items: center; /* Center the popup */
z-index: 1000; /* Sit on top */
}
.popup-content {
background: linear-gradient(#04ae98, rgb(10 96 78)), url(your-image-url.jpg);
padding: 20px;
border-radius: 5px;
max-width: 500px;
max-height: 500px;
min-height: 410px;
text-align: center;
}
/* Set poll options to stack vertically */
#pollOptions {
display: flex;
flex-direction: column; /* Stack buttons vertically */
align-items: center; /* Center the buttons */
}
.poll-button {
display: block; /* Change to block for full-width */
margin: 5px 0; /* Add vertical margin */
padding: 5px 15px;
border: none;
border-radius: 5px;
background-color: rgb(14 64 98 / 40%);
color: white;
cursor: pointer;
transition: background-color 0.3s;
width: 100%; /* Full width */
height: 70px;
}
.poll-button:hover {
background-color: #45a049; /* Darker green */
}
.poll-button.selected {
background-color:#1fb899; /* Blue for selected */
}
/* New Vote Button Styles */
.vote-button {
display: block; /* Change to block for full-width */
margin: 5px 0; /* Add vertical margin */
padding: 5px 15px;
border: none;
border-radius: 5px;
background-color: #f44336; /* Red */
color: white;
cursor: pointer;
transition: background-color 0.3s;
width: 100%; /* Full width */
}
.vote-button:hover {
background-color: #d32f2f; /* Darker red */
}
/* Result Text Styles */
#result {
margin-top: 10px; /* Add space above result text */
word-wrap: break-word; /* Allow long text to wrap within the box */
overflow: hidden; /* Prevent overflow */
color: rgb(255, 255, 255); /* Set text color to white */
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
line-height: 1.6;
color: #222;
background-color: #f0f4f8;
font-size: 16px;
transition: background-color 0.3s, color 0.3s;
overflow-x: hidden;
}
.Wrapper {
position: fixed;
inset: 0;
z-index: 9999;
background-color: #b9e6ec;
display: grid;
place-items: center;
transition: opacity 0.25s, visiblity 1s;
}
.fade {
opacity: 0;
visibility: hidden;
}
.loader {
border: 17px solid #b9e6ec; /* Light grey background */
border-top: 17px solid #061824; /* Blue color for top */
border-radius: 50%;
width: 170px;
height: 170px;
animation: spin 1s linear infinite;
}
h1,
h2,
h3,
p {
margin-bottom: 20px;
}
/* -------------about section styles------------------- */
.about {
text-align: center;
padding: 50px 20px;
font-size: bolder;
}
.about-box {
display: flex; /* Use Flexbox to position children in a row */
align-items: center; /* Vertically center the items */
margin-left: -25px;
}
.about .about-box .video-container {
position: relative;
flex: 1; /* Allow the video container to grow */
max-width: 800px; /* Limit the width of the video */
overflow: hidden;
}
.video-container video {
width: calc(100% + 150px); /* Increase the width to crop from the right */
height: auto; /* Maintain aspect ratio */
position: relative;
right: -50px; /* Move the video to the left to crop from the right */
}
.about .about-box .text {
flex: 1; /* Allow the text container to grow */
max-width: 640px; /* Optional: Limit the width of the text */
display: flex;
padding-left: 20px;
flex-direction: column;
justify-content: center; /* Center content vertically */
gap: 15px;
}
.about .about-box .text h1 {
font-size: 35px; /* Adjust font size as needed */
letter-spacing: 1.3px;
font-weight: 900; /* Increase this value to make it bolder */
color: var(--ternary-color);
}
.about .about-box .text p {
line-height: 25px;
max-width: 700px;
margin: 0 auto;
text-align: justify;
font-size: bolder;
}
.about .about-box .text ul li {
margin: 10px 0;
display: flex;
align-items: center;
gap: 10px;
}
.about .about-box .text ul li .feature-icon {
height: 30px;
min-width: 30px;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--main-color);
border-radius: 5px;
}
.about .about-box .text ul li i {
color: var(--body-color);
}
.about .about-box .text ul li span span {
color: var(--main-color);
font-weight: 600;
}
/* Styling the navbar */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #1f2937;
padding: 15px;
color: white;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
/* Navbar container */
.navbar {
background-color: #333;
padding: 10px 20px;
}
/* Navbar list styling */
.navbar ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
gap: 30px;
}
/* Navbar links styling */
.navbar ul li a {
text-decoration: none;
color: white;
font-weight: 500;
font-size: 1.1em;
padding: 8px 16px;
transition: all 0.3s ease;
border-radius: 5px;
}
/* Hover effect with underline and color change */
.navbar ul li a:hover {
color: #ffd700; /* Golden color on hover */
background-color: #444;
transform: scale(1.05);
}
/* Hover effect with underline and color change */
.navbar ul li a:hover {
color: #ffd700; /* Golden color on hover */
background-color: #444;
transform: scale(1.05);
}
/* Optional: Adding a subtle underline effect */
.navbar ul li a::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: -5px;
height: 2px;
background-color: #ffd700; /* Underline color */
transform: scaleX(0);
transition: transform 0.3s ease;
}
.navbar ul li a:hover::after {
transform: scaleX(1);
}
}
.nav-container {
display: flex;
align-items: center;
justify-content: space-between;
}
.navbar a {
color: white;
text-decoration: none;
margin-right: 20px;
font-weight: 600;
position: relative; /* Needed for the underline to position correctly */
}
/* Hover Effect */
.navbar a:hover {
color: #ffd700; /* Change text color on hover */
font-weight: bold; /* Optional: make hover link bold */
}
/* Active Link Styles */
.navbar a.active {
color: #ffd700;
font-weight: bold;
}
/* Underline effect for active link */
.navbar a.active::after,
.navbar a:hover::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: -5px;
height: 2px;
background-color: #ffd700;
transform: scaleX(1);
transition: transform 0.3s ease;
}
/* Optional: Remove underline on hover if you want to keep it only for active */
.navbar a:hover::after {
transform: scaleX(1); /* Keep underline visible on hover */
}
.logo {
font-size: 1.5rem;
font-weight: bold;
}
#darkModeToggle {
background-color: transparent;
border: none;
font-size: 20px;
cursor: pointer;
}
/* Dark Mode CSS */
body.dark-mode {
background-color: #121212;
color: #f0f0f0;
}
body.dark-mode .navbar {
background-color: #333;
}
body.dark-mode .nav-links a {
color: #f0f0f0;
}
body.dark-mode #darkModeToggle i {
color: #f0f0f0;
}
/* Adjustments for preloader and other elements */
body.dark-mode #preloader {
background-color: rgba(0, 0, 0, 0.988);
}
.caption {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
font-size: 2rem;
font-weight: bold;
text-align: center;
}
.home {
padding: 20px;
background-color: #fff;
margin: 20px auto;
max-width: 1200px;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
border-radius: 12px;
}
h2 {
color: #09372e;
font-size: 2.5rem;
text-align: center;
margin-bottom: 40px;
}
.btn {
background-color: #00bfa6;
color: white;
padding: 10px 30px;
text-decoration: none;
border-radius: 5px;
font-size: 1rem;
transition: background-color 0.3s ease;
display: block;
text-align: center;
margin: 0 auto;
}
.btn:hover {
background-color: #00a690;
}
/* General styling for the container */
.bus {
padding: 20px;
text-align: center;
}
.bus h2 {
margin-bottom: 30px;
color: #333;
}
/* Ticket list container */
.ticket-list {
display: flex;
/* flex-wrap: wrap; */
justify-content: space-between;
padding: 20px;
max-width: 1000px;
margin: 0 auto;
gap: 20px; /* Adds space between the cards */
}
/* Individual ticket cards */
.ticket-card1 {
background-color: #fff;
max-width: 470px;
padding: 50px;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ticket-card2 {
background-color: #fff;
max-width: 470px;
padding: 50px;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ticket-card3 {
background-color: #fff;
max-width: 470px;
padding: 50px;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ticket-card4 {
background-color: #fff;
max-width: 470px;
padding: 50px;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.containers {
padding: 20px;
background: aliceblue;
text-align: center;
}
.map-container {
margin: 20px 0;
height: 400px;
width: 100%;
}
iframe {
border: none;
width: 100%;
height: 100%;
border-radius: 20px;
}
.contact-links {
margin: 20px 0;
}
.contact-links a {
display: inline-block;
margin: 10px;
padding: 15px 30px;
text-decoration: none;
color: white;
background-color: #25d366;
border-radius: 5px;
}
.contact-links a.email-link {
background-color: #007bff;
}
.portfolio .portfolio-container {
display: grid;
grid-template-columns: repeat(2, 1fr);
align-items: center;
gap: 2.5rem;
}
.about,
.contact {
padding: 40px 20px;
background-color: #f9f9f9;
margin: 20px auto;
border-radius: 12px;
max-width: 1200px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.about h2,
.contact h2 {
text-align: center;
color: black;
font-size: 2.5rem;
margin-bottom: 20px;
}
.about p,
.contact p {
text-align: center;
color: #555;
font-size: 1.1rem;
line-height: 1.6;
}
footer{
margin-top: 50px;
}
/* footer {
background-color: #1f2937;
color: white;
text-align: center;
padding: 20px;
margin-top: 50px;
position: relative;
width: 100%;
bottom: 0;
font-size: 1rem;
}
.footer a {
color: #00bfa6;
text-decoration: none;
}
.footer a:hover {
color: #00a690;
} */
body.dark-mode {
background: linear-gradient(135deg, #007acc, #00cc99);
color: #fff;
}
body.dark-mode .navbar {
background-color: #000;
}
body.dark-mode .ticket-card p {
color: rgb(197, 208, 218);
}
body.dark-mode .ticket-card h3 {
color: whitesmoke;
}
body.dark-mode .ticket-card {
background: linear-gradient(135deg, hsl(204, 75%, 50%), #079874);
color: #fff;
}
body.dark-mode .ticket-card button {
background-color: #00bfa6;
}
body.dark-mode .ticket-card button:hover {
background-color: #00a690;
}
/* Responsive Styles */
@media (max-width: 1200px) {
.ticket-card {
flex: 1 1 calc(45% - 20px);
}
.navbar .nav-links {
flex-direction: row;
gap: 15px;
align-items: flex-start;
}
}
@media (max-width: 768px) {
.ticket-card {
flex: 1 1 100%;
}
.hero-slider {
height: 50vh;
}
.caption {
font-size: 1.5rem;
}
}
@media (max-width: 500px) {
.navbar .logo {
font-size: 20px;
}
.btn {
padding: 8px 20px;
font-size: 0.9rem;
}
.caption {
font-size: 1.2rem;
}
}
.my {
margin-top: 20px;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
font-family: "Arial", sans-serif;
background-color: #f4f4f4;
}
.hero-slider {
position: relative;
width: 80%;
height: 100vh;
border-radius: 10px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.slide {
position: relative;
margin-top: 0;
width: 100%;
height: 100%;
display: none;
justify-content: center;
align-items: center;
text-align: center;
}
.slide img {
width: 100%;
height: 100%;
}
.overlay {
position: absolute;
bottom: 20px;
left: 20px;
color: white;
background-color: rgba(0, 0, 0, 0.5);
padding: 15px;
border-radius: 5px;
}
h2 {
font-size: 20px;
margin-bottom: 0.5em;
}
p {
font-size: 1.2em;
}
.nav-buttons {
position: absolute;
top: 35%;
width: 100%;
display: flex;
justify-content: space-between;
transform: translateY(-50%);
}
/* Position of .nav-buttons within the 550px screen width */
@media (max-width: 550px) {
.nav-buttons {
top: 30%;
}
}
.bbtn {
display: inline-block;
background: linear-gradient(135deg, #079874, #076887);
color: white !important;
margin: 0 10px;
font-size: 18px;
font-weight: bold !important;
padding: 15px 40px !important;
cursor: pointer !important;
border: none !important;
border-radius: 50px !important;
transition: padding 0.4s ease, margin 0.4s ease, background-color 0.4s ease,
color 0.4s ease, box-shadow 0.4s ease !important;
box-shadow: 0 8px 25px rgba(7, 152, 116, 0.5);
text-align: center;
width: auto;
height: auto;
}
.bbtn:hover {
padding-left: 60px !important;
padding-right: 60px !important;
margin: 0 !important;
background: linear-gradient(135deg, #076887, #07a887) !important;
color: #fff !important;
box-shadow: 0 12px 30px rgba(7, 152, 116, 0.6) !important;
}
.bbtn:active {
transform: translateY(2px) !important;
box-shadow: 0 6px 20px rgba(7, 152, 116, 0.5) !important;
}
.bbtn:focus {
outline: none !important;
box-shadow: 0 0 10px rgba(7, 152, 116, 0.7), 0 0 20px rgba(7, 152, 116, 0.5) !important;
}
button {
background-color: rgba(255, 255, 255, 0.8);
border: none;
border-radius: 50%;
width: 40px;
height: 40px;
cursor: pointer;
font-size: 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
button:hover {
background-color: rgba(255, 255, 255, 1);
}
/* move to top button */
#topBtn {
display: none;
position: fixed;
bottom: 20px;
right: 30px;
z-index: 99;
font-size: 18px;
border: none;
outline: none;
background-color: #26c9bb;
color: white;
cursor: pointer;
padding: 15px;
border-radius: 10px;
text-align: center;
line-height: 20px;
/* border-top: 10px; */
/* padding-top: 20px; */
}
#topBtn:hover {
background-color: #000;
}
/* FAQ Section */
/* Responsive Design */
@media (max-width: 600px) {
.faq-question {
font-size: 16px;
}
.faq-answer {
font-size: 14px;
}
.faq-heading {
font-size: 20px;
}
}