Spaces:
Runtime error
Runtime error
:root{ | |
--primary: #006400 ; | |
--bg: #fff; | |
} | |
*{ | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
outline: none; | |
border: none; | |
} | |
body { | |
font-family: 'Poppins', sans-serif; | |
background-color: var(--bg); | |
color:#2F4F4F ; | |
min-height: 3000px; | |
} | |
.navbar { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
padding: 1.4rem 7%; | |
background-color: #8FBC8F; | |
position: fixed; | |
top: 0; | |
left: 0; | |
right: 0; | |
z-index: 9999; | |
} | |
.navbar .navbar-logo { | |
text-decoration: none; | |
font-size: 2rem; | |
font-weight: 700; | |
color: #fff; | |
font-style: italic; | |
} | |
.navbar .navbar-logo span{ | |
color: var(--primary); | |
} | |
.navbar .navbar-nav a{ | |
color: #fff; | |
display: inline-block; | |
font-size: 1rem; | |
margin: 0 1rem; | |
text-decoration: none; | |
} | |
.navbar .navbar-nav a:hover { | |
color: #DAA520; | |
} | |
.navbar .navbar-nav a::after { | |
content: ''; | |
display: block; | |
padding-bottom: 0.5rem; | |
border-bottom: 0.1rem solid var(--primary); | |
transform: scaleX(0); | |
transition: 0.2s linear; | |
} | |
.navbar .navbar-nav a:hover::after{ | |
transform: scaleX(0.5); | |
} | |
.navbar .navbar-extra a { | |
color: #fff; | |
margin: 0 0.5rem; | |
} | |
.navbar .navbar-extra a:hover { | |
color: var(--primary); | |
} | |
#hamburger-menu{ | |
display: none; | |
} | |
.hero { | |
min-height: 100vh; | |
display: flex; | |
align-items: center; | |
background-color: #fff; | |
background-repeat: no-repeat; | |
background-size: cover; | |
background-position: center; | |
position: relative; | |
} | |
.hero .content { | |
padding: 1.4rem 7%; | |
max-width: 60rem; | |
} | |
.hero .content h1{ | |
font-size: 4em; | |
color: black; | |
text-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5); | |
line-height: 1.2; | |
} | |
.hero .content h1 span{ | |
color: var(--primary); | |
} | |
.hero .content p{ | |
font-size: 1.4rem; | |
margin-top: 0.6rem; | |
line-height: 1.4; | |
} | |
.hero .content .cta{ | |
margin-top: 1rem; | |
display: inline-block; | |
padding: 1rem 3rem; | |
font-size: 1.4rem; | |
text-decoration: none; | |
color: #fff; | |
background-color: var(--primary); | |
border-radius: 2rem; | |
box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5) | |
} | |
.about, | |
.imt { | |
padding: 8rem 7% 1.4rem; | |
} | |
.about h2, | |
.imt h2{ | |
text-align: center; | |
font-size: 2.6rem; | |
margin-bottom: 3rem; | |
} | |
.about .row, | |
.imt .row{ | |
display: flex; | |
} | |
.about .row .about-img, | |
.imt .row .imt-img { | |
flex: 1 1 45rem; | |
} | |
.about .row .about-img img, | |
.imt .row .imt-img img { | |
width: 100%; | |
position: center; | |
} | |
.about .row .content, | |
.imt .row .content{ | |
flex: 1 1 35rem; | |
padding: 0 1rem; | |
} | |
.about .row .content h3, | |
.imt .row .content h3{ | |
font-size: 1.5rem; | |
margin-bottom: 1rem; | |
} | |
.about .row .content p, | |
.about .row .content p{ | |
margin-bottom: 0.10rem; | |
font-size: 1rem; | |
line-height: 1.5; | |
} | |
@media (max-width: 1366px){ | |
html { | |
font-size: 80%; | |
} | |
} | |
@media (max-width: 758px){ | |
html { | |
font-size: 70.5%; | |
} | |
#hamburger-menu { | |
display: inline-block; | |
} | |
.navbar .navbar-nav { | |
position: absolute; | |
top: 100%; | |
right: -100%; | |
background-color: #2F4F4F ; | |
width: 30rem; | |
height: 100vh; | |
transition: 0.3s; | |
} | |
.navbar .navbar-nav.active { | |
right: 0; | |
} | |
.navbar .navbar-nav a{ | |
color: var(--bg); | |
display: block; | |
margin: 1.5rem; | |
padding: 0.5rem; | |
font-size: 1.5rem; | |
} | |
.navbar .navbar-nav a::after { | |
transform-origin: 0 0; | |
} | |
.navbar .navbar-nav a:hover::after { | |
transform: scaleX(0.2); | |
} | |
@media (max-width: 450px){ | |
html { | |
font-size: 55%; | |
} | |
} | |