@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Playfair+Display:wght@600&display=swap');

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #fffaf4;
  text-align: center;
  padding: 40px 20px;
}

h1 {
  color: #7a4427;
  margin-bottom: 10px;
  font-size: 42px;

  font-family: 'Playfair Display', serif;

  letter-spacing: 1px;
}

.subtitle {
  color: #9b7b67;
  margin-bottom: 40px;
  font-size: 16px;
}

/* ETALASE */

.menu-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.item-box {
  background: white;
  padding: 12px;
  border-radius: 20px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  width: 110px;
  transition: 0.3s ease;
}

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

.item-box h3 {
  font-size: 14px;
  margin: 10px 0 4px;
  color: #6b3e25;
}

.item-box span {
  font-size: 13px;
  color: #b06b46;
  font-weight: bold;
}

.risol-item {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
}

/* PIRING */

.plate-wrapper {
  position: relative;
  width: 500px;
  height: 500px;
  margin: auto;
}

.plate {
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

#drop-zone {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 100px;
  left: 100px;
  z-index: 5;
}

/* RISOL DI PIRING */

.dropped-item {
  position: absolute;
  width: 280px;
  cursor: grab;
  touch-action: none;
  z-index: 10;
  animation: pop 0.2s ease;
}

/* CABE LEBIH KECIL */

.dropped-item[src*="0003.png"] {
  width: 70px !important;
}

/* BUTTON */

#finish-btn,
#reset-btn {
  margin-top: 20px;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;

  font-family: 'Poppins', sans-serif;
}

#finish-btn {
  background: #c97a4a;
  color: white;
}

#reset-btn {
  background: #e8d5c7;
  color: #7a4427;
  margin-left: 10px;
}

#finish-btn:hover,
#reset-btn:hover {
  transform: scale(1.05);
}

/* POPUP */

#result-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);

  display: none;

  justify-content: center;
  align-items: center;

  z-index: 999;
}

#result-popup.show {
  display: flex;
}

.popup-content {
  background: white;
  padding: 25px;
  border-radius: 24px;
  width: 350px;
}

.popup-content h2 {
  color: #7a4427;

  font-family: 'Playfair Display', serif;
}

#total-price {
  margin-top: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #7a4427;
}

.thank-you {
  margin-top: 10px;
  color: #9b7b67;
  font-size: 14px;
  line-height: 1.6;
}

/* PIRING FINAL */

#final-plate {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 20px auto;

  background-image: url('https://raw.githubusercontent.com/disarm34corrupt-tech/Risol-arum/b2c7e9c4caf08e3aa3a2d97879d96354bd037f7c/5_20260518_230218_0004.png');

  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#final-plate img {
  position: absolute;
  width: 150px;
}

#final-plate img[src*="0003.png"] {
  width: 50px !important;
}

/* BUTTON CLOSE */

#close-btn {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: #7a4427;
  color: white;
  cursor: pointer;

  font-family: 'Poppins', sans-serif;
}

/* ANIMATION */

@keyframes pop {
  from {
    transform: scale(0.7);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}