body {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
}

.recipe-card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);

 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.recipe-card img {
    width: 100%;
    border-radius: 5px;
}

.recipe-card h2 {
    font-size: 16px;  /* Adjust the size as needed */
    font-weight: bold; /* Removes bold */
    margin-top: 10px;  /* Adds space above the title */
    text-align: center; /* Keeps it centered */
}

/* Improve title appearance */
.recipe-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Main Page Images (Thumbnails) */
.recipe-card img {
    width: 100%;
    max-height: 200px; /* Ensure thumbnails don’t get too big */
    object-fit: cover; /* Keeps aspect ratio */
    border-radius: 5px;
}

.recipe-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center; /* Center the title, images, and text */
}

.recipe-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto; /* Centers the images */
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Optional: Adds a soft shadow */
}

.add-to-list-form {
  display: inline-block; /* So it sits next to the title or below it */
  margin-left: 8px;      /* A little space from the title */
}

.plus-button {
  background-color: #4CAF50; /* Example: green */
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 16px;
  cursor: pointer;
  line-height: 1; /* Keep text centered vertically */
}

.plus-button:hover {
  background-color: #45a049; /* Slightly darker on hover */
}


.ingredient-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;         /* This centers the entire list container */
  display: block;         /* 'block' so it can center properly with 'margin: 0 auto' */
  text-align: center;     /* Keep the heading or any direct child text centered */
}

.ingredient-list li {
  display: flex;          /* or 'inline-flex' if you want them side by side, but usually 'flex' is good */
  justify-content: space-between;
  align-items: center;
  width: 300px;           /* You can tweak this width or turn it into a 'min-width' */
  margin: 0 auto 5px;     /* Centers each line, adds spacing on bottom */
  font-weight: bold;      /* As before */
}

.ingredient-name {
  text-align: left;
}

.ingredient-qty {
  text-align: right;
}

 
.nutrition-list {
    list-style: none;
    padding: 0;
    text-align: center;
}

.nutrition-list li {
    font-weight: bold;
    margin-bottom: 5px;
}

/* Style the Back/Close button */
.back-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}

.back-button:hover {
    background-color: #e63946;
}

.header-container {
  padding: 10px 20px;
  background-color: #f8f8f8;
  border-bottom: 1px solid #ddd;
}

.header-top {
  text-align: center;
}

.site-title {
  margin: 0;
  font-size: 24px;
}

.header-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}


/* Button (link) styling */
.header-button {
  display: inline-block;
  padding: 8px 16px;
  text-decoration: none;     /* Remove underline */
  background-color: #4CAF50; /* Green background */
  color: #fff;               /* White text */
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.plus-button:hover {
  background-color: #007BFF; /* Bootstrap-style blue */
}

.rating-button {
  background-color: #ccc;
  color: white;
}

.rating-button.active {
  background-color: #007BFF;
}

/* Logout - neutral */
.logout-button {
  font-size: 0.9rem;
  padding: 6px 12px;
  border: 1px solid #888;
  background-color: #eee;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.logout-button:hover {
  background-color: #ddd;
}

/* Login - primary (blue) */
.logout-button.login {
  border: none;
  background-color: #007BFF;
  color: white;
}

.logout-button.login:hover {
  background-color: #0056b3;
}

.username-label {
  font-size: 0.85rem;
  color: #666;
}


.flash-message {
  margin-bottom: 15px;
  text-align: center;
}

.alert {
  background-color: #ffe6e6;
  color: #a00;
  border: 1px solid #a00;
  padding: 8px;
  border-radius: 4px;
}

 


.add-to-menu-button {
  padding: 6px 12px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.add-to-menu-button:hover {
  background-color: #218838;
}

.star-rating {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.star-button {
  font-size: 26px;
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
}

.star-button.selected {
  color: #e0a800;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.star-button[data-rating="1"] {
  color: #ff6666;
}

.star-button[data-rating="1"]:hover {
  color: #ff1a1a;
}


/* Notes Textarea */
.notes-textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  line-height: 1.5;
  box-sizing: border-box;
  resize: vertical;
}

/* Save Notes Button */
.save-notes-button {
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 16px;
  font-size: 16px;
  cursor: pointer;
}

.save-notes-button:hover {
  background-color: #0056b3;
}

.fullscreen-container {
  position: relative;
  display: inline-block;
}
 
.fullscreen-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 20px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}

.fullscreen-toggle:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
