/* Base */
html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #0D1B2A, #1B263B);
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
  color: white;
}

/* Stars */
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 2s infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.3; }
  to   { opacity: 1; }
}


.cloud {
  width: 200px;
  height: 60px;
  background: white;
  border-radius: 40px;
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  animation: float 8s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255,255,255,0.6),
              0 0 40px rgba(255,255,255,0.4),
              0 0 60px rgba(255,255,255,0.2);
  cursor: pointer;
}
.cloud::before {
  content: '';
  position: absolute;
  width: 80px; height: 80px;
  background: white;
  border-radius: 50%;
  top: -40px; left: 20px;
  box-shadow: 0 0 20px rgba(255,255,255,0.6),
              0 0 40px rgba(255,255,255,0.4),
              0 0 60px rgba(255,255,255,0.2);
}
.cloud::after {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  background: white;
  border-radius: 50%;
  top: -60px; right: 20px;
  box-shadow: 0 0 20px rgba(255,255,255,0.6),
              0 0 40px rgba(255,255,255,0.4),
              0 0 60px rgba(255,255,255,0.2);
}
@keyframes float {
  0%,100% { transform: translate(-50%, 0); }
  50%     { transform: translate(-50%, -10px); }
}

/* Raindrops */
.raindrop {
  position: absolute;
  width: 2px;
  height: 15px;
  background: linear-gradient(to bottom, #00B4FF, #0066FF);
  animation: fall 3s linear infinite;
  box-shadow: 0 0 5px #00B4FF,
              0 0 10px #00B4FF,
              0 0 15px #00B4FF;
  filter: blur(1px);
}
@keyframes fall {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* Controls ;) */
.controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 10;
}
.switch, .colorful-button {
  padding: 10px 20px;
  background: rgba(50,50,50,0.6);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}
.switch:hover, .colorful-button:hover {
  background: rgba(255,255,255,0.2);
}
.colorful-button { opacity: 0; transition: opacity 0.5s ease; }
.colorful-button.visible { opacity: 1; }

/* Watermark arpan */
.watermark {
  position: fixed;
  bottom: 20px;
  left: 20px;
  font-size: 18px;
  color: rgba(255,255,255,0.3);
  transform: rotate(-45deg);
  user-select: none;
}


#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    color: pink !important;
    font-family: monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-bar-container {
    text-align: center;
}

.loading-bar {
    font-size: 10px;
    margin-bottom: 10px;
}

.loading-message {
    font-size: 14px;
    color: white;
}

#menu-icon {
  position: fixed;
  top: 16px;
  left: 16px;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s ease;
  animation: pulse 3s infinite ease-in-out;
}
#menu-icon:hover { transform: scale(1.2) rotate(10deg); }
@keyframes pulse {
  0%,100% { transform: scale(1) rotate(0); }
  50%     { transform: scale(1.15) rotate(5deg); }
}

/* Overlay ahh transition*/
#overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background: rgba(15,15,15,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 900;

  display: flex;
  justify-content: center;
  align-items: center;
}
#overlay.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

//* Neon Music Player Style :) */
.music-player {
    width: 300px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5),
                0 0 40px rgba(255, 0, 255, 0.5);
    text-align: center;
    font-family: 'Courier New', monospace;
    color: white;
    animation: pulse 4s infinite alternate;
}

.music-player h2 {
    font-size: 20px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px cyan, 0 0 20px magenta;
}

/* Neon buttons for songs */
.song-option {
    display: block;
    padding: 10px;
    margin: 8px 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.song-option:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px cyan, 0 0 25px magenta;
    transform: scale(1.05);
}

/* Neon glowing animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 15px cyan, 0 0 30px magenta;
    }
    100% {
        box-shadow: 0 0 25px magenta, 0 0 45px cyan;
    }
}

/* Music box controls */
#close-btn {
  position: absolute;
  top: 8px; right: 10px;
  cursor: pointer;
  font-size: 18px;
  color: #aaa;
  background: none;
  border: none;
}
#close-btn:hover { color: #fff; }

.song-option {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  background: rgba(20,20,20,0.8);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  box-shadow: 0 0 8px rgba(0,255,255,0.3);
}
.song-option:hover {
  background: rgba(40,40,40,0.95);
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 0 10px rgba(0,255,255,0.8),
    0 0 20px rgba(255,0,255,0.6),
    0 0 30px rgba(255,255,0,0.5);
}

/* Responsive tweaks , twerk */
@media (max-width: 480px) {
  .cloud { top: 120px; transform: translateX(-50%) scale(0.9); }
  .switch, .colorful-button { padding: 8px 14px; font-size: 14px; }
  #menu-icon { font-size: 26px; top: 12px; left: 12px; }
}/* Base */
html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #0D1B2A, #1B263B);
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
  color: white;
}

/* Stars */
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 2s infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.3; }
  to   { opacity: 1; }
}

