* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Gotham';
}

@font-face {
  font-family: 'Gotham';
  src: url('./fonts/GothamLight.otf');
}

@font-face {
  font-family: 'Hanuman-Thin';
  src: url('./fonts/Hanuman-Thin.ttf');
}

@font-face {
  font-family: 'Hanuman-Bold';
  src: url('./fonts/Hanuman-Regular.ttf');
}

html {
  overscroll-behavior: none;
}

body {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

section {
  width: 100vw;
  height: 100vh;
  display: none;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

p {
  text-align: center;
  height: 0px;
  padding: 50px;
}

#chapter-background {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

#chapter-title {
  position: absolute;
  width: 80%;
  top: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#chapter-title > img {
  width: 100%;
}

#chapter-title > div {
  position: absolute;
  text-align: center;
  color: white;
  width: 70%;
}

h4 {
  font-family: 'Hanuman-Thin';
  font-size: 3.5vw;
  margin-bottom: 5px;
  font-weight: 300;
}

h3 {
  font-family: 'Hanuman-Bold';
  font-size: 4.5vw;
  line-height: 6.5vw;
  font-weight: 700;
}

#button-arrow {
  position: absolute;
  bottom: 25%;
  width: 110px;
  height: 110px;
  cursor: pointer;
  z-index: 2;
}

article {
  opacity: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 200px;
}

.fade-in {
  animation: fade-in 1s 400ms forwards;
}

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

div#scene-wrapper {
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(-100px);
  display: flex;
  align-items: center;
  justify-content: center;
}

div#images-container {
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300vw;
  flex-wrap: wrap;
}

#images-container > img {
  pointer-events: none;
  user-select: none;
}

div.panorama > img {
  height: 100vh;
}

div.layers > img {
  position: absolute;
}

div.mosaic > img {
  max-width: 500px;
  max-height: 500px;
  padding: 40px;
}

#camera {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  object-fit: cover;
}

#audio {
  position: fixed;
  align-self: flex-end;
  object-fit: initial;
  z-index: 20;
  padding: 0 30px 60px 30px;
  pointer-events: none;
}

::cue {
  font-size: 30px;
}

button {
  padding: 15px 30px;
  background: white;
  border: none;
  font-size: 20px;
  border-radius: 100px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

#feedback {
  position: fixed;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#loader {
  margin-bottom: 30px;
  width: 50px;
  padding: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: black;
  --gradients: conic-gradient(#0000 10%, #000),
    linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--gradients);
  mask: var(--gradients);
  -webkit-mask-composite: source-out;
  mask-composite: subtract;
  animation: loader 1s infinite linear;
}

@keyframes loader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

output {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1;
}
