/* before after */
.container {
  max-width: 800px;
}

@media (min-width: 601px) {
  .page-simulateur__header {
    background-image: url("/simulateur/lib/assets/simulator_header.jpeg");
  }
}

@media (max-width: 600px) {
  .page-simulateur__header {
    background-image: url("/simulateur/lib/assets/simulator_header_sm.jpeg");
  }
}

#comparison {
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  position: absolute;
  height: 100%;
}

figure {
  position: absolute;
  background-image: url("/simulateur/lib/assets/sim_after.png");
  background-size: cover;
  font-size: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

@media (max-width: 600px) {
  figure {
    background-image: url("/simulateur/lib/assets/sim_after_sm.png");
  }
}

#divisor {
  background-image: url("/simulateur/lib/assets/sim_before.png");
  background-size: cover;
  position: absolute;
  width: 50%;
  box-shadow: 0 5px 10px -2px rgba(0, 0, 0, 0.3);
  bottom: 0;
  height: 100%;
}

@media (max-width: 600px) {
  #divisor {
    background-image: url("/simulateur/lib/assets/sim_before_sm.png");
  }
}

#divisor::before,
#divisor::after {
  content: "";
  position: absolute;
  right: -2px;
  width: 4px;
  height: calc(50% - 25px);
  background: white;
  z-index: 3;
}

#divisor::before {
  top: 0;
  box-shadow: 0 -3px 8px 1px rgba(0, 0, 0, 0.3);
}

#divisor::after {
  bottom: 0;
  box-shadow: 0 3px 8px 1px rgba(0, 0, 0, 0.3);
}

#handle {
  position: absolute;
  height: 50px;
  width: 50px;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  z-index: 1;
}

#handle::before,
#handle::after {
  content: "";
  width: 0;
  height: 0;
  border: 6px inset transparent;
  position: absolute;
  top: 50%;
  margin-top: -6px;
}

#handle::before {
  border-right: 6px solid white;
  left: 50%;
  margin-left: -17px;
}

#handle::after {
  border-left: 6px solid white;
  right: 50%;
  margin-right: -17px;
}

input[type="range"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  position: absolute;
  top: 50%;
  left: -25px;
  transform: translateY(-50%);
  background-color: transparent;
  width: calc(100% + 50px);
  z-index: 2;
}

input[type="range"]:focus,
input[type="range"]:active {
  border: none;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: none;
  height: 50px;
  width: 50px;
  border-radius: 50%;
  background: transparent;
  border: 4px solid white;
  box-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-track {
  -moz-appearance: none;
  height: 15px;
  width: 100%;
  background-color: transparent;
  position: relative;
  outline: none;
}

.options-car__option {
}

@media (max-width: 1024px) {
  .options-car__option button {
    width: 100%;
  }
}

.options-color__color {
  border: 1px solid black;
  height: 40px;
  width: 40px;

  background: #fff;
  -webkit-box-shadow: 0 1px 2px 0 rgb(34 36 38 / 15%),
    0 0 0 1px rgb(34 36 38 / 15%);
  box-shadow: 0 1px 2px 0 rgb(34 36 38 / 15%), 0 0 0 1px rgb(34 36 38 / 15%);
  border-radius: 0.28571429rem;
}

@media (max-width: 600px) {
  .options-color__color {
    height: 30px;
    width: 30px;
  }
}

.options-color__color_white {
  background-color: white;
}

.options-color__color_black {
  background-color: black;
}

.options-color__color_blue {
  background-color: blue;
}
.options-color__color_red {
  background-color: red;
}

.options-color__color_gray {
  background-color: gray;
}

.options-tint__container {
  display: flex;
}

.options-tint__side {
  display: flex;
  flex-wrap: wrap;
  border-radius: 0.28571429rem;
  background: #fff;
  -webkit-box-shadow: 0 1px 2px 0 rgb(34 36 38 / 15%),
    0 0 0 1px rgb(34 36 38 / 15%);
  box-shadow: 0 1px 2px 0 rgb(34 36 38 / 15%), 0 0 0 1px rgb(34 36 38 / 15%);
}

.options-tint__option {
  border: 1px solid black;
  height: 20px;
  background-color: black;
}

.options-tint__side > div {
  flex-basis: 20%;
  position: relative;
}

.options-tint__side > div:first-child > div:last-child {
  opacity: 0;
}

.options-tint__side > div:nth-child(2) div:last-child {
  opacity: 0.5;
}

.options-tint__side > div:nth-child(3) div:last-child {
  opacity: 0.65;
}

.options-tint__side > div:nth-child(4) div:last-child {
  opacity: 0.8;
}
.options-tint__side > div:nth-child(5) div:last-child {
  opacity: 0.95;
}
.option-tint-percent__container {
  cursor: pointer;
}

.results__car {
  position: relative;
  margin-top: 2rem;
  margin-bottom: 25rem;
}

@media (max-width: 600px) {
  .results__car {
    position: relative;
    margin-top: 3rem;
    margin-bottom: 12.5rem;
  }
}

.car__tint {
  position: absolute;
  z-index: 10;
  width: 100%;
  top: 0%;
  left: 0%;
  transition: opacity 500ms;
}

#car {
  position: absolute;
  width: 100%;
}

