*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  -webkit-user-select: none;
  /* Safari */
  /* IE 10 and IE 11 */
  -moz-user-select: none;
       user-select: none;
  /* Standard syntax */
}

:root {
  --largura: 600px;
  --fonttitulo: 25px;
  --fontfatores: 18px;
  --largvalIdade: 500px;
  --fontcondicao: 18px;
  --alturacondicao: 32px;
  --largurajanela: 400px;
  --fontcarrossel: 16px;
  --refereciaFontsize: 14px;
  --areferenciaFontsize: 12px;
}

.body {
  margin: 0;
  padding: 0;
}

.container {
  position: relative;
  max-width: var(--largura);
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto auto auto;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  z-index: 0;
}

.item {
  background-color: #9eecef;
  border-bottom: 3px solid rgb(194, 240, 249);
  overflow: hidden;
}

.item:last-child {
  border-bottom: none;
}

.titulo {
  padding: 15px 0px 5px 0px;
  font-size: var(--fonttitulo);
  text-align: center;
}

.subt {
  text-align: center;
  font-size: var(--fontsubt);
}

.rotas {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto;
  justify-content: end;
  margin-bottom: 3px;
  margin-right: 3px;
}

.lang a {
  padding: 3px 12px 3px 12px;
  text-decoration: none;
  background-color: black;
  color: white;
  font-size: 11px;
  border-radius: 5px;
  margin-right: 3px;
}

.aba {
  text-align: center;
  font-size: var(--fontfatores);
  color: rgb(4, 9, 152);
  margin-top: 10px;
}

.demografico {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: 30px 40px auto;
  justify-items: center;
  align-items: center;
}

.longPerma {
  grid-area: 3/1/3/4;
  display: grid;
  grid-template-columns: auto auto;
  -moz-column-gap: 10px;
       column-gap: 10px;
  grid-template-rows: var(--alturacondicao);
  align-items: center;
}

.botao {
  display: flex;
  justify-content: start;
  align-items: center;
  margin-left: 16px;
}

.condicao {
  justify-self: start;
  font-size: var(--fontcondicao);
}

.visor {
  grid-area: 1/1/1/4;
}

#idade {
  width: 54px;
  text-align: center;
}

#slideIdade {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: var(--largvalIdade);
  height: 3px;
  background: linear-gradient(to right, red 0%, #06d806 0%);
  outline: none;
  border-radius: 1px;
  cursor: pointer;
}

#slideIdade::-webkit-slider-thumb {
  -webkit-appearance: none;
          appearance: none;
  appearance: none;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: rgb(216, 215, 215);
  border: 1px solid black;
  cursor: pointer;
}

#slideIdade::-moz-range-thumb {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: rgb(216, 215, 215);
  border: 1px solid black;
  cursor: pointer;
}

#slideIdade::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

#slideIdade::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.menos,
.mais {
  cursor: pointer;
}

.menos:hover .circulo,
.mais:hover .circulo {
  fill: rgb(0, 225, 255);
}

.menos:hover .linha,
.mais:hover .linha {
  stroke: white;
}

.backbotao {
  fill: rgb(4, 156, 27);
  transition: fill 1s;
}

.circle {
  fill: rgb(242, 242, 80);
  transition: transform 0.5s;
}

.sim,
.nao {
  font-size: 13px;
  font-weight: bold;
  fill: white;
}

.sim {
  opacity: 0;
}

.switch {
  cursor: pointer;
}

.switch.on .circle {
  transform: translateX(40px);
}

.switch.longo .circle {
  transform: translateX(78px);
}

.switch.on .sim,
.switch.longo .sim {
  opacity: 1;
}

.switch.on .nao,
.switch.longo .nao {
  opacity: 0;
}

.switch.on .backbotao {
  fill: red;
}

.switch.longo .backbotao {
  fill: rgb(67, 114, 233);
}

.largo .backbotao {
  fill: #ec69b5;
}

.sex {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 30px 30px;
  justify-items: center;
  align-items: center;
}

