#overlay {
   position: fixed;

   height: 100vh;
   width: 100vw;

   background: var(--bl);
   z-index: 50;

   display: grid;
   place-items: center;

   opacity: 0;
   pointer-events: none;
   transition: 1s opacity linear;
}

#overlay[open] {
   opacity: 1;
   pointer-events: all;
}


#overlay-inner {
   max-height: 100vh;

   min-height: 70vh;
   width: 65vw;

   overflow-y: scroll;
   overflow-x: hidden;
   scrollbar-width: none;

   padding-block: 4em;

   .twee-context {
      padding: 1em;
   }

}

#overlay-background {
   position: absolute;
   height: 100%;
   width: 100%;
   pointer-events: none;
   display: grid;
   place-items: center;
}

/* start screen */
#overlay.start-screen>#overlay-inner {
   padding-inline: .25em;
   display: flex;
   flex-direction: column;
   gap: 1em;
   text-align: center;
   min-width: 30vw;
   width: fit-content;

   >div {
      display: grid;
      gap: .5em;
   }

   &::after {
      display: none;
   }
}

.start-screen button::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   background: linear-gradient(var(--pk), var(--pu));
   width: 100%;
   height: 0%;
   border-top: 2px solid var(--pk);
   filter: blur(2px);
   opacity: .5;
   z-index: -1;
   transition: 3s ease;
}

.start-screen button:hover,
.start-screen button:focus-visible {
   box-shadow: var(--pkShd);
   text-shadow: var(--pkText);
   outline: none;

   &::after {
      transition: 5s ease;
      box-shadow: var(--pkShd);
      height: 100%;
   }
}


@keyframes pulse {
   0% {
      opacity: 1;
   }

   50% {
      opacity: .2;
   }

   100% {
      opacity: 1;
   }
}


#holder-screen {

   --col: 12;
   --row: 5;

   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;

   display: grid;
   grid-template-columns: repeat(var(--col), 1fr);
   place-items: center;

   gap: 2em;
   padding: 2em;

   --w: calc((100vw - 2em) / var(--col));
   --h: calc((100vh - 2em) / var(--row));

   background-size: var(--w) var(--h);
   background-position: 1em 1em;

   background-image:
      linear-gradient(to right, var(--dg) 2px, transparent 2px),
      linear-gradient(to bottom, var(--dg) 2px, transparent 2px);


   --hl: var(--pk);
   text-shadow: var(--pkText);
   
      animation: appear 8s forwards;

   .gen-cell {

      box-shadow: 0 0 .75em .25em var(--dg) inset, var(--pkShd);

      &::after {
         font-size: .8rem;
      }

      &:hover {
         box-shadow: 0 0 .75em .25em var(--dg) inset, 0 0 .5em .1em var(--hl);
      }
   }

   &::after {
      content: '';
      position: absolute;
      height: 100%;
      width: 100%;
      z-index: 20;
      box-shadow: 0 0 10em 5em var(--bl) inset;
      pointer-events: none;
   }
}




#mobile-warning {
   display: none;
}

html.mobile #mobile-warning {
   display: flex;
   flex-direction: column;
   font-size: 1.2rem;
}


a.scene-skip {
   position: fixed;
   display: flex;
   gap: .5em;
   opacity: .5;
   right: -5em;
   bottom: .5em;
   width: max-content;

   &:hover {
      opacity: 1;
      right: 1em;
   }

}

/* backgrounds*/
#holder-background {
   height: 110%;
   width: 80%;
   box-shadow: 0 0 2em var(--pk) inset, 0 0 2em var(--pk);
   animation: pulse 5s ease-in-out infinite;
}

#nina-room {
   --b: .3rem;
   --bg: var(--bl);
   --r: var(--dr);


   z-index: -3;
   width: 100%;
   height: 100%;

   &::after,
   &::before {
      content: '';
      position: absolute;
      background-color: var(--r);

      box-shadow: 0 0 1em 1em var(--bg);
   }

   &::after {
      height: var(--b);
      width: 100%;
      top: 5vh
   }

   &::before {
      height: 100%;
      width: var(--b);
      left: 5vw;
   }

   span {
      position: absolute;
      line-height: 3rem;
      font-size: 3rem;
      color: var(--r);
      top: 3vh;
      left: 4.2vw;

      box-shadow: 0 0 .25em .25em var(--bg);

      background-color: var(--bg);

      z-index: 2;
   }
}

#med-lights {
   display: flex;
   position: absolute;
   top: 0;
   padding: 2em 10vw;
   width: 100%;
   justify-content: space-between;

   --cl: var(--sc);
}

.light {
   width: 2em;
   height: .2em;
   background-color: white;
   border-radius: 1em;
   box-shadow: 0 0 1em .5em var(--cl);
   display: flex;
   justify-content: center;
   opacity: .5;

   &::after {
      content: '';
      top: 1em;
      position: absolute;
      height: 70vh;
      width: 20vh;
      border-radius: 100%;
      background: linear-gradient(var(--cl) 00%, transparent 60%);
      filter: blur(5px);
   }

}

#top-glow {
   position: absolute;
   top: 10vh;
   width: 25vw;
   box-shadow: 0 0 25vw 3vw var(--pk);
}