/* Hide scrollbar for Chrome, Safari and Opera */
.car_sales::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.car_sales {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

#search_section {
  max-width: 100%;
  background-color: #00112f;
  background-image: linear-gradient(#002a64, #00112f);
  padding: 0;
  position: relative;
}

#search_section>div:first-child {
  padding: 50px 0 50px;
}

#search_section>div:nth-child(3) {
  padding: 49px 0 100px;
  border-top: 1px solid #3f7dd5;
  position: relative;
}

#loader {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  z-index: -1;
  background-color: #ffffff52;
  bottom: 0;
}

.title h1,
.title h2 {
  margin: auto;
  font-weight: 700;
}

.title h1 {
  font-size: 2.1rem;
}

.title h2 {
  font-size: 1.8rem;
}

#car_icons {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  padding-bottom: 20px;
}

#car_icons>a {
  text-decoration: none;
  color: white;
  margin: auto 2rem;
}

#car_icons figure {
  cursor: pointer;
  margin: 0;
  padding: 1rem 0;
}

#car_icons figure img {
  height: 50px;
  filter: drop-shadow(0 0 2px #3f7dd5);
}

#car_icons figure:hover img {
  filter: drop-shadow(0 0 12px #3f7dd5) brightness(1.3) hue-rotate(174deg);
}

#car_icons figure figcaption {
  text-align: center;
  padding-top: 0.5rem;
  text-shadow: 0 0 7px #3f7dd5;
}

#search_section::after {
  clip-path: polygon(50% 50%, 100% 0, 100% 51%, 0 51%, 0 0);
  /* content: " "; */
  width: 100%;
  height: 250px;
  position: absolute;
  background-color: #ffffff;
  bottom: -124px;
}

#search_section :is(h1, h2, h3, label) {
  color: #fff;
}

#search_section img {
  user-select: none;
}

#search_section :is(h1, h2, h3) {
  text-shadow: 0 0 7px #3f7dd5;
}

#search_section .title h2 {
  margin-bottom: 10px;
}

#search_section .title h3 {
  font-size: 1.1rem;
  margin: 0;
}

.content {
  justify-content: center;
  flex-direction: column;
}

#search_car {
  width: 75%;
}

#search_car .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-column-gap: 1rem;
  justify-content: center;
}

#search_car .column {
  margin: .5rem 0;
  position: relative;
}

#search_car :is(.select, button) {
  padding: .5rem 1rem .5rem 0.25rem;
  border-radius: 0;
  border: 1px solid #2e5894;
  min-width: 170px;
  height: 36px;
  width: 100%;
}

#search_car button[type="submit"] {
  padding-left: 1rem;
}

#search_car .select {
  position: relative;
  background-color: #ffffff;
  border-radius: 0px;
}

#search_car .select:hover {
  box-shadow: 0 0 5px 1px #3f7dd5;
}

#search_car .select span {
  display: block;
  top: 0;
  left: 0;
  position: absolute;
  width: 100%;
  color: #131313;
  text-shadow: none;
}

#search_car .select ul {
  background-color: #ffffff;
  position: absolute;
  top: 100%;
  list-style-type: none;
  padding: 0;
  left: -1px;
  margin: 0;
  border: 1px solid #b6b6b6fc;
  border-top: none;
  width: calc(100% + 2px);
  overflow-y: auto;
  height: auto;
  margin-top: 2px;
  max-height: 210px;
  display: none;
  border-radius: 2px;
  z-index: 5;
  box-shadow: 2px 2px 5px #3f7dd566;
}

#search_car .select li {
  border-bottom: 1px solid #d6d6d6;
  font-weight: 400;
}

#search_car :is(div > span, li) {
  padding: 8px 16px 8px 8.8px;
  font-size: .9rem;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#search_car .selected-select:after {
  content: " ";
  display: block;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  border: solid #2e5894;
  border-width: 0 2px 2px 0;
  padding: 0;
  width: 4px;
  height: 4px;
  z-index: 4;
}

#search_car .select li:hover {
  cursor: pointer;
  background-color: #c9c9c9d4;
}

#search_car .select li:last-child {
  border-bottom: none;
}

#search_car label {
  margin-bottom: .5rem;
  display: block;
}

#search_car label,
#search_car div>span {
  font-family: 'Montserrat';
  font-weight: 500;
  text-shadow: 0 0 7px #3f7dd5;
}

#search_car .select li {
  font-family: 'Montserrat';
  color: #131313;
}

