@import url("https://fonts.googleapis.com/css2?family=Chela+One&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
  font-family: inherit;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: #ffde90;
  font-family: "Chela One", system-ui;
  font-weight: 400;
  font-style: normal;
}
main {
  position: relative;
}

.canvas-container {
  height: 100vh;
  width: 100%;
  z-index: 0;
}

/* Fade in effects */
.scene-hidden {
  opacity: 0;
  transition: opacity 2s;
}
.text-hidden {
  opacity: 0;
  transition: opacity 0.5s;
}
.visible {
  opacity: 1;
}

/* Texts */
p {
  pointer-events: none;
  color: #b93e53;
  position: absolute;
  z-index: 2;
}

.instructions-text {
  font-size: 1.65rem;
  line-height: 1.2;
  left: 3rem;
  top: 3rem;
}
.instructions-text--mobile {
  display: none;
}
.instructions-text-2 {
  font-size: 1.2rem;
  line-height: 1.2;
  left: 3rem;
  top: 5.2rem;
  max-width: 35ch;
}

.footer-text {
  font-size: 0.875rem;
  bottom: 2rem;
  right: 2rem;
}

a {
  color: inherit;
  pointer-events: auto;
  transition: all 0.2s ease-in-out;
}
a:hover {
  font-size: 1rem;
}

@media (max-width: 600px) {
  .canvas-container {
    height: 100dvh;
  }

  .instructions-text {
    display: none;
  }
  .instructions-text--mobile {
    display: block;
    font-size: 1.4rem;
    left: 1.7rem;
    top: 1.3rem;
  }
  .instructions-text-2 {
    font-size: 1.1rem;
    line-height: 1.15;
    left: 1.7rem;
    top: 3.2rem;
    max-width: 33ch;
  }
  .footer-text {
    bottom: 1rem;
    right: 1.3rem;
    color: #caa06c;
  }
}
