@import url("../../globals.css");

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  25% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

html {
  background: black !important;
}
body {
  background: transparent !important;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}


canvas[data-engine] {
  background: black !important;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none !important; 
  z-index: -1 !important;
}

canvas[data-engine].vfx-ready {
  opacity: 1;
  pointer-events: none !important; 
  z-index: -1 !important;
}


body > div:not(.crt):not(.buttons-container):not(.navbar) {
  pointer-events: none !important;
}


.button-hitbox,
.shader-button-container button {
  pointer-events: auto !important;
  z-index: 99999 !important;
  position: absolute !important;
}


body.vfx-ready {
  animation: fadeIn 0s ease-in-out 0.1s forwards;
}


h1 {
  opacity: 0; 
}

h2 {
  opacity: 1;
  color: white;
}


hr.shader-hr {
  border: 1px solid white;
  width: 100%;
  margin-top: 14rem;
  opacity: 0;
}


.buttons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: auto;
  pointer-events: none; 
  position: relative;
  z-index: 1;
}


.shader-button-container {
  position: relative;
  width: fit-content;
  height: fit-content;
  margin: 0;
  padding: 0.15em 0.25em; 
  text-align: center;
  line-height: 1;

  opacity: 1; 
  visibility: visible;
  color: white;

  background: transparent;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 1000;

  pointer-events: none;
}


.buttLarge {
  font-size: 25px;
}

.buttSmall {
  font-size: 15px;
}

.buttMedium {
  font-size: 18px;
}

.shader-button-container .button-hitbox,
.shader-button-container button {
  position: absolute !important;
  top: -1rem; 
  bottom: -1rem;
  left: -3rem; 
  right: -3rem;


  opacity: 0 !important;
  visibility: visible !important; 
  color: transparent !important;
  background: transparent !important;
  border: none !important;

  cursor: pointer !important;
  pointer-events: auto !important;

  box-sizing: border-box;
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;

  z-index: 99999 !important;
}

.home-hero {
  margin: auto;
  display: flex;
  width: 80%;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  margin-top: -1rem;
}

@media screen and (max-width: 1550px) {
  .home-hero {
    padding-top: 3rem;
  }
}

#main {
  padding: 30vw 0;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.hero-title {
  font-size: 2rem;
  margin-top: -50px;
  text-align: center;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.203),
    0 0 20px rgba(200, 180, 255, 0);
}

.some-section {
  width: 100%;
  padding: 4rem 2rem;
  margin: 5rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.some-container {
  max-width: 80%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.some-title {
  font-size: clamp(18px, 2vw, 24px);
  color: white;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.2rem;
  width: 100%;
}

.some-playlist {
  width: 180px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.some-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.some-rectangle {
  width: 100px;
  height: 100px;
  background: rgba(128, 128, 128, 0);
  border-radius: 8px;
}

.some-songtitle {
  pointer-events: none;
  margin-top: -55px;
  margin-left: 0;
  padding: 0 0.75rem;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}


.some-playbutton {
  font-size: 5px;
  position: relative;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-left: 100px;
  margin-top: -50px;
}

img {
  width: 100%;
  height: 100%;
  z-index: 5;
  margin: auto;
}

div {
  opacity: 0;
}

div.show {
  opacity: 1;
}

p {
  opacity: 0;
  font-size: 15px;
}

pre:not(.music-ascii-bg) {
  opacity: 0;
  font-size: 15px;
}

hr {
  opacity: 0;
}

#inner {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  align-items: start;
  gap: 3rem 5px; 
  width: 100%;
  margin-top: 2rem;
  margin-bottom: 10rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(0.7rem, 8vw, 1.2rem);
    margin-top: -70px;
    white-space: normal;
    word-wrap: nowrap;
    max-width: 100%;
    padding: 0 0.5rem;
  }
  .home-hero {
    width: 100%;
    max-width: 100vw;
    padding: 1.5rem 1rem 0 1rem;
    box-sizing: border-box;
  }
  #inner {
    grid-template-columns: repeat(1, auto); 
  }
}


