/* 
  Project Princess - Fairy Tale Theme 
  Design Note: Soft, Emotional, Cute, Premium
*/

:root {
  /* Color Palette - Refined for Contrast */
  --pastel-pink: #FFD6E8;
  --lavender-purple: #E8D9FF;
  --soft-white: #FFF8FC;
  --rose-accent: #E05297; /* Darker, richer rose for text/buttons */
  --rose-deep: #9D1F58;  /* Complementary darker shade for strong text */
  --text-dark: #4A2C3A;   /* Sharper dark brown/maroon for body text */
  --gold-sparkle: #FFD700;
  --glass-bg: rgba(255, 255, 255, 0.6); /* More opaque for readability */
  --glass-border: rgba(255, 255, 255, 0.6);
  
  /* Usage: var(--font-title) */
  --font-title: 'Dancing Script', cursive;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #FFDEE9 0%, #B5FFFC 100%); /* Fresh Fairy Tale Gradient */
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ensure Emojis use the best font */
.emoji, i.fas, span, p, h1, h2, h3 {
    font-family: 'Poppins', "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

/* Twemoji Sizing */
img.emoji {
    height: 1.2em !important;
    width: 1.2em !important;
    margin: 0 0.1em !important;
    vertical-align: -0.2em !important;
    display: inline-block !important;
}

/* Background Particles Container */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-title);
  color: var(--rose-deep); /* Darker for readability */
}

.title-glow {
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

p {
  line-height: 1.6;
  font-weight: 500; /* Slightly bolder for readability */
}

/* Glassmorphism Card Utility */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  padding: 2rem;
}

/* Main Content Container - Swapped by JS */
#app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem; /* Less side padding on mobile */
  opacity: 1; 
  transition: opacity 0.5s ease;
}

/* Music Control Floating Button */
.music-control {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 1000;
  border: 2px solid var(--rose-accent);
  transition: transform 0.3s ease;
}

.music-control:hover {
  transform: scale(1.1);
}

/* Utility Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* Countdown Styles */
.timer-container {
  display: flex;
  gap: 15px;
  margin: 2rem 0;
  justify-content: center;
}
.timer-box {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  min-width: 70px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border: 1px solid rgba(255,255,255,0.5);
}
.timer-box span {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--rose-accent);
  display: block;
}
.timer-box p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  margin-top: 5px;
}
.hidden {
  display: none !important;
}

/* Button Style - Enhanced Readable */
/* Button Style - Enhanced Readable & Premium */
.btn-magic {
  background: linear-gradient(135deg, #FF65A5 0%, #E00B67 100%);
  border: 2px solid rgba(255,255,255,0.4);
  padding: 16px 40px;
  border-radius: 50px;
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 10px 25px rgba(224, 11, 103, 0.4);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-magic:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(224, 11, 103, 0.6);
  background: linear-gradient(135deg, #FF80B5 0%, #FF2E85 100%);
  border-color: white;
}

.btn-magic:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 5px 15px rgba(224, 11, 103, 0.4);
}

.btn-magic i {
  margin-left: 10px;
  transition: transform 0.3s;
}

.btn-magic:hover i {
  transform: translateX(3px); /* Subtle icon movement */
}
