/* 🌄 Background & Base Layout */
body {
  font-family: 'Segoe UI', sans-serif;
  background-image: url('images/backdrop1.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  color: #333;
  text-align: center;
  padding: 20px;
  margin: 0;
}

/* 🧾 Table Wrapper */
table {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: auto;
  max-width: 960px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

/* 🧱 Layout */
#game-layout {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.column {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 📱 Responsive Layout */
@media (max-width: 768px) {
  #game-layout {
    flex-direction: column;
    align-items: center;
  }

  .column {
    width: 100%;
    max-width: 480px;
  }

  #emoji-showcase {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding: 8px;
    justify-content: center;
  }

  #pleasure-btn {
    top: 60% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    max-width: 140px;
    font-size: 16px;
  }

  #action-footer {
    display: flex;
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #fff8e1;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
    z-index: 20;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  }
}

/* 🧃 Sticky Footer (Hidden by Default) */
#action-footer {
  display: none;
}

/* 🧁 Headings */
h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* 📦 Sections */
section {
  margin: 20px auto;
  padding: 15px;
  max-width: 600px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* 🍔 Emoji Showcase */
#emoji-showcase span {
  font-size: 2rem;
  margin: 0 10px;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.2s ease;
}

#emoji-showcase span:hover {
  transform: scale(1.2);
}

.tap-feedback {
  transform: scale(1.3);
  transition: transform 0.2s ease;
}

/* 🍽️ Drop Zone */
#order-dropzone {
  border: 2px dashed #ccc;
  min-height: 60px;
  padding: 10px;
  background: #f9f9f9;
  font-size: 1.5rem;
}

/* 🎮 Buttons */
button {
  padding: 10px 20px;
  margin: 10px;
  font-weight: bold;
  background: orange;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: darkorange;
}

/* 😐 Mood Meter */
#mood-meter {
  font-size: 1.5rem;
  margin-top: 10px;
}

.mood-neutral { color: #4CAF50; }
.mood-annoyed { color: #FF9800; }
.mood-angry { color: #F44336; }

/* 🔥 Combo Counter */
#combo-counter {
  font-size: 1.2rem;
  margin-top: 10px;
}

/* 🐄 Cow Chaos */
#cow-chaos {
  margin-top: 10px;
  min-height: 40px;
  font-size: 2rem;
  position: relative;
  overflow: visible;
}

.cow {
  position: absolute;
  left: 10%;
  animation: mooMove 2s ease-in-out forwards;
}

@keyframes mooMove {
  0% { left: -50px; opacity: 0; }
  50% { left: 50%; opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* 🚗 Car Arrival */
#car-arrival {
  font-size: 2rem;
  position: relative;
  height: 40px;
  overflow: hidden;
  width: 100%;
}

.car-slide {
  position: absolute;
  top: 0;
  left: -50px;
  animation: driveIn 1.5s ease forwards;
}

@keyframes driveIn {
  0% { left: -50px; }
  50% { left: 50%; }
  100% { left: 100%; opacity: 0; }
}

/* 🧡 My Pleasure Button */
#pleasure-race {
  position: relative;
  height: 120px;
  margin-top: 20px;
  overflow: visible;
}

#pleasure-btn {
  position: absolute;
  z-index: 10;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* 🧼 Utility */
.hidden {
  display: none !important;
}
