-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
483 lines (414 loc) · 7.98 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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
body,html {
margin:0;
padding:0;
overflow-x: hidden;
}
body *{
margin:0;
padding:0;
}
::root{
--font-size:1em;
}
#title{
position: relative;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
font-size:3vmin;
background-image: url("images/Sweet-Home-Alabama.webp");
background-size: cover;
background-position: bottom;
max-width:100vw; /* bottom comment explains why im using "max-width" instead of "width" */
height:75vh;
border-block:solid;
}
#title h1{
font-size: 4em;
padding-inline:4vw;
border-radius:0.5vmin;
font-family: sans-serif;
text-shadow: 0px 0px 5px red;
text-decoration: underline;
color:white;
}
#title a{
position:absolute;
bottom:0;
left:50%;
transform: translate(-50%);
font-size:0.7em;
}
/*slides */
.slide{
max-width:100vw; /* bottom comment explains why im using "max-width" instead of "width" */
min-height:100vh; /* for a dumb reason when I set any value to this it causes the width to normally overflow*/
/*
no this does nothing to solve it.
CSS is like using a curtain,
except it get tangled if you use it in any way so you must do some weird trickery in order to make it work
*/
box-sizing:border-box;
position:relative;
border:solid;
display:grid;
grid-template-areas:
"header"
"information"
"footer"
;
column-gap: 20px;
row-gap: 20px;
grid-template-rows: 10% 1fr 10%;
padding: 1%;
}
.info-card{
position: relative;
border: 2px inset grey;
box-shadow: 0px 0px 5px 2px grey;
}
.slide h1{
font-family: "Josefin Sans";
}
.slide h2{
font-family: "Josefin Sans";
}
.slide-header{
padding-inline:5%;
display: flex;
align-items: center;
}
.slide-footer{
position: relative;
padding-left: 2%;
padding-block: 0.5%;
border: 2px inset grey;
box-shadow: 0px 0px 5px 2px grey;
}
/* Territory */
#Territory{
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 50%;
column-gap: 5%;
text-align: center;
justify-items: center;
align-items: center;
}
#Territory > *{
display: grid;
grid-template-rows:25% 1fr;
row-gap: 5%;
}
#Territory p{
padding: 5%;
}
#Territory img{
height: 200px;
grid-column: 1 / -1;
}
/*Statehood*/
#Statehood{
display: grid;
align-content: space;
height: 100%;
row-gap: 20px;
}
#Statehood-line{
display: grid;
grid-template-columns: 10% 1fr 10%;
justify-items: center;
align-items: center;
text-align: center;
}
#Statehood-line hr{
display:inline;
height: 0px;
width: 100%;
}
.Statehood-events{
display: grid;
width: 100%;
text-align: center;
grid-auto-flow: column;
justify-content:space-between;
}
.Statehood-events > span{
max-width: calc(100%/2);
min-width: 30px;
display: grid;
align-content: center;
}
/*Stats*/
#Stats{
display: grid;
box-sizing: border-box;
padding-inline: 5%;
box-sizing: border-box;
align-items: center;
}
#Stats img{
grid-column: 2;
grid-row: 1 / 5;
height: 80%;
}
#Stats > span{
display: flex;
align-items: center;
flex-wrap: wrap;
}
.Stats-numbers{
width: 90%;
}
.Stats-bar{
border: 1px solid;
min-height: 20px;
transition: width 500ms;
}
/*Parks*/
#Parks{
display: grid;
grid-template-columns: 1fr 1fr 1fr;
justify-items: center;
text-align: center;
position: relative;
column-gap: 2%;
}
#Parks > div{
display: grid;
justify-items: center;
align-items: center;
}
#Parks > div > span{
grid-row:-1 -1;
}
#Parks > div > img{
width: 80%;
}
/* Capital */
#capital{
display: grid;
grid-template-columns: 50% 50%;
gap: 20px;
justify-items: stretch;
align-items: stretch;
text-align: center;
}
#capital > span {
grid-column: 1 / -1 ;
display: grid;
align-items: center;
justify-items: center;
}
#capital > div{
display: grid;
justify-content: center;
align-content: center;
}
/*Top 5 places to visit*/
#top5 {
display: grid;
position: relative;
width: 100%;
height: 100%;
justify-items: center;
align-items: center;
grid-template-columns: 100%;
grid-template-rows: repeat(5,1fr);
row-gap: 20px;
}
#top5 li{
display: grid;
grid-template-areas:
"title img"
"texts img"
;
grid-template-columns: 80% 1fr;
justify-items: stretch;
width: 90%;
}
#top5 li h2{
grid-area: title;
text-align: left;
}
#top5 li p{
grid-area: texts;
text-align: left;
}
#top5 > li > img{
grid-area: img;
width: 25vmin;
}
/* My top 3, basically copied and pasted code */
#myTop3 {
display: grid;
position: relative;
width: 100%;
height: 100%;
justify-items: center;
align-items: center;
grid-template-columns: 100%;
grid-template-rows: repeat(3,1fr);
row-gap: 20px;
}
#myTop3 li{
display: grid;
grid-template-areas:
"title img"
"texts img"
;
grid-template-columns: 80% 1fr;
justify-items: stretch;
width: 90%;
}
#myTop3 li h2{
grid-area: title;
text-align: left;
}
#myTop3 li p{
grid-area: texts;
text-align: left;
}
#myTop3 > li > img{
grid-area: img;
width: 25vmin;
}
/* Industry */
#industry{
display: grid;
grid-template-columns: 1fr 25% 1fr;
align-items: stretch;
column-gap: 20px;
}
#industry img{
align-self: center;
}
#industry *{
width: 100%;
}
#industry > div {
display: grid;
grid-template-rows: 10% 1fr 10%;
justify-items: center;
row-gap: 20px;
}
#industry > div ol{
display: grid;
justify-items: center;
align-content:space-evenly ;
}
#industry > div ol li{
width: 80%;
}
/*Business & Economy*/
#economyStuff{
display: grid;
grid-template-rows: 1fr 1fr;
align-items:stretch;
}
#economyStuff > div{
display: grid;
grid-template-rows:20% 1fr 20%;
}
#economyStuff > div > div:nth-child(2){
display:grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
text-align: center;
align-items: stretch;
align-content: center;
row-gap:5px;
column-gap: 5px;
}
#economyStuff > div > div:nth-child(2) span{
position: relative;
border: 2px inset grey;
box-shadow: 0px 0px 5px 2px grey;
display:flex;
justify-content:center;
align-items:center;
}
/*State Items*/
#items{
display: grid;
row-gap:5px;
justify-items: center;
}
#items > div{
display: grid;
grid-template-columns: 1fr 25%;
grid-template-rows: 1fr 1fr;
position: relative;
border: 2px inset grey;
box-shadow: 0px 0px 5px 2px grey;
width:90%;
justify-items: center;
text-align:left;
}
#items h2{
width:90%;
}
#items > div p{
grid-row: 2/2;
width:80%;
}
#items > div img{
grid-column: 2/2;
grid-row: 1 / -1;
height: 12vmin;
}
/* Top 5 Facts */
#facts5{
display:grid; /* At this point I should have given by default all info the grid display*/
justify-items: center;
grid-template-columns: 1fr 1fr;
}
#facts5 > li{
width:80%;
}
/* Interesting Facts*/
#interesting{
display:grid;
justify-items: center;
}
#interesting > li{
width:80%;
}
/*universities*/
#universities{
display:grid;
justify-items: center;
}
#universities > li{
width:80%;
}
/* Other Schools and more*/
#schools{
display:grid;
justify-items: center;
grid-template-columns: 1fr 1fr;
}
/* Lazyed out on the last slide, not enough time and barely stable wifi */
#summary{
text-align: center;
}
#mainHeader{
display:flex;
align-items:center;
height:12vh;
}
#mainHeader-title{
margin-left:2vw;
}
#mainHeader nav{
align-self:flex-end;
}
@font-face {
font-family: Epilogue;
src: url("Fonts/Epilogue/Epilogue-VariableFont_wght.ttf");
}
@font-face {
font-family: "Josefin Sans";
src: url("Fonts/Josefin Sans/JosefinSans-VariableFont_wght.ttf");
}