* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #1b1b1b;
  color: #f5e9d2;
  font-size: 1.5625rem;
  font-family: "Bitter", serif;
  font-weight: normal;
  line-height: 1.5;
  
}

html {
  -webkit-text-size-adjust: 100%;
}
html,
body {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}
h1 {
  text-align: center;
  color: #e09f3e;
  font-weight: 700;
  font-size: 100px;
  font-family: "Montserrat", sans-serif;
}

h2,
h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #e09f3e;
}

a {
  color: #e09f3e;
}

a:visited {
  color: none;
}

a:hover,
a:active {
  color: #f5e9d2;
}

button {
  background-color: #8b322c;
  color: #f5e9d2;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.button {
    background-color: #8b322c;
    color: #f5e9d2;
    font-size: 18px;
    font-weight: bold;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
button:hover {
  background-color: #e09f3e;
  color: #1b1b1b;
}

.nobull {
  list-style-type: none;
}

.btn {
  background-color: #008cba;
  border: none;
  color: white;
  padding: 10px 15px;
  text-align: top left;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}

.btn:hover {
  background-color: green;
  color: white;
}

input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

/* Profile menu */
.profile-menu {
  position: absolute;
  top: 2px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

/* Profile icon styling */

/* Logo container */
.logo-container {
  padding: 5px;
  text-align: center; /* Centers the logo */
  order: 1; /* Ensures the logo stays in its place even if items wrap */
  flex-shrink: 0; /* Prevents the logo from shrinking */
}

.logoimg {
  max-width: 50%;
  height: 50%;
  display: block;
  border-radius: 10px;
  object-fit: contain; /* Avoids stretching */
  margin: auto;
}
/* Make the logo responsive */
.logo-container img {
  max-width: 100%;
  height: auto;
  max-height: 300px; /* Adjust the height to fit, or remove max-height if unnecessary */
  margin-top: 50px;
  margin-bottom: 0;
}

/* index.html main logo */

.main-logo-container {
  width: 100%; /* Or a larger fixed size */
  text-align: center; /* Centers the logo */
}

.main-logoimg {
  width: 800px; /* Adjust to desired size */
  height: 800px;
}

.main-logo-container img {
  max-width: 100%;
  height: auto;
  max-height: 400px; /* Adjust the height to fit, or remove max-height if unnecessary */
  margin-top: 50px;
  margin-bottom: 0px;
}

/* index.html main logo end */

/* recipe submission logo */
.recipesubmission-logo-container {
  width: 100%; /* Or a larger fixed size */
  text-align: center; /* Centers the logo */
}

.recipesubmission-logoimg {
  width: 500px; /* Adjust to desired size */
  height: auto;
}

.recipesubmission-logo-container img {
  max-width: 100%;
  height: auto;
  max-height: 600px; /* Adjust the height to fit, or remove max-height if unnecessary */
  margin-top: 50px;
  margin-bottom: 0px;
}

/* recipe submission logo end */

/* Profile image styles */
.profile-menu img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #8b322c; /* Optional border */
  background-color: #e09f3e;
  margin: 5px 5px 0 5px;
}

/* Add media query for smaller screens */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
  }

  .logo-container {
    margin-bottom: 0; /* Adds spacing when items stack */
  }
}

/* Dropdown styles */
.dropdown-content {
  display: none;
  position: absolute;
  top: 50px; /* Adjusted for spacing */
  right: 0;
  background-color: #333;
  border: solid 2px #8b322c;
  margin: 18px;
  min-width: 150px;
  border-radius: 5px;
  z-index: 10;
  text-align: center;
  padding: 1px 0;
  flex-direction: column; /* Ensure vertical stacking */
  z-index: 20;
}

/* Dropdown links & buttons */
.dropdown-content a,
.dropdown-content button,
#sign-in-btn,
#logout-btn {
  color: #e09f3e;
  padding: 4px 6px; /* Adjust padding for better consistency */
  display: block;
  text-decoration: inherit;
  background: none;
  width: 90%;
  cursor: pointer;
  font-size: 18px;
  background-color: transparent;
  border: none; /* Remove default button border */
  text-align: center; /* Ensure text is centered */
  margin-bottom: 5px;
}

/* Hover effect */
.dropdown-content a:hover,
.dropdown-content button:hover,
#sign-in-btn:hover,
#logout-btn:hover {
  background-color: #555;
}

/* profile menu end */




/* Modal Styles */
.modal {
  display: none; /* Initially hidden */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Overlay */
}

.modal-content {
  background-color: #1b1b1b;
  margin: 10% auto;
  padding: 25px;
  border-radius: 15px; /* Slightly more rounded corners */
  border: 2px solid #8b322c; /* Adds a darker border that ties in with button colors */
  width: 50%; /* Slightly wider modal */
  max-width: 450px;
  box-shadow: 0 8px 15px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(204, 85, 34, 0.8); /* Soft glow effect */
  transition: transform 0.3s ease-in-out;
}

.modal-content h2 {
  color: #e09f3e; /* Title matches your h2 and h3 color */
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-align: center;
  margin-top: 0;
}

.modal-content p {
  color: #f5e9d2; /* Matches the body text */
  font-family: "Bitter", serif;
}

.modal-content button {
  background-color: #8b322c;
  color: #f5e9d2;
  padding: 12px 0; /* Remove side padding */
  font-size: 22px;
  font-weight: bold;
  border: 2px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  width: 336px; /* Exact width as inputs */
  margin: 10px auto; /* Center horizontally */
  margin-top: 15px;
  display: block;
  box-sizing: border-box; /* Ensure padding/border don’t affect width */
}

.modal-content button:hover {
  background-color: #e09f3e;
  color: #1b1b1b;
}

.modal-content input,
.modal-content textarea {
  background-color: #333;
  color: #f5e9d2;
  padding: 10px;
  border: 1px solid #5a3e36;
  border-radius: 5px;
  width: 100%;
  font-size: 20px;
}

