:root {
  --first-color: #e8be35;
  --second-color: #e30000;
  --third-color: #bdd1ca;
  --fourth-color: #89b0af;
  --fifth-color: #153f45;
  --sixth-color: #0d282b;
  --seventh-color: #061213;
  --eighth-color: #ffffff;
  --border-radius: 1rem 0rem 1rem 0;
}

* {
  margin: 0px;
  padding: 0px;
  outline: none;
  box-sizing: border-box;
}

body {
  min-height: 100%;
  height: auto;
  display: block;
  background-color: rgba(6, 8, 19, 0.9);
  font-size: 1.25rem;
  font-family: "Roboto Condensed", sans-serif;
  color: var(--second-fg);
  color: var(--eighth-color);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  z-index: -101;
  display: block;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background:
    linear-gradient(rgba(6, 18, 19, 0.7), rgba(6, 18, 19, 0.7)),
    url("../img/habanero-kv-bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
}
.bg-video {
  position: fixed;
  bottom: -8rem;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -100;
  opacity: 0.35;
}

p {
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

nav {
  position: fixed;
  top: 0;
  background: var(--sixth-color);
  z-index: 99;
  display: flex;
  width: 100%;
  gap: 3rem;
  justify-content: center;
}

a {
  text-decoration: none;
}

#primary-nav {
  display: flex;
}
#primary-nav a {
  color: var(--third-color);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.6rem;
  padding: 1rem;
  font-family: "Squada One", serif;
  letter-spacing: 0.1rem;
}

#primary-nav a:hover,
#primary-nav a.active {
  color: var(--first-color);
  background-color: var(--seventh-color);
}

nav img {
  max-height: 3rem;
}

.language {
  position: fixed;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 999;
}

.languagepicker {
  background-color: var(--third-color);
  display: inline-block;
  padding: 0;
  height: 40px;
  overflow: hidden;
  transition: all 0.3s ease;
  border-radius: var(--border-radius);
  vertical-align: middle;
}

.languagepicker:hover {
  height: auto;
  transition: all 0.3s ease;
}

.languagepicker a {
  color: var(--seventh-color);
  text-decoration: none;
}

.languagepicker li {
  display: block;
  background: transparent;
  padding: 0px 20px;
  line-height: 40px;
  border-top: 1px solid var(--fourth-color);
}

.languagepicker li:hover {
  background-color: var(--fourth-color);
}

.languagepicker li img {
  margin-right: 5px;
  vertical-align: middle;
}

header {
  height: 90vh !important;
}

header .swiper-slide {
  background-repeat: no-repeat;
  background-position: 75% center;
  background-size: cover;
  height: 100%;
}

.slide1 {
  background-image: url(../img/Habanero_Keyvisual.jpg);
}

.slide2 {
  background-image: url(../img/kenworth.jpg);
}
.slide3 {
  background-image: url(../img/Demo.jpg);
}
.slide4 {
  background-image: url(../img/vcu.jpg);
}

.slide5 {
  background-image: url(../img/turnoutgear.jpg);
}

.slide6 {
  background-position: center !important;
}

.slide2 > div,
.slide3 > div,
.slide5 > div {
  justify-content: right;
}
.slide4 div,
.slide6 div {
  justify-content: center;
}

.drop-shadow {
  filter: drop-shadow(0px 0px 40px #0d282be6)
    drop-shadow(0px 0px 40px #0d282be6);
}
.legal section * {
  text-align: left;
}

.legal h1 {
  margin-bottom: 0.5rem;
}
.legal h2 {
  margin-top: 3rem;
  margin-bottom: 0.5rem;
}

.legal h2 + h3 {
  margin-top: 1.5rem;
}

.legal h3 {
  margin-top: 3rem;
  margin-bottom: 0.5rem;
}

.legal h4 {
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.legal header h4 {
  margin-top: 0;
  margin-bottom: 2rem;
}
.legal header,
#changelog header {
  text-align: center;
  padding: 10rem;
  height: auto;
}

#changelog header {
  background-image: url(../img/Habanero_Keyvisual.jpg);
  background-repeat: no-repeat;
  background-position: 75% center;
  background-size: cover;
}

.legal a:not(.bt) {
  color: var(--eighth-color);
  text-decoration: underline;
}

.legal a:not(.bt):hover {
  color: var(--third-color);
}

.legal .logo,
#changelog .logo {
  max-width: 30rem;
  text-align: center;
  margin: 5rem auto;
}

