/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Verdana', sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}
header {
  position: relative;
  width: 100%;
  padding: 20px;
  background-color: #a24545;
  color: white;
}

/* Style the navigation links */
nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-right: 20px;
}

nav a {
  color: rgb(214, 162, 162);
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
}

/* Position the 'Subscribe' link to the top-right */
.subscribe-link {
  position: absolute;
  top: 30px;
  right: 20px;
  font-size: 12px;
  background-color: #8b3933; /* Red background */
  padding: 10px 15px;
  border-radius: 5px;
  color: white;
  text-transform: uppercase;
  font-weight: bold;
  transition: all 0.2s ease;  /* Smooth transition */
}

.subscribe-link:hover {
  background-color: #d32f2f; /* Darker red on hover */
  transform: scale(1.05);     /* Slightly enlarge on hover */
}

/* Position the 'Feedback' link to the top-right */
.feedback-link {
  position: absolute;
  top: 30px;
  right: 150px;
  font-size: 12px;
  background-color: #8b3933; /* Red background */
  padding: 10px 15px;
  border-radius: 5px;
  color: white;
  text-transform: uppercase;
  font-weight: bold;
  transition: all 0.2s ease;  /* Smooth transition */
}

.feedback-link:hover {
  background-color: #d32f2f; /* Darker red on hover */
  transform: scale(1.05);     /* Slightly enlarge on hover */
}



main {
  padding: 2rem;
}
h1, h2, h3 {
  color: #791b1b;
}
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #8e5b21db;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 1rem;
  font-weight: bold;
  transition: all 0.3s ease;  /* Smooth transition */
}

.btn:hover {
  background-color: #c73232;
  transform: scale(1.05);     /* Slightly enlarge on hover */
}

.homeicon{
    transition: all 0.3s ease;  /* Smooth transition */
}

.homeicon:hover {
  background-color: #f4f4f4;
  transform: scale(1.05);     /* Slightly enlarge on hover */
}


.btn-2 {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #ad4531db;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 1rem;
  font-weight: bold;
  transition: all 0.3s ease;  /* Smooth transition */
}


.btn-2:hover {
  background-color: #c78e32;
  transform: scale(1.05);     /* Slightly enlarge on hover */
}

#meal-options {
  margin-top: 2rem;
}
select {
  padding: 0.5rem;
  margin-top: 1rem;
  width: 100%;
  max-width: 300px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

a.logo {
  font-size: 35px; /* Adjust size as needed */
  font-weight: bold; /* Makes the font bold */
}

/* Apply a different font size to the 'Dorm' part */
a.logo .red {
  font-size: 35px; /* Adjust size as needed */
  font-weight: bold; /* Makes the font bold */
}


#recipes-list {
  margin-top: 2rem;
}
#recipes-list ul {
  list-style: none;
}
#recipes-list li {
  margin-bottom: 1rem;
}
#subscribe {
  margin-top: 3rem;
  text-align: center;
}
form {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feedback_form{
    display: flex;
    flex-direction: column;

}

input[type="email"] {
  padding: 0.5rem;
  width: 250px;
  height: fit-content;
  border-radius: 5px;
  border: 1px solid #ccc;
}

button {
  padding: 0.5rem 1rem;
  background-color: #6b4d22;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 1rem;
    border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

}
button:hover {
  background-color: #c9982e;
}
footer {
  text-align: center;
  padding: 1rem;
  background-color: #333;
  color: #fff;
}

.red {
  color: rgb(8, 6, 6);
}


#hero {
  text-align: center;
  margin-bottom: 2rem;
  justify-content: center;
  align-items: center;

}
#search-recipes {
  padding: 0.5rem;
  width: 80%;
  max-width: 400px;
  margin-top: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}
#featured-recipes {
  margin-top: 3rem;
}
.recipe-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}


.recipe {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: calc(33.333% - 1rem);
  padding: 1rem;
  text-align: center;
}
.recipe img {
  width: 300px;
  max-width: auto;
  height: 200px;
  max-height: auto;
  border-radius: 5px;
}
#subscribe {
  margin-top: 3rem;
  text-align: center;
}


