@font-face {
  src: url(../fonts/ABCDiatypeEdu-Regular.woff);
  font-family: "font1";
}

body {
  overflow-x: hidden;
  box-sizing: border-box;
}

.whitescreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: white;
  z-index: 1000;
  opacity: 1;
  animation: whitescreen 1.5s ease-in-out 0.5s forwards;
}

@keyframes whitescreen {
  to {
    opacity: 0;
  }
}

.arrow-down {
  position: fixed;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 85%;
  left: 50%;
  width: 5%;
  height: 5%;
  /* background-color: white; */
  color: rgba(79, 106, 126, 0.85);
  border-radius: 50%;
  font-family: font1;
  font-size: 1.3rem;
  z-index: 100;
  transform: translateY(-50%);
  animation: move-arrow 0.8s infinite alternate;
  transition: opacity 1s ease-in-out;
}

.arrow-down-invisible {
  opacity: 0;
}

@keyframes move-arrow {
  to {
    transform: translateY(-5%);
  }
}

.popup-cata,
#nb_de_catastrophe {
  font-family: font1;
}

.video-container {
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  object-position: center;
  z-index: -10;
}

.video-container-visible {
  opacity: 1;
  cursor: pointer;
  z-index: 10;
}

.popupnext {
  display: none;
  top: 52%;
  left: 50%;
  height: 25%;
  width: 8%;
  color: rgba(255, 255, 255, 0);
  background-color: rgba(255, 255, 255, 0);
  transform: translate(-50%, -50%);
}

.popupnext-visible {
  display: block;
  opacity: 1;
  z-index: 10;
  cursor: pointer;
}

.container-video {
  cursor: none;
  height: 35000vh;
  height: 3500dvh;
}

.video-game {
  opacity: 1;
  position: relative;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
}

#video-odd {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  min-height: 100vh;
}

.container-popup-cata {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  opacity: 0;
  z-index: -1;
  transform: scale(80%);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  mix-blend-mode: color-burn;
}
.cata1 {
  color: rgb(0, 0, 0);
  mix-blend-mode: darken;
}
.cata2 {
  color: rgb(0, 0, 0);
  mix-blend-mode: darken;
}
.cata3 {
  color: rgb(32, 27, 27);
}
.cata4 {
  color: rgb(62, 49, 49);
}
.cata5 {
  color: rgb(93, 62, 62);
}
.cata6 {
  color: rgb(128, 66, 66);
}
.cata7 {
  color: rgb(157, 61, 61);
}
.cata8 {
  mix-blend-mode: hard-light;
  color: rgb(196, 144, 144);
}
.cata9 {
  mix-blend-mode: hard-light;
  color: rgb(208, 129, 144);
}
.cata10 {
  mix-blend-mode: hard-light;
  color: rgb(227, 17, 66);
}

.popup-cata {
  /* color: rgb(0, 0, 0); */
  font-family: font1;
  font-feature-settings: "ss02";
  font-size: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20%;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  transform: translateY(0);
  animation: wobble 1s ease-in-out infinite alternate;
}

.container-popup-cata.popup-cata-visible {
  transform: scale(100%);
  opacity: 1;
  z-index: 20;
}

@keyframes wobble {
  to {
    transform: translateY(-1%);
  }
}

#nb_de_catastrophe {
  position: absolute;
  background-color: #fff;
  padding: 1rem;
  top: 1rem;
  left: 1rem;
  width: fit-content;
  z-index: 20;
}

/* ENDSCREEN */

.endscreen {
  position: absolute;
  opacity: 0;
  font-family: font1;
  font-size: 3rem;
  display: none;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: 0 20%;
  box-sizing: border-box;
  /* background-color: rgb(0, 0, 0); */
  color: rgb(167, 0, 0);
  transition: opacity 1s ease-out 0.2s;
  z-index: -1;
  cursor: none;
}

.endscreen p {
  opacity: 0;
  position: absolute;
  text-align: center;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.endscreen p:nth-child(1) {
  animation: appear 4s ease-in-out 2s;
}
.endscreen p:nth-child(2) {
  animation: appear 4s ease-in-out 6s;
}
.endscreen p:nth-child(3) {
  animation: appear 4s ease-in-out 10s;
}
.endscreen p:nth-child(4) {
  animation: appear 4s ease-in-out 14s;
}
.endscreen p:nth-child(5) {
  animation: appear 4s ease-in-out 18s;
}

.endscreen-visible {
  opacity: 1;
  z-index: 1000;
  display: flex;
  /* animation: appear 0.2s ease-out forwards; */
}

@keyframes appear {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 800px) {
  .popup-cata,
  .endscreen {
    padding: 0 10%;
    font-size: 1.6rem;
  }
  .container-video {
    height: 39000vh;
    height: 3900dvh;
  }
}
