736 lines
14 KiB
CSS
736 lines
14 KiB
CSS
/*
|
|
MajuroEats Theme
|
|
*/
|
|
|
|
:root {
|
|
--coral: #FF6F61;
|
|
--orange: #FF9A8B;
|
|
--ocean-blue: #00A7E1;
|
|
--palm-green: #3D9970;
|
|
--coconut-white: #FFFFFF;
|
|
--sand: #F4F1EA;
|
|
--text-dark: #333333;
|
|
--text-light: #666666;
|
|
--border-color: #EAEAEA;
|
|
|
|
--font-family: 'Nunito', sans-serif;
|
|
--border-radius: 12px;
|
|
--shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.07);
|
|
--shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
|
|
--transition: all 0.3s ease-in-out;
|
|
}
|
|
|
|
/* --- Global Styles --- */
|
|
body {
|
|
font-family: var(--font-family);
|
|
background-image: url('../assets/pasted-20251016-192041-2abf91d9.jpg');
|
|
background-size: cover;
|
|
background-attachment: fixed;
|
|
background-position: center;
|
|
color: var(--text-dark);
|
|
margin: 0;
|
|
padding-top: 80px; /* Space for fixed header */
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: var(--coral);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
a:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
main {
|
|
display: block; /* For older browsers */
|
|
}
|
|
|
|
.page-content {
|
|
padding-top: 40px;
|
|
padding-bottom: 40px;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 2.8rem;
|
|
font-weight: 800;
|
|
text-align: center;
|
|
margin-bottom: 50px;
|
|
color: var(--text-dark);
|
|
position: relative;
|
|
padding-bottom: 15px;
|
|
}
|
|
|
|
.section-title::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 80px;
|
|
height: 4px;
|
|
background-color: var(--coral);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* --- Navigation Bar --- */
|
|
.main-header {
|
|
background-color: rgba(255, 255, 255, 0.85);
|
|
backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid var(--border-color);
|
|
box-shadow: var(--shadow-soft);
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
z-index: 1000;
|
|
height: 80px;
|
|
}
|
|
|
|
.main-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: 100%;
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 1.8rem;
|
|
font-weight: 800;
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.logo-icon {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
gap: 30px;
|
|
}
|
|
|
|
.nav-links a {
|
|
color: var(--text-light);
|
|
font-weight: 700;
|
|
font-size: 1rem;
|
|
padding: 10px 0;
|
|
border-bottom: 2px solid transparent;
|
|
}
|
|
|
|
.nav-links a:hover, .nav-links a.active {
|
|
color: var(--coral);
|
|
border-bottom-color: var(--coral);
|
|
}
|
|
|
|
.nav-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
.nav-link-button {
|
|
color: var(--text-light);
|
|
font-weight: 700;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.nav-button {
|
|
padding: 10px 20px;
|
|
border-radius: 50px;
|
|
font-weight: 700;
|
|
font-size: 1rem;
|
|
border: 2px solid var(--coral);
|
|
}
|
|
|
|
.nav-button.primary {
|
|
background-color: var(--coral);
|
|
color: var(--coconut-white);
|
|
}
|
|
|
|
.nav-button.primary:hover {
|
|
background-color: transparent;
|
|
color: var(--coral);
|
|
}
|
|
|
|
.hamburger {
|
|
display: none;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
}
|
|
|
|
.hamburger span {
|
|
display: block;
|
|
width: 25px;
|
|
height: 3px;
|
|
background-color: var(--text-dark);
|
|
margin: 5px 0;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
/* --- Hero Section --- */
|
|
.hero-section {
|
|
background-image: url('../assets/pasted-20251016-192041-2abf91d9.jpg');
|
|
background-size: cover;
|
|
background-attachment: fixed;
|
|
background-position: center;
|
|
position: relative;
|
|
padding: 120px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.hero-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.hero-content-container {
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
.hero-content h1 {
|
|
font-size: 3.8rem;
|
|
font-weight: 800;
|
|
margin: 0 0 15px;
|
|
text-shadow: 0 3px 10px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
.hero-content p {
|
|
font-size: 1.3rem;
|
|
margin: 0 auto 40px;
|
|
opacity: 0.95;
|
|
max-width: 600px;
|
|
}
|
|
|
|
.hero-search-form {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin: 30px auto;
|
|
box-shadow: var(--shadow-medium);
|
|
border-radius: 50px;
|
|
overflow: hidden;
|
|
max-width: 600px;
|
|
background-color: var(--coconut-white);
|
|
border: 3px solid var(--coconut-white);
|
|
}
|
|
|
|
#address-input {
|
|
flex-grow: 1;
|
|
border: none;
|
|
padding: 20px;
|
|
font-size: 1.1rem;
|
|
font-family: var(--font-family);
|
|
color: var(--text-dark);
|
|
background: transparent;
|
|
}
|
|
|
|
#address-input:focus {
|
|
outline: none;
|
|
}
|
|
|
|
#find-food-btn {
|
|
background-color: var(--coral);
|
|
color: var(--coconut-white);
|
|
border: none;
|
|
padding: 0 40px;
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
border-radius: 50px;
|
|
}
|
|
|
|
#find-food-btn:hover {
|
|
background-color: var(--orange);
|
|
}
|
|
|
|
.delivery-note {
|
|
font-size: 0.9rem;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* --- Promo Section --- */
|
|
.promo-section {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 30px;
|
|
margin-bottom: 60px;
|
|
}
|
|
|
|
.promo-card {
|
|
background: var(--coconut-white);
|
|
padding: 30px;
|
|
border-radius: var(--border-radius);
|
|
text-align: center;
|
|
box-shadow: var(--shadow-soft);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.promo-card:hover {
|
|
transform: translateY(-10px);
|
|
box-shadow: var(--shadow-medium);
|
|
}
|
|
|
|
.promo-card h3 {
|
|
font-size: 1.5rem;
|
|
font-weight: 800;
|
|
color: var(--ocean-blue);
|
|
margin: 0 0 10px;
|
|
}
|
|
|
|
.promo-card p {
|
|
font-size: 1rem;
|
|
color: var(--text-light);
|
|
margin: 0;
|
|
}
|
|
|
|
/* --- Featured Restaurants --- */
|
|
.featured-restaurants {
|
|
margin-bottom: 60px;
|
|
}
|
|
|
|
.restaurant-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 30px;
|
|
}
|
|
|
|
.restaurant-card {
|
|
background: var(--coconut-white);
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-soft);
|
|
overflow: hidden;
|
|
transition: var(--transition);
|
|
color: var(--text-dark);
|
|
border: 2px solid transparent;
|
|
}
|
|
|
|
.restaurant-card:hover {
|
|
transform: translateY(-10px);
|
|
box-shadow: var(--shadow-medium);
|
|
border-color: var(--coral);
|
|
}
|
|
|
|
.card-image {
|
|
height: 200px;
|
|
background-size: cover;
|
|
background-position: center;
|
|
}
|
|
|
|
.card-content {
|
|
padding: 20px;
|
|
}
|
|
|
|
.card-content h3 {
|
|
font-size: 1.4rem;
|
|
font-weight: 800;
|
|
margin: 0 0 5px;
|
|
}
|
|
|
|
.cuisine-tags {
|
|
font-size: 0.9rem;
|
|
color: var(--text-light);
|
|
margin: 0 0 15px;
|
|
}
|
|
|
|
.restaurant-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.rating-display {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.rating-display .star {
|
|
color: #FFC700;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.delivery-info {
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.see-all-container {
|
|
text-align: center;
|
|
margin-top: 40px;
|
|
}
|
|
|
|
.see-all-btn {
|
|
background-color: var(--coral);
|
|
color: var(--coconut-white);
|
|
padding: 15px 35px;
|
|
border-radius: 50px;
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
border: 2px solid var(--coral);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.see-all-btn:hover {
|
|
background-color: transparent;
|
|
color: var(--coral);
|
|
}
|
|
|
|
/* --- Footer --- */
|
|
.main-footer {
|
|
background-color: var(--text-dark);
|
|
color: var(--sand);
|
|
padding: 40px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
/* --- Responsive Design --- */
|
|
@media (max-width: 992px) {
|
|
.nav-links {
|
|
display: none;
|
|
position: absolute;
|
|
top: 80px;
|
|
left: 0;
|
|
width: 100%;
|
|
background-color: var(--coconut-white);
|
|
flex-direction: column;
|
|
gap: 0;
|
|
padding: 20px 0;
|
|
box-shadow: var(--shadow-medium);
|
|
}
|
|
|
|
.nav-links.active {
|
|
display: flex;
|
|
}
|
|
|
|
.nav-links li {
|
|
text-align: center;
|
|
}
|
|
|
|
.nav-links a {
|
|
padding: 15px;
|
|
display: block;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.nav-actions {
|
|
display: none; /* Simple toggle, for complex logic more JS is needed */
|
|
}
|
|
|
|
.nav-actions.active {
|
|
display: flex;
|
|
position: absolute;
|
|
top: calc(80px + 250px); /* Adjust based on nav-links height */
|
|
left: 0;
|
|
width: 100%;
|
|
background-color: var(--coconut-white);
|
|
justify-content: center;
|
|
padding: 20px 0;
|
|
box-shadow: var(--shadow-medium);
|
|
}
|
|
|
|
.hamburger {
|
|
display: block;
|
|
}
|
|
|
|
.hero-content h1 {
|
|
font-size: 2.8rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
body {
|
|
padding-top: 70px;
|
|
}
|
|
.main-header, .main-nav {
|
|
height: 70px;
|
|
}
|
|
.nav-links {
|
|
top: 70px;
|
|
}
|
|
.hero-content h1 {
|
|
font-size: 2.2rem;
|
|
}
|
|
.hero-content p {
|
|
font-size: 1.1rem;
|
|
}
|
|
.location-actions {
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/* --- Empty State --- */
|
|
.empty-state {
|
|
padding: 80px 40px;
|
|
background-color: var(--sand);
|
|
border-radius: var(--border-radius);
|
|
margin-top: 40px;
|
|
}
|
|
|
|
.empty-state h3 {
|
|
font-size: 1.8rem;
|
|
font-weight: 800;
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.empty-state p {
|
|
font-size: 1.1rem;
|
|
color: var(--text-light);
|
|
max-width: 400px;
|
|
margin: 10px auto 0;
|
|
}
|
|
|
|
.btn {
|
|
padding: 15px 35px;
|
|
border-radius: 50px;
|
|
font-weight: 700;
|
|
font-size: 1.1rem;
|
|
border: 2px solid transparent;
|
|
transition: var(--transition);
|
|
cursor: pointer;
|
|
text-align: center;
|
|
display: inline-block;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: var(--coral);
|
|
color: var(--coconut-white);
|
|
box-shadow: var(--shadow-soft);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: var(--orange);
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-medium);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
color: var(--coconut-white);
|
|
border-color: var(--coconut-white);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background-color: var(--coconut-white);
|
|
color: var(--text-dark);
|
|
}
|
|
|
|
.location-actions {
|
|
display: flex;
|
|
gap: 20px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.w-100 {
|
|
width: 100%;
|
|
}
|
|
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 1001;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: auto;
|
|
background-color: rgba(0,0,0,0.5);
|
|
}
|
|
|
|
.modal-content {
|
|
background-color: #fefefe;
|
|
margin: 10% auto;
|
|
padding: 20px;
|
|
border: 1px solid #888;
|
|
width: 80%;
|
|
max-width: 600px;
|
|
border-radius: var(--border-radius);
|
|
position: relative;
|
|
}
|
|
|
|
.close-button {
|
|
color: #aaa;
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 20px;
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.close-button:hover,
|
|
.close-button:focus {
|
|
color: black;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#map {
|
|
height: 400px;
|
|
width: 100%;
|
|
margin-top: 20px;
|
|
margin-bottom: 20px;
|
|
border-radius: var(--border-radius);
|
|
}
|
|
|
|
#confirm-location {
|
|
width: 100%;
|
|
padding: 15px;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
/* --- Back to Home Button --- */
|
|
.back-to-home-btn {
|
|
display: inline-block;
|
|
margin-top: 10px;
|
|
margin-bottom: -10px; /* to reduce space */
|
|
padding: 8px 15px;
|
|
background-color: #f8f9fa;
|
|
color: var(--text-light);
|
|
border-radius: 50px;
|
|
font-size: 0.9rem;
|
|
font-weight: 700;
|
|
border: 1px solid var(--border-color);
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.back-to-home-btn:hover {
|
|
background-color: #e9ecef;
|
|
color: var(--text-dark);
|
|
border-color: #ccc;
|
|
}
|
|
|
|
/* --- Featured Cuisines --- */
|
|
.featured-cuisines {
|
|
margin-bottom: 60px;
|
|
}
|
|
|
|
.cuisine-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 30px;
|
|
}
|
|
|
|
.cuisine-card {
|
|
position: relative;
|
|
border-radius: var(--border-radius);
|
|
overflow: hidden;
|
|
transition: var(--transition);
|
|
color: var(--coconut-white);
|
|
display: block;
|
|
}
|
|
|
|
.cuisine-card:hover {
|
|
transform: translateY(-10px);
|
|
box-shadow: var(--shadow-medium);
|
|
}
|
|
|
|
.cuisine-card .card-image {
|
|
height: 180px;
|
|
background-size: cover;
|
|
background-position: center;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.cuisine-card:hover .card-image {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.cuisine-card-content {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
padding: 20px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
|
|
}
|
|
|
|
.cuisine-card-content h3 {
|
|
font-size: 1.5rem;
|
|
font-weight: 800;
|
|
margin: 0;
|
|
text-shadow: 0 2px 5px rgba(0,0,0,0.4);
|
|
}
|
|
|
|
/* --- Restaurants Page --- */
|
|
.filter-bar {
|
|
background-color: var(--sand);
|
|
padding: 20px;
|
|
border-radius: var(--border-radius);
|
|
margin-bottom: 40px;
|
|
box-shadow: var(--shadow-soft);
|
|
}
|
|
|
|
.filter-bar .form-control, .filter-bar .form-select {
|
|
border-radius: 50px;
|
|
padding: 10px 20px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.filter-bar .btn-primary {
|
|
background-color: var(--coral);
|
|
border-color: var(--coral);
|
|
border-radius: 50px;
|
|
padding: 10px 20px;
|
|
font-weight: 700;
|
|
width: 100%;
|
|
}
|
|
|
|
.restaurant-card .card-img-top {
|
|
height: 200px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.restaurant-card .card-body {
|
|
padding: 20px;
|
|
}
|
|
|
|
.restaurant-card .card-title {
|
|
font-size: 1.3rem;
|
|
font-weight: 800;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.restaurant-card .card-text {
|
|
color: var(--text-light);
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.restaurant-card .btn-outline-primary {
|
|
border-color: var(--coral);
|
|
color: var(--coral);
|
|
border-radius: 50px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.restaurant-card .btn-outline-primary:hover {
|
|
background-color: var(--coral);
|
|
color: var(--coconut-white);
|
|
}
|