#search_car button {
  padding-left: 1.5rem;
  text-align: left;
  font-weight: 700;
  font-family: 'Montserrat';
  background-color: #2e5894;
  color: white;
  border-color: var(--navyBlue);
  transition: background-color .1s linear, border-color .1s linear;
}

#search_car .column svg {
  position: absolute;
  right: .75em;
  top: 54%;
  width: 20px;
  fill: white;
}

#search_car button,
#search_car .column svg {
  cursor: pointer;
}

#search_car .column:last-child:active button {
  background-color: #162647;
  border-color: #162647;
}

section#car_sales::after {
  clip-path: polygon(50% 80%, 100% 0, 100% 100%, 0 100%, 0 0);
  content: " ";
  width: 100%;
  height: 250px;
  position: absolute;
  background-color: #fff;
  bottom: -1px;
}

#car_sales {
  max-width: 100%;
  background-image: linear-gradient(#003c7a, #00112f);
  height: 800px;
  position: relative;
  z-index: -1;
  padding-top: 4%;
}

#services::after {
  clip-path: polygon(50% 50%, 100% 0, 100% 51%, 0 51%, 0 0);
  /* content: " "; */
  width: 100%;
  height: 250px;
  position: absolute;
  background-color: #002a64;
  bottom: -124px;
}

#car_sales .title {
  height: 450px;
  background-color: #00112f;
  max-width: 1250px;
  margin-top: 0;
  padding-top: 20px;
  position: relative;
  z-index: -1;
}

#car_sales .title h2 {
  font-family: 'Montserrat';
  text-transform: capitalize;
  font-size: 2.5rem;
  margin: auto;
  text-shadow: 0 0 7px #3f7dd5;
  color: white;
}

.flip-box {
  perspective: 1000px;
}

.flip-box-inner {
  position: relative;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  height: 100%;
  background-color: transparent;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-box:hover .flip-box-inner {
  transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-box-front,
.flip-box-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  /* Safari */
  backface-visibility: hidden;
}

/* Style the back side */
.flip-box-back {
  transform: rotateY(180deg);
  background: #003c7a85;
  flex-flow: column nowrap;
  justify-content: center;
}

.content.car_sales {
  flex-flow: row nowrap;
  max-width: calc(900px + 9rem);
  justify-content: flex-start;
  height: 460px;
  margin-top: -360px;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
}

.car_sales_link {
  flex: 0 0 auto;
  height: 400px;
  width: 30%;
  text-decoration: none;
  position: relative;
  z-index: 1;
  margin: auto 1.5rem;
  scroll-snap-align: center;
  min-width: 280px;
  max-width: 310px;
  transition: transform .2s ease;
}

.car_sales_link>span {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  z-index: -1;
  box-shadow: inset 0 0 80px 30px #607d8b;
  filter: blur(10px);
}

.car_sales_arrow {
  display: block;
  width: 50px;
  height: 100%;
  position: absolute;
  top: 0;
  transition: background-color .2s ease-in-out;
}

.car_sales_arrow:hover {
  background-color: rgba(90 90 90 / 19%);
  cursor: pointer;
}

.car_sales_arrow.left {
  left: 0;
}

.car_sales_arrow.right {
  right: 0;
}

.car_sales_arrow span {
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  border-left: 3px solid white;
  border-top: 3px solid white;
}

.car_sales_arrow.left span {
  left: 65%;
  transform: rotate(-45deg) translate(-50%, -50%);
}

.car_sales_arrow.right span {
  right: 65%;
  transform: rotate(135deg) translate(-50%, -50%);
}

.car_sales_img figure {
  margin: 0;
  height: 100%;
  width: 100%;
}

.car_sales_img {
  height: 0;
  align-items: baseline;
}

.car_sales_img img {
  height: auto;
  width: 100%;
  filter: saturate(1.2) brightness(1.1);
}

.car_sales_img figcaption {
  padding: 1rem 0;
  top: 205px;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  left: 50%;
  transform: translateX(-50%);
  color: #000000;
  text-align: center;
  background-color: #e7e7e7;
}

span.car_sales_tag {
  font-weight: 700;
  font-family: 'Montserrat';
  margin: .25rem 0 .1rem;
  font-size: 1.1rem;
}

span.car_sales_details {
  margin: .25rem 0;
  font-family: 'Raleway';
  font-weight: 500;
  font-size: 1rem;
}

.car_sales_price {
  justify-content: center;
  align-content: flex-end;
  color: #ffffff;
  font-size: 1.9rem;
  font-family: 'Montserrat';
  font-weight: 600;
  height: 100%;
  padding-bottom: 50px;
}

.content.car_info {
  color: white;
  border-bottom: 1px solid white;
  margin: 5px auto;
  width: 75%;
}

.content.car_info span {
  margin-bottom: 5px;
  color: #FF5722;
  text-shadow: 1px 0px 2px #ff572252;
}

.content.car_info strong {
  margin-bottom: 10px;
}

#services {
  padding: 70px 0;
  max-width: fit-content;
  position: relative;
}

