/* ====== WARM SUNSHINE BACKGROUND ====== */
body {
  background-image: url('../images/orange.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ====== ACTIVITY CARDS ====== */
.card.happy-card {
  background: linear-gradient(145deg, #ffa726, #ef6c00);
  min-height: 280px;
  border: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card.happy-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 30px rgba(239, 108, 0, 0.35);
}

.card.happy-card .card-body {
  color: white;
  text-align: center;
  padding: 2rem;
}

/* ====== OVERLAYS ====== */
#danceOverlay,
#comedyOverlay,
#affirmationsOverlay,
#upbeatMusicOverlay,
#wordCloudOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  overflow-y: auto;
  z-index: 9999;
}

#danceOverlay[hidden],
#comedyOverlay[hidden],
#affirmationsOverlay[hidden],
#upbeatMusicOverlay[hidden],
#wordCloudOverlay[hidden] {
  display: none;
}

/* ====== LOADING SPINNER ====== */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(239, 108, 0, 0.3);
  border-top-color: #ef6c00;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.breathe-close {
  display: block;
  margin: 0 auto 20px;
  background: #ef6c00;
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

/* ====== FALLING CONFETTI BACKGROUND ====== */
.clouds-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Reset cloud defaults */
.cloud {
  position: absolute;
  top: -40px;
  opacity: 0.85;
  border-radius: 3px;
  background: none;
}

.cloud::before,
.cloud::after {
  content: '';
  display: none;
}

/* Confetti 1 */
.cloud-1 {
  width: 12px;
  height: 28px;
  background: #ffcc80;
  left: 15%;
  animation: fallConfetti 6s linear infinite;
}

/* Confetti 2 */
.cloud-2 {
  width: 14px;
  height: 14px;
  background: #ffd54f;
  left: 40%;
  border-radius: 50%;
  animation: fallConfetti 8s linear infinite 1.5s;
}

/* Confetti 3 */
.cloud-3 {
  width: 8px;
  height: 32px;
  background: #aed581;
  left: 65%;
  animation: fallConfetti 7s linear infinite 3s;
}

/* Confetti 4 */
.cloud-4 {
  width: 16px;
  height: 16px;
  background: #ffa726;
  left: 85%;
  border-radius: 50%;
  animation: fallConfetti 9s linear infinite 4.5s;
}

@keyframes fallConfetti {
  0% {
    top: -40px;
    opacity: 0;
    transform: rotate(0deg) translateX(0);
  }
  5% {
    opacity: 0.85;
  }
  25% {
    transform: rotate(90deg) translateX(30px);
  }
  50% {
    transform: rotate(200deg) translateX(-25px);
  }
  75% {
    transform: rotate(310deg) translateX(15px);
    opacity: 0.6;
  }
  100% {
    top: 105%;
    opacity: 0;
    transform: rotate(400deg) translateX(-10px);
  }
}

/* ====== FLOATING SUNFLOWER EMOJIS ====== */
.clouds-container::before,
.clouds-container::after {
  content: '🌻';
  position: absolute;
  font-size: 1.6rem;
  opacity: 0;
  animation: floatSunflower 7s ease-in-out infinite;
}

.clouds-container::before {
  left: 28%;
  bottom: 0;
  animation-delay: 0s;
}

.clouds-container::after {
  left: 72%;
  bottom: 0;
  animation-delay: 3.5s;
}

@keyframes floatSunflower {
  0% {
    bottom: -5%;
    opacity: 0;
    transform: rotate(0deg) scale(0.7);
  }
  15% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.5;
    transform: rotate(15deg) scale(1);
  }
  85% {
    opacity: 0.2;
  }
  100% {
    bottom: 95%;
    opacity: 0;
    transform: rotate(-10deg) scale(0.8);
  }
}

/* ====== SCROLLING TICKER ====== */
.ticker-wrapper {
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  margin-bottom: 20px;
}

.ticker-text {
  display: inline-block;
  animation: ticker 25s linear infinite;
  font-size: 1.2rem;
  font-weight: bold;
  color: #e65100;
}

@keyframes ticker {
  0% {
    transform: translateX(30vw);
  }
  100% {
    transform: translateX(-100%);
  }
}


#danceModal .ratio,
#comedyModal .ratio,
#upbeatMusicModal .ratio {
  overflow: hidden;
  border-radius: var(--radius-nav);
}

#wordCloudModal img {
  width: 100%;
  max-height: min(70vh, 46rem);
  object-fit: contain;
}

#affirmationsOverlay .poetry-text {
  color: white;
}

#affirmationsOverlay .poetry-scroll {
  overflow: hidden;
  height: clamp(220px, 50vh, 300px);
  width: 100%;
}

#affirmationsOverlay .poetry-text {
  color: white;
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  line-height: 1.8;
  font-style: italic;
  animation: scrollPoem 35s linear infinite;
  margin: 0;
}

@keyframes scrollPoem {
  0%   { transform: translateY(300px); }
  100% { transform: translateY(-100%); }
}