-
Notifications
You must be signed in to change notification settings - Fork 0
/
battle.css
179 lines (158 loc) · 3.5 KB
/
battle.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
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
:root{
--light-purple-color: #8854c0;
--light-color: #fff;
--dark-color: #000;
--grey-color: #f2f2f2;
--transition: alt 300ms ease-in-out;
}
.flex{
display: flex;
align-items: center;
justify-content: center;
}
body{
font-family: 'poppins', sans-serif;
min-height: 100vh;
color: var(--dark-color);
background-color: var(--dark-color);
}
.wrapper{
background-color: var(--light-color);
padding: 1.5rem 4rem 3rem 4rem;
width: 600px;
height: 654px;
border-bottom-right-radius: 1.5rem;
position: relative;
box-shadow: 0 4px 6px rgb(0 0 0 / 10%), 0 1px 2px rgb(0 0 0 / 10%);
}
.quiz-title{
text-align: center;
font-size: 2rem;
}
.quiz-title2{
text-align: center;
font-size: .7rem;
}
.quiz-score{
text-align: right;
/* font-weight: 600; */
font-size: 1.2rem;
border: 5px solid var(--grey-color);
margin-bottom: 1rem;
font-weight: bold;
width: 100px;
height: 50px;
margin: .5rem auto;
color: var(--light-purple-color);
}
.quiz-question{
font-size: 1.2rem;
text-align: center;
line-height: 1.3;
margin-bottom: 2rem;
}
.quiz-question .category{
font-size: 0.9rem;
font-weight: 500;
background-color: var(--light-purple-color);
color: var(--light-color);
padding: .2rem .4rem;
border-radius: .2rem;
margin-top: 0.5rem;
display: inline-block;
}
.quiz-options{
list-style-type: none;
margin: 1rem 0;
}
.quiz-options li{
border-radius: 0.5rem;
font-weight: 600;
margin: .7rem 0;
padding: .4rem 1.2rem;
cursor: pointer;
border: 3px solid var(--light-purple-color);
background-color: var(--light-purple-color);
color: var(--light-color);
box-shadow: 0 4px 0 0 #6c4298;
transition: var(--transition);
}
.quiz-options li:hover{
background-color: var(--grey-color);
color: var(--dark-color);
border-color: var(--grey-color);
box-shadow: 0 4px 0 0 #bbb;
}
.quiz-options li:active{
transform: scale(0.97);
}
.selected{
background-color: var(--grey-color) !important;
color: var(--dark-color) !important;
border-color: var(--grey-color) !important;
box-shadow: 0 4px 0 0 #bbb !important;
}
.quiz-foot button{
border: none;
border-radius: 0.5rem;
outline: 0;
font-family: 'poppins', sans-serif;
font-size: 1.2rem;
font-weight: 600;
padding: .5rem 1rem;
margin: 0 auto;
text-transform: uppercase;
cursor: pointer;
display: block;
background-color: var(--grey-color);
color: var(--dark-color);
letter-spacing: 2px;
transition: var(--transition);
box-shadow: 0 4px 0 0 #bbb;
}
.quiz-foot button:hover{
background-color: #e6e6e6;
box-shadow: 0 4px 0 0 #a7a7a7;
}
.quiz-foot button:active{
transform: scale(0.95);
}
#play-again{
display: none;
}
#result{
padding: .7rem 0;
text-align: center;
font-weight: 600;
font-size: 1.3rem;
}
#result i{
width: 30px;
height: 30px;
border-radius: 50%;
line-height: 30px;
margin-right: .5rem;
margin-bottom: .5rem;
background-color: var(--light-purple-color);
color: var(--light-color);
}
@media(max-width: 678px){
.quiz-title{
font-size: 1.6rem;
}
.wrapper{
margin: 3rem 0;
width: 90%;
padding: 1.5rem 1rem 3rem 1rem;
border-top-left-radius: 0;
border-bottom-right-radius: 0;
}
.quiz-foot button{
font-size: 1rem;
}
}