.legal ul {
  padding: 0 1rem 2.5rem 3.5rem;
}

.logo-head {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 0 0rem 0.75rem 0;
  z-index: 100;
  background-color: var(--seventh-color);
  padding: 1.5rem 3rem;
}

.logo-head img {
  display: block;
  width: auto;
  height: 6rem;
}

.text-head {
  padding: 5rem 3rem 3rem 3rem;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  height: 100%;
  align-items: center;
}

.text-head > div {
  width: 25rem;
  height: fit-content;
  padding: 2rem;
  text-align: center;
  border-radius: var(--border-radius);
  background-color: #ffffff48;
  color: var(--eighth-color);
  backdrop-filter: blur(0.75rem);
}

.blackout-fr > div {
  width: 30rem;
}

#changelog-pc,
#changelog-xbox,
#changelog-ps5 {
  background-color: var(--sixth-color);
  padding: 2rem;
  display: none;
  border-bottom-right-radius: 1rem;
}

#changelog .container {
  margin-top: 3rem;
}

#changelog h1 {
  margin-bottom: 2rem;
}
.toggle-changelog {
  text-decoration: none;
  color: var(--eighth-color);
  display: block;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 300ms;
}
.toggle-changelog svg {
  display: inline-block;
  vertical-align: middle;
  color: var(--eighth-color);
  transition: all 300ms;
  width: auto;
  height: 1.5rem;
  margin-right: 0.5rem;
}
.toggle-changelog:hover,
.toggle-changelog.active {
  background-color: var(--seventh-color);
}
.change {
  display: none;
  padding-bottom: 3rem;
  padding-left: 3.3rem;
}
.icon-minus {
  color: var(--eighth-color) !important;
  transform: rotate(90deg);
  transition: all 300ms;
}

#updates h2 {
  text-align: left;
  margin-bottom: 0;
  color: var(--eighth-color);
  line-height: 1em;
  font-size: 1.75rem;
}

.tab {
  display: grid;
  grid-auto-rows: 1fr;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.3rem;
  border-bottom: 5px solid var(--first-color);
}

.changelog-head {
  background-color: var(--second-color);
  padding: 1rem;
  cursor: pointer;
  transition: all 300ms;
}

.changelog-head svg {
  transition: all 300ms;
}

.changelog-head.current {
  transition: all 300ms;
  border-top-left-radius: 1rem;
}

.changelog-head.current,
.changelog-head:hover {
  background-color: #e300008f;
  transition: all 300ms;
  border-top-left-radius: 1rem;
  transform: scale(1, 1.15);
  transform-origin: bottom;
}
.changelog-head h2,
.changelog-head h2 {
  transform-origin: bottom left;
  transition: all 300ms;
}
.changelog-head.current h2,
.changelog-head:hover h2 {
  transform: scale(1.15, 1);
  transform-origin: bottom left;
}

.tabcontent {
  animation: fadeEffect 1s; /* Fading effect takes 1 second */
}

/* Go from zero to full opacity */
@keyframes fadeEffect {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#updates h4 {
  font-size: 1.5rem;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}
#updates h4:first-child {
  margin-top: 0;
}

#updates h5 {
  font-size: 1.25rem;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

#updates ul {
  margin-left: 1.1rem;
  margin-bottom: 1.5rem;
}

#updates li {
  margin-bottom: 0.25rem;
}

h1 {
  margin-bottom: 1rem;
  font-size: 3.5rem;
}
h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Squada One", serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.carousel-head {
  height: 100vh;
}
section,
footer {
  padding: 5rem 3rem 3rem 3rem;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
}

#start-features li {
  list-style-type: none;
  margin-bottom: 0.5rem;
}
#start-features li b {
  text-transform: uppercase;
  color: var(--third-color);
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-family: "Squada One", serif;
  font-weight: 400;
  letter-spacing: 0.1rem;
}

#start-wishlist,
#buy-now {
  padding-top: 5rem;
}

/*body:not(.alt) #start-trailer:before,
body:not(.alt) #start-wishlist:before {
  content: "";
  display: block;
  width: 100%;
  height: 75%;
  background-image: url(../img/AdobeStock_541145773_Preview.png);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  left: 0;
  background-position: center 10%;
  z-index: -1;
}*/

