forked from YadavAkhileshh/Alien-Invasion-Defense
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FAQs.css
169 lines (147 loc) · 3.3 KB
/
FAQs.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
@font-face {
font-family: 'WorkSans-Bold';
src: url('assets/fonts/static/WorkSans-Bold.ttf') format('truetype');
}
@font-face {
font-family: 'WorkSans-Regular';
src: url('assets/fonts/static/WorkSans-Regular.ttf') format('truetype');
}
@font-face {
font-family: 'WorkSans-SemiBold';
src: url('assets/fonts/static/WorkSans-SemiBold.ttf') format('truetype');
}
body {
background-image: url("assets/images/background-pattern-desktop.svg");
background-repeat: no-repeat;
background-size: cover;
background-color: rgb(223, 238, 247);
margin: 0;
font-family: 'WorkSans-Regular';
}
/* FAQ Container */
.faqcontainer {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: white;
border-radius: 10px;
padding: 20px;
max-width: 600px;
min-height: 300px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
z-index: 1;
}
h1 {
font-family: 'WorkSans-Bold';
display: flex;
align-items: center;
font-size: 32px;
margin-bottom: 20px;
}
h1 img {
margin-right: 15px;
}
.question {
font-family: 'WorkSans-SemiBold';
padding: 10px 0;
border-bottom: 1px solid rgb(243, 218, 171);
transition: background-color 0.3s, transform 1s;
}
.question details summary {
list-style: none;
cursor: pointer;
padding: 7px;
transition: color 0.3s;
display: flex;
justify-content: space-between;
align-items: center;
}
.question summary:hover {
color: #555353;
}
.arrow {
transition: transform 0.3s;
}
details[open] summary .arrow {
transform: rotate(180deg);
}
.question p {
font-family: 'WorkSans-Regular';
font-size: 17px;
color: #767676;
margin-left: 20px;
}
.bottom-background {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
.faq-btn {
/* height: 20px;
width: 40px;
font-family: 'WorkSans-Bold';
font-size: 18px;
padding: 10px 20px;
background-color: #ff9900;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s, transform 0.3s;
text-transform: uppercase;
opacity: 3; */
position: absolute;
top: 20px;
right: 20px;
background-color: transparent;
border: none;
font-size: 24px;
color: white;
cursor: pointer;
outline: none;
margin-top: 200%;
}
.faq-btn:hover {
background-color: #e68a00;
transform: scale(1.05);
}
.faq-btn:active {
background-color: #cc7a00;
transform: scale(1);
}
a {
text-decoration: none;
}
.FAQs {
position: absolute; /* or fixed if you want it to stay on screen while scrolling */
top: 20px; /* Adjust as needed */
left: 20px; /* Adjust as needed */
z-index: 1000; /* Ensure it's on top of other content */
}
.faq-btn {
font-family: 'WorkSans-Bold';
font-size: 18px;
padding: 10px 20px;
background-color: #ff9900;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s, transform 0.3s;
text-transform: uppercase;
}
.faq-btn:hover {
background-color: #e68a00;
transform: scale(1.05);
}
.faq-btn:active {
background-color: #cc7a00;
transform: scale(1);
}
a {
text-decoration: none; /* Remove underline from link */
}