/* GLOBAL */
body {
  font-family: "Comic Sans MS", Verdana, sans-serif;
  margin: 0;
  display: flex;
  background-color: #2e2e70; /* retro purple base */
  color: #fff;
}

/* SIDEBAR */
.sidebar {
  width: 220px;
  background: #330022;
  padding: 20px;
  height: 100vh;
  box-shadow: 3px 0 20px #ff66ff;
}
.sidebar h2 {
  color: #ffccff;
  text-shadow: 0 0 5px #ff66ff;
}
.sidebar a {
  display: block;
  color: #ff99ff;
  margin: 12px 0;
  text-decoration: none;
}
.sidebar a:hover {
  color: #00ffff;
  text-shadow: 0 0 10px #ff99ff;
}

/* MAIN CONTAINER */
.main {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  width: 100%;
}

/* GENERAL BOX STYLE */
.box {
  background: #660033;
  border: 3px solid #ff66ff;
  padding: 20px;
  box-shadow: 0 0 20px #ff66ff, 0 0 30px #ff99ff inset;
  text-align: center;
  position: relative;
}

/* Welcome Box */
.welcome-box {
  width: 60%; /* almost full width */
  max-width: 1200px; /* adjust as needed */
}
.welcome-box h1 {
  font-size: 22px;
  text-shadow: 0 0 10px #ff66ff;
}
.welcome-box .note {
  font-style: italic;
  color: white;
}

/* Middle Box: Chat + Music */
.middle-box {
  display: flex;
  justify-content: flex-start; /* align chat+CD to left */
  gap: 30px;
  background: #2a1c4d;
  border: 3px solid #ff99ff;
  padding: 20px;
  box-shadow: 0 0 20px #ff66ff, 0 0 30px #ff99ff inset;
  width: 60%;
  max-width: 1200px;
}

/* Chat Box */
.chat-box {
  flex: 2; /* takes 2/3 of middle box */
  min-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;

  position: relative; /* allows top adjustment */
  top: -20px; /* move up by 20px */
}
.chat-box h2 {
  text-shadow: 0 0 5px #ff66ff;
  color: #ffccff;
  position: relative; /* allows top to work */
  top: 0px;     /* + moves it downward */
  right:-10px;}
  
.chat-messages {
  background: #220022;
  padding: 10px;
  height: 200px;
  overflow-y: auto;
  border: 2px solid #ff99ff;
  box-shadow: 0 0 10px #ff66ff inset;
}
.chat-messages p {
  margin: 5px 0;
  color: #ffccff;
}
#chatInput {
  padding: 8px;
  border: 2px solid #ff66ff;
  background: #1c1c4e;
  color: #fff;
}
#chatSend {
  padding: 8px;
  border: 2px solid #ff66ff;
  background: #220022;
  color: #ffccff;
  cursor: pointer;
  box-shadow: 0 0 10px #ff66ff;
}
#chatSend:hover {
  box-shadow: 0 0 15px #ff99ff;
}

 .music-box {
  position: relative; /* parent is now relative */
  width: 100%;        /* or any width you want */
  text-align: center; /* default center, can override */}

.music-box img {
  position: absolute; /* now you can use left/right */
  top: 70px;          /* - go up */
  left: 7px;         /* moves it from left edge of box */
  width: 300px;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 15px #ff66ff;
}
.cd-text {
  margin-top: 330px; /* - go up*/
  color: #ffccff;
  text-shadow: 0 0 5px #ff66ff;
  animation: pulse 2s infinite;
  white-space: nowrap; /* keep text in one line */
}

/* About Box */
.about-box {
  width: 60%;
  max-width: 1200px;
}

/* Pulse animation */
@keyframes pulse {
  0%, 100% { text-shadow: 0 0 5px #ff66ff, 0 0 10px #ff66ff; }
  50% { text-shadow: 0 0 15px #ff66ff, 0 0 25px #ff99ff; }
}