
body {
    background-color: #2c3e50 !important;
    margin: 0;
    padding: 0;
    color: white;
    animation: fadeIn 1s ease-out;
    font-family: 'Quicksand', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.5;
    overflow-x: hidden;
  }
  
  @keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }
  
  h1, h2, h3 {
    font-family: 'Press Start 2P', cursive;
    text-align: center;
  }
  
  /* https://www.w3schools.com/howto/howto_css_glowing_text.asp */
  header h1 {
    font-size: 40px;
    color: #fcdded;
    animation: glowText 2s ease-in-out infinite alternate;
    font-family: 'Press Start 2P', cursive;
    letter-spacing: 2px;
    text-transform: uppercase;
  }
  
  /* https://www.w3schools.com/cssref/css3_pr_backdrop-filter.php */
  header.glass, footer.glass {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  /* whole area between header and bar */
  .seating-area {
  /* background-color: rgba(24, 24, 24, 0.6); */
  width: 100%;
  }

  /* div around customer and speech/take order */
  .customer-bubble {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #330c53dc;
    border-radius: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    margin: 1rem auto;
    max-width: 600px;
  }

  /* take order button */
  #order-btn {
    height: fit-content;
    animation: glowText 2s ease-in-out infinite alternate;
    font-weight: 300;
  }
  
  
  .order {
    width: 250px;
    height: fit-content;
    align-items: center;
  }

  /* container holding drink UI */
  .bar-area {
    display: flex;
    justify-content: center;
    align-items: center;  
    background-color: #0f0d16;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    width: 100%;
    /* max-width: 960px; */
    padding: 2rem;
    gap: 2rem;
    animation: slideIn 1.5s ease-out;
  }
  
  @keyframes slideIn {
    0% { transform: translateY(-50%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
  }
  
  .ingredient-column {
    width: 30vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .drink-preview-column {
    width: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
  
  .ingredient-column h3 {
    font-size: 1.2em;
    margin-bottom: 1rem;
  }
  
  .button-grp {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .ingredient-column button {
    /* background: linear-gradient(45deg, #f39c12, #e67e22); */
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    padding: 12px;
    width: 140px;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .ingredient-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: transform 0.3s, filter 0.3s;
  }
  
  .ingredient-img:hover {
    transform: rotate(15deg) scale(1.1);
    filter: drop-shadow(0 0 6px #fff);
  }
  
  button {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    background: linear-gradient(45deg, #5c10c0, #b91b7d);
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  button:hover {
    background-color: #e67e22;
    transform: scale(1.1);
  }
  
  /* displays text user selection */
  #feedback {
    font-size: 16px;
    color: rgb(216, 182, 118);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    animation: blink 2s infinite;
  }
  
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }
  
  #reset-button {
    margin-top: 1rem;
  }
  
  .drink-preview {
    border: 3px solid #FEF0A8;
    border-radius: 5px;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    width: 100%;
    max-width: 220px;
  }
  
  /* container for drink image */
  #cocktail-glass {
    display: flex;
    justify-content: center;
    animation: shake 1.5s infinite;
  }
  
  #cocktail-glass img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    animation: glow 1s ease-in-out infinite alternate;
  }
  
  @keyframes glow {
    0% { filter: drop-shadow(0 0 5px #fff); }
    100% { filter: drop-shadow(0 0 15px #00ff99); }
  }
  
  /* .shake {
    animation: shake 0.5s;
  } */
  
  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
  }
  
  /* congrats text box */
  #congratulations {
    font-size: 14px;
    background-color: rgba(50,255,150,0.2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    text-align: center;
    animation: popIn 0.6s ease-in-out;
  }
  
  @keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
  }
  
  footer {
    text-align: center;
    width: 100%;
    padding: 10px 0;
    margin-top: 2rem;
  }
  
  #background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
  }
  
  @media (max-width: 768px) {
    .ingredient-container {
      flex-direction: column;
      align-items: center;
    }
  
    .seating-area {
      flex-direction: column;
      height: auto;
      padding: 1rem 0;
    }
  
    .customer, .order {
      width: 80%;
      height: auto;
    }
  }
  
  /* container for customer img */
  .customer-avatar {
    width: 80px;
    height: 80px;
    background-color: #681681;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #FEF0A8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  }
  
  .customer-avatar img {
    width: 100%;
    height: auto;
  }
  
  /* customer message container */
  .speech-bubble {
    position: relative;
    background: #ffffffcc; /* trắng trong nhẹ */
    color: #222;
    border-radius: 10px;
    padding: 1rem;
    font-size: 13px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    max-width: 300px;
    line-height: 1.6;
  }
  
  /* triangle to speech bubble */
  .speech-bubble::after {
    content: "";
    position: absolute;
    left: -10px;
    top: 20px;
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent #ffffffcc transparent transparent;
  }
  
  .bounce {
    animation: bounce 0.5s;
  }

  @media (max-width: 480px) {
    header h1 {
      font-size: 20px;
      letter-spacing: 1px;
    }
  
    .order {
      width: 90%;
      font-size: 10px;
      padding: 0.5rem;
    }
  
    .customer {
      width: 90%;
      height: auto;
    }
  
    .button-grp {
      gap: 0.5rem;
    }
  
    .ingredient-column button {
      width: 100%;
      font-size: 12px;
      padding: 10px;
    }
  
    .ingredient-img {
      width: 40px;
      height: 40px;
    }
  
    .drink-preview {
      max-width: 180px;
      padding: 0.5rem;
    }
  
    .speech-bubble {
      font-size: 12px;
      padding: 0.5rem;
      max-width: 240px;
    }
  
    .customer-avatar {
      width: 60px;
      height: 60px;
    }
  
    .seating-area {
      gap: 1rem;
    }
  
    .bar-area {
      padding: 1rem;
      gap: 1rem;
    }
  
    footer {
      font-size: 12px;
    }
  
    #congratulations {
      font-size: 12px;
      padding: 0.3rem 0.6rem;
    }
  }
  
  
  @keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
  }
  .confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/confetti.gif');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
    animation: fadeOut 3s forwards;
    z-index: 0; /* ✅ vừa đủ để nằm trên nền, nhưng dưới nội dung */
  }
  
  
  
  
  @keyframes fadeOut {
    to { opacity: 0; }
  }
  
  .fade-in-smooth {
    animation: fadeInSmooth 1s ease-in-out;
  }
  
  @keyframes fadeInSmooth {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes glowText {
    0% {
      text-shadow: 0 0 5px #da0f64, 0 0 10px #FF69B4;
    }
    100% {
      text-shadow: 0 0 20px #ee4289, 0 0 30px #FF69B4;
    }
  }
  
  /* text in customer speech bubble */
  .pixel-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    line-height: 1.6;
    background-color: rgba(0, 0, 0, 0.8);
    color: #00ffcc;
    padding: 12px;
    border: 2px solid #00ffcc;
    border-radius: 8px;
    box-shadow: 0 0 8px #00ffcc;
    text-shadow: 1px 1px 0 #000;
    animation: flicker 1.5s infinite;
  }
  
  @keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
  }

  /* selected alcohol/ingredient styling */
  .selected {
    outline: 3px solid #ffd700;
    transform: scale(1.05);
    box-shadow: 0 0 8px #ffd700;
  }
  
