
/* 🌅 Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Open Sans', sans-serif;
  background: linear-gradient(to bottom, #0d1b2a, #1b263b, #415a77);
  color: #f0f4f8;
  text-align: center;
  margin: 0;
  padding: 20px;
  overflow-y: scroll;
}
.verse-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.verse {
  position: absolute;
  top: -50px;
  left: calc(10% + 80px * var(--i));
  font-size: 1em;
  color: rgba(255, 255, 255, 0.2);
  animation: fallVerse 12s linear infinite;
  transition: opacity 0.5s ease;
}

.verse:hover {
  opacity: 1;
  color: #fff176;
  text-shadow: 0 0 10px #fff176;
}

@keyframes fallVerse {
  0% { transform: translateY(0); }
  100% { transform: translateY(100vh); }
}
.ai-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 0 10px #fff176;
  z-index: 999;
}

#chatLog {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 10px;
  font-size: 0.9em;
}

/* 🌌 Stars + Sun */
.stars {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('https://www.transparenttextures.com/patterns/stardust.png');
  opacity: 0.2;
  z-index: -1;
  animation: fadeStars 32s ease-in-out forwards;
}

@keyframes fadeStars {
  0% { opacity: 0.4; }
  100% { opacity: 0.1; }
}

.sun {
  width: 100px;
  height: 100px;
  margin: 20px auto;
  background: radial-gradient(circle, #ffeb3b, #fdd835, #fbc02d);
  border-radius: 50%;
  animation: pulseSun 3s infinite ease-in-out;
  box-shadow: 0 0 30px #ffeb3b;
}

@keyframes pulseSun {
  0% { transform: scale(1); box-shadow: 0 0 20px #ffeb3b; }
  50% { transform: scale(1.2); box-shadow: 0 0 40px #fff176; }
  100% { transform: scale(1); box-shadow: 0 0 20px #ffeb3b; }
}

/* 🧭 Page Bar Navigation */
.page-bar {
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 1000;
}

.page-bar button {
  background: #00c9ff;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.page-bar button:hover {
  background: #00796b;
}

/* 🎮 Games Section */
.games-section {
  margin-top: 40px;
  text-align: center;
}

.game-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.game-grid button {
  width: 180px;
  height: 60px;
  font-size: 1em;
  background: #00c9ff;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-grid button:hover {
  background: #fff176;
  color: #0d1b2a;
  box-shadow: 0 0 20px #fff176;
  transform: scale(1.05);
}

/* 🕒 Clock */
#clock {
  font-size: 1.5em;
  animation: fadeInClock 2s ease-in;
}

@keyframes fadeInClock {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 🎨 Artwork Upload */
#artDisplay img {
  position: absolute;
  width: 100px;
  height: 100px;
  animation: float 10s infinite ease-in-out;
  border: 2px solid #fff176;
  box-shadow: 0 0 20px #fff176;
  border-radius: 12px;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

/* 🔐 Auth + 💬 Testimonies */
.auth-section, .testimonies {
  margin-top: 40px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.auth-section input, .testimonies textarea {
  display: block;
  margin: 10px auto;
  padding: 10px;
  width: 80%;
  border-radius: 8px;
  border: none;
}

.auth-section button, .testimonies button {
  width: 50%;
}

/* 🎵 Music Status */
#musicStatus {
  font-style: italic;
  margin-top: 10px;
}

/* 📜 Verse Carousel */
.verse-carousel {
  margin-top: 30px;
  font-size: 1.2em;
  color: #fff;
  animation: fadeVerse 6s infinite;
}

@keyframes fadeVerse {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* 🧘 Animations */
section, header, footer {
  animation: fadeInSection 1.5s ease-in-out;
}

@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 📱 Mobile Responsive */
@media screen and (max-width: 600px) {
  .game-grid {
    flex-direction: column;
    align-items: center;
  }

  .page-bar {
    flex-wrap: wrap;
    gap: 5px;
  }

  button {
    width: 90%;
  }
}

/* 🧱 Footer */
footer {
  padding: 1rem;
  background-color: #b2ebf2;
  margin-top: 40px;
  border-radius: 12px;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom, #0d1b2a, #1b263b, #415a77);
  color: #f0f4f8;
  text-align: center;
  padding: 20px;
}

header {
  margin-bottom: 40px;
  animation: fadeInHeader 2s ease-in-out;
}

h1, h2 {
  color: #fff176;
}

.testimony {
  margin: 30px auto;
  max-width: 700px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.testimony h3 {
  color: #00c9ff;
  margin-bottom: 10px;
}

.testimony p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #f0f4f8;
}

.fade-in {
  animation: fadeInText 2s ease-out;
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInHeader {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

footer {
  margin-top: 40px;
  font-style: italic;
  color: #b2ebf2;
}
.dark-mode {
  background: #0d1b2a;
  color: #f0f4f8;
}
.music-sidebar {
  position: fixed;
  right: 0;
  top: 100px;
  width: 220px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 10px;
  border-radius: 12px 0 0 12px;
  z-index: 999;
}
