body {
  background-color: white;
}

.hero-image {
  background-image: url(../images/frontpage.jpg);
  height: 480px;
  max-width: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/*Form of simple search*/
form[name="car-search-simple"] {
  position: absolute;
  top: 22%;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  font-weight: 700;
}

form[name="car-search-simple"] > div {
  position: relative;
}

form[name="car-search-simple"] > div > h1 {
  font-size: clamp(2rem, 1.46rem + 1.8vw, 3rem);
  margin-bottom: clamp(0.4rem, -0.47rem + 2.9vw, 2rem);
  color: white;
  text-shadow: 2px 2px rgba(0,0,0,0.3);
}

.simple-search-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  position: relative;
  height: 4.4rem;
}

.simple-search-header > div > div, .header.search {
  border: 1px solid white;
  border-left: none;
  text-align: center;
  background-color: #00000069;
  color: white;
  cursor: pointer;
}

.simple-search-header > div > div.car-body {
  border-left: 1px solid white;
}

.simple-search-header > div > div.required {
  border: 3px solid #ffa700;
}

.simple-search-header > div > div.set-value {
  padding: 0 10%;
  display: block;
}

.simple-search-header > div > div > p.active {
  background-color: #00000069;
}

.header-container > .header {
  display: flex;
  box-sizing: border-box;
  height: 100%;
}

.header-container > .header > p.field {
  margin: auto;
  font-size: clamp(1rem, 0.865rem + 0.45vw, 1.25rem);
}

.simple-search-header > div > div.set-value > .field {
  font-size: clamp(0.6rem, 0.54rem + 0.2vw, 0.75rem);
  text-align: left;
}

.header-container > .header > p.value {
  font-size: clamp(0.8rem, 0.692rem + 0.36vw, 1rem);
}

.header-container > div.not-selected-ntfc {
  position: absolute;
  top: -50px;
  width: 155px;
  height: 25px;
  font-size: 0.75rem;
  background-color: white;
  padding: 6px;
  border: 1px solid #777;
  border-radius: 4px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,.5);
  color: #5c5c5c;
  margin-top: 5px;
  margin-left: 17px;
  display: none;
}

.header-container > div.not-selected-ntfc > .triangle {
  all: unset;
}

.header-container > div.not-selected-ntfc > .triangle {
  position: absolute;
  width: 14px;
  background-color: white;
  height: 14px;
  top: 30px;
  transform: rotate(45deg);
  left: 25px;
  border-bottom: 1px solid #777;
  border-right: 1px solid #777;
}

.header-container > div.not-selected-ntfc p {
  margin-left: 32px;
  margin-top: 1px;
  font-size: 0.75rem;
  text-align: left;
  font-weight: 400;
  width: 100%;
}

.material-icons.ntfc {
  position: absolute;
  color: #ffa700;
  line-height: unset;
  left: 8px;
  top: 8px;
}

.box {
  width: 100%;
  margin: 0;
  position: absolute;
  left: 0;
  min-height: 161px;
  height: 100%;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  top: 4.4rem;
  transition: opacity 200ms ease-out;
  display: none;
  opacity: 0;
  cursor: default;
}

.box.active {
  display: block;
  opacity: 1;
}

.header .box {
  z-index: 1;
}

.box > div {
  color: var(--schrift);
}

.box > .triangle {
  position: absolute;
  width: 14px;
  height: 14px;
  background-color: white;
  top: -7px;
  transform: rotate(45deg);
}

.box.car-body > .triangle {
  left: 11%;
}

.box.age > .triangle {
  left: 36%;
}

.box.price > .triangle {
  left: 61%;
}

.box.car-body > .car-body-container > div {
  cursor: pointer;
}

.car-body-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  position: relative;
}

.car-body-container > div {
  height: 80px;
  display: flex;
  flex-direction: column;
  text-align: center;
  border-left: 1px solid #e4e4e4;
}

.car-body-container p {
  font-size: 0.75rem;
}

.car-body-container > .first {
  border-left: none;
}

.car-body-container > .last {
  border-right: none;
}

.car-body-container > .first-row {
  border-bottom: 1px solid #e4e4e4;
}

.car-body-container > .last-row.first {
  border-bottom-left-radius: 4px;
}

.car-body-container > .last-row.last {
  border-bottom-right-radius: 4px;
}

.car-body-container img {
  height: 1.87rem;
  cursor: pointer;
  margin-left: auto;
  margin-right: auto;
  filter: invert(44%) sepia(17%) saturate(1882%) hue-rotate(179deg) brightness(90%) contrast(86%);
  margin-top: 8px;
}

.car-body-container > div > div {
  margin: auto;
}

.car-body-container > div:hover, .age-container > div > div:hover {
  background-color: #ecf8ff;
}

.box.age {
  height: unset;
  min-height: unset;
}

.age-container {
  position: relative;
  display: flex;
}

.age-container > div {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
}

.age-container > div > div {
  display: flex;
  height: 80px;
  cursor: pointer;
  border-left: 1px solid #e4e4e4;
  border-bottom: 1px solid #e4e4e4;
}