#first-playbutton {
  width: 30px;
  height: 30px;
  opacity: 0;
  visibility: visible;

  pointer-events: none;

  z-index: 1000;
  margin-left: 100px;
  margin-top: -150px;
}

#first-hitbox {
  position: absolute;
  top: -2rem;
  bottom: -2rem;
  left: -1rem;
  right: -1rem;

  pointer-events: auto !important;
  cursor: pointer !important;

  opacity: 0 !important;
  background: transparent !important;
  border: none !important;
  visibility: visible !important;

  z-index: 99999 !important;
}

#second-playbutton {
  width: 30px;
  height: 30px;
  opacity: 0;
  visibility: visible;

  pointer-events: none;

  z-index: 1000;
  margin-left: 100px;
  margin-top: -150px;
}

/* Invisible clickable hitbox for the play button */
#second-hitbox {
  position: absolute;
  top: -2rem;
  bottom: -2rem;
  left: -1rem;
  right: -1rem;

  pointer-events: auto !important;
  cursor: pointer !important;

  opacity: 0 !important;
  background: transparent !important;
  border: none !important;
  visibility: visible !important;

  z-index: 99999 !important;
}

#third-playbutton {
  width: 30px;
  height: 30px;
  opacity: 0;
  visibility: visible;

  pointer-events: none;

  z-index: 1000;
  margin-left: 100px;
  margin-top: -150px;
}

/* Invisible clickable hitbox for the play button */
#third-hitbox {
  position: absolute;
  top: -2rem;
  bottom: -2rem;
  left: -1rem;
  right: -1rem;

  pointer-events: auto !important;
  cursor: pointer !important;

  opacity: 0 !important;
  background: transparent !important;
  border: none !important;
  visibility: visible !important;

  z-index: 99999 !important;
}

#fourth-playbutton {
  width: 30px;
  height: 30px;
  opacity: 0;
  visibility: visible;

  pointer-events: none;

  z-index: 1000;
  margin-left: 100px;
  margin-top: -150px;
}

/* Invisible clickable hitbox for the play button */
#fourth-hitbox {
  position: absolute;
  top: -2rem;
  bottom: -2rem;
  left: -1rem;
  right: -1rem;

  pointer-events: auto !important;
  cursor: pointer !important;

  opacity: 0 !important;
  background: transparent !important;
  border: none !important;
  visibility: visible !important;

  z-index: 99999 !important;
}

section {
  margin: auto;
  width: 60%;
  color: white;
}

/* Keep music content above the canvas and above ASCII shaders */
#inner,
section {
  position: relative;
}
#inner {
  z-index: 1;
}

.side-slashes {
  font-size: 500px;
  text-align: center;
  left: 5%;
  position: fixed;
  pointer-events: none;
}


.music-ascii-wrap {
  pointer-events: none;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  padding: 0 1rem 0;
  box-sizing: border-box;
  z-index: -2;
}

.music-ascii-wrap .music-ascii {
  margin: -20rem auto 0;
  font-family: monospace;
  line-height: 10px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.274);
  flex-shrink: 0;
  text-align: left;
  white-space: pre;
}

#eye1-ascii-art {
  margin: -20rem auto 5rem;
}

#eye2-ascii-art {
  margin: -30rem auto 6rem;
  line-height: 7px;
  font-size: 7px;
}

#eye3-ascii-art {
  margin: -20rem auto 15rem;
  line-height: 6px;
  font-size: 6px;
}

/* Hide eye ASCII on mobile – won’t fit */
@media screen and (max-width: 768px) {
  .music-ascii-eye {
    display: none !important;
  }
  .music-ascii-wrap .music-ascii {
    pointer-events: none;
    margin: 0rem auto 0rem;
    font-size: 5px;
    line-height: 5px;
  }
}

#allthemusicnshit {
  margin-bottom: 20rem;
}

@media screen and (max-width: 1440px) {
  #eye1-ascii-art {
    margin: -22rem auto 0rem -4rem;
  }
  #eye3-ascii-art {
    margin: -15rem auto 15rem 10rem;
  }
}

.music-buttons {
  pointer-events: all !important;
  display: block;
  position: absolute;
  width: 200px;
  height: 200px;
}
