* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Playfair Display', serif;
  /* Light cream background to match minigame page */
  background-color: #faeee6;
  color: #333333;
}

/* HEADER */
.main-header {
  /* Changed from white to dark charcoal to match homepage */
  position: absolute;
  background-color: rgb(31, 31, 31);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 5rem;
}

.header-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 1rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.clicklogo a {
  position: relative;
  right: 5em;
  font-size: 2em;
  font-weight: bold;
  /* Changed from dark gray to white text */
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dice-icon {
  /* Keep orange accent color for dice icon */
  color: #ffffff;
  font-size: 30px;
  /* Remove animation and add static glitch effect with blue and red shadows */
  position: relative;
  display: inline-block;
  text-shadow: 2px 0 0 #ff0000, -2px 0 0 #0000ff;
}

.nav-links {
  position: relative;
  left: 12em;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  /* Changed from dark gray to white text */
  color: #ffffff;
  font-size: 1em;
  font-weight: 500;
  transition: color 0.3s ease;

}

.nav-links a:hover,
.nav-links a.active {
  /* Orange color for active/hover state */
  color: #d97706;
  text-decoration: underline;
}

.create-icon {
  font-size: 18px !important;
  /* Changed from gray to white */
  color: #ffffff;
}

/* MENU CONTAINER */
.menu-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
  padding: 2rem;
  min-height: calc(100vh - 200px);
}

/* SIDEBAR */
.sidebar {
  width: 200px;
  /* Light background for sidebar */
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar h3 {
  font-size: 16px;
  margin-bottom: 1rem;
  /* Dark text for sidebar heading */
  color: #333333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-btn {
  width: 100%;
  /* Light button with dark text, orange borders */
  background-color: #ffffff;
  color: #666666;
  border: 2px solid #e5ddd1;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-btn:hover {
  /* Orange border and text on hover */
  background-color: #fef9f3;
  color: #d97706;
  border-color: #d97706;
}

.category-btn.active {
  /* Orange background for active button */
  background-color: #d97706;
  color: #ffffff;
  border-color: #d97706;
}

/* MENU CONTENT */
.menu-content {
  flex: 1;
}

.menu-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  /* Dark text with orange underline */
  color: #333333;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 3px solid #d97706;
  padding-bottom: 0.5rem;
}

.subsection-title {
  font-size: 18px;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  /* Orange text for subsection titles */
  color: #d97706;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

/* ITEM CARD */
.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* White card background with light shadow */
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e5ddd1;
}

.item:hover {
  transform: translateY(-4px);
  /* Orange border on hover */
  border-color: #d97706;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.15);
}

.item-img {
  width: 100%;
  height: 150px;
  background-color: #f5f1e8;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  /* Dark text for item names */
  color: #d97706;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.item-price {
  font-size: 12px;
  /* Medium gray text for prices */
  color: #999999;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.add-btn, #submit-payment {
  /* Orange button with white text */
  background-color: #d97706;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 100%;
}

.add-btn:hover, #submit-payment:hover {
  /* Darker orange on hover */
  background-color: #b86304;
  transform: scale(1.02);
}

/* CART BUTTON */
.cart-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  /* Orange cart button */
  background-color: #d97706;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 1rem 1.5rem;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 50;
}

.cart-btn:hover {
  background-color: #b86304;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.3);
}

/* FOOTER */
.main-footer {
  /* Light footer matching header */
  background-color: #ffffff;
  color: #333333;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  font-size: 14px;
  border-top: 1px solid #e5ddd1;
}

.options-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.option-btn {
  margin: 10px;
  padding: 10px;
  cursor: pointer;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  background-color: #d97706;
}

.close-modal{
  color: black;
}

.option-btn:hover, .close-modal:hover {
  background-color: #b86304;
  transform: scale(1.02);
}


.cart-item {
  position: relative;
}

.item-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  cursor: pointer;
}

.qty-display {
  margin: 0 10px;
  font-weight: bold;
}

.cart-total {
  text-align: center;
  margin-top: 20px;
  font-size: 1.2em;
}

/* Payment Modal */
.payment-modal, .receipt-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

#payment-input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#confirm-receipt, .close-modal {
  margin: 10px;
  padding: 10px;
  cursor: pointer;
  border: 1px solid #ccc;
  background: #f9f9f9;
}

#confirm-receipt:hover, .close-modal:hover {
  background: #e0e0e0;
}

#receipt-list {
  text-align: left;
  list-style-type: disc;
  margin: 10px 0;
}

/* Cash Out Button */
#cash-out-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  margin-top: 20px;
  font-size: 1em;
}

#cash-out-btn:hover {
  background: #218838;
}