forked from ankit071105/Ticket-Booking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
faq.css
79 lines (69 loc) · 1.38 KB
/
faq.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
/* Smooth scroll */
html {
scroll-behavior: smooth;
}
/* FAQ Container styling */
.faq-container {
margin-top: 25px ;
margin-bottom: 25px;
padding: 80px;
max-width: 800px;
background-color: #f7f7f7;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Title styling */
.faq-title {
text-align: center;
font-size: 2.5rem;
color: #333;
margin-bottom: 30px;
}
/* Accordion styling */
.accordion {
margin-bottom: 15px;
}
.FAQ-title {
display: flex;
justify-content: space-between;
background-color: #1fb899;
color: #fff;
padding: 15px 20px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.FAQ-title:hover {
background-color: #17a38b;
}
.faqQuestion {
margin-top: 20px;
}
/* Toggle button styling */
.expandToggle {
background-color: #fff;
color: #1fb899;
padding: 0.0175rem 2rem;
border-radius: 50%;
font-weight: bold;
font-size: 1.2rem;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.expandToggle:hover {
background-color: #f7f7f7;
transform: rotate(90deg);
}
/* FAQ content styling for smooth expansion */
.FAQ-content {
max-height: 0;
opacity: 0;
overflow: hidden;
transition: max-height 0.4s ease, opacity 0.4s ease;
}
.FAQ-content.open {
max-height: 500px; /* Adjust this if needed */
opacity: 1;
}