* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Ubuntu", system-ui;
  font-weight: 300;
  font-style: normal;
}

.section {
  padding: 50px 0px;
  text-align: center;
  border-bottom: 2px solid #333;
}

.section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #333;
}

.section p {
  font-size: 18px;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-image {
  position: relative;
  height: 75vh;
  background-color: #da574a;
  background-image: url("./assets/diet-bg.gif"); 
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom;
  text-align: center;
  /* border-bottom: 2px solid black; */
}

.overlay {
  position: relative;
  height: 100%; 
  background-color: rgba(238, 222, 222, 0.6); 
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #004d40;
}

.overlay h1 {
  /* border: 1px solid rgb(90, 255, 109); */
  align-items: center;
  color: #004d40;
  font-size: 2.5rem;
  margin-top: 2rem;
}

.overlay > p{
  font-size: 1.2rem;
  margin-top: 1rem;
}

.diet-purpose-section {
  /* background-color: #4caf50;  */
  /* color: white;  */
  padding: 20px; /* Padding for spacing */
  border-radius: 8px; /* Rounded corners */
  margin: 20px auto; /* Centered with margin */
  max-width: 800px; /* Maximum width for readability */
  text-align: justify; /* Centered text */
}

@media (max-width: 768px) {
  .diet-purpose-section{
    margin: 20px;
  }
}
.diet-purpose-section h2 {
  font-size: 28px; /* Size of the heading */
  margin-bottom: 15px; /* Space below the heading */
  text-align: center;
}

.diet-purpose-section p {
  font-size: 18px; /* Font size for the paragraph */
  line-height: 1.6; /* Increased line height for readability */
}

.nutrients-section {
  padding: 40px;
  min-height: 80vh; /* Make the section occupy at least 80vh */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center content vertically */
  align-items: center; /* Center content horizontally */
}

.nutrients-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

.nutrients-list {
  width: 100%;
  max-width: 800px; /* Set a max width for better alignment */
  display: flex;
  flex-direction: column;
  gap: 20px; /* Space between nutrient cards */
}

.nutrient-card {
  background-color: #fff; /* White background for the card */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  align-items: center; /* Align items in the center vertically */
}


.nutrient-info {
  display: flex;
  align-items: center; /* Center image and text vertically */
}


.nutrient-image {
  width: 20%; 
  height: auto;
  margin-right: 20px; /* Space between image and text */
  object-fit: cover;
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .nutrient-info{
    flex-direction: column-reverse;
  }
  .nutrient-image{
    width: 200px;
    height: 132px;
    margin-right: 0;
    margin-top: 10px;
  }
}

.nutrient-text {
  display: flex;
  flex-direction: column; /* Stack text elements vertically */
}

.nutrient-text h3 {
  font-size: 1.5rem;
  margin: 0;
  color: #333;
}

.nutrient-text p {
  margin: 5px 0; /* Space between paragraphs */
  font-size: 1rem; /* Font size for function and foods */
}

.calc {
  margin-left: 10%;
  margin-right: 10%;
  padding: 50px 0px;
}

.calc h1 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

.calculator-section {
  display: flex; /* Use flexbox for centering */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically *
  margin: 5% 0; /* 80% of the viewport height */
}

.calculator-container {
  background: #e5c1c1; /* Set background to orange */
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 65vw; /* Adjust the width as needed */
  overflow-y: auto; /* Allows scrolling if content overflows */
  border: 3px solid black;
}

@media (max-width: 768px) {
  .calculator-container{
    padding: 20px;
    width: 80vw;
  }
}

#calorie-calculator-form {
  display: flex;
  flex-direction: column;
}

.input-group {
  margin: 10px 0;
}

.label-current-weight {
  font-weight: bold;
}

#current-weight-input,
#target-weight-input,
#height-input,
#age-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #000000;
  border-radius: 4px;
}

button {
  background-color: #2b4c1b; /* Red background for button */
  font-weight: 600;
  color: rgb(255, 255, 255);
  border: 1px solid black;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #c82333; /* Darker red on hover */
}

.calculator-result {
  margin-top: 20px;
  /* font-weight: bold; */
}

.roadmap-section {
  /* background-color: #f9f9f9; */
  border-radius: 8px;
  margin: 4% 10%;
}

.roadmap-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap; /* Allow wrapping for responsive design */
  margin-bottom: 30px;
  padding: 1%;
  border: 2px solid black;
}

.roadmap {
  flex: 1; /* Take equal space */
  margin: 0 10px;
  padding: 30px;
  border: 1px solid #000000;
  border-radius: 8px;
  min-width: 280px; /* Minimum width for better responsiveness */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add slight shadow for depth */
}

.roadmap-section h1 {
  text-align: center;
  margin-bottom: 20px;
}

.roadmap h3 {
  color: #e57c23; /* Orange color for headings */
  margin-bottom: 10px;
}

.roadmap h4 {
  margin-top: 10px;
  margin-bottom: 10px;
  color: #555;
}

.roadmap-section .cta-section {
  text-align: center;
  margin-top: 30px;
}

.purchase-button {
  background-color: #e57c23; /* Orange button */
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
}

.purchase-button:hover {
  background-color: #d26914; /* Darker shade on hover */
}

/* Media query for responsiveness */
@media (max-width: 768px) {
  .roadmap-container {
    flex-direction: column; /* Stack vertically */
    align-items: center; /* Center items */
  }

  .roadmap {
    margin: 10px 0; /* Adjust margins for vertical stacking */
    width: 90%; /* Full width for smaller screens */
  }
}

.recipe-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.recipe-section h1 {
  margin-bottom: 20px;
}

.recipe-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 250px;
}

.recipe-video {
  width: 100%;
  height: auto;
}

.card-text {
  padding: 15px;
}

.card-text h3 {
  margin: 10px 0 5px;
  font-size: 1.2em;
}

.card-text p {
  font-size: 0.9em;
  color: #555;
}

.explore-channel {
  margin-top: 30px;
}

.explore-channel p {
  font-size: 1em;
}

.explore-channel a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}

@media (max-width: 600px) {
  .recipe-cards {
    flex-direction: column;
    align-items: center;
  }
}

.diet-types-section {
  padding-left: 10%;
  padding-right: 10%;
  /* background-color: #f9f9f9; */
}

.diet-types {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.diet-type {
  flex: 1 1 200px; /* Responsive cards */
  background-color: #fff;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.diet-type:hover {
  transform: scale(1.05); /* Slightly enlarge on hover */
}

.diet-type img {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

.diet-type h3 {
  margin-top: 0;
  color: #333;
}

.diet-type p {
  color: #666;
}

/* faq-section */
.faq-section {
  margin: 0 10%;
  /* padding: 2rem; */
  margin-bottom: 2rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-question {
  width: 100%;
  color: #333;
  background-color: #f1f1f1;
  border: none;
  outline: none;
  padding: 1rem;
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background-color: #ddd;
}

.faq-answer {
  display: none;
  padding: 1rem;
  background-color: #ffffff;
  border-top: 1px solid #ccc;
}

.faq-item {
  margin-bottom: 1rem;
}

.faq-icon {
  font-size: 1.5rem;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
