forked from iamrahulmahato/master-web-development
-
Notifications
You must be signed in to change notification settings - Fork 0
/
faq.html
143 lines (122 loc) · 3.8 KB
/
faq.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FAQ Page</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f4f6f9;
color: #333;
margin: 0;
padding: 0;
}
.faq-container {
width: 90%;
max-width: 800px;
margin: 60px auto;
background-color: #fff;
border-radius: 12px;
padding: 30px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
font-size: 2.5em;
color: #222;
margin-bottom: 40px;
letter-spacing: 1px;
}
.faq-item {
margin-bottom: 25px;
border-bottom: 1px solid #e0e0e0;
padding-bottom: 15px;
}
.faq-question {
margin: 0;
padding: 20px;
background-color: #f57460f1;
color: white;
font-size: 1.2em;
cursor: pointer;
border-radius: 8px;
transition: background-color 0.3s ease, transform 0.3s ease;
display: flex;
align-items: center;
justify-content: space-between;
}
.faq-question::after {
content: '\25BC';
font-size: 1.2em;
transition: transform 0.3s ease;
}
.faq-question.active::after {
transform: rotate(180deg);
}
.faq-question:hover {
background-color: #2980b9;
transform: translateY(-2px);
}
.faq-answer {
display: none;
margin-top: 15px;
padding: 15px 20px;
background-color: #f9f9f9;
border-left: 15px solid #fbe11b;
border-right: 15px solid #fbe11b;;
border-radius: 6px;
font-size: 1em;
line-height: 1.6;
color: #555;
animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
</style>
</head>
<body>
<div class="faq-container">
<h1>Frequently Asked Questions</h1>
<div class="faq-item">
<h3 class="faq-question">How do I create an account to start playing?</h3>
<p class="faq-answer">User don't need to create any account here.They can freely visit here and play the game they want.</p>
</div>
<div class="faq-item">
<h3 class="faq-question">Can I play games anytime?</h3>
<p class="faq-answer">Yes, all the games on our site can be played anytime.</p>
</div>
<div class="faq-item">
<h3 class="faq-question">Do I need to purchase any games?</h3>
<p class="faq-answer">No,all the games on our site are free to play anytime.</p>
</div>
<div class="faq-item">
<h3 class="faq-question">What should I do if a game isn't loading properly?</h3>
<p class="faq-answer">If a game isn’t loading, try refreshing the page, clearing your browser cache.</p>
</div>
<div class="faq-item">
<h3 class="faq-question">Which kind of games are available here?
</h3>
<p class="faq-answer">You can get many beginner level games here along with iq games,puzzle solving, funny games etc.</p>
</div>
<div class="faq-item">
<h3 class="faq-question">Can I play the games in any device?
</h3>
<p class="faq-answer">Yes,all the games are responsive here.So, you can play them in any device and enjoy yourself.</p>
</div>
</div>
<script>
// Select all question elements
const faqQuestions = document.querySelectorAll('.faq-question');
faqQuestions.forEach(question => {
question.addEventListener('click', () => {
// Toggle the visibility of the corresponding answer
const answer = question.nextElementSibling;
answer.style.display = (answer.style.display === 'block') ? 'none' : 'block';
});
});
</script>
</body>
</html>