@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Hina+Mincho&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Playfair Display', 'Hina Mincho', serif;
    background-color: #000000;
}

#console {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    max-height: 100%;
    overflow-y: scroll;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-family: monospace;
    font-size :1em;
    z-index: 1001;
    display: none;
    flex-direction: column;
}

#console-log {
  position: absolute;
  bottom: 2em;
  padding: 1em;
    display: flex;
    flex-direction: column;
}

#console input {
  position: fixed;
  bottom: 0;
    width: 100%;
    padding: 10px;
    border: none;
    outline: none;
    background-color: #22222200;
    color: #ffffff;
    font-family: monospace;
    font-size: 14px;
}

#loading-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 50;
    color: #FFF;
}

#lyrics-container {
    bottom: 2em;
    width: 100%;
    text-align: center;
    color: #FFFFFF;
    position: fixed;
    font-size: 2em;
    z-index: 100;
    pointer-events: none;
  }

  .lyric-line {
    opacity: 0;
    transition: opacity 0.2s linear; /* CSS transition for smooth fade */
  }

  .lyric-line.active {
    opacity: 1;
  }

  #popups-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000; 
    pointer-events: none;
    transition: all 0.5s ease-in-out;
  }

.popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  background: rgb(0, 0, 0);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.31);
  padding: 1em;
  z-index: 60;
  transition: all 0.5s cubic-bezier(0, 0, 0, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1em;
  font-size: 1.5em;
  color: #FFFFFF;
}

.popup ul {
  text-align: left;
  margin: 0;
  padding: 0;
  font-size: 0.8em;
  list-style-type: disc;
  padding-left: 1.5em;
}

.popup hr {
  width: 50%;
  border: 0;
  margin: 0.5em auto;
  height: 0.05em;
  background-color: rgba(255, 255, 255, 0.31);
}

.popup button {
  font-family: 'Playfair Display', serif;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.31);
  padding: 0.5em 1em;
  font-size: 1em;
  color: #FFFFFF;
  cursor: pointer;
}

@keyframes hueShift {
  0% {
    filter: hue-rotate(0deg) saturate(0.75);
  }

  50% {
    filter: hue-rotate(360deg) saturate(0.75);
  }

  100% {
    filter: hue-rotate(0deg) saturate(0.75);
  }
}

#main-container {
  position: relative;
  background-color: #060b18;
  animation: hueShift 120s linear infinite;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#canvas{
  width: 100vw;
  height: 100vh;
    margin:0 auto;
    display:block;
    filter:url('#shadowed-goo');
}

.float-text {
  position: relative;
  display: inline-block;
  /* No left/right/top/bottom set, so it stays in flow */
}

#selection-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  gap: 2em;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: start;
  flex-direction: column;
  padding: 5em;
  overflow: hidden;
}

#dialogue {
  color: rgb(255, 255, 255);
  font-size: 4em;
  width: 100%;
  text-align: center;
  text-wrap: nowrap;
  overflow-x: scroll;
  z-index: 10;
  pointer-events: none;
  user-select: none;
  filter:url('#shadowed-goo');
  opacity: 1;
  transition: all 1s ease-in-out;
  font-family: 'Playfair Display', serif;
  scrollbar-width: none;
  text-shadow: 2px 2px 20px rgba(0,0,0,0.62);
}

.selection {
  font-size: 2.5em; 
  color: #FFF;
  text-align: center;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0px 0px 10px rgba(0,0,0,1);
  font-size: 0em;
  transition: all 0.75s ease-in-out;
}

.selection:hover {
  font-size: 3em;
  text-shadow: 0px 0px 20px rgba(0,0,0,1);
  cursor: pointer;
}

svg{
  display:none;
}

/* html, body { height: 100%; }
body { margin: 0; background: #000; }
canvas { display: block; }

.waves { position: absolute; left: 0; top: 0; right: 0; bottom: 0; width: 100%; height: 100%; z-index: 2;}

svg {
  height: 100vh;
  width: 100vw;
}

path {
  fill: none;
  stroke: #172b5f6e;
  stroke-width: 0.5px;
  z-index: 1;
} */