.modal-content input[type="text"]:focus,
.modal-content textarea:focus {
  box-shadow: 0 0 10px #e09f3e;
}

.signin {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.signin input {

  padding: 10px;
  margin-bottom: 10px; /* Space between the inputs */
  width: 80%; /* Adjust width as needed */
}

#login-username{

  font-size: 24px;
}

#login-password{
  font-size: 24px;
}
.signin button {
  padding: 10px;
  width: 80%; /* Same width as inputs for consistency */
  cursor: pointer;
  background-color: #8b322c;
  color: #f5e9d2;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  text-align: center; /* Center text inside button */
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Add styles for the checkbox container */
/* Checkbox alignment fix */
.checkbox-container {
  display: flex;
  align-items: center;
  margin-top: 15px;
  gap: 8px; /* Creates proper spacing between the checkbox and label */
  width: fit-content; /* Prevents it from stretching */
}

/* Ensure checkbox is the correct size */
.checkbox-container input {
  width: 16px; /* Standard checkbox size */
  height: 16px;
  flex-shrink: 0; /* Prevents flexbox from stretching it */
  accent-color: #e09f3e;
}

/* Adjust label spacing */
.checkbox-container label {
  color: #f5e9d2;
  font-family: "Bitter", serif;
  font-size: 18px;
}

.close {
  font-size: 48px; /* Increase the font size */
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #e09f3e; /* Highlight effect */
  text-shadow: 0 0 8px #e09f3e;
  cursor: pointer;
}

nav {
  padding: 2rem;
  display: flex;
  background-color: transparent;
}

.ham-menu {
  height: 100px;
  width: 100px;
  margin-right: auto;
  position: absolute;
  top: 60px;
  cursor: pointer;
}

.ham-menu span {
  height: 5px;
  width: 100px;
  background-color: #e09f3e;
  border-radius: 25px;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.3s ease;
}
.ham-menu span:nth-child(1) {
  top: 25%;
}

.ham-menu span:nth-child(3) {
  top: 75%;
}

.ham-menu.active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(50deg);
}
.ham-menu.active span:nth-child(2) {
  opacity: 0;
}
.ham-menu.active span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, 50%) rotate(-50deg);
}

.ham-list {
  font-size: 32px;
  padding-bottom: 10px;
}

.center-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

/* Container for category cards */
.category-container {
  display: grid; /* Use grid layout */
  grid-template-columns: repeat(2, 1fr); /* 2 equal-width columns */
  gap: 20px; /* Space between the cards */
  padding: 10px; /* Optional: Adds padding around the container */
}

/* Recipecategoris */
.category-card {
  border-radius: 10px;
  border: 3px solid #5a3e36;
  margin: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f5e9d2;
}

.category-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.category-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.category-card h3 {
  font-size: 1.5rem;
  margin: 15px 0 10px;
}

.category-card p {
  font-size: 1rem;
  color: #f5e9d2;
  padding: 0 15px;
}

.category-card a {
  display: inline-block;
  margin: 10px;
  padding: 10px 15px;
  background-color: #8b322c;
  color: #f5e9d2;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.category-card a:hover {
  background-color: #e09f3e;
  color: #1b1b1b;
}
/* end of recipe categories */



/* Recipe cards */

#recipe-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px; /* Space between grid items */
  justify-items: center;
}



.recipe-card-rotm img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.recipe-card-rotm h3 {
  font-size: 1rem;
  margin: 15px 0 10px;
}

.recipe-card-rotm p {
  font-size: 1rem;
  color: #f5e9d2;
  padding: 0 15px;
}

.recipe-card-rotm a {
  display: inline-block;
  margin: 10px;
  padding: 10px 15px;
  background-color: #8b322c;
  color: #f5e9d2;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.recipe-card a:hover {
  background-color: #e09f3e;
  color: #1b1b1b;
}

/* Media queries for responsiveness */

/* Large screens: 4 or 5 columns */
@media screen and (min-width: 1200px) {
  #recipe-list {
    grid-template-columns: repeat(5, 1fr);
  }
}
@media screen and (min-width: 992px) and (max-width: 1199px) {
  #recipe-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 768px) {
  #recipe-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media screen and (max-width: 480px) {
  #recipe-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* end of recipe cards */

/* recipe-form */

#recipe-form {
  font-size: 20px;
  border: 2px solid #5a3e36; /* Dark brown border */
  border-radius: 10px; /* Soft rounded corners */
  padding: 20px;
  width: 90%;
  max-width: 500px;
  background-color: #1b1b1b;
  box-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#recipe-form input[type="text"],
#recipe-form textarea,
#recipe-form select {
  width: 100%; /* Adjust width, or use a specific px value */
  max-width: 500px; /* Optional: limits how wide it can go */
  height: 40px; /* Increases height */
  padding: 5px; /* Adds spacing inside the box */
  font-size: 1.5625rem; /* Matches body text size */
  font-family: "Bitter", serif; /* Matches body font */
  color: #f5e9d2; /* Matches text color */
  background-color: #333; /* Dark background to match the theme */
  border: 1px solid #5a3e36; /* Consistent border */
}

#recipe-form textarea {
  height: 100px; /* Makes text areas taller */
  resize: vertical; /* Allows resizing up/down */
}

#recipe-form select {
  width: 250px; /* Adjust width */
  height: 40px; /* Adjust height */
  padding: 5px; /* Adds space inside */
  font-size: 1.5625rem; /* Matches body font size */
}

#recipe-forumheader {
  position: relative;
  text-align: center;
  font-size: 40px;
}

.submitrecipediv {
  border-bottom: 1px solid #5a3e36;
  margin: 10px;
  padding-bottom: 10px;
  width: 260px;
  text-align: center;
}
#recipesubmitbutton {
  margin-left: 10px;
}
#image-preview-wrapper {
  display: flex;              /* turn on flexbox */
  justify-content: center;    /* horizontal centering */
  align-items: center;        /* vertical centering */
  margin-top: 10px;           /* keep your existing spacing */
}

