/* Vaporwave color palette */
:root {
  --vaporwave-bg: #1e1e3f; /* Dark purple/blue */
  --vaporwave-pink: #ff77ff; /* Bright pink */
  --vaporwave-blue: #00f0ff; /* Bright cyan */
  --vaporwave-yellow: #fff600; /* Neon yellow */
  --vaporwave-grid-lines: #6b00cf; /* Neon purple */
  --vaporwave-font: "Press Start 2P", sans-serif; /* Vaporwave pixelated font */
}

body {
  overflow: hidden;
  background: var(--vaporwave-bg);
  color: var(--vaporwave-blue);
  font-family: var(--vaporwave-font);
  height: 100%;
  width: 100%;
  font-family: "Audiowide", sans-serif;
  color: #FFFFFF;
}

/* Create the iconic vaporwave grid background */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at bottom, var(--vaporwave-bg) 40%, var(--vaporwave-blue) 70%, var(--vaporwave-pink) 90%);
  z-index: 0;
}

body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.7;
  z-index: 0;
}

/* Media player container should appear above the grid */
.media-player-container {
  position: relative;
  z-index: 3;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background to make it stand out */
  border: 2px solid var(--vaporwave-pink);
  border-radius: 10px;
}



html, body {
    margin: 0;
    padding: 0;
    border: 0;
    height: 100%;
    
  }
  
  canvas {
    display: block;
    background: linear-gradient(135deg, var(--vaporwave-pink), var(--vaporwave-blue));
    border: 2px solid #FFFFFF;
    border-radius: 10px;
    z-index: 3;
  }
  
  .call-to-action {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

/*
  body {
    overflow: hidden;
    font-family: "Audiowide", sans-serif;
    color: #FFFFFF;
    background: -moz-radial-gradient(50% 0% 0deg,circle farthest-corner,#05071a,#101152);
    background: -webkit-gradient(radial,50% 59,500,50% 0,40,from(#05071a),to(#101152));
    background-color: #000000;
    color: #FFFFFF;
    height: 100%;
    width: 100%;
}
*/

nav.navigation
{
    position: fixed;
    background-color: #000000;
    width: 100%;
    min-width: 450px;
    vertical-align: middle;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
    padding-right: 64px;
    border-bottom: 1px solid #555555;
    top: 0;
    z-index: 5;
}

.header-title {
    font-family: "Audiowide", sans-serif;
    min-width: 360px;
}

/* Side Panel */
.sidepanel  {
    width: 0;
    position: fixed;
    z-index: -1;
    height: 100%;
    top: 63px;
    left: 0;
    background-color: #000000;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 30px;
    border-right: 1px solid #555555;
  }
  
  .sidepanel a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    display: block;
    transition: 0.3s;
  }
  
  .sidepanel a:hover {
    color: #c0bebe;
  }
  
  .sidepanel .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
  }
  
  .openbtn {
    font-size: 32px;
    cursor: pointer;
    background-color: #111;
    color: white;
    border: none;
  }
  
  .openbtn:hover {
    background-color:#444;
  }
  
  .nav-container {
    position: absolute;
    left: 0;
    height: 62px;
  }
  
  .nav-container {
    display: block;
    height: 60px;
  }
  
  .nav-container .checkbox {
    position: absolute;
    display: block;
    height: 32px;
    width: 32px;
    top: 20px;
    left: 20px;
    z-index: 5;
    opacity: 0;
    cursor: pointer;
  }
  
  .nav-container .hamburger-lines {
    display: block;
    height: 26px;
    width: 32px;
    position: absolute;
    top: 17px;
    left: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .nav-container .hamburger-lines .line {
    display: block;
    height: 4px;
    width: 100%;
    border-radius: 10px;
    background: #ffffff;
  }
  
  .nav-container .hamburger-lines .line1 {
    transform-origin: 0% 0%;
    transition: transform 0.4s ease-in-out;
  }
  
  .nav-container .hamburger-lines .line2 {
    transition: transform 0.2s ease-in-out;
  }
  
  .nav-container .hamburger-lines .line3 {
    transform-origin: 0% 100%;
    transition: transform 0.4s ease-in-out;
  }
  
  .navbar .menu-items {
    padding-top: 120px;
    box-shadow: inset 0 0 2000px rgba(255, 255, 255, .5);
    height: 100vh;
    width: 100%;
    transform: translate(-150%);
    display: flex;
    flex-direction: column;
    margin-left: -40px;
    padding-left: 50px;
    transition: transform 0.5s ease-in-out;
    text-align: center;
  }
  
  .navbar .menu-items li {
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    font-weight: 500;
  }
  
  .logo {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 1.2rem;
    color: #0e2431;
  }
  
  .nav-container input[type="checkbox"]:checked ~ .menu-items {
    transform: translateX(0);
  }
  
  .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
    transform: rotate(45deg);
  }
  
  .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
    transform: scaleY(0);
  }
  
  .nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
    transform: rotate(-45deg);
  }
  
  .nav-container input[type="checkbox"]:checked ~ .logo{
    display: none;
  }

   /*General style */

 .accordion {
    background-color: #000000;
    color: #FFFFFF;
    cursor: pointer;
    padding-top: 8px;
    padding-right: 36px;
    padding-left: 32px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 24px;
    transition: 0.4s;
  }
  
  button {
    display: flex;
    align-items: center;
    justify-content: left;
  }
  
  .active, .accordion:hover {
    background-color: #000000;
  }
  
  .accordion:after {
    position: absolute;
    right: 15px;
    content:"\203A";
    transform: rotate(90deg);
    color: #FFFFFF;
    font-size: 36px;
    font-family: monospace;
  }
  
  .active:after {
    content: "\203A";
    transform: rotate(0deg);
    font-size: 36px;
    font-family: monospace;
  }
  
  .accordian-panel {
    padding: 0 18px;
    background-color: #000000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    font-size: 18px;
  }
  
  .header-banner {
    z-index: 3;
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 62px;
    color: #DDDDDD;
    background-color: #000000;
    border-top: 1px solid #555555;
    text-align:center;
    padding:10px;
    top: 0;
    width: 100%;
  }
  
  .footer-banner {
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 62px;
    color: #DDDDDD;
    background-color: #000000;
    border-top: 1px solid #555555;
    text-align:center;
    padding:10px;
    bottom: 0;
    width: 100%;
    z-index: 3;
  }
  
  .master-container {
    min-height:100%;
    position:relative;
  }

  canvas {
    display: block;
  }


  .backButton {
      position: absolute;
      bottom: 15%;
      left:0;
      right: 256px;
      margin-left: auto;
      margin-right: auto;
      color: #ffffff;
      width: 4rem;
      height: 4rem;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      cursor: pointer;
  }

  .backButton.pointer {
      cursor: pointer;
  }
  
  .leftChevron {
      content: ' ';
      display: inline-block;
      border-bottom: 3px solid #ffffff;
      border-right: 3px solid #ffffff;
      height: 24px;
      width: 24px;
      margin-left: 9px;
      transform: rotate(135deg);
  }

  .nextButton {
    position: absolute;
    bottom: 15%;
    left: 256px;
    right:0;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

.nextButton.pointer {
  cursor: pointer;
}

.rightChevron {
    content: ' ';
    display: inline-block;
    border-bottom: 3px solid #ffffff;
    border-right: 3px solid #ffffff;
    height: 24px;
    width: 24px;
    margin-right: 9px;
    transform: rotate(315deg);
}

.play-triangle {
  width: 0; 
  height: 0; 
  border-top: 15px solid transparent;
  border-bottom:15px solid transparent;
  border-left: 20px solid #FFFFFF;
  margin-left: 6px;
}

.pause-lines {
  width: 16px;
  height: 28px;
  border-right: 4px solid #FFFFFF;
  border-left: 4px solid #FFFFFF;
}

.playButton {
    position: absolute;
    bottom: 15%;
    left:0;
    right:0;
    margin-left: auto;
    margin-right: auto;
    background: #000000;
    color: #ffffff;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #FFFFFF;
    z-index: 3;
}

.playButton.pointer {
  cursor: pointer;
}

.song-info {
  position: absolute;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  height: 100px;
  font-size: 16px;
  top: 10%;
  left:0;
  right:0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  background-color: #00000018;
}

.song-panel {
  position: absolute;
  top: 0;
  right: -270px; /* Hidden by default */
  width: 300px;
  height: 100%;
  background-color: #000000c2;
  transition: right 0.3s ease;
  z-index: 4;
  overflow-y: auto;
}

.song-panel.open {
  right: 0; /* Slide in when open */
}

#panel-content {
  margin-top: 100px;
  padding-top: 20px;
  padding-left: 40px;
  color: white;
}