h2 {
  text-align: center;
  color: var(--first-color);
  margin-bottom: 1rem;
  text-transform: uppercase;
  position: relative;
}

h3 {
  color: var(--third-color);
  margin-bottom: 1rem;
}

#wrapper {
  padding: 0 4rem;
}

.logo {
  width: 100%;
  display: block;
}

.icon {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
  overflow-x: hidden;
}

@keyframes scale {
  100% {
    transform: scale(1);
  }
  0% {
    transform: scale(0.75);
  }
}

.icon img {
  max-width: 2rem;
  max-height: 2rem;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  animation: scale 1s ease infinite alternate;
}

.fire-container .fire:first-child {
  transform: translateX(-6rem) scale(1.3, 1.3);
}
.fire-container .fire:nth-child(2) {
  transform: translateX(-3rem) scale(-1.2, 1.2);
}
.fire-container .fire:nth-child(4) {
  transform: translateX(3rem) scale(-1.2, 1.2);
}
.fire-container .fire:last-child {
  transform: translateX(6rem) scale(1.3, 1.3);
}

.beautyshot {
  max-width: 100%;
  height: auto;
  width: 100%;
  display: block;
  margin-bottom: 5rem;
}

.beautyshot.mobile {
  display: none;
}

.bt.wishlist {
  font-size: 2rem;
  font-weight: 600;
  display: inline-block;
  animation: scale 1s ease infinite alternate;
}

.icon:before {
  content: "";
  display: block;
  max-width: 37rem;
  width: 100%;
  height: 0.15rem;
  background-color: var(--eighth-color);
  position: absolute;
  right: calc(50% + 2.5rem);
  opacity: 0;
}

.icon:after {
  content: "";
  display: block;
  max-width: 37rem;
  width: 100%;
  height: 0.15rem;
  background-color: var(--eighth-color);
  position: absolute;
  left: calc(50% + 2.5rem);
  opacity: 0;
}

.icon.in-view:before {
  transition: all 1s ease;
  transition-delay: 0.5s;
  opacity: 1;
}

.icon.in-view:after {
  transition: all 1s ease;
  transition-delay: 0.5s;
  opacity: 1;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex-direction: column-reverse;
}

.flex-gallery,
.flex-text {
  flex: 0 0 calc(50% - 0.5rem);
}

.grid-container {
  display: grid;
  /*grid-template-columns: repeat(3, 1fr);*/
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  grid-gap: 1rem;
  margin: 1.5rem 0;
}

.grid-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

video {
  width: 100%;
}

.play {
  width: 100%;
  display: block;
}

.play,
.carousel-cell,
.grid-item img {
  border-radius: var(--border-radius);
}

div.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.23%;
  height: 0;
  overflow: hidden;
  margin-top: -1px;
  margin-bottom: -1px;
  cursor: pointer;
}

div.video-container iframe,
div.video-container object,
div.video-container embed {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
}

.play-button-helper:before,
.play-button-helper:after {
  position: absolute;
  top: 5rem;
  right: 5rem;
  transform: translate(50%, -50%);
  -webkit-transform: translate(50%, -50%);
  content: "";
  pointer-events: none;
}

.play-button-helper:after {
  border-style: solid;
  border-width: 1.5rem 0 1.5rem 3rem;
  border-color: transparent transparent transparent var(--eighth-color);
  box-sizing: border-box;
  width: 3rem;
  height: 3rem;
  pointer-events: none;
}

.play-button-helper:before {
  background-color: var(--second-color);
  border-radius: var(--border-radius);
  width: 5rem;
  height: 5rem;
  -webkit-box-shadow: 0px 0px 2rem 0px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0px 0px 2rem 0px rgba(0, 0, 0, 0.5);
  box-shadow: 0px 0px 2rem 0px rgba(0, 0, 0, 0.5);
}

.bt {
  background-color: var(--first-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  text-transform: uppercase;
  color: var(--seventh-color);
  padding: 0.5rem 1rem;
  border: none;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bt:hover {
  background-color: var(--second-color);
  color: var(--eighth-color);
  transition: all 0.3s ease;
}

#start-team .link,
#start-dlcs .link {
  color: var(--first-color);
}

#start-team .link:hover,
#start-dlcs .link:hover {
  color: var(--eighth-color);
}