/* Optionally constrain the preview image size and center it */
#image-preview-wrapper img {
  max-width: 100%;         /* Keep within container width */
  height: auto;            /* Maintain aspect ratio */
  display: inline-block;   /* Allow text-align centering */
}

#category {
  width: 250px; /* Adjust width */
  height: 40px; /* Adjust height */
  font-size: 18px; /* Increase text size inside the dropdown */
  padding: 5px; /* Adds space inside */
}

.title {
  float: center;
  width: 100px;
  text-align: center;
  padding-right: 10px;
}
.imgheaders {
  padding: inherit;
  display: block;
  margin: auto;
  width: 20%;
}

/* Header 2 for recipe of the month*/
.recipe-otm {
  text-align: center;
}

/* Recipe of the month section.*/

/* Styling for the Recipe of the Month Fire Rating */
.recipe-rating {
  font-size: 24px; /* Adjust size of flames */
  color: #e09f3e; /* Fire-like color */
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
}

/* Flame base style */
.flame {
  cursor: pointer;
  font-size: 30px; /* Flame size */
  padding: 5px;
  transition: transform 0.3s ease, color 0.3s ease; /* Smooth hover effect */
  display: inline-block;
  color: #f5e9d2; /* Flame color */
  animation: flicker 1s infinite alternate; /* Flicker animation */
}

/* Flame flicker animation */
@keyframes flicker {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Flame hover effect */
.flame:hover {
  transform: scale(1.3); /* Flame grows when hovered */
  color: #ff4d00; /* Flame color change on hover */
}

/* Selected Flame when clicked */
.flame.selected {
  color: #e09f3e; /* Flame color when selected */
  animation: none; /* Stop flicker when selected */
}

/* Hover effect for selected flame */
.flame.selected:hover {
  color: #ff7f00; /* Brighter color on hover */
  transform: scale(1.5); /* Enlarges the flame */
}

/* Rating text below the flames */
.rating-text {
  text-align: center;
  font-size: 20px;
  margin-top: 10px;
  color: #f5e9d2;
  font-style: italic;
  transition: color 0.3s ease;
}

/* END of Flame Rating system for ROTM.*/

/* Recipe of the month section in grid lay out.*/
/* Container alignment, if needed */
/* Base recipe card container */
.recipe-card-rotm{
  background-color: #222;
  border: 2px solid #5a3e36;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  padding: 1rem;
  margin: 0 auto 0;
  max-width: 100%;
  text-align: center;
}
.recipeheader2 {
  font-family: 'Playfair Display', serif; /* Use Google Fonts or fallback */
  font-weight: 700;
  padding-top: 30px;
}
/* Recipe of the Month custom card */
.rotm-card {
  margin-top: 0rem;
  margin-bottom: 0;
}

#rotm-submitter {
  font-size: 1rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.rotm-user-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(226, 88, 34, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#rotm-submitter a {
  text-decoration: none;
  font-weight: 600;
  color: #e09f3e;
  transition: all 0.3s ease;
}

#rotm-submitter a:hover {
  color: #f5cb90;
  text-decoration: none;
}

#rotm-submitter:hover .rotm-user-img {
  transform: scale(1.1);
  border-color: rgba(226, 88, 34, 0.6);
}


#explore-our-categories{
   padding: 20px;

}
/* Recipe title */
.recipeheader2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #f5e9d2;
  margin: 0.5rem 0 1rem 0;
  text-align: center;
}
.recipeheader2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #ffcc70;
  margin: 0.5rem auto 0;
  border-radius: 1px;
}
#rotm-title a {
  text-decoration: none;
  color: inherit;
  border-bottom: none;
  transition: color 0.3s ease;
}

#rotm-title a:hover {
  color: #ffcc70;
}

.rotm-badge {
  font-size: 3.0rem;
  color: #ffcc70;
  background-color: #3b2c25;
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin: 0 auto 0.5rem auto;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}
/* Recipe image */
.rotmphoto {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.rotmphoto img {
  width: 100%;
  height: 350px;
  max-width: 500px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(226, 88, 34, 0.3), 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  border: 3px solid rgba(226, 88, 34, 0.2);
}




.rotmphoto img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 40px rgba(226, 88, 34, 0.4), 0 8px 25px rgba(0, 0, 0, 0.5);
  border-color: rgba(226, 88, 34, 0.4);
}
.flame {
  color: #f5e9d2; /* default dim color */
  opacity: 0.5;
  font-size: 2rem;
  transition: transform 0.2s, color 0.3s;
}

.active-flame {
  color: orange;
  opacity: 1;
  animation: none !important; /* override flicker if it's applied */
}
/* Hover overlay */
.rotm-overlay {
  position: absolute;
  bottom: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  opacity: 0;
  font-size: 0.9rem;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.rotmphoto a:hover .rotm-overlay {
  opacity: 1;
}

/* Description text */
#rotm-description {
  font-size: 1.3rem;
  color: #f5e9d2;
  margin-bottom: 1rem;
}

/* Flame Rating System */
.rating-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.5rem;
}

.recipe-rating .flame {
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.recipe-rating .flame:hover {
  transform: scale(1.2);
}

.average-rating {
  font-size: 1rem;
  margin-left: 0.5rem;
  color: #e9d6b2;
}

.rating-text {
  font-size: 0.9rem;
  color: #e9d6b2;
  margin-top: 0.3rem;
}

.read-only-rating .flame {
  pointer-events: none;
  cursor: default;
  opacity: 1; /* prevent dimming or visual hint of interactivity */
}
/* Recipe of the month User Photo Album section in grid lay out.*/

.photo-albumROTM {
  background-color: #222;
  border: 2px solid #5a3e36;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  padding: 1rem;
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  text-align: center;
  color: #f5e9d2;
}

.photo-albumROTMGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 10px;
  background-color: #222222;
  grid-auto-rows: 2fr;
}