.largo .sim,
.largo .nao {
  font-size: 16px;
}

.opcoes,
.opcoes_1,
.opcoes_2 {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: repeat(5, 30px);
  -moz-column-gap: 10px;
       column-gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}

.opcoes_1 {
  grid-template-columns: 0.1fr 0.9fr;
  grid-template-rows: repeat(5, var(--alturacondicao));
}

.opcoes_2 {
  grid-template-columns: 0.1fr 0.9fr;
  grid-template-rows: repeat(7, var(--alturacondicao));
}

.janela {
  position: relative;
  width: var(--largurajanela);
  height: 150px;
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.roda {
  align-items: center;
  position: absolute;
  width: 100%;
  height: 100%;
  transform: translateZ(-140px);
  transform-style: preserve-3d;
  transition: transform 2s;
}

.tabela {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

table {
  border-collapse: collapse;
  width: 100%;
  height: 100%;
  font-size: var(--fontcarrossel);
}

td {
  border: 1px solid black;
  text-align: left;
  padding: 3px;
}

td:nth-child(1) {
  width: 120px;
}

td:nth-child(2) {
  width: 260px;
  text-align: center;
  padding-left: 10px;
}

tr:nth-child(odd) {
  background-color: #61cbe2;
}

tr:nth-child(even) {
  background-color: #afebf7;
}

.tabela:nth-child(1) {
  transform: rotateX(0deg) translateZ(140px);
}

.tabela:nth-child(2) {
  transform: rotateX(72deg) translateZ(140px);
}

.tabela:nth-child(3) {
  transform: rotateX(144deg) translateZ(140px);
}

.tabela:nth-child(4) {
  transform: rotateX(216deg) translateZ(140px);
}

.tabela:nth-child(5) {
  transform: rotateX(288deg) translateZ(140px);
}

.psi {
  font-size: 20px;
  font-weight: bold;
}

.reinicia {
  display: flex;
  justify-content: center;
  align-items: center;
}

.reinicia button {
  font-size: 12px;
}

.referencia,
.areferencia {
  padding: 2px 5px 4px 20px;
  text-indent: -15px;
  font-size: var(--refereciaFontsize);
  font-weight: bold;
}

.referencia {
  font-style: italic;
  text-decoration: underline;
}

.areferencia {
  font-size: var(--areferenciaFontsize);
  font-weight: normal;
}

@media screen and (max-width: 480px) {
  :root {
    --largura: 100%;
    --fonttitulo: 20px;
    --fontfatores: 16px;
    --largvalIdade: 320px;
    --fontcondicao: 16px;
    --alturacondicao: 42px;
    --largurajanela: 360px;
    --fontcarrossel: 14px;
    --refereciaFontsize: 12px;
    --areferenciaFontsize: 11px;
  }
  .titulo {
    font-size: var(--fonttitulo);
  }
  .aba {
    font-size: var(--fontfatores);
  }
  #slideIdade {
    width: var(--largvalIdade);
  }
  .lang a {
    font-size: 10px;
    padding: 2px 10px;
  }
}
@media screen and (max-width: 393px) {
  :root {
    --largura: 100%;
    --fonttitulo: 20px;
    --fontfatores: 16px;
    --largvalIdade: 300px;
    --largurajanela: 350px;
  }
}
@media screen and (max-width: 375px) {
  :root {
    --largura: 100%;
    --fonttitulo: 20px;
    --fontfatores: 16px;
    --largvalIdade: 286px;
    --largurajanela: 330px;
    --fontcarrossel: 13px;
  }
}
@media screen and (max-width: 360px) {
  :root {
    --largura: 100%;
    --fonttitulo: 20px;
    --fontfatores: 16px;
    --largvalIdade: 260px;
    --largurajanela: 300px;
  }
}
@media screen and (max-width: 320px) {
  :root {
    --largura: 100%;
    --fonttitulo: 20px;
    --fontfatores: 16px;
    --largvalIdade: 230px;
    --largurajanela: 280px;
    --fontcarrossel: 11px;
  }
}