:root {
  touch-action: pan-x pan-y;
  height: 100%;
  color-scheme: light only;
}

@font-face {
  font-family: 'Simplon BP Mono';
  src: url('../fonts/simplon/SimplonBPMono-Regular.eot');
  src: url('../fonts/simplon/SimplonBPMono-Regular.eot%3F') format('embedded-opentype'),
    url('../fonts/simplon/SimplonBPMono-Regular.woff2') format('woff2'),
    url('../fonts/simplon/SimplonBPMono-Regular.woff') format('woff'),
    url('../fonts/simplon/SimplonBPMono-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Simplon BP Mono';
  overflow: hidden;
  color-scheme: light only;
  background-color: white;
}


canvas {
  position: fixed;
  top: 0;
  left: 0;
  outline: none;
}

#overlay {
  position: absolute;
  display: flex;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  color: black;
  opacity: 1;
  transition: opacity 0.4s ease-in-out, transform 0.8s;
  transition-delay: 0.6s, 0.5s;
}

#overlay.hide {
  /* opacity: 0; */
  transition: color 0.6s;
  color: black;
  /* transition-delay: 0.2s, 0.2s; */
  /* transform: translateY(80px); */
}

.sphereSnap > #overlay{
  opacity: 1;
}
.sphereSnap > #overlay.hide {
  transform: none;
}

@media (max-width: 900px) {
  .sphereSnap > #overlayLinks{
    visibility: hidden;
  }
}

.sphereSnap > #overlayLinks.hover > a{
  box-shadow: none;
}

.sphereSnap > #overlayLinks.hover{
  color: white;
}


#overlay::after {
  content: '';
  box-shadow: inset 0px 120px 100px -50px #fff, inset 0px -120px 100px -50px #fff;
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}

#overlay.fog::after {
  opacity: 1;
}

#overlay.hover {
  color: white;
}

#LLogo {
  width: 22vmin;
  height: auto;
  box-shadow: 0px 10px 20px 20px rgba(255, 255, 255, 0.789),
    inset 0 0 10px 20px rgba(255, 255, 255, 0.813);
  /* filter: drop-shadow(0px 0px 10px rgb(255, 255, 255)); */
  color-scheme: light only;
}

#overlay.hover > #LLogo {
  box-shadow: none;
}

#overlayLinks {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-self: center;
  gap: 32px;
  margin-top: 36px;
  z-index: 99;
  /* filter: drop-shadow(0px 0px 10px rgb(255, 255, 255)); */
}

#overlayLinks > a {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  pointer-events: auto;
  box-shadow: 0px 00px 20px 20px rgba(255, 255, 255, 0.789),
    inset 0 0 10px 20px rgba(255, 255, 255, 0.813);
}

#overlay.hover > #overlayLinks > a {
  box-shadow: none;
}

#overlayLinks > a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  #aimkoLogo {
    width: 130px;
    transition: transform 0.8s;
    transition-delay: 0.5s;
  }

  #overlay.hide>#aimkoLogo {
    /* opacity: 0; */
    transition-delay: 2s;
    /* transform: translateY(40px); */
  }

  #overlayLinks {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    width: auto;
    margin-top: 0;
  }

  #overlayLinks > a {
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    pointer-events: auto;
  }

  #overlayLinks > a:hover {
    text-decoration: underline;
  }

  #overlay {
    transition:  opacity 0.4s ease-in-out;
    transition-delay: 0.6s;
  }

  #overlay.hide {
    /* opacity: 0; */
    transition: color 0.6s;
    color: black;
    /* transition-delay: 0.2s, 0.2s; */
    /* transform: translateY(80px); */
  }
}

#pane {
  width: 20rem;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
}

#app {
  opacity: 1;
  transition: opacity 1s ease-in;
  transition-delay: 0s;
  background-color: white;
}

#app.hide {
  opacity: 0;
  transition-delay: 0.0s;
  transition-duration: 0.42s;
  transition-timing-function: ease-in;
}

#app.noPointer{
  pointer-events: none;
}

#tapToView{
  display: block;
  position: absolute;
  bottom: 24px;
  width: auto;
  left: 50vw;
  transform: translateX(-50%);
  color: white;
  text-decoration: none;
  font-size: 14px;
  visibility: hidden;
}

#tapToView.show{
  visibility: visible;
}

