*,
*::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 */
}

body {
  margin: 0;
  padding: 0;
}

:root {
  --largura: 600px;
  --tituloFontsize: 25px;
  --subtituloFontsize: 18px;
  --referenciaFontsize: 14px;
  --areferenciaFontsize: 13px;
}

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

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

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

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

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

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

.atabela {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto;
  justify-items: center;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 4px;
}

.fatores {
  width: 96%;
  border-collapse: collapse;
}

.fatores td {
  border: 1px solid black;
  padding: 10px 0;
}

.fatores td:nth-child(1) {
  width: 80px;
}

.fatores td:nth-child(2) {
  padding-left: 10px;
}

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

.toggle-knob {
  transition: cx 0.4s ease;
}

.toggle-bg {
  transition: fill 0.5s ease;
}

.sim,
.nao {
  transition: fill-opacity 0.5s ease;
}

.imc {
  width: 100%;
}

.oimc {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto auto;
  align-items: center;
}

.botao {
  justify-self: end;
  margin-right: 8px;
}

button {
  cursor: pointer;
}

.botaoTexto {
  font-size: 11px;
  border-radius: 5px;
  padding: 1px 5px;
}

.reiniciaBotao {
  float: right;
  margin-right: 8px;
}

.resultados {
  position: relative;
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto auto;
  margin-top: 10px;
  margin-bottom: 10px;
}

.atabela2 {
  margin-left: auto;
  margin-right: auto;
}

.result {
  width: 240px;
  border-collapse: collapse;
}

.destaque {
  background-color: rgb(16, 86, 236);
  color: white;
}

.result td,
th {
  border: 1px solid black;
  text-align: center;
}

.result tr {
  height: 26px;
}

.titResultado {
  font-size: 20px;
  text-align: center;
}

.setas {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 2;
}

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

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

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

.overlay {
  height: 100%;
  width: 0;
  position: absolute;
  z-index: 3;
  left: 0px;
  top: 0;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.overlay a {
  text-decoration: none;
  font-size: 36px;
  color: #c7c7c7;
  display: inline;
  transition: 0.3s;
}

.closebtn {
  position: absolute;
  color: #c7c7c7;
  right: 10px;
}

.closebtn:hover {
  color: white;
}

iframe {
  position: relative;
  top: 40px;
  left: -4px;
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 480px) {
  :root {
    --largura: 100%;
    --tituloFontsize: 20px;
    --subtituloFontsize: 16px;
    --referenciaFontsize: 13px;
    --areferenciaFontsize: 12px;
  }
  iframe {
    left: 0px;
  }
}