Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 43 additions & 7 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,31 @@

/* ===== Hero Section ===== */
.hero {
background: rgb(255, 228, 205);
padding: 5rem 1rem 6rem;
display: flex;
justify-content: center;
align-items: center;
gap: 4.5rem;
flex-wrap: wrap;
height: 90vh;
position: relative; /* added */
overflow: hidden; /* ensure overlay fits */
}
/* dark overlay to enhance text readability */
.hero::before {
content: "";
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.4);
z-index: 1;
}
/* ensure hero content appears above overlay */
.hero-content, .hero-content * {
position: relative;
z-index: 2;
color: #ffffff; /* white text for visibility */
}
background: rgb(255, 228, 205);
padding: 5rem 1rem 6rem;
display: flex;
Expand Down Expand Up @@ -774,13 +799,24 @@
transform: translateY(-8px);
box-shadow: 0 15px 35px rgb(0 0 0 / 0.2);
}
.add-btn{
background-color: green;
padding: 3px 8px;
border-radius: 15px;
color: white;
border: none;
/* ----- Dark Mode Overrides ----- */
.dark .card {
background: #2c2c2c;
color: #e0e0e0;
}
.dark .card h3,
.dark .card p.description,
.dark .card p.price {
color: #e0e0e0;
}
.add-btn {
background-color: green;
padding: 3px 8px;
border-radius: 15px;
color: white;
border: none;
}

.card img {
border-radius: 15px;
width: 250px;
Expand All @@ -805,7 +841,7 @@
}
.card p.description {
font-size: 0.9rem;
color: #5d4037;
color: #3e2723;
margin-bottom: 1.3rem;
text-align: center;
user-select: text;
Expand Down