#tint_font {
}

#tint_back {
}

#tint_rear {
}

.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(var(--bs-gutter-y) * -1);
  margin-right: calc(var(--bs-gutter-x) * -0.5);
  margin-left: calc(var(--bs-gutter-x) * -0.5);
}

.container.mx-5 {
  margin-right: 3rem !important;
  margin-left: 3rem !important;
}

.me-4 {
  margin-right: 1.5rem !important;
}

.my-3 {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

@media (min-width: 1200px) {
  .app.container {
    max-width: 1140px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }
}

.btn.btn-dark:not(.selected) {
  background-color: transparent !important;
  color: black !important;
  border-radius: 0.28571429rem;
  background: #fff;
  -webkit-box-shadow: 0 1px 2px 0 rgb(34 36 38 / 15%),
    0 0 0 1px rgb(34 36 38 / 15%);
  box-shadow: 0 1px 2px 0 rgb(34 36 38 / 15%), 0 0 0 1px rgb(34 36 38 / 15%);
}

.btn.btn-dark {
  /* color: white !important; */
  transition: background-color 350ms;
}

.btn-dark.selected,
.btn-dark.selected:hover {
  /* background-color: #aa0216 !important; */
  color: white !important;
  box-shadow: none !important;
}

.options-tint__option {
  transition: transform 350ms;
}

.options-tint__option.selected {
  position: relative;
}

.percent {
  position: absolute;
  top: -140%;
  left: 40%;
  transition: opacity 350ms;
  opacity: 0;
  white-space: nowrap;
}

.percent__slider {
  position: relative;
  margin-right: 1rem;
  opacity: 0.5;
}

.option-tint-percent__container.selected .percent {
  opacity: 1;
  font-weight: bold;
}

#auto .btn {
  width: 200px;
}

.slidecontainer {
  width: 100%; /* Width of the outside container */
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 15px;
  border-radius: 5px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #04aa6d;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #04aa6d;
  cursor: pointer;
}

@media (max-width: 600px) {
  .options-car__option button {
    font-size: 0.8rem !important;
  }

  .app h3.mb-4 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
    margin-top: 1rem !important;
  }

  .app h4.mb-5 {
    /*font-size: 1.25rem !important;*/
    margin-bottom: 1.75rem !important;
  }

  .app h4.mb-5.mt-5 {
    margin-top: 1rem !important;
  }
}

.indicator-down {
  animation: infinite animarrow 1500ms;
}

.indicator-arrow {
  border-color: white !important;
}

@keyframes animarrow {
  from {
    transform: translateY(-10px) translateX(-50%) rotate(180deg) scale(1.4);
  }
  to {
    transform: translateY(30px) translateX(-50%) rotate(180deg) scale(1.4);
  }
}

@media (min-width: 768px) {
  .col-12.col-md-5 {
    flex: 0 0 auto;
    width: 41.66666667% !important;
  }
}

.col-4 {
  flex: 0 0 auto;
  width: 33.33333333% !important;
}

@media (max-width: 600px) {
  .options-car__container {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
  }
}
@media (min-width: 1200px) {
  .col-xl-6 {
    flex: 0 0 auto !important;
    width: 50% !important;
  }
}

.options-car__option button {
  font-size: 0.9rem !important;
}

@media (min-width: 601px) {
  .options-car__option button {
    width: 150px !important;
  }
}

@media (max-width: 600px) {
  .options-car__option {
    width: 50% !important;
  }

  .options-car__container {
    margin-left: 0px !important;
  }
}

.btn.btn-dark {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

@media (min-width: 1024px) and (max-width: 1200px) {
  #root,
  .app#auto {
    margin-left: 2rem;
    margin-right: 2rem;
  }

  .app#auto .col-4 {
    width: 50% !important;
  }

  .app#auto .row > .col-12:nth-child(2) {
    transform: translate(-50px);
  }
}

.comme-btn {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.1em;
  font-size: 0.9rem !important;
}

/* ipad */

@media (min-width: 768px) and (max-width: 1025px) {
  .options-car__container .col-4 {
    width: 22% !important;
  }
  .options-car__container {
    justify-content: center;
  }
  .options-color__container {
    justify-content: center;
  }

  h3 {
    text-align: center;
  }

  .results__car {
    margin-bottom: 20rem;
  }
}

#socials .btn {
  color: white !important;
}


.options-color__container{
    justify-content:center;
}