.category-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


.category-list img {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto; /* Centers the image horizontally */
}


.categoryoption {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: calc(100% - 1rem);
  padding: 1rem;
  text-align: center;
}

.categoryoption img {
  width: 400px;      /* or any fixed width you want */
  height: 280px;     /* or use auto to maintain aspect ratio */
  object-fit: cover; /* ensures the image fills the box neatly */
  border-radius: 5px; /* optional: matches card style */
  margin-bottom: 10px; /* optional spacing */
}

footer {
  text-align: center;
  margin-top: 3rem;
  padding: 1rem;
  background-color: #333;
  color: #fff;
}

#comment-form {
  margin-top: 1rem;
}
#comment-input {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#name-input {
  width: 30%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}


  
    .container {
      max-width: 800px;
      margin: 20px auto;
      background: #ffffff;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .bar-label {
      font-weight: bold;
      margin-top: 15px;
    }

    .bar {
      background: #f1faee;
      border: 1px solid #ccc;
      height: 20px;
      border-radius: 10px;
      overflow: hidden;
      margin-bottom: 10px;
    }

    .bar-inner {
      height: 100%;
      background-color: #7a5da9;
      text-align: right;
      color: white;
      padding-right: 10px;
      line-height: 20px;
    }

    .tips-box {
  background-color: #eaeaea; /* Light grey background */
  padding-right: 30px;
  padding-left: 30px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 10px;
  
}

.tips-box h2 {
  color: #6b1d1d; /* Dark grey text for contrast */
}


    .recipetext-box {
  background-color: #ffffff; /* white background */
  padding-right: 30px;
  padding-left: 30px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 10px; 
}

.recipe-image {
  width: 500px;
  height: 4%;
}

.like-section {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.like-icon {
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: transform 0.2s;
}

.like-icon:hover {
  transform: scale(1.1);
}


 .comment-list {
  background-color: #ffe4e4; /* Light grey background */
  padding-right: 30px;
  padding-left: 30px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 10px;
}

.comment-list h2 {
  color: #6b1d1d; /* Dark grey text for contrast */
}

.container2 {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.container2 h1 {
  font-size: 2.2rem;
  color: #1a1a1a;
  font-weight: 700;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1rem;
  color: #666;
}

h1 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 10px;
}

.subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 30px;
}

.feedback-box {
  background: white;
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-section {
  flex: 1;
  background-color: #b0be59;
  color: white;
  padding: 30px;
}

.contact-section h2 {
  margin-bottom: 20px;
}

.contact-section p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.contact-section .note {
  font-size: 0.9em;
  opacity: 0.9;
}

.form-section {
  flex: 2;
  padding: 30px;
}

.form-section h2 {
  margin-bottom: 20px;
}



label {
  margin: 10px 0 5px;
  font-weight: bold;
}

input, textarea {
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
}


.button_Subscribe {
  padding: 8px;
  width: 100px;
  align-content: center;
  background-color: #cf572f;
  color: white;
  font-weight: bold;
  font-size: 1em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  transition: all 0.2s ease;  /* Smooth transition */
}

.button_Subscribe:hover {
  background-color: #c78e32;
  transform: scale(1.05);     /* Slightly enlarge on hover */
}


@media screen and (max-width: 768px) {
  .feedback-box {
  }}


  /* Thank You Page Styles */
.thankyou-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  background-color: #fff8f0;
  padding: 20px;
}

.thankyou-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 30px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.thankyou-card .checkmark {
  font-size: 50px;
  color: #a15238;
  background-color: #f6ecc6;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  line-height: 80px;
  margin: 0 auto 20px auto;
}

.thankyou-card h2 {
  color: #2d3748;
  margin-bottom: 10px;
}

.thankyou-card p {
  color: #4a5568;
  margin-bottom: 25px;
  font-size: 16px;
  line-height: 1.5;
}

.return-btn {
  display: inline-block;
  background-color: #a16238;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.return-btn:hover {
  background-color: #85842f;
}

