* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f9d9e3;
  font-family: Verdana;
  min-height: 100vh;
}

.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  color: #000;
  text-decoration: none;
  background: #f9d9e3;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid #000;
  font-size: 0.9rem;
}

.back-btn:hover {
  background: #000;
  color: #f9d9e3;
}

/* kitchen scene */
.kitchen {
  position: relative;
  width: 100%;
  height: 800px;    /* fixed height — adjust to fit your table image */
  overflow: visible;
}

body {
  background-color: #f9d9e3;
  font-family: Verdana;
  min-height: 100vh;
  overflow-y: scroll;   /* ADD THIS — allows scrolling */
}

/* SVG table — stays crisp at any zoom */
.table-svg {
  position: absolute;
  top: 0;               /* CHANGED from bottom to top */
  left: 50%;
  transform: translateX(-50%);
  width: 80%;        /* change to fit your table image */
}

/* food items sitting on the table */
.food-item {
  position: absolute;
  width: 10%;        /* adjust per food image */
  cursor: pointer;
  transition: transform 0.3s ease;
  transform: translateY(-50%);
}

.food-item img {
  width: 100%;
  display: block;
}

.food-item:hover {
  transform: translateY(-60%) scale(1.1) rotate(5deg);
}

/* dark overlay behind popup */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 50;
}

.overlay.active {
  display: block;
}

/* recipe popup card */
.recipe-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff8f0;
  border-radius: 16px;
  padding: 30px;
  width: 420px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.recipe-popup.active {
  display: block;
}

.recipe-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 16px;
}

.recipe-popup h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #333;
}

.recipe-desc {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.recipe-popup h3 {
  font-size: 1rem;
  margin: 14px 0 8px;
  color: #555;
}

.recipe-popup ul,
.recipe-popup ol {
  padding-left: 20px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #444;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #999;
}

.close-btn:hover {
  color: #000;
}