-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
230 lines (201 loc) · 3.83 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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
:root {
/*! 1rem = 16px */
--title: 2.4rem;
--subtitle: 1.6rem;
--title-color: hsl(0, 0%, 93%);
--map-color: hsl(192, 74%, 35%);
}
@font-face {
font-family: "expMedium";
src: url(./assets/fonts/exp-medium.woff2) format("woff2");
font-weight: normal;
}
@font-face {
font-family: "Hellombah";
src: url(./assets/fonts/Hellombah.woff2) format("woff2");
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Raleway", sans-serif;
background-size: cover;
background-position: center;
background-image: url(./assets/images/background.svg);
backdrop-filter: blur(4px);
}
.wrapper {
width: 100%;
height: 100vh;
display: flex;
justify-content: space-evenly;
align-items: center;
flex-direction: column;
}
.wrapper__title {
position: relative;
}
.wrapper__title h1 {
font-size: clamp(24px, 3vw, 6vw);
font-family: "expMedium";
color: var(--title-color);
text-shadow: 4px 4px #000000;
cursor: default;
margin: 0;
}
.wrapper__title .h3title {
position: absolute;
top: 60%;
left: 80%;
font-family: "Hellombah";
font-size: clamp(24px, 3vw, 6vw);
color: #d83838;
font-style: italic;
vertical-align: bottom;
text-shadow: 2px 2px #000000;
cursor: default;
}
.wrapper svg {
max-width: 60%;
height: auto;
}
.wrapper svg g {
filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
}
.city {
fill: var(--map-color);
fill-opacity: 1;
stroke: rgb(255, 255, 255);
stroke-opacity: 1;
stroke-width: 0.5;
-webkit-transition: all 0.3s ease-out;
-o-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
cursor: pointer;
}
.city:hover {
fill: #eeeeee;
}
.show-city-name {
background-color: #31363f;
border-radius: 10px;
color: #eeeeee;
position: absolute;
padding: 15px 25px;
opacity: 0;
visibility: hidden;
font-size: 16px;
}
.show-city-name--active {
opacity: 1;
visibility: visible;
}
.location__title {
color: #98eaff;
}
.location__text {
font-family: "expMedium", sans-serif;
color: var(--title-color);
cursor: default;
}
.map__container,
.dialog__close:not(dialog[open]) {
user-select: none;
}
dialog[open] {
width: 340px;
height: 420px;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background: #202020;
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;
border-radius: 20px;
border: none;
color: #eeeeee;
-webkit-animation: fade-in-fwd 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;
animation: fade-in-fwd 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}
#dialog__container p {
font-size: 18px;
padding-bottom: 10px;
}
#degree {
font-size: 32px !important;
font-weight: bold;
}
@-webkit-keyframes fade-in-fwd {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes fade-in-fwd {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.text__grid {
display: flex;
flex-direction: row;
}
.text__grid p {
display: flex;
align-items: center;
margin: 6px 10px 0;
}
.text__grid span {
font-size: 16px;
padding-left: 6px;
color: #98eaff;
}
.dialog__close {
padding: 10px 30px;
margin-top: 10px;
font-family: "expMedium", sans-serif;
font-size: 16px;
font-weight: bold;
border-radius: 10px;
background-color: #98eaff;
color: #2e2e2e;
outline: none;
border: none;
cursor: pointer;
}
.dialog__close:hover {
background-color: #257b91;
}
dialog::backdrop {
background: rgba(0, 0, 0, 0.5);
}
dialog h2 {
font-size: 32px;
padding: 6px;
}
@media (max-width: 800px) {
.wrapper svg {
max-width: 86%;
height: auto;
padding: 50px;
}
.wrapper {
justify-content: center;
}
.show-city-name {
border-radius: 6px;
padding: 10px 15px;
font-size: 12px;
}
}