-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
109 lines (101 loc) · 2.35 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
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@700&family=Lexend+Deca&display=swap');
:root {
--bright-orange: hsl(31, 77%, 52%);
--dark-cyan: hsl(184, 100%, 22%);
--very-dark-cyan: hsl(179, 100%, 13%);
--transparent-white: hsla(0, 0%, 100%, 0.75);
--very-light-gray: hsl(0, 0%, 95%);
}
html {
margin: 0;
padding: 0;
box-sizing: border-box;
font-size: 18px;
}
body {background-color: var(--transparent-white);
display: flex;
justify-content: center;
align-items: center;
height: 97vh;
}
main {
display: flex;
justify-content: center;
width: 40rem;
border-radius: 0.5rem;
overflow: hidden;
position: relative;
}
h1 {
font-family: 'Big Shoulders Display', cursive;
color: var(--very-light-gray);
font-size: 1.5rem;
}
p {
font-family: 'Lexend Deca', sans-serif;
color: var(--transparent-white);
font-size: 0.75rem;
line-height: 1.25rem;
font-weight: 700;
}
section {
padding: 1.5rem ;
position: relative;
}
section:nth-of-type(1) {
background-color: var(--bright-orange);
}
section:nth-of-type(2) {
background-color: var(--dark-cyan);
}
section:nth-of-type(3) {
background-color: var(--very-dark-cyan);
}
img {
width: 3rem;
}
.button {
background-color: var(--very-light-gray);
padding: 0.5rem;
border-radius: 1rem;
width: 5rem;
font-size: 0.75rem;
text-align: center;
margin-top: 3.5rem;
position: relative;
bottom: 0.2rem;
font-weight: 700;
font-family: 'Lexend Deca', sans-serif;
border: 2px solid var(--transparent-white);
}
.button:hover {
background-color: rgba(0, 0, 0, 0);
color: white;
transition: 0.5s all;
cursor: pointer;
}
.button-1 {color: var(--bright-orange);}
.button-2 {color: var(--dark-cyan);}
.button-3 {color: var(--very-dark-cyan);}
@media only screen and (max-width: 750px) {
html {font-size: 12px;}
}
@media only screen and (max-width: 500px) {
html {
font-size: 20px;
}
body {
padding: 1.5rem;
height: 100%;
}
main {
flex-direction: column;
max-width: 25rem;
}
section {
padding: 2.8rem;
}
.button {
margin: 2rem 0 0 0;
}
}