.age-container p {
  text-align: center;
  margin: auto;
}

.age-container label {
  display: flex;
}

.age-container label > p {
  cursor: pointer;
}

.price-container {
  position: relative;
  padding-left: 3%;
}

.price-container > div {
  display: flex;
  text-align: left;
}

.price-container > h5 {
  display: flex;
  text-align: left;
  margin: 2% 6% 2% 0;
}

.slider-container {
  padding-left: 10%;
  width: 40%;
}

.slider-description {
  width: 50%;
  font-size: 0.875rem;
  font-weight: 400;
}

.slider-filter {
  margin: 0 5px 5px 0;
}

.slider-filter > p {
  font-size: 0.875rem;
  text-align: left;
  font-weight: 400;
}

.slider-range {
  margin: 10px 20px 0 10px;
  width: 60%;
}

.slider-range > div, div.slider-range > span.ui-slider-handle {
  cursor: pointer;
}

.header.search {
  background-color: var(--cpd-color);
}

.simple-search-header + div {
  display: flex;
}

.simple-search-header + div a {
  color: white;
  text-decoration: underline;
  margin-left: auto;
  text-align: right;
}

.search-assistant {
  margin-top: 0.5rem;
  margin-left: 22%;
}

.search-assistant > h3 {
  color: white;
  font-size: 1rem;
}

.search-assistant > p {
  color: var(--cpd-color);
}

.search-assistant a {
  color: white;
  text-decoration: underline;
  font-weight: 700;
}

.newsletter-container {
  display: flex;
}

.newsletter-container > div {
  width: 40%;
  margin: auto;
}

.newsletter-container h2 {
  color: var(--cpd-color);
  text-align: center;
  margin-bottom: 1rem;
}

.newsletter-container .newsletter-form {
  display: flex;
}

.newsletter-container .newsletter-form > input {
  width: 100%;
  margin-bottom: 0;
  border: 2px solid transparent;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  outline: none;
}

.newsletter-container .newsletter-form > input:focus {
  border: 2px solid var(--cpd-color);
  border-right: none;
}

.newsletter-container .newsletter-form > .newsletter-subscribe {
  display: flex;
  padding: 0.5rem;
  background-color: var(--cpd-color);
  color: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  cursor: pointer;
}

.newsletter-container .newsletter-form > .newsletter-subscribe:hover {
  background-color: #355a97;
}

.newsletter-container .newsletter-form > .newsletter-subscribe > p {
  margin: auto;
}

.parent .container {
  height: 305px;
  display: flex;
  align-items: center;
  position: relative;
}

.parent .container .carbox {
  overflow: hidden;
  position: absolute;
  /*transition: all 0.5s linear;
  transform: translate(-200px);*/
}

.parent .container .carbox:nth-child(1) {
  left: 0;
}

.parent .container .carbox:nth-child(2) {
  left: 220px;
}

.parent .container .carbox:nth-child(3) {
  left: 440px;
}

.parent .container .carbox:nth-child(4) {
  left: 660px;
}

.parent .container .carbox:nth-child(5) {
  left: 880px;
}

.parent .container .carbox:nth-child(6) {
  left: 1100px;
}

.parent .container .carbox:nth-child(7) {
  left: 1320px;
}

.parent .container .carbox:nth-child(8) {
  left: 1540px;
}

.parent .container .carbox:nth-child(9) {
  left: 1760px;
}

.parent .container .carbox:nth-child(10) {
  left: 1980px;
}

.parent .container .carbox:nth-child(11) {
  left: 2200px;
}

.parent .container .carbox:nth-child(12) {
  left: 2420px;
}

.parent .container .carbox:nth-child(13) {
  left: 2640px;
}

.parent .container .carbox:nth-child(14) {
  left: 2860px;
}

.parent .container .carbox:nth-child(15) {
  left: 3080px;
}

.parent .container .carbox:nth-child(16) {
  left: 3300px;
}

.parent .container .carbox:nth-child(17) {
  left: 3520px;
}

.parent .container .carbox:nth-child(18) {
  left: 3740px;
}

.parent .container .carbox:nth-child(19) {
  left: 3960px;
}

.parent .container .carbox:nth-child(20) {
  left: -220px;
}

/*
.parent .container .firstSlide {
  -webkit-animation:  firstChild 0.5s;
  animation:  firstChild 0.5s;
}

@-webkit-keyframes firstChild {
  0% {left:100%; transform: translate(-200px);}
  100% {left: -13%; transform: translate(-200px);}
}
@keyframes firstChild {
 0% {left:100%; transform: translate(-200px);}
  100% {left: -13%; transform: translate(-200px);}
}
*/

@media screen and (min-width: 46.875em) {
  .hero-image {
    height: 100vh;
  }

  form[name="car-search-simple"] {
    top: 43%;
    width: 50%;
    min-width: 432px;
  }

  .car-body-container p {
    font-size: 1rem;
  }

  .search-assistant {
    margin-top: 4rem;
    margin-left: 30%;
  }

  .search-assistant > h3 {
    font-size: 1.75rem;
  }
}