/* Style for each song's details */
.song-details {
  margin-bottom: 20px;
}

.song-thumbnail {
  width: 64px;
  height: 64px;
  margin-right: 10px;
  object-fit: cover;
  display: inline-block; /* Ensures proper alignment */
  cursor: pointer;
}

.song-title, .song-artist {
  font-weight: bold;
  white-space: nowrap;         /* Prevent text from wrapping */
  overflow: hidden;            /* Hide overflowed text */
  text-overflow: ellipsis;     /* Add ellipsis for overflowed text */
  max-width: 200px;            /* Adjust this value based on the available width */
}

.song-text {
  font-family: 'Courier New', Courier, monospace;
  display: inline-block;
  vertical-align: top;
  width: calc(100% - 74px); /* Ensures space for the thumbnail */
}

.song-panel.shrunk {
  right: -270px; /* Shrink panel */
}
  /* Mobile-friendly button to shrink/expand the panel */
  .toggle-panel-button {
    position: fixed;
    text-align: center;
    margin-top: 80px;
    width: 30px;
    height: 30px;
    background-color: #00000088;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    z-index: 7;
  }

input[type="range"].input-range--custom {
  -webkit-appearance: none;
  width: 100%;
  margin: 4px 0;
  background-color: #DDDDDD;
  border-radius: 20px 20px 0px 0px;
}

