-
Notifications
You must be signed in to change notification settings - Fork 18
/
style.css
187 lines (154 loc) · 3.12 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
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
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.2/font/bootstrap-icons.css");
:root {
--box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-size: 16px;
font-family: 'Poppins', sans-serif;
text-decoration: none;
list-style: none;
}
html {
scroll-behavior: smooth;
}
/* .quiz{
background-color: #5ad260;
padding: 30px;
} */
.quiz {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: auto;
background: linear-gradient(45deg, #ef5050, #48ca48, #da0dae);
background-size: 300% 300%;
animation: pulse 5s ease infinite;
}
@keyframes pulse {
0%,
100% {
background-position: 0 50%;
}
50% {
background-position: 100% 50%;
}
}
.heading {
margin: 10px auto 40px auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
top: 0;
position: sticky;
height: 10vh;
}
.heading .title {
font-size: 40px;
color: #ffffff;
font-weight: 500;
text-align: center;
}
.heading .subtitle {
font-size: 25px;
color: #ffffff;
font-weight: 300;
text-align: center;
}
.result {
text-align: center;
min-width: 350px;
max-width: 400px;
height: auto;
margin: 20px auto;
border-radius: 5px;
background-color: #fefcfc;
box-shadow: var(--box-shadow);
}
.result p:first-child {
padding: 10px 20px;
}
.hide {
display: none;
}
.reload button {
background-color: #169090;
color: #ffffff;
padding: 10px 20px;
border-radius: 0px 0px 5px 5px;
width: 100%;
border: 0px;
}
.reload button:hover {
background-color: #38c08e;
cursor: pointer;
}
.quiz-form {
max-width: 1000px;
margin: auto;
}
.question {
background-color: rgba(251, 247, 247, 0.908);
color: rgb(11, 11, 11);
padding: 10px 20px;
border-radius: 10px;
margin: 20px 10px;
box-shadow: var(--box-shadow);
}
.question>* {
font-size: 18px;
/* font-size: 20px; */
}
.option {
margin-left: 10px;
}
.correct {
background-color: #b2efcb;
}
.wrong {
background-color: #f2c8c8;
}
.submit {
text-align: center;
margin: 30px 0px;
}
.submit input {
background-color: #249f34;
padding: 5px 25px;
color: #ffffff;
font-size: 22px;
border-radius: 5px;
box-shadow: var(--box-shadow);
border: 0px;
}
.submit input:hover {
background-color: #c3db50;
cursor: pointer;
}
.correct-option {
background-color: #b2efcb;
}
.question:hover{
border: 2px solid rgb(15, 15, 15);
}
#scrolltoTop{
display: none;
position: fixed;
bottom: 20px;
right: 30px;
z-index: 99;
cursor: pointer;
border-radius: 10px;
border: 2px solid black;
font-size: 20px;
font-weight: bold;
height: 3rem;
width: 3rem;
border-radius: 2rem;
transition: all 1s ease;
}