/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.hidden {
  display: none;
}

body,
html {
  font-size: 16px;
  margin: 0;
  padding: 0;
  /*overflow: hidden; prevent scrolling??*/
  height: 100%;
  font-family: sans-serif;
  background-color: #f0f0f0;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  position: relative;
  /* Avoid overlapping the footer in the results screen
     but also avoid messing with our vertical centering calcs */
  height: calc(100vh - 100px);
  padding: 0 1rem;
}

#startScreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  padding: 0 1rem;
  box-sizing: border-box;
}

#questionContainer {
  display: none;
  flex-direction: column;
  justify-content: flex-start; /* Start from the top */
  align-items: center;
  width: 100%;
  height: 100vh;
  /*padding-top: 30vh;*/ /* Push content down by 30% of the viewport height */
  box-sizing: border-box;
}

/* ==========================================================================
   Progress & Pills
   ========================================================================== */
#progressContainer {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 8px;
}

.pill {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ccc; /* default gray */
  transition: background-color 0.3s ease;
}

.pill.correct {
  background-color: #6aaa64; /* Wordle green */
}

.pill.incorrect {
  background-color: #e57373; /* Soft red */
}

/* ==========================================================================
   Input & Button Styles
   ========================================================================== */
#answerInput {
  width: 200px; /* Adjust as needed */
  font-size: 18px;
  padding: 10px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#startScreen .startButton {
  appearance: none;
  background-color: transparent;
  border: 2px solid #1a1a1a;
  border-radius: 15px;
  box-sizing: border-box;
  color: #3b3b3b;
  cursor: pointer;
  display: inline-block;
  font-family:
    Roobert,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol";
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  margin: 0;
  min-height: 60px;
  min-width: 0;
  outline: none;
  padding: 16px 24px;
  text-align: center;
  text-decoration: none;
  transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: auto;
  will-change: transform;
}

.startButton:disabled {
  pointer-events: none;
}

.startButton:hover {
  color: #fff;
  background-color: #1a1a1a;
  box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
  transform: translateY(-2px);
}

.startButton:active {
  box-shadow: none;
  transform: translateY(0);
}

button {
  padding: 10px 20px;
  font-size: 16px;
  margin-top: 10px;
  cursor: pointer;
}

input[type="number"] {
  font-size: 16px;
  padding: 5px;
  width: 100px;
  text-align: center;
}

/* ==========================================================================
   Results Screen & Heatmap
   ========================================================================== */
.results-wrapper {
  display: flex;
  width: 100%;
}

.heatmap-container {
  flex: 1;
  overflow: hidden; /* no scroll bars */
  /*margin-bottom: 20px;*/ /* Adjust spacing to ensure no overlap with stats-panel */
  margin-bottom: 1.5rem;
  width: 100%;
}

table.heatmap {
  border-collapse: collapse;
  margin: 10px auto;
  table-layout: fixed; /* Force constant-width columns */
  min-width: 400px; /* Refuse to shrink the table too much */
}

table.heatmap th,
table.heatmap td {
  width: 30px;
  height: 30px;
  text-align: center;
  border: 1px solid #ccc;
  font-size: 10px;
}

#resultsContainer {
  display: none;
  flex-direction: column;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  padding-bottom: 80px;
}

.stats-panel {
  width: 100%;
  box-sizing: border-box; /* ensures padding and border are included in width */
  text-align: left;
  background: #fff;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Ensure elements stack vertically in results */
#results-wrapper,
#shareStatsButton,
#restartButton,
#resultsContainer.stats-panel {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

/* Optional: Style for the share button */
#shareStatsButton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Remove margin from the last button */
#restartButton {
  margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  font-size: 0.7em;
  padding: 10px;
  background: #fff;
  width: 100%;
  text-align: center;
  border-top: 1px solid #ccc;
}

footer a {
  text-decoration: none;
  color: #1da1f2;
  vertical-align: middle;
}

footer svg {
  vertical-align: middle;
  margin-right: 5px;
}

/* ==========================================================================
   Feedback Text
   ========================================================================== */
.correct {
  color: green;
  font-weight: bold;
}

.incorrect {
  color: red;
  font-weight: bold;
}

/* ==========================================================================
   Share Button
   ========================================================================== */