/* glowing cloud */
.cloud {
  width: 200px;
  height: 60px;
  background: white;
  border-radius: 40px;
  position: absolute;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  animation: float 8s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255,255,255,0.6),
              0 0 40px rgba(255,255,255,0.4),
              0 0 60px rgba(255,255,255,0.2);
  cursor: pointer;
}
.cloud::before {
  content: '';
  position: absolute;
  width: 80px; height: 80px;
  background: white;
  border-radius: 50%;
  top: -40px; left: 20px;
  box-shadow: 0 0 20px rgba(255,255,255,0.6),
              0 0 40px rgba(255,255,255,0.4),
              0 0 60px rgba(255,255,255,0.2);
}
.cloud::after {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  background: white;
  border-radius: 50%;
  top: -60px; right: 20px;
  box-shadow: 0 0 20px rgba(255,255,255,0.6),
              0 0 40px rgba(255,255,255,0.4),
              0 0 60px rgba(255,255,255,0.2);
}
@keyframes float {
  0%,100% { transform: translate(-50%, 0); }
  50%     { transform: translate(-50%, -10px); }
}

/* Raindrops */
.raindrop {
  position: absolute;
  width: 2px;
  height: 15px;
  background: linear-gradient(to bottom, #00B4FF, #0066FF);
  animation: fall 3s linear infinite;
  box-shadow: 0 0 5px #00B4FF,
              0 0 10px #00B4FF,
              0 0 15px #00B4FF;
  filter: blur(1px);
}
@keyframes fall {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* Controls */
.controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 10;
}
.switch, .colorful-button {
  padding: 10px 20px;
  background: rgba(50,50,50,0.6);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}
.switch:hover, .colorful-button:hover {
  background: rgba(255,255,255,0.2);
}
.colorful-button { opacity: 0; transition: opacity 0.5s ease; }
.colorful-button.visible { opacity: 1; }

/* Watermark */
.watermark {
  position: fixed;
  bottom: 20px;
  left: 20px;
  font-size: 18px;
  color: rgba(255,255,255,0.3);
  transform: rotate(-45deg);
  user-select: none;
}

/* Loading screen (ASCII bar) idea ;)*/
#loading-screen {
  position: fixed;
  inset: 0;
  background: black;
  color: limegreen;
  font-family: monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.loading-bar-container { text-align: center; }
.loading-bar {
  font-size: 12px;           /* adjust bar size here */
  letter-spacing: 1px;
  margin-bottom: 8px;
  white-space: pre;          /* keep ASCII spacing */
}
.loading-message {
  font-size: 14px;
  color: white;
}

/* Music menu trigger (star) */
#menu-icon {
  position: fixed;
  top: 16px;
  left: 16px;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s ease;
  animation: pulse 3s infinite ease-in-out;
}
#menu-icon:hover { transform: scale(1.2) rotate(10deg); }
@keyframes pulse {
  0%,100% { transform: scale(1) rotate(0); }
  50%     { transform: scale(1.15) rotate(5deg); }
}


#overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background: rgba(15,15,15,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 900;

  display: flex;
  justify-content: center;
  align-items: center;
}
#overlay.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Music box */
#music-box {
  background: rgba(20,20,20,0.7);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 20px;
  width: 320px;
  max-width: 92%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  position: relative;
  transform: translateY(20px) scale(0.92);
  filter: blur(6px);
  transition:
    transform 0.45s cubic-bezier(0.16,1,0.3,1) 0.4s,
    filter   0.45s ease 0s,
    opacity  0.45s cubic-bezier(0.16,1,0.3,1) 0.4s,
    box-shadow 0.6s ease 0.9s;
  z-index: 1001;
}
#music-box.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  filter: blur(0);
  box-shadow:
    0 0 20px rgba(0,255,255,0.6),
    0 0 40px rgba(255,0,255,0.4),
    0 0 60px rgba(0,255,128,0.3);
  animation: rgb-glow 8s linear infinite;
}
#music-box.closing {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  filter: blur(6px);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
@keyframes rgb-glow {
  0%   { filter: hue-rotate(0deg) brightness(1.1); }
  50%  { filter: hue-rotate(180deg) brightness(1.2); }
  100% { filter: hue-rotate(360deg) brightness(1.1); }
}

/* Music box controls */
#close-btn {
  position: absolute;
  top: 8px; right: 10px;
  cursor: pointer;
  font-size: 18px;
  color: #aaa;
  background: none;
  border: none;
}
#close-btn:hover { color: #fff; }

.song-option {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  background: rgba(20,20,20,0.8);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  box-shadow: 0 0 8px rgba(0,255,255,0.3);
}
.song-option:hover {
  background: rgba(40,40,40,0.95);
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 0 10px rgba(0,255,255,0.8),
    0 0 20px rgba(255,0,255,0.6),
    0 0 30px rgba(255,255,0,0.5);
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .cloud { top: 120px; transform: translateX(-50%) scale(0.9); }
  .switch, .colorful-button { padding: 8px 14px; font-size: 14px; }
  #menu-icon { font-size: 26px; top: 12px; left: 12px; }
}
/* Notice for my dms */
#song-notice {
  background: rgba(0, 180, 255, 0.2);
  color: #00b4ff;
  padding: 8px 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  font-family: monospace;
  box-shadow: 0 0 8px rgba(0, 180, 255, 0.5);
  animation: pulseNotice 2s infinite alternate;
}

@keyframes pulseNotice {
  0% { box-shadow: 0 0 5px rgba(0,180,255,0.3); }
  100% { box-shadow: 0 0 15px rgba(0,180,255,0.7); }
}
