Spaces:
Running
Running
:root { | |
--primary-color: #4a7c59; | |
--secondary-color: #8cb369; | |
--accent-color: #f4e285; | |
--text-color: #333; | |
--light-text: #f9f9f9; | |
--background-color: #f9f9f9; | |
--card-background: #ffffff; | |
--shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
--transition: all 0.3s ease; | |
--fruit-section-padding: 3rem 5%; | |
} | |
/* Dark Mode Variables */ | |
body.dark { | |
--text-color: #f1f1f1; | |
--background-color: #222; | |
--card-background: #333; | |
} | |
* { | |
margin: 0; | |
padding: 0; | |
box-sizing: border-box; | |
} | |
body { | |
font-family: "Poppins", sans-serif; | |
color: var(--text-color); | |
background-color: var(--background-color); | |
line-height: 1.6; | |
transition: var(--transition); | |
} | |
a { | |
text-decoration: none; | |
color: inherit; | |
} | |
ul { | |
list-style: none; | |
} | |
/* Header & Navigation */ | |
header { | |
position: fixed; | |
width: 100%; | |
z-index: 1000; | |
background-color: rgba(255, 255, 255, 0.95); | |
box-shadow: var(--shadow); | |
transition: var(--transition); | |
} | |
body.dark header { | |
background-color: rgba(34, 34, 34, 0.95); | |
} | |
nav { | |
display: flex; | |
justify-content: space-between; | |
align-items: center; | |
padding: 1rem 5%; | |
max-width: 1400px; | |
margin: 0 auto; | |
} | |
.logo a { | |
font-size: 1.5rem; | |
font-weight: 700; | |
color: var(--primary-color); | |
} | |
.nav-links { | |
display: flex; | |
gap: 2rem; | |
} | |
.nav-links a { | |
font-weight: 500; | |
transition: var(--transition); | |
position: relative; | |
} | |
.nav-links a:hover, | |
.nav-links a.active { | |
color: var(--primary-color); | |
} | |
.nav-links a::after { | |
content: ""; | |
position: absolute; | |
width: 0; | |
height: 2px; | |
bottom: -5px; | |
left: 0; | |
background-color: var(--primary-color); | |
transition: width 0.3s ease; | |
} | |
.nav-links a:hover::after, | |
.nav-links a.active::after { | |
width: 100%; | |
} | |
/* Hamburger Menu */ | |
.hamburger { | |
display: none; | |
flex-direction: column; | |
cursor: pointer; | |
gap: 5px; | |
} | |
.hamburger span { | |
width: 25px; | |
height: 3px; | |
background: var(--text-color); | |
transition: var(--transition); | |
} | |
/* Dark Mode Toggle */ | |
#theme-toggle { | |
background: none; | |
border: none; | |
font-size: 1.2rem; | |
cursor: pointer; | |
margin-left: 1rem; | |
} | |
/* Page Header */ | |
.page-header { | |
text-align: center; | |
padding: 100px 5% 20px; | |
background-color: var(--card-background); | |
} | |
.page-header h1 { | |
font-size: 2rem; | |
color: var(--primary-color); | |
margin-bottom: 1rem; | |
} | |
.page-header p { | |
font-size: 1rem; | |
color: var(--text-color); | |
} | |
/* Fruits Sections (Organic & Hybrid) */ | |
section.fruits-section { | |
padding: 3rem 5%; | |
} | |
section.fruits-section h2 { | |
text-align: center; | |
color: var(--primary-color); | |
margin-bottom: 2rem; | |
font-size: 1.5rem; | |
} | |
section.vegetables-section{ | |
padding: 3rem 5%; | |
} | |
section.vegetables-section h2{ | |
text-align: center; | |
color: var(--primary-color); | |
margin-bottom: 2rem; | |
font-size: 1.5rem; | |
} | |
.card-container { | |
display: flex; | |
flex-wrap: wrap; | |
gap: 2rem; | |
justify-content: center; | |
} | |
.card { | |
width: 300px; | |
background-color: var(--card-background); | |
border-radius: 10px; | |
box-shadow: var(--shadow); | |
overflow: hidden; | |
transition: transform 0.3s ease; | |
text-align: center; | |
} | |
.card:hover { | |
transform: translateY(-5px); | |
} | |
.card .card-image { | |
height: 200px; | |
background-size: cover; | |
background-position: center; | |
} | |
.card .card-content { | |
padding: 1rem; | |
} | |
.card .card-content h3 { | |
margin-bottom: 0.5rem; | |
font-size: 1.25rem; | |
color: var(--primary-color); | |
} | |
.card .card-content p { | |
font-size: 0.9rem; | |
color: var(--text-color); | |
} | |
/* Footer */ | |
footer { | |
text-align: center; | |
padding: 2rem; | |
background-color: var(--card-background); | |
margin-top: 2rem; | |
font-size: 0.9rem; | |
color: var(--text-color); | |
} | |
/* Responsive Design */ | |
@media (max-width: 768px) { | |
.card-container { | |
flex-direction: column; | |
align-items: center; | |
} | |
} | |
.bananas-section h2 { | |
text-align: center; | |
} | |
body { | |
padding-bottom: 50px; /* Add space at the bottom of the page */ | |
} | |
body.dark-mode .nav-links { | |
color: white; | |
} | |
* Footer Styles */ | |
.footer { | |
background-color: white; | |
border-radius: 0.5rem; | |
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
margin: 1rem; | |
padding: 1.5rem; | |
transition: background-color 0.3s ease, color 0.3s ease; | |
} | |
.footer-content { | |
width: 100%; | |
max-width: 1200px; | |
margin: 0 auto; | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
justify-content: center; | |
} | |
.footer-links { | |
display: flex; | |
flex-wrap: wrap; | |
justify-content: center; | |
font-size: 0.875rem; | |
color: #4a5568; | |
margin: 0; | |
padding: 0; | |
list-style-type: none; | |
} | |
.footer-links li { | |
margin-right: 1rem; | |
} | |
.footer-links a { | |
text-decoration: none; | |
color: inherit; | |
transition: color 0.3s ease; | |
} | |
.footer-divider { | |
margin-top: 1.5rem; | |
margin-bottom: 1.5rem; | |
border-color: #e2e8f0; | |
} | |
.footer-credit { | |
text-align: center; | |
font-size: 0.875rem; | |
color: #6b7280; | |
} | |
.footer-credit a { | |
text-decoration: none; | |
color: #4a5568; | |
} | |
/* Dark Mode Footer Styles */ | |
body.dark .footer { | |
background-color: #333; | |
color: #f1f1f1; | |
} | |
body.dark .footer-links a { | |
color: #f1f1f1; | |
} | |
body.dark .footer-divider { | |
border-color: #555; | |
} | |
body.dark .footer-credit a { | |
color: #f1f1f1; | |
} | |
/* Responsive Design */ | |
@media (max-width: 768px) { | |
.nav-links { | |
position: fixed; | |
top: 70px; | |
right: -100%; | |
background-color: var(--card-background); | |
flex-direction: column; | |
gap: 1rem; | |
padding: 2rem; | |
width: 200px; | |
height: calc(100% - 70px); | |
transition: var(--transition); | |
} | |
.nav-links.active { | |
right: 0; | |
} | |
.hamburger { | |
display: flex; | |
} | |
.produce-item { | |
flex-direction: column; | |
} | |
} | |