.photo-albumROTMGrid .photo-card > img {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);

}

.photo-albumROTMButton {
  background-color: #222222;
}

.photo-albumROTMGrid img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #e09f3e;
}

.photo-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.photo-card:hover {
  transform: translateY(-3px);
}

.rotm-user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.rotm-user-info a {
  color: #f5e9d2;
  font-weight: bold;
  text-decoration: none;
  margin-top: 4px;
}

.rotm-user-info a:hover {
  text-decoration: underline;
}

.rotm-user-img {
  width: 75px;
  height: 75px; /* Set fixed height to ensure it's a perfect square */
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e09f3e;
  flex-shrink: 0;
  display: block; /* important! */
}

/* Mobile Breakpoint */
@media (max-width: 600px) {
  .photo-albumROTM {
    padding: 5px 50px;
  }
  .photo-albumROTMGrid {
    grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
  }
  .top3ROTMvotegrid {
    padding: 5px 50px; /* Adjust as needed */
    grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
  }
  .top3ROTMcontenders {
    padding: 5px 50px; /* Adjust as needed */
    grid-template-columns: repeat(2, 1fr); /* Force 2 columns */
  }
}

/* Extra Small Screens */
@media (max-width: 400px) {
  .photo-albumROTM {
    padding: 5px 20px;
  }
  .photo-albumROTMGrid {
    grid-template-columns: repeat(1, 1fr); /* Single column for tiny screens */
  }
  .top3ROTMvotegrid {
    padding: 5px 20px; /* Adjust as needed */
    grid-template-columns: repeat(1, 1fr); /* Single column for tiny screens */
  }
  .top3ROTMcontenders {
    padding: 5px 20px; /* Adjust as needed */
    grid-template-columns: repeat(1, 1fr); /* Single column for tiny screens */
  }
}

/* Prevent Single Column on Tall Screens */
@media (min-height: 800px) and (max-width: 600px) {
  .photo-albumROTMGrid {
    grid-template-columns: repeat(
      2,
      1fr
    ); /* Ensures 2 columns even on tall phones */
  }
  .top3ROTMvotegrid {
    grid-template-columns: repeat(
      2,
      1fr
    ); /* Ensures 2 columns even on tall phones */
  }
}

/* ROTM Photo album voting system. */
.photo-card {
  position: relative;
  background-color: #2c2c2c;
  border-radius: 5px;
  padding: 5px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.vote-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px; /* Space between button and count */
  margin-top: 5px;
}

.vote-button {
  font-size: 1.4rem;
  background-color: #8b322c;
  color: #f5e9d2;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 20px; /* For the flame icon */
  transition: transform 0.2s;
}

.flicker {
  animation: flicker 0.2s infinite alternate;
}

@keyframes flicker {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.vote-button:hover {
  background-color: #e09f3e;
  color: #1b1b1b;
}

.like-count {
  color: #f5e9d2;
  font-weight: bold;
  font-size: 18px;
}
/* END OF Recipe of the month User Photo Album section in grid lay out.*/



/* END OF Recipe of the month section.*/


/* off-screen-menu */
.off-screen-menu {
  background-color: #8b322c;
  border-style: solid;
  border-radius: 1px;

  height: 20vh;
  width: 100%;
  max-width: 300px;
  position: fixed;
  top: 165px;
  right: -450px;
  display: flex;
  flex-direction: column;
  justify-content: top;
  align-items: top;
  text-align: top;

  font-size: 1px;
  transition: left 0.3s ease;
}

.off-screen-menu.active {
  position: absolute;
  box-shadow: 0 0 5px white;
  height: auto;

  left: 0;
}




.nav-header {
  margin: 0;
}
.center-container {
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Vote for next months ROTM */

.top3ROTMcontenders {
  text-align: center;
  margin: 0 20px 20px 20px auto;
  max-width: 1200px;
  border: 1px solid #5a3e36;
  background-color: #222222;
  border-radius: 5px;
  padding: 5px clamp(200px, 20vw, 400px);
}

.Contender-card {
  position: relative;
  background-color: #2c2c2c;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.top3ROTMvotegrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 3fr));
  gap: 5px;
  padding: 10px;
  background-color: #222222;
  grid-auto-rows: 3fr;
}

.top3ROTMvotegrid img {
  width: 300px;

  max-width: 300px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 20px;
  gap: 20px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}



.top3ROTMvotegrid img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #e09f3e;
}

.rotmcontenderoverlay {
  position: absolute; /* Position overlay absolutely */
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Offset to center */
  color: white; /* Text color */
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  padding: 10px; /* Padding around text */
  border-radius: 5px; /* Rounded corners */
  opacity: 0; /* Initially hidden */
  transition: opacity 0.3s; /* Smooth transition for opacity */
}

.Contender-card:hover .rotmcontenderoverlay {
  opacity: 1; /* Show overlay on hover */
}



/* Recipe.html images*/

#recipe-image {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto;
  display: block;
  margin-bottom: 2rem;
}

#image-preview {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0;
}

h2.recipeheader2 {
  text-align: center;
  color: #e09f3e;
  font-weight: 700;
  text-align: center;
  font-family: "Montserrat", sans-serif;
}


/* Container to center the form on the page */
#edit-recipe-form {
  max-width: 600px;       /* limits the width */
  margin: 2rem auto;      /* centers horizontally with vertical space */
  padding: 1.5rem;        /* inner spacing */
  border: 1px solid; /* light border */
  border-radius: 8px;     /* rounded corners */
  
  box-shadow: 0 2px 8px;
}

/* Style for all labels */
#edit-recipe-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Shared styles for text inputs and textareas */
#edit-recipe-form input[type="text"],
#edit-recipe-form textarea {
width: 100%; /* Adjust width, or use a specific px value */
  max-width: 500px; /* Optional: limits how wide it can go */
  height: 40px; /* Increases height */
  padding: 5px; /* Adds spacing inside the box */
  font-size: 1.5625rem; /* Matches body text size */
  font-family: "Bitter", serif; /* Matches body font */
  color: #f5e9d2; /* Matches text color */
  background-color: #333; /* Dark background to match the theme */
  border: 1px solid #5a3e36; /* Consistent border */
}

