/* Google Font / @import…
- User
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
/* Google Font */ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
body { font-family: 'Inter', sans-serif; background-color: #fffaf3; color: #222; line-height: 1.6; scroll-behavior: smooth; }
/* Header */ .site-header { background: white; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.header-container { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: auto; padding: 1rem; position: relative; }
.logo { font-size: 1.6rem; font-weight: 700; text-decoration: none; color: #ff6b00; }
nav.navbar { display: flex; gap: 2rem; align-items: center; }
nav.navbar a { text-decoration: none; color: #333; font-weight: 500; transition: color 0.2s; font-size: 1rem; }
nav.navbar a:hover { color: #ff6b00; }
.auth-buttons { display: flex; gap: 1rem; align-items: center; }
.btn-login, .btn-signup { padding: 0.5rem 1.4rem; border-radius: 30px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.3s ease; font-size: 0.95rem; }
.btn-login { border: 2px solid #ff6b00; background: white; color: #ff6b00; }
.btn-login:hover { background-color: #ff6b00; color: white; }
.btn-signup { background-color: #ff6b00; color: white; border: none; }
.btn-signup:hover { background-color: #e95c00; }
.icons { display: flex; gap: 1rem; font-size: 1.2rem; align-items: center; color: #333; }
/* Mobile */ @media (max-width: 768px) { .navbar { display: none; } .icons { display: none; } .header-container { flex-wrap: wrap; } .logo { margin-bottom: 1rem; } }
/* Hero */ .hero { background: url('/images/banner.jpg') center center/cover no-repeat; background-color: #ff6b00; color: white; text-align: center; padding: 6rem 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 0 0 20px 20px; text-shadow: 1px 1px 6px rgba(0,0,0,0.5); min-height: 350px; }
.hero h1 { font-size: 3rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.2rem; max-width: 700px; margin-bottom: 2rem; font-weight: 400; }
.hero .btn { font-size: 1rem; padding: 0.8rem 1.6rem; background-color: white; color: #ff6600; border-radius: 999px; font-weight: 600; text-decoration: none; transition: background-color 0.3s ease, color 0.3s ease; }
.hero .btn:hover { background-color: #ff6600; color: white; }
@media (max-width: 768px) { .hero { padding: 4rem 1rem; min-height: 360px; } .hero h1 { font-size: 2rem; } .hero p { font-size: 1rem; } }
.container { max-width: 1200px; margin: 2rem auto; padding: 0 1rem; }
.section-padded { padding: 4rem 2rem; }
.section-title { text-align: center; font-size: 2.25rem; font-weight: 700; margin-bottom: 2.5rem; color: #222; }
.grid { display: grid; gap: 3.4rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.7rem; }
.section-padded { margin-bottom: 3rem; }
.card { background-color: #fff; border-radius: 1rem; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); text-align: center; padding: 1.5rem; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card img { width: 80px; height: 80px; margin-bottom: 1rem; }
.card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; color: #333; }
.card p { font-size: 1rem; color: #666; }
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1); }
.bg-light { background-color: #fef9f5; }
.bg-primary { background: linear-gradient(to right, #ff7e5f, #feb47b); color: white; }
.cta p { margin-bottom: 1rem; font-size: 1.1rem; }
.btn-white { background-color: #fff; color: #ff7e5f; padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; text-decoration: none; transition: background 0.3s ease; }
.btn-white:hover { background-color: #f0f0f0; color: #ff5722; }
.testimonials .testimonial { background-color: #fff; padding: 1.5rem; border-radius: 1rem; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); text-align: center; }
.testimonials .testimonial p { font-style: italic; color: #444; margin-bottom: 1rem; }
.testimonials .testimonial h4 { font-weight: 600; color: #333; }
/* Footer */ footer { text-align: center; font-size: 0.9rem; color: #777; margin-top: 3rem; padding: 2rem 1rem; background-color: #fffdf7; border-top: 1px solid #eee; }
footer a { color: #ff6b00; text-decoration: none; }
footer a:hover { text-decoration: underline; }
/* Forms */ form { background: #fff; padding: 2rem; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); max-width: 400px; margin: 2rem auto; }
form input, form button { width: 100%; padding: 0.75rem; margin: 1rem 0; border-radius: 8px; border: 1px solid #ccc; }
form button { background-color: #ff6b00; color: white; border: none; font-weight: bold; transition: 0.3s ease; }
form button:hover { background-color: #e65b00; }
/* Tables */ table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
th, td { padding: 0.75rem; text-align: center; border-bottom: 1px solid #eee; }
th { background-color: #fff3e0; font-weight: 600; }
tfoot td { font-weight: bold; }
/* Responsive */ @media (max-width: 768px) { .grid, .grid-3, .grid-4 { grid-template-columns: 1fr !important; gap: 1rem; }
.card img { height: 150px; }
.card h3 { font-size: 1rem; }
.btn { font-size: 1rem; padding: 0.6rem 1.2rem; }
table th, table td { font-size: 0.85rem; padding: 0.5rem; }
.section-title { font-size: 1.4rem; }
.testimonial { padding: 1rem; }
footer { font-size: 0.8rem; } }
/* STEP 3 CUSTOM STYLING */
/* Make 'Explore Our Fresh Menu' section match Hero section */ .bg-light { background: linear-gradient(to right, #ff7e5f, #feb47b); color: white; }
.bg-light h2.section-title { color: white; text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3); }
/* Modern Browse Menu Button */ .bg-light .btn { background-color: #fff; color: #ff6600; padding: 0.8rem 1.8rem; border-radius: 999px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; display: inline-block; margin-top: 1rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.bg-light .btn:hover { background-color: #ff6600; color: white; }
/* Center CTA Text and Button */ .cta.center-block { text-align: center; padding: 4rem 2rem; }
.cta.center-block p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem; }
/* Enlarge Hero Section Image / .hero { min-height: 500px; / was 350px */ }
@media (max-width: 768px) { .hero { min-height: 360px; /* increased from 260px */ } }
/* ===== Restore Original Image Size on Homepage ===== */
/* Remove fixed width/height from cards and images */ .card img, .hover-card img, .testimonial img { width: auto; height: auto; max-width: 100%; display: block; margin: 0 auto; object-fit: unset; }
/* Optional: Keep uniform padding for layout */ .card, .hover-card { padding: 1rem; text-align: center; }
/* Adjust grid layout spacing if needed */ .grid-4 .card img, .grid-3 .card img { max-height: 300px; }
/* ===== Equal Height for All Homepage Images ===== / .card img, .hover-card img { height: 220px; / ✅ Set a fixed height / width: 100%; / ✅ Stretch to card width / object-fit: cover; / ✅ Maintain aspect ratio, crop if needed */ border-radius: 8px; display: block; margin: 0 auto; }
/* Popular Categories Images - Wider and Uniform / .grid.grid-4 .card img { width: 100%; height: 220px; / Match the height across all images / object-fit: cover; / Keeps images clean and cropped nicely */ border-radius: 8px; } .grid.grid-4 .card { padding: 0; overflow: hidden; }
.no-hover-effect { background-color: #ff7b00; /* Or any solid color you want */ color: white; transition: none; }
.no-hover-effect:hover { background-color: #ff7b00; /* Keep same on hover */ color: white; transform: none; box-shadow: none; } fix bugs and make website more attractive and add something you want for better performance in both pc and mobile version and give full code so that i can copy paste
Here's the improved and fixed CSS code with enhanced styling and bug fixes:
/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
background-color: #fffaf3;
color: #222;
line-height: 1.6;
scroll-behavior: smooth;
animation: fadeIn 1s ease-in;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
/* Header */
.site-header {
background: white;
border-bottom: 1px solid #eee;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
transition: box-shadow 0.3s ease;
}
.site-header:hover {
box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.header-container {
display: flex;
align-items: center;
justify-content: space-between;
max-width: 1200px;
margin: 0 auto;
padding: 1rem;
position: relative;
}
.logo {
font-size: 1.8rem;
font-weight: 700;
text-decoration: none;
color: #ff6b00;
display: flex;
align-items: center;
gap: 0.5rem;
}
nav.navbar {
display: flex;
gap: 2.5rem;
align-items: center;
}
nav.navbar a {
text-decoration: none;
color: #333;
font-weight: 500;
transition: all 0.3s ease;
font-size: 1rem;
position: relative;
}
nav.navbar a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -4px;
left: 0;
background: #ff6b00;
transition: width 0.3s ease;
}
nav.navbar a:hover {
color: #ff6b00;
}
nav.navbar a:hover::after {
width: 100%;
}
.auth-buttons {
display: flex;
gap: 1rem;
align-items: center;
}
.btn-login, .btn-signup {
padding: 0.6rem 1.6rem;
border-radius: 30px;
font-weight: 600;
cursor: pointer;
text-decoration: none;
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
font-size: 0.95rem;
display: inline-flex;
align-items: center;
justify-content: center;
}
.btn-login {
border: 2px solid #ff6b00;
background: white;
color: #ff6b00;
}
.btn-login:hover {
background-color: #ff6b00;
color: white;
transform: translateY(-2px);
}
.btn-signup {
background-color: #ff6b00;
color: white;
border: none;
}
.btn-signup:hover {
background-color: #e95c00;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(255, 107, 0, 0.2);
}
.icons {
display: flex;
gap: 1.5rem;
font-size: 1.3rem;
align-items: center;
color: #333;
}
/* Mobile */
@media (max-width: 768px) {
.navbar {
display: none;
width: 100%;
flex-direction: column;
position: absolute;
top: 100%;
left: 0;
background: white;
padding: 1rem;
box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.navbar.active {
display: flex;
}
.icons {
display: none;
}
.header-container {
flex-wrap: wrap;
}
.logo {
margin-bottom: 1rem;
width: 100%;
justify-content: center;
}
.auth-buttons {
margin-top: 1rem;
width: 100%;
justify-content: center;
}
}
/* Hero */
.hero {
background:
linear-gradient(rgba(255, 107, 0, 0.7), rgba(255, 107, 0, 0.7)),
url('/images/banner.jpg') center center/cover no-repeat;
color: white;
text-align: center;
padding: 8rem 2rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-radius: 0 0 30px 30px;
text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
min-height: 500px;
position: relative;
overflow: hidden;
}
.hero::after {
content: '';
position: absolute;
bottom: -50px;
left: 0;
right: 0;
height: 100px;
background: #fffaf3;
border-radius: 50% 50% 0 0 / 100% 100% 0 0;
z-index: 1;
}
.hero h1 {
font-size: 3.5rem;
font-weight: 700;
margin-bottom: 1.5rem;
line-height: 1.2;
position: relative;
z-index: 2;
}
.hero p {
font-size: 1.3rem;
max-width: 800px;
margin: 0 auto 2.5rem;
font-weight: 400;
position: relative;
z-index: 2;
}
.hero .btn {
font-size: 1.1rem;
padding: 1rem 2rem;
background-color: white;
color: #ff6600;
border-radius: 999px;
font-weight: 600;
text-decoration: none;
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
position: relative;
z-index: 2;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.hero .btn:hover {
background-color: #ff6600;
color: white;
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
@media (max-width: 768px) {
.hero {
padding: 5rem 1rem;
min-height: 400px;
}
.hero h1 {
font-size: 2.2rem;
}
.hero p {
font-size: 1.1rem;
}
}
/* General Sections */
.container {
max-width: 1200px;
margin: 3rem auto;
padding: 0 1.5rem;
}
.section-padded {
padding: 5rem 2rem;
margin-bottom: 4rem;
}
.section-title {
text-align: center;
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 3rem;
color: #222;
position: relative;
}
.section-title::after {
content: '';
display: block;
width: 60px;
height: 4px;
background: #ff6b00;
margin: 1rem auto 0;
border-radius: 2px;
}
.grid {
display: grid;
gap: 3rem;
}
.grid-3 {
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2.5rem;
}
.grid-4 {
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 2rem;
}
.section-padded {
margin-bottom: 4rem;
}
.card {
background-color: #fff;
border-radius: 1rem;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
text-align: center;
padding: 2rem;
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
position: relative;
overflow: hidden;
}
.card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: #ff6b00;
transform: scaleX(0);
transform-origin: left;
transition: transform 0.3s ease;
}
.card:hover {
transform: translateY(-8px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.card:hover::before {
transform: scaleX(1);
}
.card img {
width: 100%;
height: 220px;
object-fit: cover;
border-radius: 8px;
margin-bottom: 1.5rem;
transition: transform 0.5s ease;
}
.card:hover img {
transform: scale(1.05);
}
.card h3 {
font-size: 1.4rem;
font-weight: 600;
margin-bottom: 0.75rem;
color: #333;
}
.card p {
font-size: 1rem;
color: #666;
line-height: 1.6;
}
.bg-light {
background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
color: white;
padding: 5rem 2rem;
border-radius: 20px;
margin: 3rem 0;
}
.bg-light h2.section-title {
color: white;
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}
.bg-light .btn {
background-color: #fff;
color: #ff6600;
padding: 0.9rem 2rem;
border-radius: 999px;
font-weight: 600;
text-decoration: none;
transition: all 0.3s ease;
display: inline-block;
margin-top: 1.5rem;
box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}
.bg-light .btn:hover {
background-color: #ff6600;
color: white;
transform: translateY(-3px);
box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}
/* Footer */
footer {
text-align: center;
font-size: 0.95rem;
color: #777;
margin-top: 5rem;
padding: 3rem 1rem;
background-color: #fffdf7;
border-top: 1px solid #eee;
}
footer a {
color: #ff6b00;
text-decoration: none;
transition: color 0.3s ease;
}
footer a:hover {
color: #e65b00;
text-decoration: underline;
}
/* Forms */
form {
background: #fff;
padding: 2.5rem;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0,0,0,0.08);
max-width: 450px;
margin: 2rem auto;
}
form input,
form button {
width: 100%;
padding: 1rem;
margin: 1.25rem 0;
border-radius: 10px;
border: 1px solid #ddd;
transition: border 0.3s ease;
}
form input:focus {
border-color: #ff6b00;
outline: none;
}
form button {
background-color: #ff6b00;
color: white;
border: none;
font-weight: bold;
transition: all 0.3s ease;
}
form button:hover {
background-color: #e65b00;
transform: translateY(-2px);
}
/* Tables */
table {
width: 100%;
border-collapse: collapse;
margin: 2.5rem 0;
box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
th, td {
padding: 1rem;
text-align: center;
border-bottom: 1px solid #eee;
}
th {
background-color: #fff3e0;
font-weight: 600;
color: #ff6b00;
}
tr:hover {
background-color: #fffaf3;
}
tfoot td {
font-weight: bold;
background-color: #fff3e0;
}
/* Responsive */
@media (max-width: 768px) {
.grid,
.grid-3,
.grid-4 {
grid-template-columns: 1fr !important;
gap: 1.5rem;
}
.card {
padding: 1.5rem;
}
.card img {
height: 200px;
}
.card h3 {
font-size: 1.2rem;
}
.btn {
font-size: 0.95rem;
padding: 0.8rem 1.5rem;
}
table th,
table td {
font-size: 0.9rem;
padding: 0.75rem;
}
.section-title {
font-size: 1.8rem;
}
.testimonial {
padding: 1.5rem;
}
footer {
font-size: 0.85rem;
padding: 2rem 1rem;
}
}
/* Modern Card Effects */
.hover-card {
position: relative;
overflow: hidden;
}
.hover-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 107, 0, 0) 100%);
opacity: 0;
transition: opacity 0.3s ease;
}
.hover-card:hover::before {
opacity: 1;
}
/* Enhanced Testimonials */
.testimonials .testimonial {
background-color: #fff;
padding: 2rem;
border-radius: 1rem;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
text-align: center;
transition: transform 0.3s ease;
}
.testimonials .testimonial:hover {
transform: translateY(-5px);
}
.testimonials .testimonial p {
font-style: italic;
color: #444;
margin-bottom: 1.5rem;
line-height: 1.7;
}
.testimonials .testimonial h4 {
font-weight: 600;
color: #333;
font-size: 1.1rem;
}
/* Additional Enhancements */
.cta p {
margin-bottom: 1.5rem;
font-size: 1.2rem;
max-width: 700px;
margin-left: auto;
margin-right: auto;
}
.btn-white {
background-color: #fff;
color: #ff7e5f;
padding: 0.9rem 1.8rem;
border-radius: 10px;
font-weight: 600;
text-decoration: none;
transition: all 0.3s ease;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn-white:hover {
background-color: #f0f0f0;
color: #ff5722;
transform: translateY(-2px);
}
.no-hover-effect {
background-color: #ff7b00;
color: white;
transition: none;
}
.no-hover-effect:hover {
background-color: #ff7b00;
color: white;
transform: none;
box-shadow: none;
}
Key improvements made:
The code now provides a more modern, polished look while maintaining responsiveness and performance. All interactive elements have smooth transitions and hover effects that work well on both desktop and mobile devices.