-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
48 lines (40 loc) · 1.01 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
@import url("https://fonts.googleapis.com/css2?family=Caveat&display=swap");
:root {
box-sizing: border-box;
padding: 0;
margin: 0;
font-size: 62.5%;
--color-white: #fafafa;
--color-orange: #f49b75;
--font-handwritten: "Caveat", cursive;
}
body {
background-color: var(--color-orange);
background-image: url("https://cdn.pixabay.com/photo/2013/07/12/13/24/leaves-146984_960_720.png");
background-size: contain;
background-repeat: no-repeat;
margin-top: clamp(8rem, 5vw, 15rem);
}
main {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(0, 30rem));
gap: clamp(10rem, 5vw, 20rem);
justify-content: center;
align-items: center;
}
h1 {
font-family: var(--font-handwritten);
font-size: calc(5rem + 1vw);
font-weight: bold;
color: var(--color-white);
text-align: center;
padding: 0;
}
h2 {
font-family: var(--font-handwritten);
font-size: calc(3rem + 2vw);
line-height: 4rem;
color: var(--color-white);
text-align: center;
margin-top: clamp(8rem, 5vw, 15rem);
}