/* Container headings */
#edit-recipe-form h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  border-bottom: 1px solid;
  padding-bottom: 0.25rem;
}

/* Style for the dynamic section wrappers */
#edit-recipe-form #ingredients-container > div,
#edit-recipe-form #instructions-container > textarea {
  margin-bottom: 1rem;
}

/* Buttons inside the form */
#edit-recipe-form button {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  margin-right: 0.5rem;
  font-size: 1rem;
  border: 1px solid;
  border-radius: 4px;
  
  cursor: pointer;
}


#image-preview{

  width: 150px;
  height: auto;
  aspect-ratio: 1;

}

#edit-image-preview{
  width: 150px;
  height: auto;
  aspect-ratio: 1;
}

.custom-file-upload {
background-color: #8b322c;
color: #f5e9d2;
font-size: 12px;
font-weight: bold;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
max-width: 27%;

}
.custom-file-upload:hover {
background-color: #e09f3e;
color: #1b1b1b;
}

#Edit-recipe-header{
text-align: center !important;

}

/* customAlert overlay */
#custom-alert-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

/* customAlert box */
#custom-alert-box {
  background: #1b1b1b; 
  padding: 1.25rem;
  border-radius: 6px;
  max-width: 300px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: 2px solid #e09f3e;
}

/* customAlert message */
#custom-alert-message {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #f5e9d2;
}

/* customAlert button */
#custom-alert-button {
  padding: 0.5rem 1rem;
  background-color: #8b322c;
  color: #f5e9d2;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

#custom-alert-button:hover {
  background-color: #e09f3e;            /* your hover accent */
  color: #1b1b1b;
}

/* end of customAlert */



/* customPrompt overlay — hidden by default */
#custom-prompt-overlay {
  display: none;      /* ensure it starts hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2001;
  align-items: center;
  justify-content: center;
}

/* customPrompt dialog box */
#custom-prompt-box {
  background: #1b1b1b;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  border: 2px solid #e09f3e;
  font-family: "Bitter", serif;
}

/* Prompt message */
#custom-prompt-message {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #f5e9d2;
}

/* Input field */
#custom-prompt-input {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1.25rem;
  border: 1px solid #444;
  border-radius: 4px;
  background: #2b2b2b;
  color: #f5e9d2;
  font-size: 1rem;
  font-family: "Bitter", serif;
}

/* Button container */
#custom-prompt-actions {
  display: flex;
  gap: 0.5rem;
}

/* OK and Cancel buttons */
#custom-prompt-ok,
#custom-prompt-cancel {
  flex: 1;
  padding: 0.6rem 1.2rem;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* OK button (danger) */
#custom-prompt-ok {
  background-color: #8b322c;
  color: #f5e9d2;
}
#custom-prompt-ok:hover {
  background-color: #e09f3e;
  color: #1b1b1b;
}

/* Cancel button */
#custom-prompt-cancel {
  background-color: #6c757d;
  color: #f5e9d2;
}
#custom-prompt-cancel:hover {
  background-color: #f5e9d2;
  color: #1b1b1b;
}

.section-title-input {
  font-weight: bold;
  text-decoration: underline;
  font-size: 1.1em;
  padding: 5px;
  margin: 10px 0;
  border: 2px solid #ccc;
  border-radius: 4px;
  width: 100%;
}

/* Ingredients and instructions */

#recipe-ingredients li,
#recipe-instructions li {
  line-height: 1.3;         /* more space between lines */
  margin-bottom: 8px;       /* space between items */
  font-size: 1.5rem;        /* slightly larger text */
  padding-left: .5rem;
  margin-bottom: .5rem;
}

.h2-recipes {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  margin-left: 2rem;
  font-size: 2rem;
  color: #e09f3e;
}
.ingredient-section-title {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  margin-left: 1rem;
  font-size: 1.7rem;
  color: #e09f3e;
}
#recipe-ingredients ul {
  list-style-type: disc;
  padding-left: 3rem;
}
#recipe-instructions {
  list-style-type: decimal;
  padding-left: 3rem; /* Adds spacing so numbers don't sit on the edge */
  margin-top: 1rem;
  line-height: 1.6; /* Optional: improves readability */
}

#category-title{
  margin-top: 2rem;
  margin-bottom: 2rem;
  margin-left: 2rem;
}
.recipe-rating p {
  margin: 0.5em 0;
  font-size: 1rem;
}

.user-rating {
  display: flex;
  justify-content: center;  /* <-- centers horizontally */
  align-items: center;
  font-size: 1.5rem;
  gap: 0.5em;
  flex-wrap: wrap;
}

.average-label {
  margin-left: 1em;
  white-space: nowrap; /* Prevent line breaks */
  font-size: 1rem;
}

.recipe-card {
    background-color: #222;
    border: 2px solid #5a3e36;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    padding: 1rem;
    margin: 2rem auto 0;
    max-width: 100%;
    text-align: center;
}
.recipe-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.recipe-card h3 {
  font-size: 1rem;
  margin: 15px 0 10px;
}

.recipe-card p {
  font-size: 1rem;
  color: #f5e9d2;
  padding: 0 15px;
}

.recipe-card a {
  display: inline-block;
  margin: 10px;
  padding: 10px 15px;
  background-color: #8b322c;
  color: #f5e9d2;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.recipe-card a:hover {
  background-color: #e09f3e;
  color: #1b1b1b;
}


.recipe-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
upload-section {
  text-align: center;
  margin-top: 20px;
}

#image-preview {
  max-width: 200px;
  display: none;
  margin: 10px auto;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}


