body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  background: linear-gradient(135deg, #fbc2eb 0%, #fcdffb 50%, #f9c6d3 100%);
  overflow-x: hidden;
  color: #7a316f;
}

#background-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.heading {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #d72660;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 8px #fff3fa;
}

.subtext {
  font-size: 1.2rem;
  color: #a15e8a;
  margin-bottom: 2em;
}

#countdown-timer {
  font-size: 2.2rem;
  font-weight: 600;
  color: #b83280;
  margin-bottom: 1.5em;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.5);
  border-radius: 1em;
  padding: 0.5em 1.5em;
  box-shadow: 0 2px 12px #f9c6d3;
}

.game-section {
  margin: 2em 0;
  background: rgba(255,255,255,0.7);
  border-radius: 1.5em;
  box-shadow: 0 2px 16px #fbc2eb44;
  padding: 2em 1.5em;
  max-width: 420px;
  width: 100%;
  display: none;
}

#mini-games .game-section {
  display: block;
}

.birthday-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.7rem;
  color: #d72660;
  margin-bottom: 1em;
  text-align: center;
}

.handwritten {
  font-family: 'Gloria Hallelujah', 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: #7a316f;
  margin-bottom: 2em;
  text-align: center;
}

.birthday-ponies-kittens {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2em;
}
.emoji-row {
  font-size: 2.5rem;
  margin-bottom: 0.5em;
}
.emoji-captions {
  display: flex;
  gap: 1.5em;
  font-size: 1rem;
  color: #b83280;
  justify-content: center;
}
.birthday-thankyou {
  font-size: 1.1rem;
  color: #a15e8a;
  text-align: center;
  margin-bottom: 2em;
}

.hidden {
  display: none !important;
}

/* Floating bows, hearts, sparkles (decor) */
.floating-bow, .floating-heart, .floating-star {
  position: absolute;
  pointer-events: none;
  opacity: 0.7;
  animation: floatUp 8s linear infinite;
}
.floating-bow {
  font-size: 2.2rem;
  color: #e75480;
}
.floating-heart {
  font-size: 1.7rem;
  color: #ffb6c1;
}
.floating-star {
  font-size: 1.3rem;
  color: #fffbe7;
}
@keyframes floatUp {
  0% { transform: translateY(100vh) scale(1); opacity: 0.7; }
  80% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

/* Rounded containers, soft shadows */
section, .game-section {
  border-radius: 1.5em;
  box-shadow: 0 2px 16px #fbc2eb44;
}

/* Trivia Game Styles */
.trivia-question {
  margin-bottom: 1em;
  text-align: center;
}
.trivia-q {
  font-size: 1.1rem;
  margin-bottom: 1em;
  color: #b83280;
  font-weight: 600;
}
.trivia-options {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  margin-bottom: 0.7em;
}
.trivia-opt {
  background: #fff0fa;
  border: none;
  border-radius: 1.2em;
  padding: 0.7em 1em;
  font-size: 1rem;
  color: #d72660;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  box-shadow: 0 2px 8px #fbc2eb33;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.trivia-opt:hover:not(:disabled) {
  background: #ffe0f0;
  color: #a15e8a;
  box-shadow: 0 4px 16px #fbc2eb55;
}
.trivia-opt:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.trivia-feedback {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5em;
  min-height: 1.2em;
}
.trivia-progress {
  font-size: 0.95rem;
  color: #a15e8a;
  margin-top: 0.5em;
}
.trivia-final {
  text-align: center;
}
.trivia-result-msg {
  font-size: 1.2rem;
  margin: 1em 0 1.5em 0;
  color: #d72660;
}
.trivia-restart {
  background: #ffe0f0;
  border: none;
  border-radius: 1.2em;
  padding: 0.7em 1.5em;
  font-size: 1rem;
  color: #b83280;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 8px #fbc2eb33;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.trivia-restart:hover {
  background: #fbc2eb;
  color: #d72660;
}

/* Memory Game Styles */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  grid-template-rows: repeat(3, 60px);
  gap: 1em;
  justify-content: center;
  margin: 1.5em 0 1em 0;
}
.memory-card {
  width: 60px;
  height: 60px;
  background: #fff0fa;
  border: none;
  border-radius: 1.2em;
  box-shadow: 0 2px 8px #fbc2eb33;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #d72660;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  position: relative;
}
.memory-card:hover:not(:disabled) {
  background: #ffe0f0;
  color: #a15e8a;
  box-shadow: 0 4px 16px #fbc2eb55;
}
.memory-card:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.memory-card.matched {
  background: #fbc2eb;
  color: #b83280;
  box-shadow: 0 2px 12px #fbc2eb77;
}
.memory-card.revealed {
  background: #ffe0f0;
  color: #d72660;
}
.memory-emoji {
  font-size: 2rem;
  pointer-events: none;
}
.memory-final {
  text-align: center;
  margin-top: 1.5em;
}
.memory-final p {
  font-size: 1.2rem;
  color: #d72660;
  margin-bottom: 1.5em;
}
.memory-restart {
  background: #ffe0f0;
  border: none;
  border-radius: 1.2em;
  padding: 0.7em 1.5em;
  font-size: 1rem;
  color: #b83280;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 8px #fbc2eb33;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.memory-restart:hover {
  background: #fbc2eb;
  color: #d72660;
}

