-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
320 lines (298 loc) · 5.14 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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
/* Global Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 62.5%;
}
body {
font-family: "Poppins", sans-serif;
}
h1 {
font-size: 2.6rem;
}
li,
button,
label,
input,
p {
font-size: 2rem;
}
h2 {
font-size: 4.8rem;
}
h3 {
font-size: 3rem;
font-weight: normal;
}
h4,
h5 {
font-size: 2.8rem;
}
a {
color: white;
text-decoration: none;
}
/* Nav Section with hero */
.main-head {
background: #131c27;
color: white;
}
nav {
min-height: 10vh;
padding: 2rem; /*we add padding as decrease size of screen vertical so 10vh will adjust but the padding make it 2rem which basically looks goods and doesn't make too small*/
display: flex;
width: 90%;
margin: auto;
align-items: center;
flex-wrap: wrap;
}
/* nav ul li a:hover {
border: 1px solid white;
border-radius: 10rem;
padding: 1rem;
} */
nav ul {
display: flex;
flex: 1 1 40rem;
justify-content: space-around;
align-items: center;
list-style: none;
}
#logo {
flex: 2 1 40rem;
font-family: "Pattaya", sans-serif;
}
.hero {
background: linear-gradient(rgba(0, 0, 0, 0.6), transparent),
url(./img/two-man-hiking-on-snow-mountain-869258.jpg);
min-height: 90vh;
background-size: cover;
background-position: center;
color: white;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
}
.hero h3 {
padding: 5rem;
}
button {
padding: 2rem 6rem;
background: #4c6e97;
border: none;
color: white;
font-size: 1.8rem;
border-radius: 10rem;
cursor: pointer;
}
@media screen and (max-width: 933px) {
nav {
text-align: center;
}
#logo {
padding-bottom: 2rem;
}
}
/* Locations SECTION */
#locations {
min-height: 100vh;
background: linear-gradient(rgba(0, 0, 0, 0.5), transparent),
url("./img/new-york-page.png");
background-size: cover;
background-position: center;
display: flex;
align-items: center;
position: relative;
overflow: hidden;
}
.locations-head {
width: 90%;
margin: auto;
}
.locations-head h2 {
padding: 1rem 0rem;
text-decoration: underline;
/* Optional
text-decoration-thickness: 0.5rem;
*/
}
.locations-head h3 {
background: rgba(19, 28, 39, 0.9);
-webkit-text-fill-color: white;
padding: 4rem 2rem;
}
.cloud {
position: absolute;
top: 0%;
right: 0%;
z-index: -1;
}
.moving-cloud-1 {
animation: cloudAnimation 3s infinite alternate ease-in-out;
}
.moving-cloud-2 {
top: 20%;
z-index: -1;
opacity: 0.5;
animation: cloudAnimation 3.5s infinite alternate ease-in-out;
}
/* Cloud Animation */
@keyframes cloudAnimation {
from {
transform: translate(10%, -10%);
}
to {
transform: translate(0%, 0%);
}
}
/* Benefits section*/
.benefits-head {
background: #343c44;
padding: 3rem;
min-height: 30vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: white;
text-align: center;
}
.benefits-head h3 {
padding: 1rem;
}
.cards {
width: 90%;
margin: auto;
display: flex;
min-height: 70vh;
align-items: center;
flex-wrap: wrap;
}
.card {
text-align: center;
flex: 1 1 25rem;
min-height: 40vh;
margin: 2rem 5rem;
box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1), 0px 20px 20px rgba(0, 0, 0, 0.1);
}
.cards img {
max-width: 15%;
margin: 2rem;
}
.card h4,
.card p {
padding: 1rem;
line-height: 1.8;
}
.card-icon {
background: #27394e;
}
/* Contact Section */
#contact {
min-height: 100vh;
background: linear-gradient(rgba(0, 0, 0, 0.5), transparent),
url("./img/contact-mountain.png");
background-size: cover;
background-repeat: no-repeat;
display: flex;
align-items: center;
justify-content: center;
}
.form-wrapper {
background: rgba(19, 28, 39, 0.8);
width: 60%;
color: white;
border-radius: 20px;
}
.form-head {
text-align: center;
padding: 4rem;
}
.name-form,
.email-form {
padding: 3rem;
text-align: center;
}
.form-wrapper label {
margin: 0rem 3rem;
}
.form-wrapper button {
width: 100%;
padding: 2rem;
margin-top: 8rem;
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
}
.form-wrapper input {
padding: 1rem 3rem;
}
/* Footer Section */
footer {
color: white;
background: rgba(19, 28, 39, 1);
}
.footer-wrapper {
display: flex;
padding: 2rem;
width: 90%;
margin: auto;
align-items: center;
min-height: 10vh;
flex-wrap: wrap;
}
footer h5 {
flex: 1 1 40rem;
}
footer ul {
display: flex;
list-style: none;
flex: 1 1 40rem;
justify-content: space-between;
align-items: center;
}
/* Button focus to make website accessible */
button:focus {
background: #2c3f57;
outline-style: solid;
outline-color: cornflowerblue;
}
/* Media Query */
@media screen and (max-width: 932px) {
html {
font-size: 45%;
}
nav {
text-align: center;
}
#logo {
padding: 2rem;
}
.cloud {
height: 40rem;
pointer-events: none;
}
.moving-cloud-1 {
z-index: -1;
}
.moving-cloud-2 {
z-index: -2;
}
.locations-head h3 {
background: rgba(19, 28, 39, 0.9);
-webkit-text-fill-color: white;
}
.form-wrapper {
width: 100%;
}
footer {
text-align: center;
}
footer h5 {
padding-bottom: 3rem;
}
}