.recipe-tags .tag {
  display: inline-block;
  background-color: #8b322c;
  color: #e09f3e !important; 
  padding: 5px 10px;
  margin: 3px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: bold;

  /* Add these */
  text-decoration: none !important;   /* Remove underline */
  cursor: pointer;         /* Pointer cursor on hover */
  transition: background-color 0.3s ease;
}

.recipe-tags .tag:hover {
  background-color: #a2433b; /* Slightly lighter/darker on hover */
  color: #fff;               /* Optional: change color on hover */
  text-decoration: none;     /* Ensure no underline on hover */
}
/* search bar */

/* Dropdown styling under the search bar */
.dropdown-results {
  position: absolute;
  top: calc(5px + 54px); /* adjust this to place it below your .search-bar */
  right: 10px; /* match your .search-bar position */
  width: 345px;

  max-height: 30vh; /* dynamic mobile height */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;

  z-index: 1100; /* must be higher than page content */

  background-color: #2c1f1e;
  border: 1px solid #a68a64;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}


.recipe-suggestion {
  padding: 12px 16px;
  color: #f5e9d2; /* light cream text */
  font-family: "Bitter", sans-serif;
  border-bottom: 1px solid rgba(245, 233, 210, 0.1); /* subtle border */
  transition: background-color 0.2s ease, color 0.2s ease;
}
.recipe-suggestion[data-category-only] {
  background-color: #73312b; /* darker shade */
  color: #f5e9d2;
  font-style: italic;
}

.recipe-suggestion[data-category-only]:hover {
  background-color: #5a2723;
}

.recipe-suggestion:last-child {
  border-bottom: none;
}

.recipe-suggestion:hover {
  background-color: rgba(139, 50, 44, 0.85); /* matches the search bar */
  color: #ffffff;
}

.search-bar {
  --padding: 14px;

  position: absolute; /* keep it fixed */
  top: 10px;       /* 10px from top */
  right: 200px;    /* 100px from right edge of viewport */

  display: flex;
  align-items: center;
  width: max-content;
  padding: var(--padding);
  border-radius: 28px;
  background: #8b322c;
  color: #f5e9d2;
  font-family: "Lora", sans-serif;
  z-index: 1100;
  transition: box-shadow 0.25s;
}

.search-bar:focus-within {
  box-shadow: 0 0 40px #1b1b1b;
}
.search-input {
  font-size: 24px;
  font-family: "Bitter", sans-serif;
  color: #f5e9d2;
  margin-left: var(--padding);
  outline: none;
  border: none;
  background-color: transparent;
  width: 300px;
  box-shadow: none;       /* ✅ prevent any input shadow */
  
}

.search-input::placeholder {
  color: #a68a64;
  font-style: italic;
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
  .dropdown-results {
    width: 90vw;
    right: 5vw;
    top: calc(10px + 60px);
    max-height: 40vh;
    font-size: 28px;
  }

  .search-bar {
    right: 5vw;
  }
}
.tag-label {
 display: inline-block;
  background-color: #8b322c;
  color: #e09f3e;
  padding: 5px 10px;
  margin: 3px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: bold;

  /* Add these */
  text-decoration: none;   /* Remove underline */
  cursor: pointer;         /* Pointer cursor on hover */
  transition: background-color 0.3s ease;
  
}

.tag-label:hover {
    background-color: #a2433b; /* Slightly lighter/darker on hover */
  color: #fff;               /* Optional: change color on hover */
  text-decoration: none;     /* Ensure no underline on hover */
}

a.tag-label {
  color: #e09f3e !important;
  text-decoration: none !important;
}
/* search-bar end */


#comment-section {
  margin-top: 2rem;
  font-family: "Bitter", serif;
  color: #f5e9d2; /* cream text for consistency */
  background-color: #2c1f1e; /* deep reddish-brown background */
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  max-width: 1900px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.comment {
  background: #73312b; /* slightly lighter warm brown */
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.4);
  transition: background-color 0.3s ease;
}

.comment:hover {
  background-color: #8b322c; /* same as search bar highlight */
}

.comment p {
  margin: 0;
  line-height: 1.4;
  font-size: 1.5rem;
  color: #f5e9d2; /* cream text */
}

.comment strong {
  color: #f5cb90; /* muted gold for usernames */
}

#new-comment-container textarea {
  width: 100%;
  background-color: #2c1f1e;
  color: #f5e9d2;
  font-family: "Bitter", serif;
  font-size: 1rem;
  border: 2px solid #a68a64;
  border-radius: 12px;
  padding: 12px 16px;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.3s ease;
}

#new-comment-container textarea:focus {
  outline: none;
  border-color: #f5e9d2;
  background-color: #3b2724;
}

#submit-comment-btn {
  background-color: #8b322c;
  color: #f5e9d2;
  font-family: "Lora", serif;
  font-weight: 600;
  padding: 10px 20px;
  margin-top: 0.75rem;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.25s ease;
}

#submit-comment-btn:hover,
#submit-comment-btn:focus {
  background-color: #73312b;
  box-shadow: 0 0 10px #a68a64;
  outline: none;
}

/* Responsive tweak */
@media (max-width: 600px) {
  #comment-section {
    padding: 1rem;
    max-width: 100%;
  }
}

.comment {
  background: #73312b;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.4);
  transition: background-color 0.3s ease;
  position: relative;
}

.comment .reply-btn {
  background: none;
  border: none;
  color: #a68a64;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin-top: 6px;
  font-family: "Lora", serif;
}

.comment .reply-btn:hover {
  text-decoration: underline;
}

.reply-box {
  margin-top: 8px;
}

.reply-box textarea {
  width: 100%;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: "Bitter", serif;
  font-size: 0.9rem;
  resize: vertical;
  border: 2px solid #a68a64;
  background-color: #2c1f1e;
  color: #f5e9d2;
}

.reply-box textarea:focus {
  outline: none;
  border-color: #f5e9d2;
  background-color: #3b2724;
}

.reply-box button {
  margin-top: 4px;
  margin-right: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-family: "Lora", serif;
}