#start-team .link span {
  font-size: 2rem;
  line-height: 1.75rem;
  vertical-align: bottom;
}

/*---- Nav ----*/
.ham {
  display: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 400ms;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transform: scale(1.5);
}
.ham.active {
  transform: rotate(45deg) scale(1.5);
}
.line {
  fill: none;
  transition:
    stroke-dasharray 400ms,
    stroke-dashoffset 400ms;
  stroke: var(--third-color);
  stroke-width: 5.5;
  stroke-linecap: round;
}

.ham .top {
  stroke-dasharray: 40 160;
}
.ham .middle {
  stroke-dasharray: 40 142;
  transform-origin: 50%;
  transition: transform 400ms;
}
.ham .bottom {
  stroke-dasharray: 40 85;
  transform-origin: 50%;
  transition:
    transform 400ms,
    stroke-dashoffset 400ms;
}
.ham.active .top {
  stroke-dashoffset: -64px;
}
.ham.active .middle {
  transform: rotate(90deg);
}
.ham.active .bottom {
  stroke-dashoffset: -64px;
}

/*---- Cards ----*/

.cards {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin-bottom: 3rem;
}
.cards__item {
  display: flex;
  padding: 0.5rem;
  width: 100%;
}
@media (min-width: 40rem) {
  .cards__item {
    width: 50%;
  }
}
@media (min-width: 50rem) {
  .cards__item {
    width: 33.3333%;
  }
}
@media (min-width: 70rem) {
  .cards__item {
    width: 25%;
  }
}
.card {
  background-color: var(--second-color);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1rem;
  gap: 2rem;
  width: 100%;
}

.card__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.5rem;
}

.card__image {
  height: 4rem;
  width: 100%;

  align-content: center;
}

.card__image img {
  max-height: 100%;
  height: auto;
  max-width: 100%;
  width: auto;
  margin: 0 auto;
}

.card__content a {
  color: var(--seventh-color);
  background-color: var(--eighth-color);
  min-height: 56px;
}

.card__content a:hover {
  background-color: var(--first-color);
  color: var(--seventh-color);
}

