html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  width: 100%;
  padding: 0;
  margin: 0;
  background-color:black;
}

#qr {
  display: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: black;
  position: fixed;
  z-index: 100000;
  top: 0;
  left: 0;
  background: black url(layout/qr-bg.jpg) center center no-repeat;
  background-size: cover;
}

#qr-code {
  position: absolute;
    bottom: 5vh;
    left: 5vh;
    background: transparent url(layout/qr.png) center center no-repeat;
    background-size: cover;
    height: 20vh;
    width: 20vh;
}

#atlantic {
  position: absolute;
    bottom: 10vh;
    right: 0vh;
    background: transparent url(layout/atlantic.svg) center center no-repeat;
    background-size: contain;
    height: 8vh;
    width: 42vh;
}

#scan{
  position: absolute;
  bottom: 12vh;
  left: 26vh;
  background: transparent url(layout/scan.svg) left center no-repeat;
  background-size: contain;
  height: 6.6vh;
  width: 42vh;

}

#wall {
  position: absolute;
  bottom: 25vh;
  left: 5vh;
  background: transparent url(layout/8thwall.png) left center no-repeat;
  background-size: contain;
  height: 5vh;
  width: 20vh;
}
#loader {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: black;
  position: fixed;
  z-index: 100000;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background: black url(emblem.jpg) center center no-repeat;
  background-size: 40vw;
  transition: opacity 1s, background-size 0.8s, visibility 1s;
}

body.started #loader {
  opacity: 0;
  background-size: 0;
  visibility: hidden;
} 


#loader div {
  display: none;
  position: absolute;
  background-size: 50vw;
  width: 80vw;
  height: 80vw;
  left: 10vw;
  background: transparent url(emblem.jpg) center center no-repeat;
}

#loader canvas {
  transition: transform 0.5s, opacity 0.5s;
  opacity: 1;
  width: 72vw;
  height: 72vw;
  z-index: 10000;
}

body.started #loader canvas {
  transform: scale(1.2);
  opacity: 0;
}
#main {
  height: 100%;
  display: grid;
  grid-auto-flow: row;
  overflow-y: scroll;
  overflow-x: hidden;
  max-width: 100%;
  -ms-overflow-style: none;
  /* Internet Explorer 10+ */
  scrollbar-width: none;
  /* Firefox */
  background-color: black;
  scroll-snap-type: y proximity;
}

#main::-webkit-scrollbar {
  display: none;
  /* Safari and Chrome */
}

#main div {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: transparent;
  position: relative;
  image-rendering: optimizeQuality;
  overflow-x: hidden;
}

#main div video {
  width: 100%;
}

#landing {
  overflow-y: hidden;
}

.pop {
  transition: opacity 0.5s, transform 0.5s;
  transform: translate(0, 8vh);
  opacity: 0;
}

.pop.top {
  transform: translate(0, -8vh);
}

.pop.in {
  transform: translate(0, 0);
  opacity: 1;
}

body.snap .snappable {
  scroll-snap-align: center;
}

#abbey canvas {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

#pre1,
#pre2,
#pre3,
#pre4 {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: black;
  background-position: center center;
  background-repeat: no-repeat;
  position: fixed;
  z-index: 100000;
  top: 0;
  left: 0;
}

#pre1,
#pre3 {
  transition: opacity 1s ease 2s, visibility 1s ease 2s;
}

#pre2,
#pre4 {
  transition: opacity 1s ease 0s, visibility 1s ease 0s;
}

#scroll, #header {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s, visibility 1s;
  pointer-events: none;
}

body.scrolled #scroll, body.scrolled #header {
  opacity: 0;
  visibility: hidden;
}

#tap {
  transition: opacity 1s, visibility 1s;
  opacity: 0;
  visibility: hidden;
}