@keyframes headerPicture {
  0% {
    transform: translateX(100%) scaleY(0.01);
  }
  50% {
    transform: translateX(0) scaleY(0.01);
  }
  100% {
    transform: translateX(0) scaleY(1);
  }
}
/* html {
  overflow-x: hidden;
} */
.error_page {
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.error_text {
  text-align: center;
}
body {
  margin: 0;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: white;
}
.error_text {
  margin-bottom: 0;
}
.wrapper {
  /* width: 100vw; */
  max-width: 100vw;
  overflow-x: hidden;
}
h1,
h2 {
  font-family: "Koulen", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  height: min-content;
}
/* .blend-mode {
  mix-blend-mode: difference;
} */
h1 {
  font-size: 26vw;
  position: relative;
  z-index: 4;
}
h1 > a {
  display: block;
  width: min-content;
  height: min-content;
  text-decoration: none;
}
.title_text {
  display: block;
  color: black;
  animation: fade-slide-down 1s;
}
h2 {
  font-size: 7.4vw;
  overflow: hidden;
}
p,
.error_link {
  font-size: 4.1vw;
  font-family: "Libre Franklin", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  line-height: 140%;
  margin-top: 0;
  margin-bottom: 4.2%;
}
header,
main,
footer {
  padding: 0 5.6vw;
}
header {
  height: 100svh;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
}
.parallax {
  margin-left: -5.6vw;
  width: 100vw;
  height: 20%;
  margin-bottom: 10vw;
  position: relative;
  overflow: hidden;
}
.parallax::before {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  background-image: url("/assets/images/truck.jpg");
  background-size: cover;
  background-position: center 37%;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
.block-scroll {
  overflow-y: hidden;
}
.phone_nav {
  position: fixed;
  width: 100vw;
  height: 100svh;
  z-index: 5;
  background-color: white;
  top: 0;
  left: 0;
  transition: transform 0.5s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone_nav > ul {
  font-size: 8vw;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8vw;
}
.phone_nav > ul > li {
  font-size: 10vw;
  list-style: none;
  text-align: center;
}
.phone_nav > ul > li > .active {
  font-weight: bold;
}
.phone_nav > ul > li > a {
  color: black;
  font-family: "Libre Franklin", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  text-decoration: none;
}
.hide_menu {
  transform: translate(100%);
}
.pc_nav {
  display: none;
}
.truck_image {
  width: 100%;
  aspect-ratio: 1.5;
  background-color: gray;
  display: flex;
  align-items: center;
  justify-content: center;
}

.burgermenu-button {
  position: fixed;
  top: 5.6vw;
  right: 5.6vw;
  padding: 0;
  z-index: 6;
  height: min-content;
  width: min-content;
  background-color: unset;
  border: none;
  mix-blend-mode: difference;
  width: 10vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hidden {
  visibility: hidden;
  height: 0;
  width: 0;
}
.burgermenu-button > svg {
  width: 100%;
  fill: white;
}

.main-carousel:after {
  content: "flickity";
  display: none;
}
.tools__card {
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1.5;
  background-color: black;
  position: relative;
}
.tools__card::before {
  content: "";
  height: 100%;
  width: 60%;
  background-color: black;
  z-index: 2;
  position: absolute;
}
.tools__card > img {
  width: 100%;
}
.tools__card > span {
  font-family: "Libre Franklin", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 5.1vw;
  max-width: 52%;
  word-wrap: break-word;
  color: white;
  position: absolute;
  left: 4%;
  bottom: 8%;
  z-index: 3;
}
.call__buttons {
  display: flex;
  flex-direction: column;
  margin-top: 19.5%;
}
.call__buttons > a {
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  font-family: "Libre Franklin", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 7.4vw;
  padding: 24px 20px;
  mix-blend-mode: difference;
  background-color: black;
  border: solid 1px white;
}
.call__buttons > a > span {
  color: white;
}
.call__buttons > a:nth-child(odd) {
  margin-bottom: 4.2%;
}
footer {
  margin-top: 19.5%;
  height: 100vh;
  font-family: "Libre Franklin", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 4.1vw;
}
footer > h2 {
  font-size: 26vw;
  text-align: center;
  color: white;
  mix-blend-mode: difference;
}
footer > div > ul > li,
footer > div > div > ul > li {
  margin: 4.2% 0;
  color: white;
  mix-blend-mode: difference;
}
footer > div > div > ul > li {
  display: flex;
  justify-content: center;
}
footer > div > div > ul > li > a {
  display: block;
  width: min-content;
}
footer > div > div > ul > li > a::after,
.pc_nav > ul > li > a::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: white;
}
footer > div > ul > li:nth-child(1) {
  margin-top: 0;
}
footer > div > ul,
footer > div > div > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
footer > div > div > h3 {
  margin: 4.2% 0;
  text-align: center;
  color: white;
  mix-blend-mode: difference;
}
footer > div > div > ul > li > a {
  color: white;
  text-decoration: none;
}
section {
  margin-bottom: 20%;
}

@media (min-width: 710px) {
  @keyframes fade-slide-down {
    0% {
      opacity: 0;
      transform: translateY(-25%);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .block-scroll {
    overflow-y: unset;
  }
  .phone_nav,
  .burgermenu-button {
    display: none;
  }
  h1 {
    font-size: 14.3vw;
  }
  h2 {
    font-size: 4.2vw;
  }
  p,
  .error_link {
    font-size: 1.7vw;
  }
  .error_text {
    margin-bottom: 0;
  }
  /* header {
    display: block;
  } */
  .parallax {
    height: 17%;
    margin-left: -12.5vw;
    animation: headerPicture 1s;
    position: relative;
  }

  @keyframes fadeOut {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  .parallax::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 2;
    animation: fadeOut 1s 1s forwards;
  }
  header,
  main,
  footer {
    padding: 0 12.5vw;
  }
  /* .truck_image {
    width: 35%;
  } */
  .main-carousel {
    display: flex;
    justify-content: space-between;
    overflow: hidden;
  }
  .main-carousel:after {
    content: "";
  }
  .tools__card {
    width: 30%;
    aspect-ratio: 0.62;
  }
  .tools__card > img {
    width: unset;
    height: 100%;
    position: relative;
    left: -30%;
  }
  .tools__card::before {
    width: 100%;
    height: 57%;
    transform: translateY(-85%);
    transition: transform 0.5s linear;
  }
  .tools__card::after {
    content: "";
    display: block;
    width: 100%;
    height: 30%;
    background-color: black;
    position: absolute;
    bottom: 0;
    transform: translateY(70%);
    transition: transform 0.5s linear;
  }
  .pc_nav {
    display: flex;
    justify-content: center;
    position: fixed;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
    z-index: 3;
  }
  .pc_nav > ul {
    display: flex;
    list-style: none;
    font-family: "Koulen", sans-serif;
    font-weight: 400;
    font-style: normal;
    padding: 0 2rem;
    gap: 1rem;
  }
  .pc_nav > ul > li > a {
    color: white;
    text-decoration: none;
  }
  .pc_nav > ul > li > a::after {
    mix-blend-mode: difference;
  }
  .tools__card:hover::before,
  .tools__card:hover::after,
  .tools__card:hover > span {
    transform: translateY(0);
  }
  .tools__card > span {
    font-size: 1.55vw;
    transform: translateY(-880%);
    bottom: unset;
    top: 48%;
    max-width: unset;
    transition: transform 0.5s linear;
  }
  .call__buttons {
    width: 100%;
    height: 100svh;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    gap: 1.7vw;
  }
  section {
    width: 100%;
    height: 100svh;
    margin-bottom: 0;
  }
  /* section:not(section:nth-of-type(2)) {
    margin-bottom: 19.5%;
  } */
  .call__buttons > a {
    font-size: 3.4vw;
    position: relative;
    height: min-content;
  }
  .call__buttons > a::before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: white;
    mix-blend-mode: difference;
    top: 0;
    left: 0;
    transform: translateX(-101%);
    transition: transform 0.5s;
  }
  .call__buttons > a:hover::before {
    transform: translateX(0);
  }
  .call__buttons > a:nth-child(odd) {
    margin: 0;
  }
  footer {
    font-size: 1.7vw;
    margin-top: 0;
  }
  footer > h2 {
    font-size: 14.3vw;
    text-align: unset;
  }
  footer > div {
    display: flex;
    gap: 5vw;
  }
  footer > div > ul {
    text-align: unset;
  }
  footer > div > ul > li {
    margin-bottom: 2%;
  }
  footer > div > div > ul > li {
    display: block;
  }
  footer > div > div > h3 {
    font-size: 1.7vw;
    /* font-weight: normal; */
    text-align: unset;
    margin: 0;
  }
  .distribution-section__content {
    display: flex;
    gap: 1.7vw;
  }
  footer > div > div > ul > li > a::after,
  .pc_nav > ul > li > a::after {
    transform: translateY(-5px);
    opacity: 0;
    transition: 0.5s;
  }
  .informations {
    max-width: 45%;
  }

  footer > div > div > ul > li > a:hover::after,
  .pc_nav > ul > li > a:hover:after {
    transform: translateY(0);
    opacity: 1;
  }
  .pc_nav > ul > li > .active::after {
    transform: translateY(0);
    opacity: 1;
  }
}
