-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquiz.css
171 lines (168 loc) · 3.87 KB
/
quiz.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
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap");
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
font-family: "Poppins", sans-serif;
background: url(https://cdn.svgator.com/images/2022/06/use-svg-as-background-image-particle-strokes.svg);
justify-content: center;
display: flex;
width: 100vw;
height: 100vh;
}
.logo {
display: flex;
justify-content: right;
align-items: center;
cursor: pointer;
transition: all 0.5s ease-in;
}
.logo:hover {
filter: drop-shadow(2px 3px 20px);
}
.container {
color: white;
width: 650px;
height: 80%;
padding: 20px;
margin-top: 5%;
background: rgba(255, 255, 255, 0.067);
box-shadow: rgba(141, 139, 139, 0.21) 0px -23px 25px 0px inset,
rgba(22, 22, 22, 0.15) 0px -36px 30px 0px inset,
rgba(23, 22, 22, 0.1) 0px -79px 40px 0px inset,
rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(62, 59, 59, 0.09) 0px 4px 2px,
rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(34, 33, 33, 0.197) 0px 16px 8px,
rgba(125, 122, 122, 0.066) 0px 32px 16px;
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(5px);
border-radius: 20px;
border: 2px solid rgba(255, 255, 255, 0.048);
text-shadow: 0.5px 1px 0.5px rgba(162, 157, 142, 1);
}
footer {
display: flex;
justify-content: right;
color: #00000000;
font-size: small;
text-shadow: 0.5px 1px 0.5px rgba(162, 157, 142, 1);
}
h1 {
margin-top: -15px;
text-align: center;
font-size: 50px;
}
h4 {
text-align: center;
font-size: 20px;
}
.question {
font-weight: bold;
margin-bottom: 10px;
font-size: 20px;
margin-left: 20px;
}
.options {
margin-bottom: 20px;
font: size 15px;
margin-left: 20px;
}
.option {
display: block;
margin-bottom: 10px;
}
button {
display: flex;
align-items: center;
justify-content: center;
height: 40px;
position: relative;
padding: 0 15px;
font-size: 15px;
text-transform: uppercase;
border: 0;
margin-left: 20px;
background-color: hsl(0, 100%, 52%);
border-radius: 12px;
overflow: hidden;
transition: 31ms cubic-bezier(0.5, 0.7, 0.4, 1);
text-shadow: 0.5px 1px 0.5px rgba(162, 157, 142, 1);
box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px,
rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
margin-top: 25px;
cursor: pointer;
}
button:before {
content: attr(alt);
display: flex;
align-items: center;
justify-content: center;
position: absolute;
inset: 0;
font-size: 15px;
font-weight: bold;
color: white;
letter-spacing: 4px;
opacity: 1;
}
.button:active {
box-shadow: none;
transform: translateY(7px);
transition: 35ms cubic-bezier(0.5, 0.7, 0.4, 1);
}
.button:hover:before {
transition: all 0s;
transform: translateY(100%);
opacity: 0;
}
.button i {
color: white;
font-size: 15px;
font-weight: bold;
letter-spacing: 4px;
font-style: normal;
transition: all 2s ease;
transform: translateY(-20px);
opacity: 0;
}
.button:hover i {
transition: all 0.2s ease;
transform: translateY(0px);
opacity: 1;
}
.button:hover i:nth-child(1) {
transition-delay: 0.045s;
}
.button:hover i:nth-child(2) {
transition-delay: calc(0.045s * 3);
}
.button:hover i:nth-child(3) {
transition-delay: calc(0.045s * 4);
}
.button:hover i:nth-child(4) {
transition-delay: calc(0.045s * 5);
}
.button:hover i:nth-child(6) {
transition-delay: calc(0.045s * 6);
}
.button:hover i:nth-child(7) {
transition-delay: calc(0.045s * 7);
}
.button:hover i:nth-child(8) {
transition-delay: calc(0.045s * 8);
}
.button:hover i:nth-child(9) {
transition-delay: calc(0.045s * 9);
}
.button:hover i:nth-child(10) {
transition-delay: calc(0.045s * 10);
}
.result {
text-align: center;
margin-top: 20px;
font-weight: bold;
}
.hide {
display: none;
}