﻿.cssMeal {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ece0c6;  /* Main background color */
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

.cssMeal h2 {
    color: #4a3f35;
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    padding: 0.8rem 1.2rem;
    background-color: #e9ecef;
    border-left: 4px solid #6d4c41;
    border-radius: 4px;
}

.cssMeal ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.cssMeal li {
    padding: 0.8rem 1.2rem;
    margin: 0.5rem 0;
    background-color: #fffdf9;  /* Off-white for list items */
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.cssMeal li p {
    margin: 0;
    color: #5a4e42;  /* Dark brown text */
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cssMeal {
        margin: 1rem;
        padding: 1rem;
    }
    
    .cssMeal h2 {
        font-size: 1.3rem;
        padding: 0.6rem 1rem;
    }
    
    .cssMeal li {
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 480px) {
    .cssMeal {
        margin: 0.5rem;
        padding: 0.5rem;
    }
    
    .cssMeal h2 {
        font-size: 1.2rem;
        padding: 0.5rem;
    }
    
    .cssMeal li {
        font-size: 0.9rem;
    }
}


.cssMain {
 position: relative;
}


/* START hamburger menu */
/* Mobile First Styles */
.hamburger-menu {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #CC6666;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1001;
}

.hamburger-menu:hover {
  background-color: #b35959;
  transform: scale(1.05);
}

.hamburger-menu .line {
  width: 20px;
  height: 2px;
  background-color: white;
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.sidebar {
  display: none;
  background: #f8f9fa;
  padding: 1.5rem;
  box-shadow: 3px 0 10px rgba(0,0,0,0.1);
  height: 100vh;
  overflow-y: auto;
}

.sidebar ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar li {
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.sidebar a {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: #CC6666;
  font-family: 'Arial', sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border: 1px solid rgba(204,102,102,0.2);
}

.sidebar a:hover {
  background: #C71585;
  color: white;
  transform: translateX(8px);
  box-shadow: 0 4px 15px rgba(204,102,102,0.3);
}

.sidebar a:active {
  transform: translateX(4px);
  background: #b35959;
}

.sidebar li.selected a {
  color: white;
  background-color: #800000;
  /* Optional: add subtle transition */
  transition: all 0.2s ease;
}

/* Mobile styles */
@media (max-width: 767px) {
  .sidebar {
    width: 100%;
    position: absolute;
    top: 60px;
    left: -100%;
    transition: all 0.3s ease;
    z-index: 1000;
    background: #fff;
  }
  
  .active .sidebar {
	display: block;
	left: 0;
  }
  
  .hamburger-menu span {
    left: calc(100% + 15px);
    right: auto;
  }
}

/* Desktop Styles */
@media (min-width: 768px) {
  .hamburger-menu {
    display: none;
  }
  
  .sidebar {
    display: block;
    width: 250px;
    position: absolute;
    left: 0;
    top: 0;
    background: #CC6666;
  }
  
  .cssMeal {
    margin-left: 250px; /* Offset main content by sidebar width */
    max-width: calc(100% - 250px);
  }

}

/* Hamburger Animation */
.active .line {
  background-color: rgba(0, 0, 0, 0.8);
}

.active .line-1 {
  transform: rotate(45deg) translate(5px, 5px);
}

.active .line-2 {
  opacity: 0;
  visibility: hidden;
}

.active .line-3 {
  transform: rotate(-45deg) translate(5px, -5px);
}

.hamburger-menu span {
  position: absolute;
  left: 5rem;
  background-color: #e2b646;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 1.2rem;
  color: #fff;
  font-family: "Baloo Da 2", serif;
  font-size: 1.2rem;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  white-space: nowrap;
}

.active .hamburger-menu:hover span {
  opacity: 1;
  visibility: visible;
}

.hamburger-menu span::before {
  content: "";
  position: absolute;
  left: -8px;
  border-width: 8px 8px 8px 0;
  border-style: solid;
  border-color: transparent #e2b646 transparent transparent;
}
/* END hamburger menu */