@import url("https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap");

html,
body {
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: black;
}

* {
  font-family: "Lato", sans-serif;
  /* border: 1px dotted red; */
  box-sizing: border-box;
}

#renderCanvas {
  width: 100%;
  height: 100%;
  touch-action: none;
}

[touch-action="none"] {
  -ms-touch-action: none;
  touch-action: none;
}

[touch-action="auto"] {
  -ms-touch-action: auto;
  touch-action: auto;
}

[touch-action="pan-x"] {
  -ms-touch-action: pan-x;
  touch-action: pan-x;
}

[touch-action="pan-y"] {
  -ms-touch-action: pan-y;
  touch-action: pan-y;
}

[touch-action="pan-x pan-y"],
[touch-action="pan-y pan-x"] {
  -ms-touch-action: pan-x pan-y;
  touch-action: pan-x pan-y;
}

video {
  height: max(100vh, calc(100vw / 1.7777));
  width: max(100vw, calc(100vh * 1.7777));

  filter: blur(0.2vh);
  mix-blend-mode: screen;
  opacity: 0.4;
}

.cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;
}

.glow {
  margin: auto;
  mix-blend-mode: screen;
  opacity: 0.2;

  transition: background-color 1s ease;
}

.gold {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 20%,
    transparent 60%,
    rgba(0, 0, 0, 0.9) 100%
  );
  background-attachment: fixed;
  background-position: center;
  background-size: 100% 100%;
}

.vignette {
  margin: auto;
  background: radial-gradient(rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.7) 70%);
  background-attachment: fixed;
  background-position: center;
  background-size: max(100vw, 100vh) max(100vw, 100vh);
  mix-blend-mode: multiply;
}

button {
  border: 0;
  outline: none;
  cursor: pointer;
  opacity: 0;

  width: 100%;
  height: 100%;
  background: radial-gradient(white, transparent 70%);
  transition: opacity 0.5s ease;
}

button:hover {
  opacity: 0.2;
}

.flex-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.texts {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1em 2em 0 2em;
}

.texts > * {
  padding: 0;
  margin: 0;
  color: white;
  text-align: center;
}

.texts h1 {
  font-weight: 200;
  font-size: 36px;
}

.texts h2 {
  font-weight: 300;
  font-size: 28px;
  margin: 0.2em 0;
}

.texts .short {
  display: none;
}

.texts h3 {
  font-weight: 300;
  font-size: 20px;
}

@media only screen and (max-width: 768px) {
  .texts h1 {
    font-weight: 300;
    font-size: 20px;
  }

  .texts h2,
  .texts h3 {
    display: none;
  }

  .texts .short {
    display: block;
    font-weight: 400;
    font-size: 16px;
    margin-top: 0.2em;
  }
}

.controls {
  width: 10vh;
  height: 10vh;
  margin: -5vh;
  position: absolute;
  top: 50vh;
  border-radius: 50%;
  transition: all 0.5s ease;
}

@media only screen and (min-width: 769px) {
  .controls:hover {
    width: 16vh;
    height: 16vh;
    margin: -8vh;
  }
}

.next {
  right: 5vh;
}

.prev {
  left: 5vh;
  transform: rotate(180deg);
}

.prev::after,
.prev::before,
.next::after,
.next::before {
  content: "";
  width: 100%;
  height: 2%;
  background: linear-gradient(to right, white 0%, transparent 70%);
  position: absolute;
  top: 15%;
  left: -20%;
  transform: rotate(225deg);
}

.prev::before,
.next::before {
  top: 85%;
  transform: rotate(135deg);
}

/* Loading */
#loading {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.lds-roller {
  width: 10vh;
  height: 10vw;
  margin: auto;
}
.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}
.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  margin: -4px 0 0 -4px;
}
.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
  top: 63px;
  left: 63px;
}
.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
  top: 68px;
  left: 56px;
}
.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
  top: 71px;
  left: 48px;
}
.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
  top: 72px;
  left: 40px;
}
.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
  top: 71px;
  left: 32px;
}
.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
  top: 68px;
  left: 24px;
}
.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
  top: 63px;
  left: 17px;
}
.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
  top: 56px;
  left: 12px;
}
@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
