-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
177 lines (146 loc) · 3.21 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
/* General Settings */
@import url('https://fonts.googleapis.com/css2?family=Fuzzy+Bubbles:wght@700&family=Yanone+Kaffeesatz:wght@700&display=swap');
body {
background-color: var(--bg-color-dark-blue);
margin: 0;
}
/* Variables */
:root {
--bg-color-dark-blue: #283579;
--bg-color-light-blue: #3d80e5;
--bg-color-green: #74992e;
--bg-color-light-green: #bcf566;
--bg-color-yellow: #efdc02;
--bg-color-gray: #444242;
--bg-color-dark-gray: #1e1e1e;
}
/* Container for the form */
.container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
/* Title */
.container-title {
position: relative;
display: flex;
justify-content: center;
align-items: center;
background-color: #fff;
padding: 0 5.3vmax;
margin: 4vmax 8vmin -1.5vmax;
border-radius: 1.7rem;
}
h1 {
font: 3.7vmax "Yanone Kaffeesatz", sans-serif;
text-align: center;
letter-spacing: .04rem;
word-spacing: .4rem;
font-weight: bold;
color: var(--bg-color-dark-gray);
}
.img-title {
position: relative;
width: 30vmin;
height: 30vmin;
margin: -1.6vmax 2vmax -1.6vmax -1.6vmax;
border-radius: 50%;
user-select: none;
}
/* Form */
.inbox {
background-color: var(--bg-color-gray);
margin: 0 2vmax 2vmax;
padding: 4vmax 2vmax 3vmax;
font: 1.4vmax 'Fuzzy Bubbles', cursive;
}
.item {
display: flex;
align-items: center;
margin: 1vmax;
padding: 2vmax;
background-color: var(--bg-color-light-blue);
color: #fff;
}
.item:hover {
transform: scale(1.03);
transition: 0.3s ease;
border: .15em solid var(--bg-color-yellow);
}
.checkbox {
margin: 1.9vmin;
width: 2.5vmax;
height: 2.5vmax;
accent-color: var(--bg-color-green);
}
.checkbox, label {
cursor: pointer;
}
/* Images inside the form */
.icon {
position: relative;
width: 29vmin;
height: 34vmin;
margin: -6vmax 1vmax -4.5vmax 1vmax;
}
/* Button to check the results */
.button {
display: flex;
justify-content: center;
}
#btn-result {
margin: 2vmax;
padding: 2vmax 6vmax;
border-radius: 10vmax;
border: none;
background-color: #fff;
color: var(--bg-color-dark-gray);
font: 5.4vmin "Yanone Kaffeesatz", sans-serif;
text-decoration: none;
cursor: pointer;
}
#btn-result:hover {
transform: scale(1.05);
}
/* Container for the result of the quiz */
.box {
font: 1.3vmax 'Fuzzy Bubbles', cursive;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
margin: 2vmax auto;
padding: 1vmax 3vmax;
width: 60%;
height: 50%;
background-color: var(--bg-color-light-green);
border: 1em solid #fff;
border-radius: 1.7rem;
}
h3 {
line-height: 2em;
}
.img { /* class created in JS */
width: 95%;
height: 95%;
border: 1vmin solid #fff;
border-radius: 4.7vmax;
}
/* Footer */
.box-footer {
font: 1.3vmax "Yanone Kaffeesatz", sans-serif;
text-align: center;
letter-spacing: .04em;
white-space: nowrap;
padding: 1vmin;
max-width: 55%;
margin: 4vmax auto 1.5vmax;
background: rgba(202, 243, 173, 0.138);
border-radius: 1.7rem;
border: 1px solid rgba(202, 243, 173, 0.203);
box-shadow: 0 4px 30px rgba(92, 244, 87, 0.152);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
}