.version .card {
  background-image: url(../img/Habanero_Keyvisual.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
  padding: 0;
}

.demo .card {
  background-image: url(../img/Demo.jpg);
}

.version .card__content {
  backdrop-filter: grayscale(1);
  transition: all 1s ease;
}

.dlc .card__content:first-child {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
}

.dlc .content-cards img {
  max-width: 100%;
  width: auto;
  max-height: 2.5rem;
  filter: invert(100%);
}

.dlc .card__content {
  gap: 1rem;
}

.summer-camp {
  background-image: url(../img/SummerCAMP_DLC_1.jpg);
}

.parkers-story {
  background-image: url(../img/parkers-story-dlc.jpg);
}

.turnout {
  background-image: url(../img/turnoutgear-dlc.jpg);
}

.blackout {
  background-image: url(../img/blackout-dlc.jpg);
}

.kenworth {
  background-image: url(../img/kenworth-pack.jpg);
}

.dlc .backdrop {
  backdrop-filter: grayscale(1);
  transition: all 1s ease;
  height: 10rem;
}
.dlc:hover .backdrop {
  backdrop-filter: grayscale(0);
  transition: all 1s ease;
}

.dlc .card__content:last-child {
  padding: 1rem;
  background-color: var(--second-color);
}
.dlc .card {
  padding: 0rem;
  gap: 0rem;
}

.card__content span {
  background: linear-gradient(90deg, rgba(227, 0, 0, 1), rgba(227, 0, 0, 0));
  padding: 0.5rem 1rem;
  color: var(--eighth-color);
  border-radius: var(--border-radius);
  text-transform: uppercase;
  margin: 1rem;
  font-family: "Squada One", serif;
  font-size: 1.25rem;
  letter-spacing: 0.1rem;
  position: absolute;
  top: auto;
  bottom: 0;
}

.version .card__content {
  justify-content: flex-end;
}

.cards:hover > .version .card__content {
  backdrop-filter: grayscale(0);
  transition: all 1s ease;
}

.cr_input {
  height: 2.5rem;
  width: 100%;
  line-height: 46px;
  padding: 0px 20px;
  font-size: 20px;
  font-family: "Roboto Condensed", sans-serif;
  transition: all 300ms;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  background-color: transparent;
  transition: all 300ms;
  border: 2px solid var(--first-color);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.cr_button {
  margin-bottom: 1rem;
}
.cr_label {
  margin-bottom: 1rem;
  display: block;
}

.cr_button2 {
  border: none;
  width: 100%;
  padding: 0 1rem 1rem;
  font-family: "Roboto Condensed", sans-serif;
  color: #ffffff;
  font-weight: 400;
  text-align: center;
  text-transform: none;
  cursor: pointer;
}

.logo-one,
.logo-two,
.logo-three {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footerlogo img {
  height: 5rem;
  padding: 1rem 0;
  display: block;
}

.footercontent a[href="#"] {
  pointer-events: none;
  cursor: default;
}

.logo-three .footerlogo.bmwk img {
  height: 8.5rem;
  padding: 0;
}

.logo-two .footerlogo img {
  height: 3.5rem;
}

footer {
  padding-top: 5rem;
  padding-bottom: 20rem;
}

footer .bt {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.footercontent {
  margin-top: 8rem;
}
.footertext {
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  text-align: justify;
}

#start-team p,
#start-gameinfo {
  text-align: justify;
}

sup {
  line-height: 0;
}

.social-buttons,
.social-buttons li {
  display: flex;
  padding: 0;
  margin: 0;
  gap: 1rem;
}

.social-buttons {
  width: 100%;
  list-style: none;
  margin-bottom: 2rem;
  justify-content: center;
}

.social-buttons li {
  flex: 0 0 4rem;
}

.social-buttons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-decoration: none;
  background-color: var(--second-color);
  border-radius: var(--border-radius);
}

.social-buttons a:hover {
  background-color: var(--first-color);
}

.social-buttons img {
  max-height: 4rem;
}
@media screen and (max-width: 117rem) {
  .logo-head {
    padding: 1.5rem 2rem;
  }
  .logo-head img {
    height: 4.5rem;
  }
}
@media screen and (max-width: 102.5rem) {
  .logo-head {
    padding: 1rem 1.5rem;
  }
  .logo-head img {
    height: 3.25rem;
  }
}

@media screen and (max-width: 92.5rem) {
  .flex-container {
    flex-direction: column-reverse;
  }

  .ham {
    display: block;
  }
  #primary-nav {
    display: none;
    transition: all 300ms ease;
    width: 100%;
  }

  nav {
    flex-direction: column;
    align-items: center;
    transition: all 300ms ease;
    gap: 1.5rem;
    padding: 0.5rem 0;
  }

  .active + #primary-nav {
    display: flex;
    flex-direction: column;
    transition: all 300ms ease;
  }

  #primary-nav a {
    text-align: center;
    padding: 0.5rem;
  }
}

@media screen and (max-width: 39.99rem) {
  section,
  footer {
    padding: 5rem 1.5rem 3rem 1.5rem;
  }

  .logo-head img {
    height: 2.5rem;
  }
  .languagepicker li span {
    display: none;
  }

  .languagepicker li img {
    margin-right: 0;
  }

  #start-newsletter p {
    margin-bottom: 1rem;
  }

  .logo-one,
  .logo-two,
  .logo-three {
    row-gap: 0;
  }

  .logo-one > a,
  .logo-two > a,
  .logo-three > a {
    flex: 1 1 100%;
    justify-items: center;
  }

  .footerlogo img {
    max-height: 5rem;
    height: auto;
    width: auto;
  }

  .footerlogo.bmwk img {
    max-height: 8.5rem;
  }
  .beautyshot {
    display: none;
  }
  .beautyshot.mobile {
    display: block;
  }
}
@media screen and (max-width: 31rem) {
  .logo-head {
    padding: 0.75rem 1rem;
  }
  .logo-head img {
    height: 2rem;
  }
  nav {
    gap: 1rem;
  }
  .social-buttons {
    flex-wrap: wrap;
  }
  .social-buttons li {
    flex: 1 0 30%;
  }
}

@media only screen and (-webkit-min-device-pixel-ratio: 2) {
  .bg-video {
    display: none;
  }
}
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
}
.swiper-pagination-bullet-active {
  background-color: #fff !important;
}
