:root {
  --color-button: #4285f4;
  --color-button-hover: #3367d6;
}

* {
  font-family: system-ui, sans-serif;
  text-wrap: pretty;
}

body {
  margin: 0;
  overflow: hidden;
}

a-scene {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
}

.button-wrapper {
  position: absolute;
  bottom: 1rem;
  z-index: 9;
  left: 0;
  display: flex;
  width: 100%;
  flex-flow: column-reverse nowrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

button {
  padding-inline: 1rem;
  height: 42px;
  font-size: 16px;
  display: flex;
  align-items: center;
  border: none;
  border-radius: 4px;
  /* background-color: var(--color-button); */
  color: black;
  cursor: pointer;
  transition: all 0.3s;

  background: linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.55) 100%
    ),
    linear-gradient(
      91.66deg,
      rgba(226, 214, 255, 0.05) 10.39%,
      rgba(181, 76, 197, 0.22) 97.48%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 15.87%,
      #f5fcff 39%,
      rgba(255, 255, 255, 0) 40%
    ),
    linear-gradient(
      180deg,
      rgba(142, 255, 217, 0) 61.54%,
      rgba(165, 255, 237, 0.8) 75%,
      rgba(116, 255, 114, 0) 92.31%
    ),
    linear-gradient(
      180deg,
      #c4c4a2 17.79%,
      #ffffe2 48.08%,
      #c9bb9c 62.02%,
      #5e5e4e 100%
    );

  border: 0.117163px solid rgba(255, 255, 255, 0.8);
  box-shadow: 4.6865px 4.6865px 10.5446px rgba(0, 0, 0, 0.15),
    0px 2.34325px 2.34325px rgba(0, 0, 0, 0.1);
}

button:not(:disabled):hover {
  filter: brightness(1.05);
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.15),
    4.6865px 4.6865px 10.5446px rgba(0, 0, 0, 0.2),
    0px 2.34325px 2.34325px rgba(0, 0, 0, 0.15);
}

button:not(:disabled):active {
  filter: brightness(1.15);
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.18),
    4.6865px 4.6865px 10.5446px rgba(0, 0, 0, 0.23),
    0px 2.34325px 2.34325px rgba(0, 0, 0, 0.18);
}

.visible {
  display: flex;
  animation: fade-in 500ms ease;
}

.invisible {
  display: none !important;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#prev {
  border-radius: 100rem 0 0 100rem;
  border-right: 0.25rem solid white;
}
#next {
  border-radius: 0 100rem 100rem 0;
  border-left: 0.25rem solid white;
}

#video-controls {
  gap: 0.5rem;
}

.play-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  background: linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.1) 100%
    ),
    linear-gradient(180deg, #2d4b4bb5 0%, #5d70708d 100%);
  color: white;
  padding: 1rem;
  z-index: 9999;
  display: grid;
  place-items: center;
}

.play-banner-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.play-banner-content p {
  font-size: 1.3rem;
  text-align: center;
}
.play-banner-content p span {
  display: block;
  font-weight: bold;
}

.play-banner button {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
}

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    linear-gradient(180deg, #2d4b4b 0%, #5d7070 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.splash-content {
  text-align: center;
  color: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 80%;
}

.splash-button {
  margin-top: 1.5rem;
  margin-inline: auto;
  font-weight: 600;
}

.splash-button:not(:disabled):hover {
  background-color: #3367d6;
}

.splash-logo {
  width: 100%;
  aspect-ratio: 449.87 / 71.41;
}

.splash-notice {
  margin-top: 2rem;
  font-size: 0.8rem;
  opacity: 0.8;
}

.objective {
  position: absolute;
  top: -1px;
  left: 1rem;
  right: 1rem;
  height: 2rem;
  background: linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.5) 100%
    ),
    linear-gradient(180deg, #2b5d5d49 0%, #5d707052 100%);
  color: white;
  z-index: 200;
  border-radius: 0 0 0.5rem 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  overflow: clip;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 1rem;
}

.hacking-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    linear-gradient(180deg, #2d4b4b 0%, #5d7070 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.hacking-container {
  position: absolute;
  width: 150vmin;
  aspect-ratio: 1324 / 1536;
}

.hacking-image {
  width: 100%;
  height: 100%;
  transform: translateX(13%);
}

.hacking-output {
  position: absolute;
  width: 28.7%;
  height: 26.1%;
  top: 13.1%;
  left: 41.6%;
  border-radius: 89px 86px 54px 69px;
  padding: 10px 20px;
  transform: skewX(-7deg) rotate(10deg);
  font-size: 2.26vmin;
  padding: 6% 4.5%;
  box-sizing: border-box;
  mix-blend-mode: difference;
  color: #26bd26;
  filter: blur(0.01em);
  text-shadow: 1px 1px 4px #aad7b942;
}

.hacking-output-text {
  font-weight: bold;
}

.hacking-output-text.cursor::after {
  /* blicking cursor */
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 1em;
  transform: translateY(0.2em);
  background-color: currentColor;
  margin-left: 0.2em;
  animation: blink 1s infinite;
  animation-delay: 0.5s;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hacking-output-response {
  color: #ed2579;
  font-weight: bold;
  text-shadow: 1px 1px 4px #f849de42;
  margin-top: 1.5em;
}

.hacking-button {
  position: absolute;
  left: var(--button-x);
  top: var(--button-y);
  width: 8.3%;
  height: 5.4%;
  transform: skewX(-7deg) rotate(10deg);
  background: rgba(255, 255, 255, 0);
  opacity: 0.5;
  border: none;
  cursor: pointer;
  color: transparent;
  border-radius: 89px 94px 71px 81px;
  transition: background 0.15s;
  filter: blur(2px);
}

.hacking-button:not(:disabled):hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

.hacking-button:not(:disabled):active {
  background-color: rgba(255, 255, 255, 0.5) !important;
}
