/* === Global Styles === */
:root {
  --primary-color: #827365;
  --secondary-color: #f2e9d9;
  --text-color: #333333;
  --border-color: #558c65;
  --hover-color: #e8d5b7;
  --accent-color: #498978;
  --font-family-heading: "Playfair Display", serif;
  --font-family-body: "Lato", sans-serif;
  --spacing-mini: 4px;
  --spacing-small: 8px;
  --spacing-medium: 15px;
  --spacing-large: 40px;
  --border-radius: 8px;
}

body {
  background-color: var(--secondary-color);
  color: var(--text-color);
  font-family: var(--font-family-body);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-color);
  font-family: var(--font-family-heading);
  margin-bottom: var(--spacing-medium);
}

p {
  font-family: var(--font-family-body);
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: var(--spacing-medium);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--hover-color);
  text-decoration: underline;
}

.button-group {
  display: flex; /* Use Flexbox to align buttons horizontally */
  gap: var(--spacing-mini); /* Add spacing between buttons */
  justify-content: center; /* Center the buttons horizontally (optional) */
  align-items: center; /* Align buttons vertically (optional) */
  margin-bottom: 1px;
}

.button {
  background-color: var(--border-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-small) var(--spacing-small);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.2s ease;
  width: 80px;
  height: 40px;
}

.margin-top-150px {
  margin-top: 150px;
}

.margin-top-100px {
  margin-top: 100px;
}

.margin-top-75px {
  margin-top: 75px;
}

.button:hover {
  background-color: var(--primary-color);
  color: #fff;
  transform: scale(1.05);
}

.button:focus {
  outline: 2px solid var(--hover-color);
  outline-offset: 2px;
}

.button-ctn {
  background-color: var(--secondary-color);
  color: var(--text-color);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-mini) var(--spacing-small);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: 70px;
  height: 35px;
}

.button-ctn:hover {
  background-color: red;
  color: #fff;
  transform: scale(1.05);
}

.button-cncl {
  background-color: rgb(91, 104, 116);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-mini) var(--spacing-small);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: 80px;
  height: 40px;
}

.button-cncl:hover {
  background-color: yellow;
  color: #fff;
  transform: scale(1.05);
}

/* === Utility Classes === */
.text-center {
  text-align: center;
}

.margin-auto {
  margin: 0 auto;
}

.padding {
  padding: var(--spacing-medium);
}

.border {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.bg-light {
  background-color: var(--secondary-color);
}

.flex {
  display: flex;
  align-items: center;
  justify-content: center;
}
.grid {
  display: grid;
  gap: var(--spacing-medium);
}

.shadow {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* === Layout Styles === */
.page {
  margin-top: var(--spacing-large); /* Add space below the navbar */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-medium);
  box-sizing: border-box;
}

.container-width-600 {
  max-width: 600px;
  max-height: 95vh;
  margin-top: 5vh;
  overflow-y: auto;
  margin: 0 auto;
  padding: var(--spacing-medium);
  box-sizing: border-box;
}

.container-width-900 {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-medium);
  box-sizing: border-box;
}
/* === Component Styles === */
.plan-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-medium);
  margin: var(--spacing-large) auto;
  padding: var(--spacing-medium);
}
.div.plan-container:nth-child(1) > div:nth-child(1) {
  background-color: var(--secondary-color);
}
.plan {
  background-color: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-medium);
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.meal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-medium);
  margin: var(--spacing-large) auto;
}

.meal-card {
  display: flex; /* Use Flexbox for alignment */
  flex-direction: column; /* Stack items vertically */
  justify-content: space-between; /* Distribute space evenly */
  align-items: center; /* Center items horizontally */
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-medium);
  background-color: var(--secondary-color);
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: 100%; /* Ensure all cards have the same height */
}

.meal-name {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: var(--spacing-medium);
}

.meal-actions a {
  margin: 0 var(--spacing-small);
  text-decoration: none;
  color: var(--primary-color);
}

.meal-actions a:hover {
  text-decoration: underline;
  color: var(--hover-color);
}

/* === Navbar Styles === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  color: white;
  padding: var(--spacing-small) var(--spacing-medium);
  text-align: center;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

#id_meal {
  width: 70%;
}

.quote-space {
  font-style: italic;
  font-size: 1.2rem;
  color: #555;
}

.quote-space small {
  display: block;
  justify-content: center;
  text-align: right;
  color: #888;
}

.home-description > em:nth-child(3) {
  position: relative;
  left: -10vw;
}

.home-description > em:nth-child(6) {
  position: relative;
  left: 0vw;
}
.home-description > em:nth-child(11) {
  position: relative;
  left: 10vw;
}

.calendar-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.left-quote,
.right-details {
  flex: 1;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.left-quote blockquote {
  font-style: italic;
  margin: 1rem 0;
}

.right-details h5 {
  margin-bottom: 0.5rem;
}

.calendar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-medium);
  box-sizing: border-box;
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: var(--spacing-medium);
}

.plan-date-button {
  display: inline-block;
  background-color: #fff8dc;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  color: var(--text-color);
  border: 2px solid var(--border-color);
  font-weight: bold;
  font-size: 1.4rem;
  transition: all 0.25s ease;
  box-shadow: none;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  min-width: 180px;
  transition: all 0.3s ease;
  align-self: center;
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  margin-left: 0.5rem;
  line-height: 0.7;
}

.plan-date-day {
  font-size: 1.3rem;
  display: block;
  text-align: center;
  line-height: 0.7;
}

.plan-date-full {
  font-size: 1.2rem;
  display: block;
  text-align: center;
  line-height: 0.7;
}

.plan-date-button:hover {
  background-color: #e19d75;
  color: var(--border-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
}

.plan-title {
  text-align: left;
  padding-left: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #4e4e4e;
}

.plan-body {
  padding-left: 20px;
  font-size: 1rem;
  color: #333;
  line-height: 1;
}

.plan-ribbon {
  background-color: #ffffff;
  border-left: 4px solid var(--border-color);
  padding: 1rem 1rem 1rem 0;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.plan-inner {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  margin-left: 10px;
  margin-right: 5px;
  background-color: #fdfdfd;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* div.plan-container:nth-child(1) > div:nth-child(1) {
  background-color: var(--primary-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-medium);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color:
} */