.submit-reply-btn {
  background-color: #8b322c;
  color: #f5e9d2;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.submit-reply-btn:hover {
  background-color: #73312b;
}

.cancel-reply-btn {
  background-color: #a68a64;
  color: #2c1f1e;
  font-weight: 600;
}

.cancel-reply-btn:hover {
  background-color: #8b322c;
  color: #f5e9d2;
}

.comment {
  position: relative;
  /* other styles already present */
}

.comment-meta {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.75rem;
  color: #c7b299; /* soft gold-ish tone or tweak as you like */
}
.comment {
  padding-bottom: 2.2rem; /* add some space for the timestamp */

 .comment-profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  vertical-align: middle;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
}
/* Comment Section End */

/* Profile section start */

.profile-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background: #1a1a1a;  /* Dark background */
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  font-family: 'Montserrat', sans-serif;
  color: #eee;  /* Light text for dark bg */
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid #444;
  padding-bottom: 1rem;
}

#profile-picture {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e25822; /* Sizzle orange */
  box-shadow: 0 4px 8px rgb(226 88 34 / 0.7);
}

.profile-info {
  flex: 1;
}

.welcome-message {
  font-weight: 700;
  font-size: 2rem;
  margin: 0 0 0.25rem 0;
  color: #e25822;
  letter-spacing: 1px;
}

#email {
  font-weight: 400;
  font-size: 1rem;
  color: #bbb;
  margin: 0 0 1rem 0;
}

#upload-profile-pic {
  margin-top: 1rem;
}

/* Style for logout button */
.profile-info button {
  background-color: #e25822;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.profile-info button:hover {
  background-color: #c44516;
}

/* Favorite recipes grid */
#favorite-recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.profile-recipe-card {
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1rem;
  background-color: #222;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  transition: transform 0.15s ease-in-out;
}



.profile-recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 4px 6px 14px rgba(226, 88, 34, 0.6);
}

.profile-recipe-card img.recipe-thumbnail {
  max-width: 100%;
  height: 100px;
  object-fit: cover;
}

.profile-recipe-card h3 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: #e25822;
}

.profile-recipe-card p {
  font-size: 0.9rem;
  color: #ccc;
  max-height: 4.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5em;
}

.profile-recipe-card a {
  text-decoration: none;
  color: #e25822;
  font-weight: 600;
  font-size: 0.95rem;
}

.profile-recipe-card a:hover {
  text-decoration: underline;
}

#favorite-recipes-wrapper {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e25822;
  padding: 1rem;
  border-radius: 8px;

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: #e25822 #222;
}

#favorite-recipes-wrapper::-webkit-scrollbar {
  width: 8px;
}

#favorite-recipes-wrapper::-webkit-scrollbar-track {
  background: #222;
  border-radius: 8px;
}

#favorite-recipes-wrapper::-webkit-scrollbar-thumb {
  background-color: #e25822;
  border-radius: 8px;
  border: 2px solid #222;
}

#favorite-recipes-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: #ff6f2a;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .profile-header {
    flex-direction: column;
    align-items: center;
  }
  
  #profile-picture {
    width: 100px;
    height: 100px;
  }
  
  .welcome-message {
    font-size: 1.5rem;
    text-align: center;
  }
  
  #email {
    text-align: center;
  }
}

#submitted-recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.profile-recipe-card .recipe-content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.profile-recipe-card img.recipe-thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.profile-recipe-card .recipe-text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-recipe-card .recipe-text-content h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #e25822;
}

.profile-recipe-card .recipe-text-content p {
  margin: 0.4rem 0;
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.4;
}

.profile-recipe-card .recipe-text-content a {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #e25822;
  font-weight: 600;
  text-decoration: none;
}

.profile-recipe-card .recipe-text-content a:hover {
  text-decoration: underline;
}

.upload-label {
  background-color: #444;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
}


.favorite-icon-container {
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  user-select: none;
}

#favorite-icon:hover {
  transform: scale(1.2);
}

/* Bio section styling */
#bio-container {
  background-color: #222;
  border: 1px solid #333;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 2rem 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#bio-text {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1rem;
  white-space: pre-line; /* allows line breaks in saved bios */
  line-height: 1.5;
}

#bio-input {
  width: 100%;
  height: 100px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  padding: 0.75rem;
  border: 1px solid #555;
  border-radius: 8px;
  background-color: #111;
  color: #eee;
  resize: vertical;
  margin-bottom: 1rem;
}

#edit-bio-btn {
  background-color: #e25822;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#edit-bio-btn:hover {
  background-color: #c44516;
}

#view-more-my-chefs{
  margin-top: 10px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer; 
}

/* Sous Chefs Section Styling */

.my-chefs-section #my-chefs-container {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e25822;
  padding: 1rem;
  border-radius: 8px;
}

#my-chefs-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
  padding: 0;
}

.my-chefs-profile {
  background-color: #222;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(226, 88, 34, 0.4);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.my-chefs-profile:hover {
  box-shadow: 0 6px 20px rgba(226, 88, 34, 0.8);
  transform: translateY(-5px);
}

.my-chefs-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e25822;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 6px rgba(226, 88, 34, 0.5);
  display: block;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 1/1;
}

.my-chefs-profile h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #e25822;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-chefs-profile p {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 0.5rem;
}

.my-chefs-no-list {
  color: #888;
  font-style: italic;
  padding: 1rem;
  text-align: center;
}



/* Profile section end */


/* my-chefs and sous chefs section */

.pagination button {
  margin: 0 5px;
  padding: 5px 10px;
  cursor: pointer;
}

.pagination button.active {
  background-color: #ff6f00;
  color: white;
  font-weight: bold;
  cursor: default;
}
/* my-chefs and sous chefs section end*/

/* my-submitted-recipes section */

.submitted-recipe-card {
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1rem;
  background-color: #222;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  transition: transform 0.15s ease-in-out;
}

