-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
187 lines (155 loc) · 3.16 KB
/
index.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
/*Import font to use for heading and regular text*/
@import url("https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&family=Permanent+Marker&display=swap");
/* Remove default margin, padding, and change box-sizing*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/*Color Palette*/
:root {
--bkgd-color: #f5f5f5;
--primary-color: #494e58;
--secondary-color: #83442a;
--accent-color: #838cbb;
--splash-color: #cc8365;
}
/* Set default color, font-size, and other properties */
html {
color: var(--bkgd-color);
margin: clamp(1rem, 5%, 5rem) clamp(2rem, 16%, 8rem);
font-size: 18px;
font-family: "Kalam", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
scroll-behavior: smooth;
}
/* Styling for text and content elements*/
body {
display: flex;
flex-direction: column;
color: var(--primary-color);
justify-content: center;
align-items: center;
}
header{
display: flex;
width: 100vw;
height: 100vh;
flex-direction: column;
justify-content: center;
align-items: center;
}
header i{
margin-top: 5vh;
font-size: 5vh;
color: var(--primary-color);
}
h1 {
color: var(--primary-color);
font-size: clamp(2.5rem, 5vw + 0.5rem, 5rem);
line-height: 1;
font-weight: 700;
margin-bottom:5vh;
font-family: "Permanent Marker", "Segoe UI", Tahoma, Geneva, Verdana,
sans-serif;
}
h2 {
color: var(--secondary-color);
font-size: clamp(1.75rem, 3vw + 0.5rem, 3rem);
line-height: 2.5rem;
}
#desc {
font-size: clamp(1rem, 1.5vw + 0.5rem, 2.5rem);
margin: clamp(1rem, 5%, 5rem) clamp(2rem, 16%, 8rem);
}
.em{
color: var(--secondary-color);
}
/*Styling for the images*/
.responsive-img {
width: 100%;
}
figcaption, #map-caption{
font-size: clamp(0.75rem, 1vw + 0.5rem, 2rem);
text-align: center;
color: var(--splash-color);
}
/* Styling for map displays*/
#map {
width: 100vw;
height: 50vh;
margin-top: 3vh;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
transition: transform 0.2s ease;
}
#map-caption {
margin: 5px auto;
}
/*Styling for buttons*/
button {
background: transparent;
transition: transform 0.2s ease;
border: none;
}
button:hover,
#map:hover {
transform: scale(0.96);
cursor: pointer;
}
.btns {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin: 3vw;
}
#share-btns {
display: flex;
gap: 10px;
}
#share-btns i{
color: var(--accent-color);
}
.btns i {
font-size: 10vw;
}
/* Media Query to adjust format of images to 2 columns */
@media (min-width: 720px) {
/* Adjust sizes and of fa-icons and buttons*/
#share-btns {
gap: 2vw;
}
.btns i{
font-size: 8vw;
}
header i{
font-size: 8vh;
}
/* Display the two images next to each other */
figure {
display: flex;
justify-content: space-between;
}
figure div{
display: flex;
flex-direction: column;
}
#map-and-desc{
max-width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
gap: 5vw;
}
#fullMap, #map, #desc{
width: 40vw;
}
#desc{
margin: 0;
}
}
@media (min-width: 1000px) {
/* Increase line height of h2 element */
h2 {
line-height: 3.5rem;
}
}