input[type="range"].input-range--custom:focus {
  outline: none;
}

input[type="range"].input-range--custom::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
}

input[type="range"].input-range--custom:after {
  width: 20%;
  height: 4px;
  background-color: #2c30f8;
}

input[type="range"].input-range--custom::-webkit-slider-thumb {
  height: 16px;
  width: 16px;
  border-radius: 15px;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -5.5px;
  background: #000000;
  border: 2px solid #ffffff;
  box-sizing: border-box;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.15);
}

#play-button, #next-button, #back-button {
  background: #000;
  border: 2px solid var(--vaporwave-blue);
  color: var(--vaporwave-blue);
  font-family: var(--vaporwave-font);
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s;
  z-index: 3;
}

#play-button:hover, #next-button:hover, #back-button:hover {
  transform: scale(1.1);
  z-index: 3;
}

#play-symbol {
  fill: var(--vaporwave-blue);
}

#music-progress {
  position: absolute;
  bottom: 75px;
  left: 5%;
  z-index: 3;
  width: 90%;
  height: 5px;
  background: var(--vaporwave-grid-lines);
  outline: none;
  -webkit-appearance: none;
}

#music-progress::-webkit-slider-thumb {
  z-index: 3;
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #000000;
  border-width: 5;
  border-color: var(--vaporwave-blue);
  cursor: pointer;
}

#music-progress::-moz-range-thumb {
  z-index: 3;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #000000;
  border-width: 5;
  border-color: var(--vaporwave-blue);
  cursor: pointer;
}

#music-progress::-webkit-slider-runnable-track {
  z-index: 3;
  background: linear-gradient(to right, var(--vaporwave-blue), #444);
}

.playing {
  color: var(--vaporwave-blue);
  background-color: #000000;
  animation: loading-animation 1.5s infinite; /* Add animation */
}

.paused {
  color: var(--vaporwave-yellow);
  background-color: #000000;
  animation: loading-animation 1.5s infinite; /* Add animation */
}

/* Pagination */
.pagination-section {
  font-family: 'Courier New', monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.pagination-btn {
  font-family: 'Courier New', monospace;
  background-color: #333;
  color: white;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
  margin: 0 10px;
}

.pagination-btn:disabled {
  background-color: #888;
  cursor: not-allowed;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #555;
}

 /* Search Bar */
 .search-section {
  display: flex;
  margin-bottom: 20px;
}

.search-form {
  font-family: 'Courier New', monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.search-input {
  background-color: #000;
  color: white;
  width: 80%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  outline: none;
}

#static-bars-container {
  position: absolute;
  bottom: 75px; /* Same position as the progress bar */
  left: 5%;
  z-index: 3; /* Keep it behind the progress bar */
  width: 90%;
  height: 50px; /* Adjust the height based on how tall you want the bars */
  display: flex; /* Evenly distribute bars */
  align-items: flex-end; /* Align bars to the bottom */
  opacity: 0.5; /* Set opacity to make them transparent */
}

.static-bar {
  background-color: rgba(255, 255, 255, 0.3); /* Default unfilled color */
  margin: 0;
  display: inline-block;
  vertical-align: bottom;
}

.time-display {
  position: absolute;
  top: 155px; /* Adjust this to position it just above the controls */
  width: 100%; /* Full width to ensure it's centered */
  text-align: center;

  font-size: 12px; /* Adjust for size */
  color: #FFFFFF; /* Match your design theme */
}

#elapsed-time, #total-time {
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 1px; /* Optional for styling */
}



@keyframes loading-animation {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5; /* Dim the text midway through */
  }
  100% {
    opacity: 1; /* Restore the text to full visibility */
  }
}

@media only screen and (max-width: 2500px) {
  .time-display {
    top: 152px; /* Adjust this to position it just above the controls */
  }
}

@media only screen and (max-width: 1700px) {
  .time-display {
    top: 155px; /* Adjust this to position it just above the controls */
  }
}

@media only screen and (max-width: 430px) {
  .time-display {
    top: 130px; /* Adjust this to position it just above the controls */
  }
}