-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathstyle.css
108 lines (91 loc) · 1.58 KB
/
style.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Times New Roman", Times, serif;
background: linear-gradient(to right, #26265a, #2f1532);
color: white;
background-attachment: fixed;
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
section {
justify-items: center;
display: flex;
flex-direction: column;
align-items: center;
margin: auto;
}
.title {
font-size: 35px;
margin: 40px 0;
color: rgb(234, 209, 231);
}
.faq {
max-width: 700px;
margin-top: 20px;
padding: 20px;
border: 2px solid greenyellow;
cursor: pointer;
border-radius: 15px;
}
.question {
display: flex;
justify-content: space-between;
align-items: center;
}
h3 {
font-size: 25px;
color: rgb(234, 209, 231);
}
.answer {
max-height: 0;
overflow: hidden;
transition: max-height 1.4s ease;
color: rgb(191, 253, 233);
}
.answer p {
padding-top: 20px;
line-height: 1.6;
font-size: 20px;
}
.faq.active .answer {
max-height: 300px;
animation: fade 1s ease-in-out;
}
i {
transition: transform 0.5s ease-in;
color: yellow;
}
.faq.active i {
transform: rotate(180deg);
}
@keyframes fade {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* @media screen and (max-width: 768px) {
section {
margin: 0 auto;
}
}
@media screen and (max-width: 1024px) {
section {
margin: 0 auto;
}
} */
::-webkit-scrollbar {
width: 0;
height: 0;
}
body::-webkit-scrollbar {
display: none; /* Safari and Chrome */
}