/* dream.css */
body {
  margin: 0;
  height: 100vh;
  font-family: 'Playfair Display', serif;
  color: #fff;
  background: url('blueforest.jpg') center/cover no-repeat fixed;
  overflow: hidden;
}

/* Title */
.title {
  font-family: 'Great Vibes', cursive;
  font-size: 3em;
  text-align: center;
  color: #fefcff;
  text-shadow: 0 0 20px #c2a9ff, 0 0 40px #fff1a8;
  margin-top: 30px;
}

/* Scrollable dream box */
.scroll-box {
  background: rgba(0, 0, 40, 0.4);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 20px;
  width: 70%;
  max-height: 300px;
  overflow-y: scroll;
  margin: 40px auto;
  box-shadow: 0 0 20px rgba(255, 255, 180, 0.4);
  transition: 0.3s ease;
}
.scroll-box:hover {
  box-shadow: 0 0 25px #ffee99, 0 0 40px #f8f0ff;
}

/* New entry box */
.new-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
textarea {
  width: 60%;
  height: 100px;
  border-radius: 15px;
  border: none;
  padding: 10px;
  font-family: 'Playfair Display', serif;
  background: rgba(255,255,255,0.15);
  color: white;
  resize: none;
}
button {
  background: linear-gradient(135deg, #fff1a8, #cbb8ff);
  color: #333;
  border: none;
  border-radius: 15px;
  padding: 10px 25px;
  cursor: pointer;
  box-shadow: 0 0 10px #fff8c2;
  font-weight: bold;
  transition: 0.3s;
}
button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px #fff5aa;
}

/* Fog overlay */
.overlay-fog {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 20% 40%, rgba(200,200,255,0.1), transparent 70%),
              radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1), transparent 70%);
  mix-blend-mode: lighten;
  animation: fogMove 25s infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes fogMove {
  0% { transform: translate(0,0); }
  100% { transform: translate(50px, 20px); }
}

/* Floating words */
.floating-words {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 0;
  left: 0;
  z-index: 0;
}
.floating-words span {
  position: absolute;
  font-family: 'Great Vibes', cursive;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 0 10px #aaf, 0 0 20px #fff;
  animation: float 15s infinite ease-in-out;
  opacity: 0.8;
}
.floating-words span:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.floating-words span:nth-child(2) { top: 25%; left: 70%; animation-delay: 2s; }
.floating-words span:nth-child(3) { top: 50%; left: 40%; animation-delay: 4s; }
.floating-words span:nth-child(4) { top: 65%; left: 15%; animation-delay: 6s; }
.floating-words span:nth-child(5) { top: 80%; left: 80%; animation-delay: 8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px) scale(1.1); }
}

/* Sparkles canvas */
#sparkleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}


