* {
  font-family: "IBM Plex Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
    height: 100%;
    background-color: rgb(255, 255, 255);
    justify-content: center;
}


  h5{
    font-size: 14px;
    padding: 12px;
    font-weight: 500;
    font-family: "IBM Plex Sans", sans-serif;
  }

  h6 {
  font-size: 18px;
  font-weight: 500;
  font-family: "IBM Plex Sans", sans-serif;
  display: block;
  margin-bottom: 10px;


  
  }

  span{
    font-size: 15px;
    padding: 13px;
    font-weight: 600;
    font-family: "IBM Plex Sans", sans-serif;
  }
  
  h1 {
    font-size: 30px;
    font-weight: 700;
    font-family: "IBM Plex Sans", sans-serif;
  }
  
  p {
    font-size: 18px;
    padding: 23px;
    font-family: "IBM Plex Sans", sans-serif;
  }
  
  strong{
    font-size: 15px;
    padding: 13px;
    font-weight: 600;
    font-family: "IBM Plex Sans", sans-serif;
  }


h1, h6,  h5, p, input,span,strong {
opacity: 0;
transform: translateY(20px);
animation: fadeUp 0.6s ease forwards;
}

input { animation-delay: 0.1s; }
h1 { animation-delay: 0.1s; }
h2 { animation-delay: 0.1s; }
p  { animation-delay: 0.2s; }
span { animation-delay: 0.1s; }
strong { animation-delay: 0.2s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  } 
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

  .side-button {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background-color: #ffffffcc;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 6;

    & a {
      width: 100%;
      height: 50%;
    }
  }

  .side-button:hover {
    background-color: #f0f0f0;
  }

  .side-button i {
    font-size: 24px;
    color: #333;
  }

  .side-button-left {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background-color: #ffffffcc;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;

    & a {
      width: 100%;
      height: 50%;
    }
  }

  .side-button-left:hover {
    background-color: #f0f0f0;
  }

  .side-button-left i {
    font-size: 24px;
    color: #333;
  }



  .quiz-section {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    text-align: center;
    max-width: 700px;
    margin: auto;
    padding: 90px;
    color: 	#2C2C2C;
  }

  .slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right,  
      #f7ddc1 0%, 
      #f08000 var(--slider-progress, 0%), 
      #ffffff var(--slider-progress, 0%), 
      #bdbdbd 100%
      
    );
    outline: none;
    margin: 15px 0;
    z-index: 6;
    transition: background 0.4s ease;
    flex-grow: 1;
  }

  .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: 2px solid #2c3e50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    
  }

  .slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #328bf1;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }

  /* Estilo para o container principal do slider */
  .slider-container-horizontal {
      display: flex;
      align-items: center;
      width: 100%;
      max-width: 600px; /* Ajuste conforme necessário */
      margin: 0 auto;
      gap: 10px;
  }

  /* Estilo para os textos */
  .min-value, .max-value {
      white-space: nowrap; /* Impede que o texto quebre em várias linhas */
      font-size: 14px; /* Ajuste o tamanho conforme necessário */
      color: #333; /* Cor do texto */
      width: 80px; /* Largura fixa para alinhamento */
      text-align: center; /* Centraliza o texto dentro da largura fixa */
  }



  .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid black;
    border-radius: 50%;
    margin-top: -6px;
    cursor: pointer;
  }

  .slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid black;
    border-radius: 50%;
    cursor: pointer;
  }

  /* Track (linha de fundo do slider) */
  input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: transparent;
    border-radius: 5px;
  }
  
  /* Círculo indicador (thumb) */
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: white;
    border: 0.5px solid black;
    margin-top: -6px; 
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
  }

  .value-display {
    margin-top: 3px;
    text-align: center;
  }
  
  .mobility-value {
    font-weight: 600;
    font-size: 14px;    
  }

.tela_mobilidade_distancia{
    position: fixed;
    height: 100vh;
    width: 100%;
    background: linear-gradient(to bottom, #328bf1, #f9fbe7); 
    overflow: hidden;
    z-index: 0;
    top: 0;
    left: 0;
    
}

.conteudo {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: 100px;
}

.scene {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.fundo-mobilidade-distancia{
  position: fixed;
  width: 110vw;
  height: auto;
  left: 0;
  bottom: 0;
  transform: translateY(42%) translateX(-5%); 
  z-index: -1;
}

.estrada{
  position: fixed;
  width: 100vw;
  height: auto;
  left: 0;
  bottom: 0;
  transform: translateY(36%);
  z-index: 0;
}


.carro1{  
  position: fixed;
  bottom: 0;
  left: 95%;
  transform: translateY(-17%);
  width: 43vw;
  height: auto;
  z-index: 3;
  animation: moverCarro1 20s linear infinite;
}

.carro3{
  position: fixed;
  bottom: 0;
  left: -15%;
  transform: translateY(3%);
  width: 20vw;
  height: auto;
  z-index: 3;
  animation: moverCarro3 12s linear infinite;

}

.bus2{
  position: fixed;
  bottom: 0;
  left: 5%;
  transform: translateY(-4%);
  width: 20vw;
  height: auto;
  z-index: 3;
  animation: moverBus 25s linear infinite;
}

@keyframes moverBus {
  0% {
    transform: translateX(-100%) translateY(-4%);
  }
  100% {
    transform: translateX(150vw) translateY(-4%);
  }
}

@keyframes moverCarro1 {
  0% {
    transform: translateX(0) translateY(-17%);
  }
  100% {
    transform: translateX(-300%) translateY(-17%);
  }
}

@keyframes moverCarro2 {
  0% {
    transform: scaleX(-1) translateX(0) translateY(-23%);
  }
  100% {
    transform: scaleX(-1) translateX(-150%) translateY(-23%);
  }
}

@keyframes moverCarro3 {
  0% {
    transform: translateX(0) translateY(3%);
  }
  100% {
    transform: translateX(550%) translateY(3%);
  }
}


  @media (max-width: 768px) {
    body {
      padding: 0 10px;
    }

    .progress-bar {
      height: 4px;
    }

    .side-button,
    .side-button-left {
      width: 40px;
      height: 40px;
    }

    .side-button i,
    .side-button-left i {
      font-size: 20px;
    }

    .carpool {
      font-size: 24px;
      width: 90%;
      height: auto;
    }

    .carpool h6 {
      font-size: 18px;
    }

    .control-group {
      flex-direction: column;
      width: 90%;
    }

    .min-value,
    .max-value {
      font-size: 1.8vh;
    }

    .slider {
      height: 8px;
    }

    .slider::-webkit-slider-thumb,
    .slider::-moz-range-thumb {
      width: 20px;
      height: 20px;
    }

    .value-display {
      font-size: 1rem;
    }

    .hours-value {
      font-size: 1.3rem;
    }
  }

  @media (max-width: 500px) {
    .side-button,
    .side-button-left {
      width: 35px;
      height: 35px;
    }

    .side-button i,
    .side-button-left i {
      font-size: 18px;
    }

    .carpool {
      font-size: 20px;
      width: 100%;
      height: auto;
    }

    .carpool h6 {
      font-size: 16px;
    }

    .control-group {
      width: 100%;
    }

    .min-value,
    .max-value {
      font-size: 1.5vh;
    }

    .slider {
      height: 6px;
    }

    .slider::-webkit-slider-thumb,
    .slider::-moz-range-thumb {
      width: 18px;
      height: 18px;
    }

    .value-display {
      font-size: 0.9rem;
    }

    .hours-value {
      font-size: 1.2rem;
    }
  }