styles.css
/* Basic reset of each and every element */
*,
*::after,
*::before {
margin: 0;
padding: 0;
box-sizing: inherit; /* will inherit from the body */
}
html {
/* font-size: 10px; */ /* As a result, 1rem = 10px */
font-size: 62.6%; /* 10:16 */
}
body {
font-family: Lato, sans-serif;
font-weight: 400;
line-height: 1.7;
color: #777;
/* padding: 30px; */
padding: 3rem;
box-sizing: border-box;
}
.header {
position: relative;
height: 95vh;
background-image: linear-gradient(to right bottom, rgba(126, 213, 111, 0.4), rgba(40, 180, 131, 0.4)),
url('../img/pixabay_mountains-1899264_640.jpg');
background-size: cover;
background-position: top;
clip-path: polygon(0 0, 100% 0, 100% 75vh, 0 100%);
}
.logo-box {
position: absolute;
/* top: 40px; */
top: 4rem;
/* left: 40px; */
left: 4rem;
}
.logo {
/* height: 35px; */
height: 3.5rem;
}
.text-box {
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center; /* used for button only */
}
.heading-primary {
color: #fff;
text-transform: uppercase;
font-weight: 400;
/* Stops shaking of animation */
backface-visibility: hidden;
/* margin-bottom: 60px; */
margin-bottom: 6rem;
}
.heading-primary-main {
display: block;
/* font-size: 60px; */
font-size: 6rem;
/* letter-spacing: 35px; */
letter-spacing: 3.5rem;
}
.heading-primary-sub {
display: block;
/* font-size: 20px; */
font-size: 2rem;
/* letter-spacing: 17.4px; */
letter-spacing: 1.75rem
}