@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: 1; 
}

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;

  /* Always invisible - never shown */
  opacity: 0 !important;
  visibility: visible !important; /* Keep in layout for clickability */
  color: transparent !important;
  background: transparent !important;
  border: none !important;

  /* Clickability - ALWAYS enabled, highest priority */
  cursor: pointer !important;
  pointer-events: auto !important;

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

  /* Stacking - highest z-index to be above everything */
  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;
  }
}

.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);
}

@media screen and (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;
  }
  .home-hero .hero-hr {
    margin-top: -30px;
  }
}


.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 {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.some-playlist > div {
  width: 100%;
}

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

.some-playbutton {
  position: relative;
  width: 100%;
  padding: 1rem 0;
  display: block;
}

.show-row {
  position: relative;
  width: 100%;
  display: block;
  text-align: center;
}

.show-text {
  display: inline-block;
  text-align: center;
  pointer-events: none;
  max-width: 50%;
}

.button-hitbox {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  pointer-events: auto !important;
  cursor: pointer;
  opacity: 0;
}

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

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

div {
  opacity: 0;
}

div.show {
  opacity: 1;
}

p {
  font-size: 1vw;
}

@media screen and (max-width: 1200px) {
  p {
    font-size: 12px;
  }
}

hr {
  opacity: 0;
}

#inner {
  margin-top: -20px;
  margin-bottom: 500px;
  text-align: center;
}

section {
  margin: auto;
  max-width: 100vw;
  box-sizing: border-box;
}

#inner {
  max-width: 100%;
}

.showsClass {
  width: 400px;
  max-width: 100%;
  height: 200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}


.show-text p {
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}


.services-ascii-wrap {
  width: 100%;
  max-width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.services-ascii-wrap .services-ascii {
  font-family: monospace;
  line-height: 4px;
  font-size: 4px;
  color: rgba(255, 255, 255, 0.274);
  max-width: 100%;
}

#services-ascii-art {
  margin: 2rem auto -20rem;
}

@media screen and (max-width: 768px) {
  .services-ascii-wrap .services-ascii {
    font-size: 2px;
    line-height: 2px;
  }
}

@media screen and (max-width: 1200px) {
  .show-text p {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .some-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .show-row {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }
  #inner {
    padding: 0 1rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
  }
}

@media screen and (max-width: 480px) {
  .home-hero .hero-hr {
    width: 100% !important;
    max-width: 100%;
  }
  .showsClass {
    width: 100%;
  }
}