/* Bow-Tie Builder Styles */
.bowtie-builder-wrap {
  margin: 1.5em auto 1em auto;
  position: relative;
  width: 120px;
  height: 180px;
}
.leila-doll {
  display: block;
  margin: 0 auto;
}
.bowtie-palette {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin: 1.2em 0 0.5em 0;
}
.bowtie-draggable {
  font-size: 2rem;
  cursor: grab;
  background: #fff0fa;
  border-radius: 1em;
  padding: 0.2em 0.5em;
  box-shadow: 0 2px 8px #fbc2eb33;
  transition: background 0.2s, box-shadow 0.2s;
  user-select: none;
}
.bowtie-draggable:active {
  cursor: grabbing;
  background: #ffe0f0;
  box-shadow: 0 4px 16px #fbc2eb55;
}
.bowtie-dropzone {
  position: absolute;
  border-radius: 50%;
  background: transparent;
}
.bowtie-on-doll {
  position: absolute;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s;
}
.bowtie-on-doll:hover {
  transform: scale(1.15) rotate(-10deg);
  filter: brightness(1.2);
}
.bowtie-finish {
  text-align: center;
  font-size: 1.2rem;
  color: #d72660;
  margin: 1.2em 0 0.5em 0;
  font-family: 'Gloria Hallelujah', 'Dancing Script', cursive;
}
.bowtie-reset-wrap {
  text-align: center;
  margin-top: 0.5em;
}
.bowtie-reset {
  background: #ffe0f0;
  border: none;
  border-radius: 1.2em;
  padding: 0.7em 1.5em;
  font-size: 1rem;
  color: #b83280;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 8px #fbc2eb33;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.bowtie-reset:hover {
  background: #fbc2eb;
  color: #d72660;
}

/* Responsive */
@media (max-width: 600px) {
  .heading, .birthday-title {
    font-size: 1.5rem;
  }
  .game-section {
    padding: 1em 0.5em;
  }
}
@media (max-width: 500px) {
  .bowtie-builder-wrap {
    width: 80px;
    height: 120px;
  }
  .leila-doll {
    width: 80px !important;
    height: 120px !important;
  }
  .bowtie-palette {
    gap: 0.5em;
    margin: 1em 0 0.3em 0;
  }
  .bowtie-draggable {
    font-size: 1.3rem;
    padding: 0.15em 0.3em;
    border-radius: 0.7em;
  }
  .bowtie-on-doll {
    font-size: 1.3rem !important;
    left: unset !important;
    top: unset !important;
  }
  .bowtie-dropzone {
    width: 24px !important;
    height: 24px !important;
    left: unset !important;
    top: unset !important;
  }
} 

.floating-bowtie-touch {
  opacity: 0.85;
  box-shadow: 0 4px 16px #fbc2eb99;
  pointer-events: none;
  background: #fff0fa;
  border-radius: 1em;
  padding: 0.2em 0.5em;
  font-size: 2rem;
  color: #d72660;
  transition: none;
  z-index: 9999;
} 