.submitted-recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 4px 6px 14px rgba(226, 88, 34, 0.6);
}

.submitted-recipe-card .recipe-content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.submitted-recipe-card img.recipe-thumbnail {
  width: 125px;
  height: 125px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.submitted-recipe-card .recipe-text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.submitted-recipe-card .recipe-text-content h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #e25822;
  font-family: 'Montserrat', sans-serif;
}

.submitted-recipe-card .recipe-text-content p {
  margin: 0.4rem 0;
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.4;
  max-height: 4.2em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.submitted-recipe-card .recipe-text-content a {
  font-size: 0.9rem;
  color: #e25822;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.25rem;
}

.submitted-recipe-card .recipe-text-content a:hover {
  text-decoration: underline;
}


/* end of my-submitted-recipes section */



/* explorer chefs */

/* Container for each chef's profile */
.my-chefs-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px;
  padding: 15px;
  border: 1px solid #333;
  border-radius: 12px;
  text-align: center; /* Centers the text */
}

/* Avatar styles */
.my-chefs-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e25822; /* Gives the avatar a border */
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 6px rgba(226, 88, 34, 0.5);
  display: block;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 1/1;
}

/* Username (h4) - Make it like the recipe link */
.my-chefs-profile h4 {
  font-size: 1rem; /* Similar to the link text size */
  font-weight: 600; /* Similar to the boldness of the link */
  color: #e25822; /* Use the same color as the link */
  text-decoration: none;
  margin: 0.25rem 0; /* Add some spacing around the name */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Ensures text doesn't overflow */
}

/* Bio (p) - Make it lighter like the description text */
.my-chefs-profile p {
  font-size: 0.9rem; /* Match the font size of the description text */
  color: #ccc; /* A lighter gray color for bio */
  margin-top: 0.5rem;
  text-align: center; /* Ensure bio is centered */
}

/* Pagination Controls */
.pagination-controls button {
  margin: 0 5px;
  padding: 6px 12px;
  border-radius: 6px;
}

.pagination-controls .active {
  background-color: #ff6600;
  color: white;
  font-weight: bold;
}

/* Grid for Explorer Chefs */
#explorer-chefs-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
  padding: 0;
}


/* explorer chefs end */


/* back button start */

.back-button {
  position: fixed;
  top: 20px; /* or top: 80px if you prefer top */
  left: 30px;
  background-color: #8b322c;
  color: #f5e9d2;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: #a84238; /* lighter hover color */
}


/* back button end */


/* notification notice */



.notification-container {
  position: absolute;   
  top: 8px;         /* distance from top of screen */
  right: 100px;     /* distance from right of screen */
  cursor: pointer;
  z-index: 9999;     /* stays on top of other elements */
}
.notification-container * {
  cursor: pointer;
}
span.notification-icon.material-symbols-outlined {
  font-size: 65px;       /* giant bell */
  display: inline-block;  /* lets font-size actually control height */
  line-height: 1;         /* no extra space */
  color: #8b322c;
}

.notification-count {
  position: absolute;
  top: 0px;
  right: -5px;
  background-color: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 3px;
  border-radius: 50%;
  min-width: 18px;
  text-align: center;
  line-height: 1;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.notification-container:hover .notification-icon {
  color: #e25822;
}

/* === NEW DROPDOWN STYLES (ADDED BELOW) === */

.notification-dropdown {
  position: absolute;
  top: 75px; /* adjusted to appear below large 65px bell */
  right: 0;
  width: 300px;
  background:#5a2723;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border-radius: 5px;
  z-index: 1000;
  display: none;
  flex-direction: column;
}

.notification-dropdown.visible {
  display: flex;
}

.notification-header{
font-style: italic;
text-align: center;
text-decoration: underline;
font-size: 18px;
padding: 0 0 5px 0;
color:#a84238;

}

.notification-footer {
  padding: 10px;
  background: #1b1b1b;
  font-weight: bold;
  cursor: pointer !important;
  padding: 4px 0 10px 0;
  font-size: 16px;
  transition: background 0.3s, color 0.3s;
}

.notification-footer span {
  display: inline-block; /* allows background/padding per item */
  padding: 2px 4px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.notification-footer span:hover {
  background-color: #333333;  /* highlight just this span */
  
  text-decoration: underline;
  border-radius: 4px;   /* optional rounded effect */
}
.notification-list {
  max-height: 300px;
  overflow-y: auto;
  
}

.notification-item {
  padding: 10px;
  border-bottom: 1px solid #1b1b1b;
  font-size: 14px;
}

.notification-item.unread {
  font-weight: bold;
  background-color: #222;
}

.notification-clear-btn {
  float: right;
  background: #8b322c;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 8px;
}

.notification-clear-btn:hover {
  background: #a84238;
}


.highlighted-comment {
  background-color: #ffff99;
  transition: background-color 2s ease;
}
/* notification end */

/* About Page Styles */
.about-page {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--secondary-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-section {
  margin-bottom: 3rem;
}

.about-section h2 {
  color: var(--accent-text);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.feature-grid, .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card, .contact-card {
  background: var(--accent-bg);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-card:hover, .contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card h3, .contact-card h3 {
  color: var(--secondary-accent);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.getting-started-list {
  list-style: none;
  counter-reset: step-counter;
}

.getting-started-list li {
  counter-increment: step-counter;
  margin-bottom: 1rem;
  padding-left: 3rem;
  position: relative;
}

.getting-started-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--primary-accent);
  color: var(--primary-text);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.guidelines-list {
  list-style: none;
}

.guidelines-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.guidelines-list li::before {
  content: '🔥';
  position: absolute;
  left: 0;
}

.contact-section {
  background: var(--primary-bg);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.response-time {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.contact-card a {
  color: var(--secondary-accent);
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--accent-text);
}

@media (max-width: 768px) {
  .about-page {
    margin: 1rem;
    padding: 1rem;
  }
  
  .feature-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
}