input[type="text"],
input[type="email"],
textarea {
  width: 300px;
  padding: 12px 40px 12px 40px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #f9f9f9;
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 20px;
  margin-bottom: 15px;
}

#name {
  background-image: url('https://cdn-icons-png.flaticon.com/512/1077/1077114.png');
}

#email {
  background-image: url('https://cdn-icons-png.flaticon.com/512/561/561127.png');
}

#message {
  padding: 12px 15px;
  font-size: 1em;
  border-radius: 10px;
  background-color: #f9f9f9;
}

form button {
  margin-top: 10px;
  padding: 12px 20px;
  font-size: 1rem;
  background-color: #e84545;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 160px;
}

form button:hover {
  background-color: #c73535;
}

.foodimage {
  width: 167px;
  height: 100px;
  border-radius: 10%;
}

#recipe-highlight {
  margin: 1rem auto;
  max-width: 1000px;
  padding: 20px;
}

.recipe-highlight-box {
  display: flex;
  flex-wrap: wrap;
  background-color: #f7f9fa;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.highlight-image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: cover;
  display: block;
}

.highlight-content {
  flex: 1;
  padding: 30px;
  background-color: #ecf0f1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.allrecipe {
  text-align: center;        /* Centers inline content like images */
  margin-bottom: 20px;       /* Optional spacing */
}

.allrecipe img {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: cover;
  display: block;
}

.parent-container2 {
  text-align: center;
}

.highlight-tag {
  background-color: #faae42;
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 10px;
  max-width: 120px;         /* Adjust this value as needed */
  overflow: hidden;         /* Prevent overflow if needed */
  text-overflow: ellipsis;  /* Add "..." if text is too long */
  white-space: nowrap;      /* Keep it on one line */
}

.highlight-content h2 {
  color: #222;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.highlight-content p {
  color: #444;
  font-size: 1rem;
  margin-bottom: 15px;

}

.highlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.9rem;
  color: #2c3e50;
}

.highlight-btn {
  display: inline-block;
  padding: 10px 15px;
  background-color: #cf572f;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  margin-top: 15px;
  width: fit-content;
  transition: background-color 0.3s ease;
}

.highlight-btn:hover {
  background-color: #f52d2d;
  transform: scale(1.05);     /* Slightly enlarge on hover */
}

@media (max-width: 768px) {
  .recipe-highlight-box {
    flex-direction: column;
  }



.responsive-image {
  width: 300px;        /* Preset default width */
  max-width: 100%;     /* Prevents overflow on small screens */
  height: auto;        /* Keeps the image aspect ratio */
}

.glitter-text {
  font-size: 2em;
  font-size: 25px;
  font-weight: bold;
  background: linear-gradient(
    90deg,
    #fff 0%,
    #d8d7d7 20%,
    #7a6212 60%,   /* gold glitter */
    #fff 60%,
    #d8d7d7 80%,
    #fff 100%
  );
  background-size: 200% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}



.ingredient-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  height: fit-content;
  margin: auto;
}

.ingredient-link nav {
  width: 100%;
  display: flex;
  justify-content: center;
}

.ingredient-link ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  justify-content: center;
}

.ingredient-link li a {
  text-decoration: none;
  color: #a24545;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
}

.ingredient-link li a:hover {
  background-color: #f4f4f4;
}

#meal-categories {
  padding: 40px 20px;
  background-color: #fff;
  text-align: center;
}

.category-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: #1a1a1a;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}


.category-item {
  flex: 1 1 250px;  /* flex-grow, flex-shrink, flex-basis */
  max-width: 250px;
  min-width: 200px;  /* Optional for responsiveness */
  background-color: #eee;  /* Just for visibility */
  padding: 20px;
  text-align: center;
}
.category-card {
  background-color: #ffeaea;
  border-radius: 16px;
  padding: 30px 20px;
  width: 220px;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #e84545;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.category-card img {
  width: 70px;
  height: auto;
  margin-bottom: 15px;
}

.category-card:hover {
  transform: scale(1.05);
  background-color: #ffdcdc;
}

.category-card p {
  font-size: 16px;
  margin: 0;
}