/* 
Workaround to avoid native back gesture when scrolling horizontally :
https://github.com/flutter/flutter/issues/152588
*/
html, body {
  overscroll-behavior-x: none;
}

@font-face {
  font-family: "PP Agrandir";
  src: url("/styles/fonts/PPAgrandir-Medium.otf") format("opentype");
}

#__image_picker_web-file-input {
  visibility: hidden;
}

.video-js {
  width: 640px;
  height: 264px;
}

.video-container {
  display: none;
}

/* === Loading screen === */

#loading {
  height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: "PP Agrandir";
  font-style: normal;
  font-weight: 700;

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

#loading-container {
  height: calc(100% - 176px);
  width: calc(100% - 32px);
  padding: 88px 16px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* === Carousel === */

.carousel {
  position: relative;
  width: 100%;
  height: 328px;
  overflow: hidden;
}

.carousel h1 {
  font-size: 28px;
  line-height: 32px;
}

.carousel-content {
  display: flex;
  width: 500%;
  transition: transform 500ms ease-out;
}

.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: carousel-animation 17.5s infinite;
}

.carousel-item img {
  object-fit: cover;
  max-height: 200px;
}

.carousel-item h1 {
  text-align: center;
  max-width: 456px;
}

.carousel-item:nth-child(1) {
  animation-delay: 0s;
}

.carousel-item:nth-child(2) {
  animation-delay: 3.5s;
}

.carousel-item:nth-child(3) {
  animation-delay: 7s;
}

.carousel-item:nth-child(4) {
  animation-delay: 10.5s;
}

.carousel-item:nth-child(5) {
  animation-delay: 14s;
}

@keyframes carousel-animation {
  0% {
    opacity: 0;
    transform: translateX(60%);
  }

  4% {
    opacity: 1;
    transform: translateX(0);
  }

  17% {
    opacity: 1;
    transform: translateX(0);
  }

  21% {
    opacity: 0;
  }

  25% {
    transform: translateX(-60%);
    opacity: 0;
  }
}

/* === END Carousel */

/* === Loader === */

.loader-container {
  text-align: center;
}

.loader {
  width: 123px;
  height: 3px;
  display: inline-block;
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.loader-info {
  margin: 12px 0 0 0;
  font-size: 16px;
  line-height: 24px;
  color: #78716c;
}

.loader {
  background: #d6d3d1;
}

.loader::after {
  content: "";
  width: 95px;
  height: 3px;
  background: #9f34fb;
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  animation: animloader 2s linear infinite;
}

@keyframes animloader {
  0% {
    left: 0;
    transform: translateX(-100%);
  }

  100% {
    left: 100%;
    transform: translateX(0%);
  }
}

/* === END Loader === */