#music-controller-overlay {
  position: absolute;
  top: 50%;
  left: -26em;
  transform: translateY(-50%);
  width: 25em;
  height: auto;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.31);
  padding: 1em;
  z-index: 10;
  transition: all 0.2s ease-in-out;
}

#music-info-container {
  color: #FFF;
  font: 2em;
}

#track-name {
  font-size: 2em;
  margin-bottom: 0.1em;
}

#music-controller-trigger {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: -100%;
  left: -2em;
  width: 45em;
  height: 200vh;
  background-color: #ff000000;
  z-index: 1;
  transition: all 2s;
}

#music-controller {
    position: relative;
    bottom: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0);
    color: white;
    transition: all 0.23s ease-in-out;
}

#seek-slider {
  width: 100%;
  margin: 2em 0 0.5em 0;
  -webkit-appearance: none; 
  -moz-appearance: none; 
  appearance: none; 
  background: transparent; 
  cursor: pointer;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.418);
  border-radius: 16px;
  height: 0.5em;
  transition: all 0.1s ease-in-out;
}

#seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: #e0e0e0; /* Thumb color */
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transition: all 0.1s ease-in-out;
}

#seek-slider::-webkit-slider-thumb:hover {
  background: #ffffff;
  transform: scale(1.2);
}


#track-duration-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

#play-pause {
  width: 5em;
  height: 5em;
  border-radius: 50%;
  margin: 1em auto;
  border: #ffffff solid 2px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em;
  color: #ffffff;
  opacity: 0.6;
  transition: all 0.1s ease-in-out;
  cursor: pointer;
}

#play-pause:hover {
  transform: scale(1.1);
  opacity: 1;
}

#play-pause i {
  font-size: 1.5em;
}

#music-queue-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  opacity: 0.75;
}

#music-queue-container p {
  font-size: 1em;
}

#music-queue {
  border: #ffffff 1px solid;
  border-radius: 16px;
  padding: 0 1em;
  margin: 1em 0;
  max-height: 28em;
  overflow-y: scroll;
  scrollbar-width: none;
}

#music-queue::-webkit-scrollbar {
  display: none; 
}

#music-queue-container {
  color: #FFFFFF;
}

.queue-item {
  margin: 1em 0;
}

.queue-item p {
 font-size: 0.75em;
}

.queue-divider {
  width: 100%;
  height: 0.01em;
  background-color: #ffffff;
}

#time-override-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 1em 0;
  opacity: 0.5;
}

#time-override-text {
  color: #FFFFFF;
}

.timeOverrideBtn {
  background: rgba(255, 255, 255, 0.014);
  border-radius: 24px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.31);
  padding: 1em;
  font-family: Playfair;
  color: #ffffff;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
}

.timeOverrideBtn:hover {
  transform: scale(1.1);
  background-color: #ffffff71;
  color: #000000;
}

#chat-container {
  position: absolute;
  top: 50%;
  right: -40em;
  width: 25em;
  height: 80%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.31);
  padding: 1em;
  z-index: 10;
  transition: all 0.2s ease-in-out;
}

#chattable {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
}

#chat-trigger {
  position: absolute;
  top: -100%;
  right: -2em;
  width: 50em;
  height: 200vh;
  background-color: #ff000000;
  transition: all 2s;
}

@media only screen and (max-width: 720px) {
  #dialogue {
    font-size: 3em;
  }

  .selection {
  font-size: 2em; 
  }

  .selection:hover {
  font-size: 2.5em;
}

  #selection-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  gap: 2em;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: start;
  flex-direction: column;
  padding: 1em;
  overflow: hidden;
}

  #music-controller-overlay {
    transform: scale(0.8) translateY(-60%) translateX(-15%);
  }

  #music-controller-trigger {
  transform: translateX(10%) translateY(50%);
}

#chat-container {
    transform: scale(0.8) translateY(-75%) translateX(15%);
  }

  #chat-trigger {
    transform: translateX(-10%);
  }

.popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  background: rgb(0, 0, 0);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.31);
  padding: 1em;
  z-index: 60;
  transition: all 0.5s cubic-bezier(0, 0, 0, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1em;
  font-size: 1.5em;
  color: #FFFFFF;
  width: 100%;
    }
    
}
