* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

:root {
  --text-color: white;
  --bg-color: black;
  --text-color-hover: white;
  --stroke-color: rgba(207, 118, 104, 0.5);
  --surface-color: rgba(0, 0, 0, 0.05);
  --surface-color-hover: rgba(207, 118, 104, 0.3);
  --highlight-color: rgba(207, 118, 104, 0.1);
  --switch-bg-url: url('./assets/radio.png');
}

.party {
  --text-color: lightblue;
  --bg-color: black;
  --text-color-hover: rgb(213, 150, 255);
  --stroke-color: rgb(173, 216, 230, 0.8);
  --surface-color: rgba(255, 255, 255, 0.05);
  --surface-color-hover: rgba(255, 255, 255, 0.3);
  --highlight-color: rgba(173, 216, 230, 0.2);
  --switch-bg-url: url('./assets/headphone.png');
}

body {
  height: 100vh;
  background-color: var(--bg-color);
}

body * {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
}

#video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
#video-container::-webkit-scrollbar {
  width: 0px; /* Hide horizontal scrollbar */
  height: 0px; /* Hide vertical scrollbar */
}

/*Do not use margin top, it will add an useless scrollbar and blank space at the end of the page.*/
#container {
  width: 100%;
  max-width: 588px;
  margin: 0px auto 0px;
  padding: 56px 24px 0px;
}

#container ul img {
  width: 24px;
  height: 24px;
  margin-left: 5px;
}

#profile {
  text-align: center;
  padding: 24px;
}
  
#profile img {
  width: 112px;
}
  
#profile h1 {
  font-weight: 500;
  line-height: 1.5;
  margin-top: 8px;
}

#switch-container {
  position: relative;
  display: flex;
  margin: 8px auto;
}

#switch {
  position: absolute;
  width: 64px;
  right: 0px;
}

#switch button {
  width: 32px;
  height: 32px;
  background: transparent var(--switch-bg-url) no-repeat center/cover;
  border: 0;
  border-radius: 50%;

  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  transform: translateY(-50%);

  animation: slide-back 0.2s;
}

.party #switch button {
  animation: slide-in 0.2s forwards;
}

#switch button:hover {
  outline: 8px solid var(--highlight-color);
}

#switch span {
  display: block;
  width: 64px;
  height: 24px;
  background: var(--surface-color);
  border: 1px solid var(--stroke-color);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 9999px;
}

/* links */
.playlists {
  list-style: none;

  display: flex;
  flex-direction: column;
  gap: 16px;

  padding: 24px 0px 0px;
  
  width: 100%;
  max-height: 580px;
  overflow-y: hidden;
}
/*
.simplebar-content {
  list-style: none;

  display: flex;
  flex-direction: column;
  gap: 16px;

  padding: 24px 0px 0px;

  max-height: 580px;
  overflow: auto;
}
*/
/* Style the SimpleBar scrollbar thumb */
/*
.simplebar-track.simplebar-horizontal .simplebar-thumb {
  background-color: rgba(0, 0, 0, 0.05);
  width: 5px;
  max-height: 20px;
}

.simplebar-track.simplebar-vertical .simplebar-thumb {
  background-color: rgba(0, 0, 0, 0.05);
  width: 6px;
  max-height: 50px;
}

.simplebar-track.simplebar-corner {
  background-color: rgba(0, 0, 0, 0.05);
}
*/

ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 16px 24px;

  background: var(--surface-color);
  border: 1px solid var(--stroke-color);
  border-radius: 8px;

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  text-decoration: none;
  font-weight: 500;

  transition: background 0.2s;
}

ul li a:hover {
  background: var(--surface-color-hover);
  border: 1.5px solid #CF7568;
  color: var(--text-color-hover);
}

#ncs a img {
  width: 45px;
  height: 26px;
  margin-top: 4px;
}

.party-border {
  animation: border-animation 0.5s infinite alternate;
}

footer {
  padding: 48px 0px 24px;
  text-align: center;
  font-size: 14px;
}

/* media queries */
@media (max-width: 1000px) {
  h1 {
    font-size: 20px;
  }

  ul {
    max-height: 380px;
  }
  .playlists {
    max-height: 500px;
    overflow-y: auto;
  }
}

/* animation */
@keyframes slide-in {
  from {
    left: 0;
  }
  to {
    left: 50%;
  }
}

@keyframes slide-back {
  from {
    left: 50%;
  }
  to {
    left: 0;
  }
}

@keyframes border-animation {
  0% {
    border-color: #ff148f;
  }
  25% {
    border-color: yellow;
  }
  50% {
    border-color: #0dd231;
  }
  75% {
    border-color: rgb(0, 255, 242);
  }
  100% {
    border-color: #be3fd0;
  }
}