@import url('https://fonts.googleapis.com/css2?family=Sacramento&family=Poppins:wght@300;400;600&display=swap');

body {
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  color: #fff;
}

/* Main glass card */
.container {
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 50px 40px;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(255, 182, 193, 0.4);
  animation: fadeIn 2s ease-out;
}

/* Title */
h1 {
  font-family: 'Sacramento', cursive;
  font-size: 3.5rem;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

/* Subtitle */
p {
  font-size: 1.2rem;
  font-weight: 300;
  color: #ffe6f0;
  margin-bottom: 20px;
}

/* Timer */
#timer {
  font-size: 1.6rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: glow 2s infinite alternate ease-in-out;
}

/* Floating Music Button */
#musicButton {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  color: white;
  box-shadow: 0 8px 18px rgba(255, 182, 193, 0.4);
  cursor: pointer;
  animation: floatBtn 3s ease-in-out infinite;
  transition: transform 0.2s;
}

#musicButton:hover {
  transform: scale(1.15);
}

/* Hearts floating animation */
.heart {
  position: fixed;
  width: 20px;
  height: 20px;
  background-color: #ff6699;
  transform: rotate(45deg);
  animation: floatUp 6s linear infinite;
  border-radius: 4px;
  opacity: 0.8;
}

.heart::before,
.heart::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #ff6699;
  border-radius: 50%;
}

.heart::before { top: -10px; left: 0; }
.heart::after { left: 10px; top: 0; }

/* Animations */
@keyframes floatUp {
  0% { transform: translateY(0) rotate(45deg); opacity: 1; }
  100% { transform: translateY(-100vh) rotate(45deg); opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px #ffb6c1, 0 0 25px #ff9a9e;
  }
  to {
    text-shadow: 0 0 18px #ffb6c1, 0 0 40px #ff69b4;
  }
}

@keyframes floatBtn {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
