* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  color: black;
  scroll-behavior: smooth;
}

li, a {
  font-weight: 500;
}

header * {
  list-style: none;
}

nav {
  position: fixed;
  display: flex;
  height: 70px;
  width: 100%;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 6px 10px;
  align-items: center;
  justify-content: space-between;
  padding-left: 150px;
  padding-right: 200px;
  background-color: white;
  z-index: 999;
}

.nav-content {
  display: flex;
  gap: 30px;
  text-transform: uppercase;
  font-size: 16px;
}

.nav-comp a {
  transition: 0.3s;
}

.nav-comp a:hover {
  color: #eb7205;
}

nav a img {
  height: 60px;
}

.language-cont {
  position: relative;
}

.language-collapsible {
  display: flex;
  cursor: default;
  gap: 8px;
  position: relative;
}

.language-collapsible::after {
  content: "▼";
  transition: .2s;
  transform: rotate(-90deg);
  font-size: 14px;
}

.language-collapsible:hover::after, .language-cont:hover .language-collapsible::after, .language-content ~ .language-collapsible::after {
  transform: rotate(0deg);
}

.language-content::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

.language-content {
  display: none;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 10px;
  border-radius: 5px;
  background-color: white;
  position: absolute;
  top: calc(100% + 10px);
  z-index: 1000;
}

.language-content li {
  width: 100px;
  height: 30px;
}

.language-content li a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 30px;
  text-align: center;
  align-content: center;
  color: black;
  transition: .3s;
}

.language-content li a:hover {
  background-color: #f0f0f0;
  color: #eb7205;
}

.language-cont:hover .language-content,
.language-collapsible:hover + .language-content,
.language-content:hover {
  display: block;
}

.cars-cont {
  position: relative;
}

.cars-collapsible {
  display: flex;
  cursor: default;
  gap: 8px;
  position: relative;
}

.cars-collapsible::after {
  content: "▼";
  transition: .2s;
  transform: rotate(-90deg);
  font-size: 14px;
}

.cars-collapsible:hover::after, .cars-cont:hover .cars-collapsible::after, .cars-content ~ .cars-collapsible::after {
  transform: rotate(0deg);
}

.cars-content::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

.cars-content {
  display: none;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 10px;
  border-radius: 5px;
  background-color: white;
  position: absolute;
  top: calc(100% + 10px);
  z-index: 1000;
}

.cars-content li {
  width: 200px;
  height: 40px;
}

.cars-content li a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 30px;
  text-align: center;
  align-content: center;
  color: black;
  transition: .3s;
}

.cars-content li a:hover {
  background-color: #f0f0f0;
  color: #eb7205;
}

.cars-cont:hover .cars-content,
.cars-collapsible:hover + .cars-content,
.cars-content:hover {
  display: block;
}

.navbars {
  display: none;
  float: none;
  position: absolute;
  left: 95%;
  transform: translate(-100%, 0);
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  outline: none;
  background: 0;
  border: 0;
}

.bar {
  display: block;
  width: 35px;
  height: 5px;
  border-radius: 2px;
  background-color: #eb7205;
  margin: 4px 0 4px 0;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.nav-collapsible {
  display: none;
}

.nav-content-col-2 {
  height: 117px;
}

.nav-content-col-1 {
  height: 19px;
}

@media (max-width: 1400px) {
  nav {
    padding-right: 100px;
  }
}

@media (max-width: 1200px) {
  nav {
    padding-left: 50px;
  }
}

@media (max-width: 1024px) {
  .navbars {
    display: block;
  }

  .navbars.active .bar:nth-child(2) {
    opacity: 0;
  }

  .navbars.active .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }

  .navbars.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-content {
    display: none;
  }


  .nav-collapsible {
    display: flex;
    width: 100%;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 9px 12px 0px;
    position: fixed;
    top: -150px;
    flex-direction: column;
    transition: 0.4s ease-in-out;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 30px;
  }

  .nav-collapsible.active {
    top: 70px;
  }

  .nav-collapsible ul {
    display: flex;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 500;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    transition: 0.4s ease-in-out;
  }

  .nav-content-col-1.active2 {
    height: 117px;
  }

  .nav-content-col-2.active2 {
    height: 270px;
  }

  .nav-comp-col a {
    transition: 0.3s;
  }

  .nav-comp-col a:hover {
    color: #eb7205;
  }

  .language-cont-col {
    position: relative;
  }

  .language-collapsible-col {
    display: flex;
    cursor: default;
    gap: 8px;
    position: relative;
    cursor: pointer;
  }

  .language-collapsible-col::after {
    content: "▼";
    transition: 0.2s;
    transform: rotate(-90deg);
    font-size: 14px;
  }

  .language-cont-col.active .language-collapsible-col::after {
    transform: rotate(0deg);
  }

  .cars-cont-col {
    position: relative;
  }

  .cars-collapsible-col {
    display: flex;
    cursor: default;
    gap: 8px;
    position: relative;
    cursor: pointer;
  }

  .cars-collapsible-col::after {
    content: "▼";
    transition: 0.2s;
    transform: rotate(-90deg);
    font-size: 14px;
  }

  .cars-cont-col.active .cars-collapsible-col::after {
    transform: rotate(0deg);
  }
}

@media (max-width: 390px) {
  nav {
    padding-left: 10px;
  }
}

/* Car List */
main {
  padding-top: 90px;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 20px;
}

main ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

main li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 400px;
  padding: 10px;
  border-radius: 10px;
  box-shadow: rgba(235, 114, 5, 0.6) 0 0 0 2px;
}

main h3 {
  font-size: 25px;
  text-align: center;
}

.car-details {
  display: flex;
  justify-content: space-evenly;
}

.car-image {
  border-radius: 5px;
}

.separator {
  width: 50px;
  height: 2px;
  background-color: rgba(235, 114, 5);
  align-self: center;
}

.car-detail {
  font-weight: 600;
  display: flex;
  align-items: center;
}

.car-detail img {
  height: 25px;
  margin-right: 5px;
}

.car-information-cont {
  display: flex;
  justify-content: space-evenly;
  gap: 10px;
}

.car-information-cont img {
  height: 30px;
  margin-right: 5px;
}

.car-information-cont p {
  display: flex;
  align-items: center;
}

@media (max-width: 450px) {
  main h3 {
    font-size: 23px;
  }

  main li {
    width: 330px;
  }

  .car-information-cont p {
    font-size: 14px;
  }
}
