forked from CodeYourFuture/HTML-CSS-Module-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
executable file
·157 lines (132 loc) · 2.6 KB
/
style.css
File metadata and controls
executable file
·157 lines (132 loc) · 2.6 KB
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
/* We are using the 'Roboto' font from Google. This has already been added to your HTML header */
/* * Add your custom styles below
*
* Remember:
* - Be organised, use comments and separate your styles into meaningful chunks
* for example: General styles, Navigation styles, Hero styles, Footer etc.
*
* - When using Flexbox, remember the items you want to move around need to be inside a parent container set to 'display: flex'
*/
/* GENERAL STYLES */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Roboto", sans-serif;
-webkit-font-smoothing: antialiased;
}
/* <!-- NAV-BAR --> */
.nav-background {
background-color: white;
border-bottom: 0.1vw solid #f9f9f9;
}
.nav-grid {
display: grid;
grid-template-columns: repeat(2, 50%);
padding-top: 0.75rem;
padding-bottom: 0.75rem;
align-items: center;
width: 86%;
margin: 0 auto;
}
.main-nav {
display: flex;
gap: 6%;
justify-content: end;
font-size: 0.9rem;
width: 98%;
}
a {
text-decoration: none;
color: #868e96;
font-size: 1.3em;
font-weight: 400;
transition: color 1.2s;
}
a:hover,
a:active {
color: #f15b2a;
transition: 1s;
}
.meet-karma {
font-weight: bold;
color: #495057;
font-weight: 500;
}
/* <!-- MAIN IMAGE AND TEXT --> */
.main-picture {
background-image: url("/img/first-background.jpg");
height: 110vh;
width: 100%;
background-position: center;
background-size: cover;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
color: white;
}
.text-container {
text-align: center;
}
.intro-karma {
font-size: 4.6vw;
font-weight: 100;
}
.product-details {
font-size: 2.5vw;
font-weight: 25;
padding-top: 3.8%;
}
.learn-btn {
margin-top: 10%;
padding: 16px 32px;
border-radius: 5px;
background-color: #f15b2a;
border: none;
font-size: 1.6vw;
font-weight: 100;
transition: background-color 1.2s;
}
.learn-btn:hover,
.learn-btn:active {
background-color: #f56e45;
}
h1 {
text-align: center;
font-weight: 200;
padding-top: 5%;
padding-bottom: 3%;
font-size: 2.8vw;
}
/* LOGO SECTION WITH TEXT*/
.main-logo {
display: flex;
justify-content: space-evenly;
width: 52%;
margin: 0 auto;
align-items: center;
justify-items: center;
padding-top: 2.4%;
padding-bottom: 10%;
}
.main-logo,
.logo-text {
margin-top: 60px;
font-size: 1.3em;
align-items: self-start;
justify-items: left;
}
/* .flex-column {
display: flex;
flex-direction: column;
align-items: center;
} */
.horizontal-line {
width: 78%;
margin: 0 auto;
background-color: #b4bcc36a;
height: 0.1vw;
}