* {
  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;
}

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

h6 {
  font-size: 18px;
  padding: 15px;
  font-weight: 500;
  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: 13px;
  font-family: "IBM Plex Sans", sans-serif;
}

span{
  font-size: 15px;
  padding: 13px;
  font-weight: 600;
  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, p, input,span, strong {
opacity: 0;
transform: translateY(20px);
animation: fadeUp 0.6s ease forwards;
}

span { animation-delay: 0.1s; }
input { animation-delay: 0.1s; }
h1 { animation-delay: 0.1s; }
h2 { animation-delay: 0.1s; }
p  { animation-delay: 0.2s; }
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;
}
}


body {
  height: 100%;
  background-color: rgb(255, 255, 255);
}


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

.progress-bar {
  width: 100%;
  height: 5px;
  background-color: #000000;
  border-radius: 5px;
  overflow: hidden;
  flex-grow: 1;
}

.progress {
  height: 100%;
  background-color: #0066ff;
  width: 0%;
  transition: width 1s ease;
  flex-grow: 1;
}

.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;

    & 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;
}

.toggle-container {
  margin-top: 20px;
  display: flex;  /* Alinhamento flexível */
  align-items: center;
  justify-content: center; /* Centraliza horizontalmente */
}

/* Estilo do botão de alternância */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin: 2% 10px;
}

  .value-display {
    margin-top: 3px;
    text-align: center;
  }

  /* Esconde a caixa de seleção (checkbox) */
  .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

/* O "slider" (a parte do botão que se move) */
.sliders {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

/* O círculo dentro do botão */
.sliders:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  border-radius: 50%;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}

/* Quando o botão é clicado (checkbox está selecionado) */
input:checked + .sliders {
  background-color: #d36729;
}

input:checked + .sliders:before {
  transform: translateX(26px);
}

/* Quando o botão está desmarcado */
.sliders {
  background-color: #ccc;
}

.sliders:before {
  background-color: white;
  transform: translateX(0);
}

.toggle-labels span {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  flex: 1; /* Faz com que ambos os textos ocupem o mesmo espaço */
}



.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;
}

.labels {
  display: flex;
  align-items: center; /* mantém o alinhamento vertical */
  width: 100%;
}

.labels span {
  font-weight: 600;
  font-size: 14px;
  flex: 0.45;
  text-align: center;
}

.slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%; /* Aumenta espaço total */
  max-width: 800px;
  margin: 2% auto;
}

.slider {
  -webkit-appearance: none;
  flex-grow: 1;
  top: 2px; /* ajuste fino para alinhar ao texto, teste valores -2px a 2px */
  flex: 1;
  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;
}

.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);
}

.min-value,
.max-value {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* 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; /* centraliza o thumb */
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

.percentage-output {
  font-size: 16px;
  font-weight: 700;
  margin-top: -5px;
}

.description {
  margin-top: 10px;
  color: #1a1a1a;
}

.description p {
  font-size: 0.85em;
  color: #4d4d4d;
}

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

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

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

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

.casa_normal{
  position: fixed;
  bottom: 0;
  left: 0;

  width: 60vw;
  height: auto;
}

.casa_eletrica{
  position: fixed;
  bottom: 0;
  right: -10%;
  transform: translateY(5%);
  width: 50vw;
  height: auto;
}

.monte{
  position: fixed;
  bottom: 0;
  right: -10%;
  transform: translateY(-70%);
  width: 50vw;
  height: auto;
  z-index: -2;
}

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

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

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

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