body {
  margin: 0;
  font-family: "Arima", cursive;
  background-image: url(../images/orderMenuBGimg.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
}

/* BACKGROUND */
.overlay {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  padding: 20px;
}

/* PAGES (CATEGORY + MENU) */
.panel {
  width: 100%;
  max-width: 600px;
  text-align: center;

  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;

  transition: 0.4s ease;
  position: absolute;
}

/* ACTIVE STATE */
.panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

/* TITLE */
h1 {
  margin-bottom: 30px;
}

/* CATEGORY BUTTONS */
button {
  display: block;
  margin: 12px auto;
  padding: 14px 35px;
  font-size: 20px;
  background: transparent;
  border: 1px solid white;
  color: white;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 6px;
}

button:hover {
  background: orange;
  border-color: orange;
}

/* BACK BUTTON (FIXED → مشکل حل شد) */
.back {
  position: fixed;
  top: 0;
  left: 0;
  font-size: 18px;
  padding: 10px 18px;
  z-index: 999;
}

/* MENU ITEMS */
#content {
  margin-top: 40px;
}

/* EACH ITEM */
.item {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 12px 15px;
  margin: 10px 0;
  border-bottom: 1px solid #333;

  opacity: 0;
  transform: translateY(10px);

  animation: fadeIn 0.4s forwards;
}

/* STAGGER ANIMATION */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CART */
.cart {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #444;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  button {
    font-size: 16px;
    padding: 10px 20px;
  }

  .item {
    flex-direction: column;
    gap: 6px;
  }

  .back {
    font-size: 14px;
    padding: 8px 12px;
  }
}

.actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}

.actions button {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 5px;
}

/* Remove button */
.remove {
  border: 1px solid red;
  color: red;
  background: transparent;
}

.remove:hover {
  background: red;
  color: white;
}

/* ORDER BUTTON */
#orderBtn {
  margin-top: 15px;
  padding: 12px 20px;
  background: red;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

#orderBtn:hover {
  background: orange;
}

/* MODAL BACKDROP */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

/* ACTIVE MODAL */
.modal.show {
  opacity: 1;
  visibility: visible;
}

/* MODAL BOX */
.modal-content {
  background: #111;
  padding: 40px;
  text-align: center;
  border-radius: 10px;

  transform: scale(0.7);
  transition: 0.3s ease;
}

/* animation */
.modal.show .modal-content {
  transform: scale(1);
}

.modal-content h2 {
  color: orange;
}

/* OK BUTTON */
#okBtn {
  margin-top: 20px;
  padding: 10px 25px;
  background: orange;
  border: none;
  color: black;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
}

#okBtn:hover {
  background: red;
  color: white;
}

/* fade out animation */
.modal.hide {
  opacity: 0;
  visibility: hidden;
}

.modal.hide .modal-content {
  transform: scale(0.6);
}