@import url("https://fonts.cdnfonts.com/css/ica-rubrik-black");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
}
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  background-color: transparent;
  color: #f9f9f9;
  overflow: hidden;
}
iframe {
  z-index: -1;
  top: -50px;
  left: 0;
  height: 120%;
  width: 100%;
  position: fixed;
}
.background {
  z-index: -2;
  height: 100%;
  width: 100%;
  position: fixed;
  background-color: #0e0e13;
}
.main {
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: 60% 40%;
  grid-template-rows: 55% 45%;
  font-family: "Montserrat";
  z-index: 1;
}
.main h1 {
  grid-column: 1;
  grid-row: 1/3;
  padding: 20px 50px;
  height: 100%;
  font-size: 6em;
  font-family: "ICA Rubrik";
}
.main .right {
  width: 100%;
  height: 100%;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.main h2 {
  padding: 30px 50px;
  text-align: end;
  font-weight: 600;
}
a {
  text-decoration: none;
  color: #f9f9f9;
}
.main h2 img {
  height: 30px;
}
.main h3 {
  padding: 30px 50px;
  text-align: end;
  font-weight: 500;
}
.slider {
  grid-column: 1/3;
  grid-row: 2;
  width: 100%;
  height: var(--height);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 20% 90%, transparent);
}
.slider .list {
  display: flex;
  padding: 20px 0px;
  width: 100%;
  min-width: calc(var(--width) * var(--quan));
  position: relative;
}
.slider .list .item {
  width: var(--width);
  height: var(--height);
  position: absolute;
  left: 100%;
  animation: autorun 8s linear infinite;
  animation-delay: calc((8s / var(--quan)) * (var(--position) - 1) - 8s);
}
.slider .list .item img {
  width: 100%;
  border-radius: 10px;
}
@keyframes autorun {
  from {
    left: 100%;
  }
  to {
    left: calc(var(--width) * -1);
  }
}
.slider:hover .item {
  animation-play-state: paused !important;
  filter: grayscale() blur(1px);
}
.slider .item:hover {
  filter: none;
}

@media (max-width: 1020px) {
  .main h1 {
    font-size: 4.8em;
    padding: 20px 0px 20px 50px;
  }
}
@media (max-width: 700px) {
  .main {
    grid-template-columns: 100%;
    grid-template-rows: 25% 30% 45%;
  }
  .main h1 {
    grid-column: 1;
    grid-row: 1;
    padding: 50px 20px 20px 20px;
    font-size: 3.5em;
  }
  .main .right {
    grid-column: 1;
    grid-row: 2;
    justify-content: space-around;
  }
  .main h2 {
    padding: 20px;
  }
  .main h3 {
    text-align: start;
    padding: 20px;
  }
  .slider {
    grid-column: 1;
    grid-row: 3;
    mask-image: linear-gradient(
      to right,
      transparent,
      #000 10% 90%,
      transparent
    );
  }
  iframe {
    display: none;
  }
  .background {
    z-index: -2;
    height: 110%;
    width: 250%;
    rotate: 120deg;
    position: fixed;
    left: -250px;
    top: -50px;
    background-image: url(./images/background.png);
    background-size: 120%;
  }
}
