html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* First-Time Tips Modal Overlay */
#first-time-modal.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  /* background: rgba(44, 62, 80, 0.7); */
    background-color: rgba(var(--duck-modal-shadow-rgb), 0.5);

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal Content Container */
#first-time-modal .modal-content {
  background: var(--duck-white);
  border-radius: 1.8rem;
  box-shadow: 0 0.6rem 3.2rem 0 rgba(0,0,0,0.18);
  padding: 2.5rem 2rem 1.5rem 2rem;
  max-width: 40rem;
  width: 95%;
  display: flex;
  flex-direction: column;
  align-items: center;      /* Centers horizontally */
  justify-content: center;  /* Centers vertically if there's extra space */
  text-align: center;       /* Centers text inside */
  font-family: 'Poppins', 'Baloo 2', sans-serif;
  animation: modalIn 0.4s cubic-bezier(.6,-0.28,.74,.05);
}

@keyframes modalIn {
  from { transform: translateY(3rem) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}

#first-time-modal .modal-content img.duck-logo {
  display: block;
  margin: 0 auto 1.2rem auto;
  max-width: 150px;
  width: 70%;
  height: auto;
  border-radius: 1.2rem;
  box-shadow: 0 0.2rem 1rem rgba(44,62,80,0.09);
}

/* Modal Title */
#first-time-modal .modal-content h2 {
  font-size: 2.1rem;
  margin-bottom: 1.3rem;
  color: var(--duck-charcoal);
  text-align: center;
}

/* Tips List */
#first-time-modal .modal-content ul {
  margin: 0 0 1.3rem 0;
  padding: 0 0 0 1.3rem;
}

#first-time-modal .modal-content li {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  color: var(--duck-charcoal);
  line-height: 1.45;
  list-style: disc;
}

#first-time-modal .modal-content li b {
  color: var(--duck-pink); 
}

/* Checkbox Row */
#first-time-modal .modal-content label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: var(--duck-charcoal);
  margin-bottom: 1.3rem;
  gap: 0.5rem;
}

/* Close Button */
#close-first-time-btn {
  display: inline-block;
  background: var(--duck-charcoal);
  color: var(--duck-white);
  border: none;
  border-radius: 1.5rem;
  font-size: 1.rem;
  font-weight: 600;
  padding: 2rem 3rem;
  box-shadow: 0 0.2rem 0.8rem rgba(44,62,80,0.08);
  cursor: pointer;
  margin: 0 auto;
  transition: background 0.15s;
}
#close-first-time-btn:hover {
  background: var(--duck-pink);
}

@media (max-width: 479px) {
  #first-time-modal .zoom-row {
    display: none !important;
  }
}

@media (max-width: 479px) {

}
/* Responsive - Modal fits on smaller screens */
/* @media (max-width: 450px) {
  #first-time-modal .modal-content {
    padding: 1.3rem 0.5rem;
    border-radius: 1.1rem;
    max-width: 98vw;
  }
  #first-time-modal .modal-content h2 {
    font-size: 1.4rem;
  }
  #first-time-modal .modal-content li {
    font-size: 1rem;
  }
  #close-first-time-btn {
    font-size: 1rem;
    padding: 0.6rem 1.3rem;
  }
} */
