*,
*:after,
*:before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-family: "Open Sans", sans-serif;
  box-sizing: border-box;
  font-size: 62.5%;
  --animation-time: 10s;
}

body {
  background-image: linear-gradient(
    29deg,
    rgba(15, 6, 10, 1) 0%,
    rgba(75, 75, 75, 1) 50%,
    rgba(0, 0, 0, 1) 100%
  );
  background-size: cover;
  background-repeat: no-repeat;
}

.container {
  max-height: 100vh;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.top-content {
  display: flex;
  margin: 1rem;

  max-height: 65vh;
}

.weather-panel {
  flex: 1;
  position: relative;
}
.weather-panel :after {
  content: "";
  position: absolute;
  bottom: 0px;
  right: -22px;
  height: 22px;
  width: 22px;
  background-image: radial-gradient(
    circle at 100% 0,
    rgb(22 23 30 / 0%) 21px,
    #333031 22px
  );
  z-index: 100;
}

.weather-widget {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.weather-link {
  text-decoration: none;
  color: grey;
  font-size: 1.5rem;
  display: none;
}

.middle-content {
  display: flex;
  flex-direction: column;
  flex: 2;
  text-align: center;
}

.logo-loading {
  padding-bottom: 10rem;
  max-width: 70rem;
}

.ff-logo {
  text-align: center;
  padding-bottom: 1rem;
  max-width: 35rem;
  max-height: 100px;
}

.video {
  width: 100%;
  height: 100%;
  padding: 1rem 1rem 0;
  border-radius: 20px;
}

.menu {
  flex: 1;
  position: relative;
}

.menu:before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: -22px;
  height: 22px;
  width: 22px;
  background-image: radial-gradient(
    circle at 0 0,
    rgb(22 23 30 / 0%) 21px,
    #424242 22px
  );
}

.ff-menu {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.bottom-content {
  margin: 1rem 0 4rem 0;
  display: flex;
}

.small-video {
  height: 25vh;
  width: 100%;
  margin: 0 0 2rem;
}

.video-title {
  text-align: center;
  color: #ffffffbf;
  font-weight: 100;
  font-size: 2rem;
}

.slider {
  max-width: 100rem;
  overflow: hidden;

  margin: auto;

  @media only screen and (max-width: 1700px) {
    max-width: 80rem;
  }

  @media only screen and (max-width: 1400px) {
    max-width: 60rem;
  }

  @media only screen and (max-width: 800px) {
    max-width: 40rem;
  }
}

.slick-slide > div {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 20px;
}

.slide-content {
  display: flex !important;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #191b1d;
}

.slide-content:has(.slide-text-wrapper):after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background-image: linear-gradient(rgb(0 0 0 / 0%), rgba(0, 0, 0, 1.3));
  background-size: 100% 70%;
  background-repeat: no-repeat;
  background-position: bottom;
}

.slider-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.slick-track,
.slick-list {
  -webkit-perspective: 2000px;
  -webkit-backface-visibility: hidden;
}

.slide-text-wrapper {
  position: absolute;
  bottom: 70px;
  color: white;
  padding: 0 3rem;
  z-index: 5;
}

.slick-active .slide-text-wrapper {
  animation: slideIn 1s ease-in-out forwards;
}

.slide-title {
  font-size: 4.5rem;
  padding-bottom: 2rem;
  font-family: "system-ui";
  color: #008DC3;
  font-weight: 600;
  text-shadow: 3px 3px 16px #454545;
  opacity: 0;
}
.slick-active .slide-title {
  animation: slideIn 0.5s ease-in-out forwards;
}

.slide-text {
  font-size: 2.8rem;
  font-family: "system-ui";
  text-shadow: 3px 3px 16px #454545;
  opacity: 0;
}

.slick-active .slide-text {
  animation: slideIn 1.2s ease-in-out forwards;
}

/*Phone*/

@media only screen and (max-width: 600px) {
  .container {
    max-height: 100%;
    min-height: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .top-content {
    flex-direction: column;

    max-height: 150rem;
  }

  .bottom-content {
    margin: 1rem 0 4rem 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .weather-panel {
    display: none;
  }

  .video-title {
    font-size: 1.4rem;
  }

  .slider {
    max-width: 100vw;
  }

  .slick-slide > div {
    padding: 0;
  }

  .slide-title {
    font-size: 2rem;
  }

  .slide-text {
    font-size: 1.3rem;
  }
}

/*loading*/

.pace {
  pointer-events: none;
  user-select: none;
  z-index: 99999999999999;
  position: fixed;
  margin: auto;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  border: 0px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  transition: all var(--animation-time);

  .pace-progress {
    transform: translate3d(0, 0, 0);
    max-width: 300px;
    position: fixed;
    z-index: 99999999999999;
    display: block;
    position: absolute;
    top: 0;
    right: 100%;
    height: 100%;
    width: 100%;
    background: blue;
    background: linear-gradient(
      to right,
      rgb(18, 194, 233),
      rgb(196, 113, 237),
      rgb(246, 79, 89)
    );
  }
}

.pace.pace-inactive {
  width: 100vw;
  opacity: 0;

  .pace-progress {
    max-width: 100vw;
  }
}

#preloader {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: fixed;
  z-index: 9999999;

  &:after,
  &:before {
    content: "";
    position: fixed;
    left: 0;
    height: 50%;
    width: 100%;
    background: #252531;
    transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
  }

  &:before {
    top: 0;
  }

  &:after {
    bottom: 0;
  }

  &.isdone {
    visibility: hidden;
    transition-delay: var(--animation-time);

    &:after,
    &:before {
      height: 0;
      transition: all 0.7s cubic-bezier(1, 0, 0.55, 1);
      transition-delay: var(--animation-time);
    }
  }
}

.loading {
  color: #fff;
  position: fixed;
  left: 50%;
  top: calc(50% - 40px);
  transform: translateX(-50%) translateY(-50%);
  font-weight: 300;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 10px;
  z-index: 9999999999;

  &.isdone {
    top: 50%;
    opacity: 0;
    transition: all 0.8s;
    transition-delay: var(--animation-time);
  }
}

.loading span {
  animation: loading 1.4s infinite alternate;
}
.loading span:nth-child(1) {
  animation-delay: 0s;
}
.loading span:nth-child(2) {
  animation-delay: 0.1s;
}
.loading span:nth-child(3) {
  animation-delay: 0.2s;
}
.loading span:nth-child(4) {
  animation-delay: 0.3s;
}
.loading span:nth-child(5) {
  animation-delay: 0.4s;
}
.loading span:nth-child(6) {
  animation-delay: 0.5s;
}
.loading span:nth-child(7) {
  animation-delay: 0.6s;
}

@keyframes loading {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.slick-slide {
  will-change: transform;
}
