/* ********* FONTS ********* */

@font-face {
  font-family: 'F1';
  src: url('fonts/f1-black.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Typewell';
  src: url('fonts/typewell-light.woff') format('woff'), url('fonts/typewell-light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Typewell';
  src: url('fonts/typewell-light-italic.woff') format('woff'), url('fonts/typewell-light-italic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'Typewell';
  src: url('fonts/typewell-regular.woff') format('woff'), url('fonts/typewell-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Typewell';
  src: url('fonts/typewell-regular-italic.woff') format('woff'), url('fonts/typewell-regular-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Typewell';
  src: url('fonts/typewell-bold.woff') format('woff'), url('fonts/typewell-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Typewell';
  src: url('fonts/typewell-bold-italic.woff') format('woff'), url('fonts/typewell-bolds-italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Typewell';
  src: url('fonts/typewell-black.woff') format('woff'), url('fonts/typewell-black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
}

/* ********* STYLING ********* */

.lego-formula-container *,
.lego-formula-container *::before,
.lego-formula-container *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ********* CONTAINER ********* */

.lego-formula-container {
  --lego-formula-heading-size: clamp(28px, 8.5cqw, 42px);
  --lego-formula-yellow: #ffb43b;

  position: relative;

  display: block;
  width: 100%;

  background-color: #040001 !important;

  font-size: 18px;
  -webkit-text-size-adjust: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -ms-text-size-adjust: 100%;

  overflow-x: clip;
  container-type: inline-size;
}

.lego-formula-container p,
.lego-formula-container span,
.lego-formula-container a {
  color: #ffffff !important;
  font-family: 'Typewell';
  font-size: 18px;
  font-weight: 300;
  text-align: center;
  text-wrap: balance;
  line-height: 120%;
}

.lego-formula-container strong,
.lego-formula-container h2,
.lego-formula-container h3,
.lego-formula-container h4 {
  color: #ffffff !important;
  font-family: 'Typewell';
  font-weight: 700;
  text-align: center;
}

.lego-formula-container>* {
  position: relative;

  z-index: 1;
}

.lego-formula-container section {
  padding-right: 15px;
  padding-left: 15px;
}

.lego-formula-container img {
  width: 100%;
}

/* ********* HEADER ********* */

.lego-formula-header {
  display: flex;
  width: 100%;
  margin-bottom: 65px;
  padding: 0;

  flex-direction: column;
  align-items: center;
}

.lego-formula-header .lego-formula-header__branding {
  position: absolute;
  top: 0;
  left: 0;

  width: 30%;

  z-index: 1;
}

.lego-formula-header .lego-formula-header__car {
  position: absolute;
  top: 0;
  left: 55%;

  width: 95%;

  transform: translate(-40%, 0);

  pointer-events: none;

  z-index: 10;
}

.lego-formula-header .lego-formula-header__background {
  position: relative;

  display: block;
  width: 100cqw;
  margin-bottom: 15%;

  aspect-ratio: 1 / 0.167;

  pointer-events: none;

  z-index: 0;
}

.lego-formula-header .lego-formula-header__background img {
  position: absolute;
  top: 0;
  left: 0;

  display: block;
  width: 100%;
  height: auto;
  max-height: none;
}

.lego-formula-header .lego-formula-header__background::after {
  content: '';

  position: absolute;
  bottom: -20cqw;
  left: 0;

  display: block;
  width: 100%;

  background: linear-gradient(360deg, #040001 0%, #a30313 100%);
  clip-path: polygon(0 68%, 100% 0, 100% 100%, 0% 100%);

  aspect-ratio: 1 / 0.15;

  z-index: 1;
}

.lego-formula-header .lego-formula-header__track {
  position: absolute;
  top: 18cqw;
  right: 0;

  display: none;
  width: 18%;
  height: auto;

  pointer-events: none;
}

.lego-formula-header .lego-formula-header__text {
  position: relative;

  padding-top: 5cqw;
  padding-right: 15px;
  padding-left: 15px;

  z-index: 0;
}

.lego-formula-header .lego-formula-header__text h1 {
  margin-bottom: 15px;

  color: #ffffff !important;
  font-family: 'F1';
  font-size: var(--lego-formula-heading-size);
  text-wrap: balance;
  text-align: center;
  line-height: 105%;
}

.lego-formula-header .lego-formula-header__text p {
  max-width: 700px;

  color: #ffffff !important;
  font-family: 'Typewell';
  font-size: 18px;
  font-weight: 300;
  text-align: center;
  text-wrap: balance;
  line-height: 120%;
}

/* ********* WIDGET ********* */

.lego-formula-widget h2 {
  margin: 0 auto 15px;

  color: #ffa30e !important;
  font-family: 'Typewell';
  font-size: var(--lego-formula-heading-size);
  font-weight: 900 !important;
  text-transform: uppercase !important;
  text-align: center;
  line-height: 105%;
}

.lego-formula-widget p {
  max-width: 700px;
  margin: 0 auto 40px auto;

  color: #ffffff !important;
  font-family: 'Typewell';
  font-size: 18px;
  font-weight: 300;
  text-align: center;
  text-wrap: balance;
  line-height: 120%;
}

.lego-formula-widget .lego-formula-widget__widget {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;

  background: #1f1f2a;
  border: 1px solid #ffffff;
  border-radius: 0 15px;

  overflow: hidden;
}

.lego-formula-widget .lego-formula-widget__iframe iframe {
  display: block;
  width: 100%;
  min-width: 100%;
  height: 700px;

  background: #1f1f2a;
  border: none;

  overflow: hidden;
}

/* ********* PRIZES ********* */

.lego-formula-prizes {
  margin-top: 80px;
}

.lego-formula-prizes h2 {
  margin: 0 auto 40px auto;

  color: #ffffff !important;
  font-family: 'F1';
  font-size: var(--lego-formula-heading-size);
  text-wrap: balance;
  text-align: center;
  line-height: 105%;
}

.lego-formula-prizes .lego-formula-prizes__grid {
  display: flex;
  margin-bottom: 70px;

  flex-direction: column;
  gap: 25px;
}

.lego-formula-prizes .lego-formula-prizes__grid__item {
  display: flex;

  gap: 15px;
  flex-direction: column;
  align-items: center;
}

.lego-formula-prizes .lego-formula-prizes__grid__item__image {
  width: 90px;
  height: 90px;
  padding: 20px 15px;

  background-color: rgba(40, 1, 5, 0.8);
  border: 1px solid #902010;
  border-radius: 999px;
}

.lego-formula-prizes .lego-formula-prizes__grid__item__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  max-width: 100%;

  object-fit: contain;
}

.lego-formula-prizes .lego-formula-prizes__grid__item__text h3 {
  margin-bottom: 5px;

  color: #ffa30e !important;
  font-family: 'Typewell';
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.lego-formula-prizes .lego-formula-prizes__grid__item__text p {
  max-width: 600px;

  color: #ffffff !important;
  font-family: 'Typewell';
  font-size: 18px;
  font-weight: 300;
  text-align: center;
  text-wrap: balance;
  line-height: 120%;
}

.lego-formula-prizes .lego-formula-prizes__prize-container {
  display: block;
  width: 100%;
  max-width: 700px;
  margin: 0px auto 30px auto;
}

.lego-formula-prizes .lego-formula-prizes__prize {
  display: block;
  width: 100%;
  height: auto;
}

.lego-formula-prizes .lego-formula-prizes__text h3 {
  margin-bottom: 5px;

  color: #ffffff !important;
  font-family: 'Typewell';
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-wrap: balance;
  line-height: 120%;
}

.lego-formula-prizes .lego-formula-prizes__text p {
  color: #ffffff !important;
  font-family: 'Typewell';
  font-size: 18px;
  font-weight: 300;
  text-align: center;
  text-wrap: balance;
  line-height: 120%;
}

/* ********* Carousel ********* */

.lego-formula-carousel {
  width: calc(100% - 30px);
  max-width: 1200px;
  margin: 65px auto 0;
  padding: 30px 10px;

  background: linear-gradient(345deg, #000 3.5%, #710503 130%);
  border: 1px solid #ffffff;
  border-radius: 0px 20px;
}

.lego-formula-carousel h2 {
  color: #ffffff !important;
  font-family: 'F1';
  font-size: var(--lego-formula-heading-size);
  text-wrap: balance;
  text-align: center;
  line-height: 105%;
}

.lego-formula-carousel .lego-formula-carousel__carousel {
  position: relative;

  display: flex;

  align-items: center;
}

.lego-formula-carousel .lego-formula-carousel__carousel__slides {
  display: grid;
  width: 100%;
  margin-bottom: 25px;

  grid-template-areas: 'stack';
}

.lego-formula-container .lego-formula-carousel__carousel__slides__slide {
  display: flex;
  width: 100%;
  height: 100%;

  color: #ffffff !important;

  grid-area: stack;
  align-items: center;
  flex-direction: column;
  justify-content: center;

  opacity: 0;

  pointer-events: none;
  user-select: none;

  transition: opacity 1s ease;
}

.lego-formula-container .lego-formula-carousel__carousel__slides__slide.active {
  display: flex;

  opacity: 1;

  pointer-events: auto;
  user-select: auto;
}

.lego-formula-container .lego-formula-carousel__carousel__slides__slide img {
  display: block;
  width: 75%;
  max-width: 325px;
  height: auto;
  max-height: 325px;
  margin: 20px 0;

  aspect-ratio: 1 / 1;

  object-fit: contain;
}

.lego-formula-container .lego-formula-carousel__carousel__slides__slide__text {
  display: flex;

  gap: 15px;
  flex-direction: column;
  align-items: center;
}

.lego-formula-container .lego-formula-carousel__carousel__slides__slide__text h4 {
  width: 20ch;

  color: #ffffff !important;
  font-family: 'Typewell';
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-wrap: balance;
  line-height: 120%;
}

.lego-formula-container .lego-formula-carousel__carousel__slides__slide__text h4 span {
  font-weight: 300;
}

.lego-formula-container .lego-formula-carousel__carousel__slides__slide__text a {
  position: relative;

  display: grid;
  width: 18ch;

  text-decoration: none;

  grid-template-areas: 'button-stack';
  place-items: center;
}

.lego-formula-container .lego-formula-carousel__carousel__slides__slide__text a svg {
  width: 100%;

  grid-area: button-stack;
}

.lego-formula-container .lego-formula-carousel__carousel__slides__slide__text a span {
  color: #ffffff !important;
  font-family: 'Typewell';
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;

  grid-area: button-stack;
}

.lego-formula-carousel .lego-formula-carousel__carousel__buttons {
  display: flex;
  width: 100%;
  max-width: 375px;
  margin: 0 auto;

  justify-content: space-between;
}

.lego-formula-carousel .lego-formula-carousel__carousel__buttons__prev,
.lego-formula-carousel .lego-formula-carousel__carousel__buttons__next {
  display: grid;
  padding: 10px 20px;

  background: none;
  border: 2px solid #ffffff;
  border-radius: 8px;

  aspect-ratio: 1 / 1;

  place-items: center;

  cursor: pointer;

  transition: background 0.2s ease-out;
}

.lego-formula-carousel .lego-formula-carousel__carousel__buttons__prev svg,
.lego-formula-carousel .lego-formula-carousel__carousel__buttons__next svg {
  width: 16px;

  transition: scale 0.5s ease-out;
}

.lego-formula-carousel .lego-formula-carousel__carousel__buttons__prev svg {
  transform: scaleX(-1);
}

.lego-formula-carousel .lego-formula-carousel__carousel__buttons__prev:hover,
.lego-formula-carousel .lego-formula-carousel__carousel__buttons__next:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lego-formula-carousel .lego-formula-carousel__carousel__buttons__prev:hover svg,
.lego-formula-carousel .lego-formula-carousel__carousel__buttons__next:hover svg {
  scale: 0.9;
}

.lego-formula-carousel .lego-formula-carousel__carousel__buttons__prev.disabled,
.lego-formula-carousel .lego-formula-carousel__carousel__buttons__next.disabled {
  opacity: 0.5;

  pointer-events: none;
}

.lego-formula-carousel .lego-formula-carousel__carousel__dots {
  position: absolute;
  bottom: calc(35px + 20px);
  left: 50%;

  display: flex;
  width: 100%;

  gap: 10px;

  transform: translate(-50%);

  pointer-events: none;
}

.lego-formula-carousel .lego-formula-carousel__carousel__dots__viewport {
  position: relative;

  width: calc(7 * 12px + 6 * 10px + 24px);
  height: 12px;
  margin: 0 auto;
}

.lego-formula-carousel .lego-formula-carousel__carousel__dots__container {
  position: absolute;
  left: 0;

  display: flex;

  gap: 10px;

  transition: transform 0.5s ease-out;
}

.lego-formula-carousel .lego-formula-carousel__carousel__dots__dot {
  width: 12px;
  height: 12px;
  padding: 0;

  background: #ffffff;
  border: none;
  border-radius: 999px;

  flex-shrink: 0;

  opacity: 0.5;

  pointer-events: all;

  cursor: pointer;

  transform: scale(0);

  transition: scale 0.3s ease-out, width 0.3s ease-out, opacity 0.3s ease-out;
}

.lego-formula-carousel .lego-formula-carousel__carousel__dots__dot.visible {
  opacity: 0.5;

  transform: scale(1);
}

.lego-formula-carousel .lego-formula-carousel__carousel__dots__dot.edge {
  transform: scale(0.5);
}

.lego-formula-carousel .lego-formula-carousel__carousel__dots__dot.active {
  width: 36px;

  opacity: 1;

  transform: scale(1) !important;
}

/* ********* Footer ********* */

.lego-formula-container .footer {
  position: absolute;
  bottom: 0;
  left: 50%;

  display: block;
  width: auto;
  height: 1900px;

  transform: translate(-50%);

  z-index: 0;
}

/* ********* Legal ********* */

.lego-formula-legal {
  margin-top: 50px;
  padding-bottom: 40px;
}

.lego-formula-legal .lego-formula-legal__partnership {
  max-width: 850px;
  margin: 0 auto;

  color: #ffffff !important;
  font-family: 'Typewell';
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  text-wrap: balance;
  line-height: 120%;
}

.lego-formula-legal .lego-formula-legal__legal {
  margin-top: 80px;

  color: #ffffff !important;
  font-family: 'Typewell';
  font-size: 10px;
  font-weight: 400;
  text-align: center;
  text-wrap: balance;
  line-height: 120%;
}

/* ********* Media Queries ********* */

@media (min-width: 900px) {
  .lego-formula-carousel {
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .lego-formula-container .lego-formula-carousel__carousel__slides__slide {
    gap: 90px;
    flex-direction: row;
  }

  .lego-formula-container .lego-formula-carousel__carousel__slides__slide h4 {
    width: 18ch;
    height: 3lh;
  }

  .lego-formula-carousel .lego-formula-carousel__carousel__buttons {
    position: absolute;
    top: 50%;
    right: min(3cqw, 50px);
    left: min(3cqw, 50px);

    max-width: none;
    width: auto;

    transform: translate(0, -50%);
  }

  .lego-formula-carousel .lego-formula-carousel__carousel__dots {
    position: relative;
    bottom: unset;
    left: unset;

    transform: none;
  }
}

@media (min-width: 1024px) {
  .lego-formula-header {
    margin-bottom: 100px;
  }

  .lego-formula-header .lego-formula-header__branding {
    width: 25%;
  }

  .lego-formula-header .lego-formula-header__car {
    top: 2cqw;
    left: 45%;
    width: 85%;
  }

  .lego-formula-header .lego-formula-header__track {
    display: block;
  }

  .lego-formula-prizes {
    margin-top: 120px;
  }

  .lego-formula-prizes .lego-formula-prizes__grid {
    flex-direction: row;
    justify-content: center;
  }

  .lego-formula-prizes .lego-formula-prizes__grid__item {
    display: flex;

    gap: 15px;
    flex-direction: row;
    align-items: flex-start;
  }

  .lego-formula-prizes .lego-formula-prizes__grid__item__image {
    border-width: 3px;

    flex-shrink: 0;
  }

  .lego-formula-prizes .lego-formula-prizes__grid__item__text h3,
  .lego-formula-prizes .lego-formula-prizes__grid__item__text p {
    text-align: left;
  }

  .lego-formula-prizes .lego-formula-prizes__grid__item__text p {
    max-width: 450px;
  }

  .lego-formula-carousel {
    margin-top: 120px;
  }

  .lego-formula-carousel .lego-formula-carousel__carousel__buttons {
    right: min(8cqw, 120px);
    left: min(8cqw, 120px);
  }
}

/* ********* LANGUAGE SPECIFIC ********* */

.lego-formula-container--fr-be .lego-formula-carousel__carousel__slides__slide h4 {
  width: 20ch;
}