@charset "UTF-8";

body {
  margin: 0;
  font-family: "Georgia", serif;
  background-color: #fcfaf7;
  color: #333;
}

header {
  padding: 10px 20px;
  position: relative;
}

.back-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  background-color: #fffaf0;
  color: #5a422e;
  text-decoration: none;
  border: 1px solid #e2d4b7;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.back-button:hover {
  background-color: #f4e8d5;
  color: #3e2c1e;
}

.recipes-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 100%;
  margin-bottom: 40px;
}

.recipes-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.banner-text {
  padding: 20px 15px;
  max-width: 800px;
}

.banner-text h1 {
  font-size: 2.5rem;
  margin-bottom: 0px;
  font-weight: bold;
}

.banner-text p {
  font-size: 1.2rem;
  color: #555;
	margin-bottom: 0px;
}

.simple-recipe-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.recipe-box {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.recipe-box:hover {
  transform: translateY(-5px);
}

.recipe-box img {
  width: 100%;
  height: auto;
  display: block;
}

.recipe-box h3 {
  padding: 16px;
  font-size: 18px;
  color: #5a422e;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  max-width: 700px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.modal-content img {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 8px;
}

.modal-content h2 {
  margin-top: 0;
}

.modal-content ul {
  padding-left: 20px;
}

.modal-content .close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.print-btn {
  margin-top: 20px;
  padding: 10px 16px;
  font-size: 14px;
  background-color: #a3c86d;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.print-btn:hover {
  background-color: #8bb05a;
}


.recipe-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.recipe-nav button {
  background: none;
  border: 2px solid #ccc;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
}

.recipe-nav button:hover {
  background-color: #eee;
}


footer {
  text-align: center;
  padding: 20px;
  background-color: #eee;
  font-size: 14px;
}

@media (max-width: 768px) {
  .banner-text {
    left: 15px;
    right: 15px;
    max-width: none;
    padding: 20px;
  }

  .modal-content {
    margin: 10% 15px;
    padding: 20px;
  }
}