#services .title :is(h1, h3) {
  margin: 0.2rem 0 0.5rem;
  font-size: 2.2rem;
  display: flex;
  flex-direction: column;
  font-weight: 700;
}

#services .title :is(h2, span) {
  text-transform: capitalize;
  font-weight: 400;
  color: black;
}

#services .title h1 span {
  text-transform: unset;
  font-size: 2rem;
  font-family: 'Raleway';
}

#services .title h2 {
  font-size: 1.3rem;
}

#services .content {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  margin: 40px auto calc(40px + .6rem);
  max-width: 95%;
}

#services>.content>p {
  text-align: center;
  font-size: 1.1rem;
  color: black;
  font-weight: 200;
  word-break: normal;
  font-family: 'Raleway';
  line-height: 1.8rem;
  letter-spacing: 0;
}

#services>div:nth-child(odd) {
  max-width: 75%;
  margin: 35px auto;
}

.services {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  width: 200px;
  height: 210px;
  box-shadow: 0px 0px 20px 0px #bebebeb5;
  justify-content: space-between;
  text-decoration: none;
  align-items: center;
  transition: transform .2s ease;
  margin: .5rem;
  border-radius: 8px;
}

.services img {
  width: 60px;
  margin-bottom: 1rem;
  filter: hue-rotate(358deg) saturate(2.5);
}

.services span,
.services h4 {
  font-family: 'Montserrat';
  text-align: center;
  letter-spacing: -0.3px;
}

.services span {
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  background-color: #204985;
  color: white;
  font-size: 0.9rem;
  padding: 5px 1px;
  width: 80%;
  margin-bottom: 1rem;
  transition: background-color .3s ease;
}

.services h4 {
  margin: 1rem auto;
  font-size: 1.2rem;
  text-transform: capitalize;
  font-weight: 700;
  color: #393939;
}

.services:hover {
  transform: translateY(-10px);
}

.services:hover span,
.services:active span {
  background-color: #ff7100;
}

.services:active span {
  box-shadow: 0 0 8px 4px #b82d03 inset;
}

.lds-facebook {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.lds-facebook div {
  display: inline-block;
  position: absolute;
  width: 16px;
  background: #2e5894;
  animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
  box-shadow: 2px 2px 5px 0px #0000009e;
}

.lds-facebook div:nth-child(1) {
  left: 8px;
  animation-delay: -0.24s;
}

.lds-facebook div:nth-child(2) {
  left: 32px;
  animation-delay: -0.12s;
}

.lds-facebook div:nth-child(3) {
  left: 56px;
  animation-delay: 0;
}

@keyframes lds-facebook {
  0% {
    top: 8px;
    height: 64px;
  }

  50%,
  100% {
    top: 24px;
    height: 32px;
  }
}

.block {
  display: block !important;
}

.li-selector ul {
  padding: 0;
  display: block;
  height: 14px;
}

.li-selector li {
  display: inline-block;
  margin: auto 5px;
  width: 10px;
  height: 10px;
  border: 1px solid white;
  border-radius: 40%;
  transition: background-color .2s ease-in-out;
}

.li-selector li.active {
  background-color: white;
}


@media (max-width: 1439px) {
  #search_section :is(#car_icons, form) {
    width: 85%;
  }

  #services div:nth-child(2) {
    max-width: 60%;
  }
}

@media (max-width: 1200px) {
  #services {
    max-width: 85%;
    padding: 20px 0;
  }

  #services> :is(div.title, div.content) {
    max-width: 90%;
    margin: 35px auto;
  }

  #services .title h1 {
    line-height: 2.6rem;
  }

  #services .title h2 {
    line-height: 1.7rem;
    margin-top: 1rem;
  }

  #services .title :is(h1, h2) {
    text-align: center;
  }

  #services .title h1 span {
    margin-bottom: .7rem;
  }

  #services .content {
    justify-content: center;
  }

  #services>.content>p {
    text-align: left;
  }

  .services {
    margin: 1rem;
  }

}