Skip to content
Permalink
d3969306a3
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
139 lines (120 sloc) 2.45 KB
/* Reset styling */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, sans-serif;
}
/* Holy Grail Layout */
.container {
display: grid;
grid-template-areas:
"sidebar-left main sidebar-right";
grid-template-columns: 1fr 3fr 1fr;
gap: 1rem;
padding: 1rem;
background-color: #f4f4f4;
}
/* Header and Footer */
header, footer {
text-align: center;
padding: 1rem;
background-color: #2E8B57; /* Festive green */
color: #fff;
}
header h1 {
font-size: 2rem;
}
footer {
background-color: #1f5d3b; /* Darker festive green */
color: #fff;
}
/* Sidebar Styling */
.sidebar-left, .sidebar-right {
background-color: #FAF0E6; /* Light holiday cream color */
padding: 1rem;
border: 1px solid #D4AF37; /* Gold border */
border-radius: 8px;
}
.sidebar-left h2, .sidebar-right h2 {
color: #8B0000; /* Deep red color */
}
/* Main Content Styling */
main {
background-color: #ffffff;
padding: 1rem;
border-radius: 8px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
.cocktail-cards {
display: flex;
flex-wrap: wrap;
gap: 1rem;
justify-content: center;
}
/* Card Styling */
.card {
width: 200px;
border: 1px solid #D4AF37; /* Gold border */
border-radius: 8px;
overflow: hidden;
text-align: center;
background-color: #fff;
transition: transform 0.3s, box-shadow 0.3s;
cursor: pointer;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
.card:hover {
transform: scale(1.05);
box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}
.card img {
width: 100%;
height: 150px;
object-fit: cover;
border-bottom: 1px solid #D4AF37;
}
.card h3 {
background-color: #8B0000; /* Deep red color */
color: #fff;
margin: 0;
padding: 0.5rem;
font-size: 1.2rem;
}
.card p {
padding: 0.5rem;
font-size: 0.9rem;
color: #2E8B57; /* Festive green for text */
}
/* Hover Effects */
.card:hover h3 {
background-color: #2E8B57; /* Green on hover */
}
.card:hover p {
color: #8B0000; /* Change text color to deep red */
}
/* Instructions and About Section Text */
.sidebar-left p, .sidebar-right p {
color: #333;
font-size: 0.9rem;
line-height: 1.5;
}
/* Footer Styling */
footer p {
font-size: 0.8rem;
color: #f4f4f4;
}
/* Media Queries */
@media (max-width: 768px) {
.container {
grid-template-areas:
"main"
"sidebar-left"
"sidebar-right";
grid-template-columns: 1fr;
}
.cocktail-cards {
flex-direction: column;
align-items: center;
}
}