.share-button {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.share-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.share-button:active {
  transform: translateY(0);
}

.share-icon {
  margin-right: 8px;
  fill: currentColor; /* Inherits the button's color */
}

.share-section {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.share-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #ff6b35;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.share-button:hover {
  background-color: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.share-button:active {
  transform: translateY(0);
}

.share-button svg {
  width: 20px;
  height: 20px;
}

/* Pizza Options Styling */
.section-label {
  font-size: 18px;
  font-weight: bold;
  color: #ff6b35;
  margin-bottom: 15px;
  display: block;
}

.pizza-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.pizza-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: #ff6b35;
  border: 2px solid #e55a2b;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pizza-option:hover {
  border-color: #e55a2b;
  background-color: #e55a2b;
}

.pizza-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.pizza-label {
  font-size: 16px;
  color: white;
  font-weight: 500;
}

.pizza-slice-spinner {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-spinner-btn {
  background-color: #ff6b35;
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-spinner-btn:hover {
  background-color: #e55a2b;
  transform: scale(1.1);
}

.mini-spinner-btn:active {
  transform: scale(0.95);
}

.pizza-slice-input {
  width: 50px;
  height: 28px;
  text-align: center;
  border: 2px solid #ff6b35;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  background-color: white;
}

.pizza-separator {
  margin: 20px 0 15px 0;
  padding: 10px 15px;
  background: linear-gradient(45deg, #8e44ad, #9b59b6);
  color: white;
  text-align: center;
  border-radius: 8px;
  font-size: 16px;
}

/* Slice Selector Styling */
.slice-selector {
  margin-top: 20px;
}

.slice-selector label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #333;
}

.spinner-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 200px;
  margin: 0 auto;
}

.spinner-btn {
  background-color: #ff6b35;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-btn:hover {
  background-color: #e55a2b;
  transform: scale(1.1);
}

.spinner-btn:active {
  transform: scale(0.95);
}

.spinner-container input[type="number"] {
  width: 80px;
  height: 40px;
  text-align: center;
  border: 2px solid #ff6b35;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  background-color: white;
  margin: 0 10px;
}

.spinner-container input[type="number"]:focus {
  outline: none;
  border-color: #e55a2b;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.custom-pizza-quantity {
  margin-bottom: 20px;
}

.custom-pizza-quantity label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #333;
}

.preference-buttons {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.preference-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
}

.roulette-btn {
  background: linear-gradient(45deg, #e91e63, #f06292);
}

.roulette-btn:hover {
  background: linear-gradient(45deg, #c2185b, #e91e63);
  transform: translateY(-2px);
}

.avoid-btn {
  background: linear-gradient(45deg, #f44336, #ef5350);
}

.avoid-btn:hover {
  background: linear-gradient(45deg, #d32f2f, #f44336);
  transform: translateY(-2px);
}

.reset-btn {
  background: linear-gradient(45deg, #607d8b, #78909c);
}

.reset-btn:hover {
  background: linear-gradient(45deg, #546e7a, #607d8b);
  transform: translateY(-2px);
}

.preference-btn:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .preference-buttons {
    flex-direction: column;
    align-items: center;
  }

  .preference-btn {
    width: 100%;
    max-width: 250px;
  }
}

.ingredient-category-header {
  background-color: #ff6b35;
  color: white;
  text-align: center;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: bold;
  border-top: 2px solid #e55a2b;
}

.ingredient-category-header:first-child {
  border-top: none;
}

/* Must Have limit styling */
.must-have-limit-reached {
  opacity: 0.5;
  background-color: #f5f5f5;
}

.must-have-limit-reached input[type="radio"]:disabled {
  cursor: not-allowed;
}

.must-have-counter {
  text-align: center;
  margin-top: 15px;
  padding: 10px;
  background-color: #e3f2fd;
  border-radius: 8px;
  color: #1976d2;
  font-size: 14px;
}

.must-have-counter.limit-reached {
  background-color: #ffebee;
  color: #d32f2f;
}

/* Creator button styling */
.creator-button {
  background: linear-gradient(45deg, #8e44ad, #9b59b6);
  color: white;
}

.creator-button:hover {
  background: linear-gradient(45deg, #7d3c98, #8e44ad);
}

/* Pizza order styling by source */
.pizza-order {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.pizza-order:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.pizza-boring_basic {
  border-left: 5px solid #fd7e14;
  background: linear-gradient(90deg, #fff3e0 0%, #f8f9fa 20%);
}

.pizza-custom {
  border-left: 5px solid #8e44ad;
  background: linear-gradient(90deg, #f3e5f5 0%, #f8f9fa 20%);
}

.pizza-ai_generated {
  border-left: 5px solid #20c997;
  background: linear-gradient(90deg, #e6fffa 0%, #f8f9fa 20%);
}

.pizza-order h4 {
  color: #333;
  margin: 0 0 10px 0;
  font-size: 18px;
}

.pizza-description {
  color: #666;
  font-style: italic;
  margin-bottom: 10px;
}

.calculation-method {
  font-size: 12px;
  color: #6c757d;
  border-top: 1px solid #e9ecef;
  padding-top: 10px;
  margin-top: 10px;
}

/* Ingredient checkboxes styling */
.ingredient-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 2px solid #e55a2b;
  border-radius: 8px;
  padding: 15px;
  background-color: #ff6b35;
  width: 100%;
  box-sizing: border-box;
}

.ingredient-checkbox-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ingredient-checkbox-item:hover {
  background-color: #f8f9fa;
}

.ingredient-checkbox-item.selected {
  background-color: #e3f2fd;
  border: 2px solid #2196f3;
}

.ingredient-checkbox-item input[type="checkbox"] {
  margin-right: 12px;
  transform: scale(1.2);
  cursor: pointer;
}

.ingredient-checkbox-item label {
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: white;
  flex: 1;
}

.ingredient-checkbox-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ingredient-checkbox-item.disabled input[type="checkbox"] {
  cursor: not-allowed;
}

.ingredient-checkbox-item.disabled label {
  cursor: not-allowed;
}

.ingredient-counter {
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
  color: #666;
}

.ingredient-counter.limit-reached {
  color: #f44336;
}

.ingredient-category-header-checkbox {
  background-color: #e55a2b;
  color: white;
  text-align: center;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 6px;
  margin: 10px 0 8px 0;
}

.ingredient-category-header-checkbox:first-child {
  margin-top: 0;
}

/* ==========================================================================
   On‑Screen Keypad (Mobile)
   ========================================================================== */
#keypad {
  display: none; /* Hidden by default; shown on mobile */
  margin-top: 20px;
}

.key-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.key {
  padding: 15px;
  font-size: 1.5em;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.key:hover {
  background-color: #f0f0f0;
}

/* ==========================================================================
   Media Queries (Adjustments for Small Screens)
   ========================================================================== */
@media (max-width: 600px) {
  body {
    font-size: 18px;
  }

  #questionContainer {
    /* Start content at the very top */
    justify-content: flex-start;
    /* Reduce the top padding to push content higher */
    padding-top: 10vh;
    /* Optionally adjust the height if needed */
    height: calc(100vh - 70px);
  }

  #questionContainer h2 {
    font-size: 1.5em;
  }

  #answerInput {
    width: 250px;
    font-size: 18px;
    padding: 12px;
  }

  button {
    font-size: 18px;
    padding: 12px 24px;
  }
}

@media (max-width: 480px) {
  table.heatmap {
    width: 100%;
    min-width: auto; /* Override fixed min-width */
  }
}

/* ==========================================================================
   Pizza Theme Styles (for slicetomeetyou.com)
   ========================================================================== */

/* Pizza-themed background and colors */
body.pizza-theme {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 50%, #d63031 100%);
  color: #fff;
}

body.pizza-theme .container {
  background: transparent;
  position: relative;
  z-index: 2;
}

/* Pizza header with title */
.pizza-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.pizza-title {
  font-size: 3.5em;
  font-weight: bold;
  color: #fff;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
  margin: 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(2px);
  padding: 20px 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  font-family: "Comic Sans MS", "Chalkboard SE", "Marker Felt", cursive;
  letter-spacing: 2px;
}

.pizza-subtitle {
  font-size: 1.8em;
  font-weight: 600;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin: 10px 0 0 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(2px);
  padding: 15px 25px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  font-family: "Comic Sans MS", "Chalkboard SE", "Marker Felt", cursive;
  letter-spacing: 1px;
}

/* Animated background pizza image */
.pizza-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.pizza-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: pizzaPan 20s ease-in-out infinite;
  filter: brightness(0.3) blur(2px);
}

@keyframes pizzaPan {
  0% {
    transform: scale(1.2) translate(0%, 0%);
  }
  25% {
    transform: scale(1.4) translate(-5%, -3%);
  }
  50% {
    transform: scale(1.3) translate(3%, -5%);
  }
  75% {
    transform: scale(1.5) translate(-2%, 2%);
  }
  100% {
    transform: scale(1.2) translate(0%, 0%);
  }
}

/* Pizza-themed buttons */
body.pizza-theme .startButton {
  background: linear-gradient(45deg, #ff4757, #ff3742);
  color: white;
  border: 2px solid #fff;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

body.pizza-theme .startButton:hover {
  background: linear-gradient(45deg, #ff3742, #ff2f3a);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

body.pizza-theme button {
  background: linear-gradient(45deg, #ff4757, #ff3742);
  color: white;
  border: 2px solid #fff;
}

body.pizza-theme button:hover {
  background: linear-gradient(45deg, #ff3742, #ff2f3a);
}

/* Pizza-themed input */
body.pizza-theme #answerInput {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #ff4757;
  color: #333;
}

body.pizza-theme #answerInput:focus {
  border-color: #ff3742;
  box-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
}

/* Pizza-themed pills */
body.pizza-theme .pill {
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

body.pizza-theme .pill.correct {
  background-color: #2ed573;
  border-color: #2ed573;
}

body.pizza-theme .pill.incorrect {
  background-color: #ff4757;
  border-color: #ff4757;
}

/* Pizza-themed keypad */
body.pizza-theme .key {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #ff4757;
  color: #333;
}

body.pizza-theme .key:hover {
  background: #ff4757;
  color: white;
}

/* Pizza-themed results */
body.pizza-theme .heatmap-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

body.pizza-theme .stats-panel {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Pizza-themed share button */
body.pizza-theme .share-button {
  background: linear-gradient(45deg, #ff4757, #ff3742);
  border: 2px solid #fff;
}

body.pizza-theme .share-button:hover {
  background: linear-gradient(45deg, #ff3742, #ff2f3a);
}

/* Pizza-themed footer */
body.pizza-theme footer {
  background: rgba(255, 255, 255, 0.1);
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

body.pizza-theme footer a {
  color: #fff;
}

body.pizza-theme footer a:hover {
  color: #ffd700;
}

/* ==========================================================================
   Pizza Party Styles
   ========================================================================== */

/* Pizza buttons layout */
.pizza-buttons {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(2px);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.pizza-button {
  appearance: none;
  background: linear-gradient(45deg, #ff4757, #ff3742);
  color: white;
  border: 2px solid #fff;
  border-radius: 15px;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-block;
  font-family:
    Roobert,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol";
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
  margin: 0;
  min-height: 60px;
  min-width: 150px;
  outline: none;
  padding: 16px 24px;
  text-align: center;
  text-decoration: none;
  transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  will-change: transform;
  box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

.pizza-button:hover {
  background: linear-gradient(45deg, #ff3742, #ff2f3a);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 71, 87, 0.4);
}

.pizza-button:active {
  box-shadow: none;
  transform: translateY(0);
}

.back-button {
  background: linear-gradient(45deg, #6c757d, #5a6268);
  margin-top: 20px;
  margin-bottom: 2rem;
}

.back-button:hover {
  background: linear-gradient(45deg, #5a6268, #495057);
}

/* Pizza form styles */
.pizza-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 3;
}

/* Creator form - make it wider */
#creatorForm {
  max-width: 800px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #fff;
  text-align: left;
}

.form-group input,
.form-group select {
  padding: 12px;
  border: 2px solid #ff4757;
  border-radius: 8px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #ff3742;
  box-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
}

/* Container visibility */
#eaterContainer,
#plannerContainer,
#plannerResultsContainer,
#overrideContainer,
#creatorContainer {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 2rem 1rem 6rem 1rem;
  box-sizing: border-box;
  overflow-y: auto;
}

/* Party image styles */
.party-image {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  position: relative;
  z-index: 3;
}

.summary-image {
  max-width: 300px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Party summary styles */
.party-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  margin-bottom: 2rem;
}

.summary-card {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  text-align: left;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 3;
}

.summary-card h3 {
  margin: 0 0 15px 0;
  color: #fff;
  font-size: 1.2em;
}

.summary-card div {
  color: #fff;
  line-height: 1.6;
}

#attendeesList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attendee-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9em;
}

.topping-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topping-item:last-child {
  border-bottom: none;
}

.topping-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8em;
}

/* Pizza order styles */
.pizza-order {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pizza-order h4 {
  margin: 0 0 10px 0;
  color: #fff;
  font-size: 1.2em;
}

.pizza-order p {
  margin: 5px 0;
  color: rgba(255, 255, 255, 0.9);
}

/* Override screen styles */
.override-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 3;
}

.override-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Ingredient preference table styles */
.ingredient-table {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow-x: auto;
}

.ingredient-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}

.ingredient-table th,
.ingredient-table td {
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ingredient-table th {
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
  color: #fff;
}

.ingredient-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: #fff;
}

.ingredient-table input[type="radio"] {
  margin: 0;
  cursor: pointer;
  vertical-align: middle;
}

.ingredient-table input[type="radio"]:checked + label {
  color: #ffd700;
  font-weight: bold;
}

.ingredient-table label {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  vertical-align: middle;
  display: inline-block;
  margin-left: 4px;
}

.ingredient-table label:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Preference collection styles */
.preference-collection {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.collection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.collection-slices {
  font-weight: bold;
  color: #ffd700;
  font-size: 1.1em;
}

.collection-description {
  color: #fff;
  font-weight: 500;
  flex: 1;
  margin-left: 15px;
}

.collection-attendees {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}
