/* Prevent scrolling on this page */
html, body {
  overflow: hidden;
}

/* Panel container */
.panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 70%; /* panel takes ~70% of viewport height */
  background: rgba(20, 10, 40, 0.2); /* semi-transparent dark panel */
  border: 2px solid #6840f4;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(104, 64, 244, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2; /* above stars and background */

  backdrop-filter: blur(3px); /* adjust blur intensity */
  -webkit-backdrop-filter: blur(3px); /* for Safari */
}

/* Panel title bar */
.panel-title {
  background: rgba(104, 64, 244, 0.85);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  padding: 15px 20px;
  text-align: center;
  border-bottom: 2px solid #6840f4;
}

/* Panel content */
.panel-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ccc;
}

/* Nav buttons inside panel */
.nav-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px; /* space between buttons */
}

.music-button, .youtube-button {
  padding: 12px 25px;
  font-size: 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.music-button {
  background: rgba(178, 121, 255, 0.15);
  border: 1px solid rgba(178, 121, 255, 0.5);
  color: white;
}

.music-button:hover {
  background: rgba(178, 121, 255, 0.35);
  box-shadow: 0 0 25px rgba(178, 121, 255, 0.7);
  transform: translateY(-3px);
}

.youtube-button {
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 0, 0, 0.5);
  color: white;
}

.youtube-button:hover {
  background: rgba(255, 0, 0, 0.35);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.7);
  transform: translateY(-3px);
}

/* Close button in top-right corner of panel */
.panel-close {
  position: fixed; /* fixed so it can be dynamically positioned */
  background: rgba(0,0,0,0.4);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  z-index: 10; /* above stars and panel */
  transition: all 0.2s ease;
}

.panel-close:hover {
  color: #ff4f4f;
  background: rgba(0,0,0,0.7);
  transform: scale(1.2);
}

