:root {
  --cap-size: 25px;
  --cap-gap: 2px;
  --cap-radius: 4px;
  --cap-border: var(--bordas);
  --cap-bg: var(--detalhes);
  --cap-bg-hover: darkblue;
  --cap-color: var(--texto);
}
#bibliaWrap {
  background: var(--fundo-body);
  color: var(--texto);
  padding: 0;
  margin: 0;
  height: calc(100vh - 75px);
}
#areaControles .input-group-addon {
  padding: 0;
  width: auto;
  border: solid 1px #ccc;
  cursor: pointer;
}
#areaControles .input-group-addon:hover {
  background: #eee;
}
#areaControles .input-group-addon .fa-bars {
  padding-top: 3px;
}
#campoBusca {
  border-left: none;
  border-right: none;
}
.ctBiblia {
  height: 100%;
  padding-top: 2px;
}
#colFiltro {
  background: var(--fundo-form);
  border-right: 1px solid var(--bordas);
  padding: 0;
  height: 100%;
  width: 33.33333333%;
}
#selVersao {
  margin-top: 2px;
}
#colFiltro .form-group {
  padding: 0 5px;
}
#colLeitura {
  padding: 0;
  height: 100%;
  width: 66.66666667%;
}
#colFiltro h4 {
  background: var(--barra-topo);
  text-align: center;
  padding: 5px 0;
}
/* LISTA DE LIVROS */
#listaLivros {
  list-style: none;
  padding-left: 0;
  margin: 0;
  padding: 0 5px;
  overflow-y: auto;
  border-top: 1px dashed var(--detalhes);
  height: calc(100% - 32px);
}
.btn-default:hover {
  background: #eee;
  color: #000;
}
#listaLivros > li {
  padding: 6px 4px;
  border-bottom: 1px dashed var(--bordas);
  cursor: pointer;
  position: relative;
}
.sLiv, .sInf, .sPlay {
  position: absolute;
  right: 4px;
  top: 0;
  font-size: 22px;
  padding: 8px;
  color: #666;
}
.sInf {right: 45px;}
.sLiv:hover {
  border-color: #eee;
  color: #000;
}
.sPlay {
  right: 90px;
}
.sLiv {
  font-size: 18px
}
#listaLivros li a {
  color: var(--texto);
  display: block;
  width: 100%;
}
#listaLivros > li:hover {
  background: var(--fundo-hover);
  color: var(--texto-hover);
}

/* Título do livro + grade de capítulos */
#listaLivros ul {
  list-style: none;
  margin: 2px 0 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--cap-size), 1fr));
  gap: var(--cap-gap);
  align-items: start;
  justify-items: start;
}
#listaLivros ul li {
  margin: 0;
  padding: 0;
}
#listaLivros .LIV ul {
  display: none;
  margin-top: 5px;
}
#listaLivros .LIV .visivel {
  display: grid;
}
#listaLivros ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: var(--cap-size);
  height: var(--cap-size);

  border: 1px solid var(--cap-border);
  border-radius: var(--cap-radius);
  text-decoration: none;

  background: var(--cap-bg);
  color: var(--cap-color);
  line-height: 1;
  user-select: none;
  font-size: 12px;
}
#listaLivros ul li span.active, #listaLivros ul li span:hover {
  background: var(--cap-bg-hover);
  color: #fff;
  cursor: pointer;
  border: none;
}
#topoLeitura {
  background: var(--fundo-form);
  border-bottom: 1px solid var(--bordas);
  padding: 2px;
}
#titLeitura {
  font-weight: bold;
  font-size: 16px;
  margin: 0;
  display: table;
}
#titLeitura button, .dvLocalRead {
  display: table-cell
}
.dvLocalRead {
  padding: 0 5px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  font-size: 14px;
}
#capConteudo {
  background: var(--fundo-form);
  padding: 0px;
  overflow-y: auto;
  line-height: 1.6em;
  font-size: 16px;
  height: calc(100% - 30px);
}
#topoLeitura .col-xs-12 {
  padding: 0;
}
#topoLeitura .vLiv {
  font-size: 24px;
  line-height: 12px;
  cursor: pointer;
  width: 30px;
  text-align: center;
  display: table-cell;
  border-radius: 3px;
  transform: scale(0.9, 1.2);
  transform-origin: center;
  position: relative;
  left: -1px;
  top: -5px;
}
#topoLeitura .vLiv:before {
  position: relative;
  top: +8px;
}
#areaControles button {
  height: 28px;
  border-color: #aaa;
  padding: 3px 12px;
}
.lnVerso {
  padding: 4px 2px;
  border-bottom: 1px dashed var(--detalhes);
  word-wrap: break-word;
}
#lbCap, #lbLivro {
  position: relative;
  top: +3px;
}
.numVerso {
  display: inline-block;
  min-width: 26px;
  padding: 0 6px;
  margin-right: 6px;
  border-radius: 3px;
  color: var(--texto-detalhes);
  background: var(--bordas);
}
.txtBus {
  width: calc(100% - 140px);
  display: flex;
}
#tamFonte {width: 60px;}
.txtBus .fa-search {
  width: 25px;
  font-size: 15px;
  cursor: pointer;

}
#areaControles input[disabled] {
  background: #fff;
  cursor: default;
}
#verCapitulo {
  padding: 0;
}
#verCapitulo a {color: var(--texto);}
#verCapitulo a p {
  display: table;
}
#verCapitulo a p i {
  width:25px;
  text-align: center;
  border: solid 1px #ccc;
  padding: 3px 0 2px 0;
  margin-left: 5px;
  position: relative;
  top: +2px;
  border-radius: 3px;
}
#verCapitulo a p i:hover {
  background: #eee;
}
#verCapitulo a p span {
  display: table-cell;
  width: calc(100% -30px);
  padding-right: 20px;
}
#verCapitulo .marcar span {
  font-weight: bold;
  background: #fefecf;
  padding: 5px 0;
  color: #006;
}   
.resBsuca {
  text-align: center;
  margin: 5px 0;
  border-bottom: dashed 1px #999;
  padding: 5px 0;
  font-size: 16px;
  font-weight: normal;
  color: #666;
}
.resBsuca i {
  font-weight: bold;
  color: #000;
}
#verCapitulo b {
  font-weight: bold;
  font-family: 'Sans Serif';
  font-size: 12px;
  display: table-cell;
  padding-right: 5px;
  white-space: nowrap;
  font-style: italic;
  color: #666;
  width: 25px;
  text-align: right;
}
#verCapitulo .mark {
  font-weight: bold;
  background: #fcf;
  border-radius: 10px;
}
.resBusca {
  width: 100%;
  cursor: pointer;
  padding: 10px 0 10px 10px;
}
.resBusca h5 {
  width: 250px;
  font-size: 14px;
  font-family: 'Times New Roman';
  font-style: italic;
  color: #333;
  margin: 0;
  margin-left: 10px;
}
.resBusca h5:hover {
  text-decoration: underline;
  color: #000;
}
.resBusca:hover {
  background: #eee;
}
.resBusca:hover h5 {
  font-weight: bold;
  color: #000;
}
#titLeitura #btnAbreFiltro {
  display: none;
  margin-bottom: 8px;
}
#btnMaisBus {
  text-align: center;
  font-size: 16px;
  border-top: dashed 1px #666;
  padding: 5px 0;
  cursor: pointer;
  color: #666;
  font-style: italic;
}
#btnMaisBus:hover {
  cursor:pointer;
}
#menuVersos {
  position: absolute;
  left: 0;
  top: 28px;
  list-style: none;
  padding: 0;
  background: #fff;
  border: solid 1px var(--bordas);
  border-radius: 3px;
  display: none;
  z-index: 999
}
#menuVersos li i {
  font-size: 18px;
  padding: 8px 10px;
  position: absolute;
  left: 0;
  margin-top: -7px;
  border-right: solid 1px var(--bordas);
  background: var(--detalhes);
  width: 35px;
  text-align: center;
}
#menuVersos li {
  text-align: left;
  padding: 7px 10px 7px 45px;
  border-top: solid 1px var(--bordas);
  cursor: pointer
}
#menuVersos li:hover {
  background: #eee;
}
#menuVersos li:first-child {
  border: none;
}
#btTemaTop span {
  display: none;
}
@media (max-width: 1280px) {
  #lbLivro {
    font-size: 12px;
  }
}
@media (max-width: 1083px) and (min-width: 771px) {
  #areaControles .col-sm-8 {
    width: 50%;
  }
  #areaControles .col-sm-4 {
    width: 50%;
  }
}
@media (max-width: 800px) and (min-width: 771px) {
  #colFiltro {
    width: 33%;
    float: left;
  }
  #colLeitura {
    width: 66%;
    float: left;
  }
}
@media (max-width: 770px) {
  #colLeitura {
    width: 66%;
    float: left;
  }
  #btnAbreFiltro { 
    display: inline-block; 
    margin-left: 5px;
  }
  #areaControles .col-xs-12 {
    margin: 2px 0 0 0;
    padding: 0 3px;
    display: flex;
  }
  #titLeitura {
    line-height: 0;
    width: 100%;
    display: flex;
    height: 30px;
  }
  #titLeitura #btnAbreFiltro {
    display: inline-block;
  }
  .dvLocalRead, #areaControles button {
    display: inline-block;
    height: 28px;
    margin: 0;
    font-size: 12px;
    line-height: 14px;
    font-weight: normal;
  }
  .dvLocalRead {
    width: 100%;
    margin: 0;
    text-align: center;
    padding: 0;
  }
  .txtBus {
    width: calc(100% - 118px);
    padding: 0;
    float: left;
  }
  .txtFonts {
    display: inline-block;
  }
  #tamFonte {
    width: 47px;
  }
  #campoBusca {
    width: calc(100% - 75px);
    display: inline-block;
  }
  .form-group {
    padding: 0;
    margin: 0;
    float: right;
  }
  #topoLeitura {padding: 0;}
  #lbCap, #lbLivro {top: +5px;}
  #capConteudo {
    height: calc(100vh - 140px);

  }
  .form-inline {
    margin: 0;
    padding: 0;
    border: none;
    height: 32px;
    width: 100%;
    display: flex;
  }
  #colLeitura {
    width: 100% !important;
  }
  #colFiltro {
    position: absolute;
    display: none;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    z-index: 9999;
    width: 100%;
    top: 34px;
  }
  #btnMaisBus {
    width: 100%;
    font-size: 14px;
    padding: 0;
  }
  #topoLeitura .vLiv {
    display: none;
  }
  #areaControles .input-group-addon {
    min-height: 28px;
    line-height: 28px;
    width: 35px;
  }
  #listaLivros {
    display: block;
    width: 100%;
    clear: both;
    height: calc(100% - 60px);
  }
}


html.bibDark {
  color-scheme: dark;
  --fundo-body: #0f1720;
  --bordas: #33465c;
  --barra-topo: #17212d;
  --rodape: #17212d;
  --texto: #e6edf3;
  --sub-texto: #aebccc;
  --detalhes: #223142;
  --destacar: #202c3a;
  --btn-primary: #245f93;
  --btn-warning: #936016;
  --btn-danger: #923b3b;
  --btn-success: #0d5b49;
  --bts-texto: #ffffff;
  --fundo-form: #17212d;
  --fundo-staff: #202c3a;
  --texto-detalhes: #ffffff;
  --fundo-hover: #2c3f55;
  --texto-hover: #ffffff;
  --bib-cristo-tx: #9fd3ff;
}
html.bibLight {
  color-scheme: light;
  --bib-cristo-tx: #00203F;
}
html.bibDark body,
html.bibDark #body_principal,
html.bibDark #corpo_site,
html.bibDark #rodape_site,
html.bibDark #bibliaWrap,
html.bibDark #colFiltro,
html.bibDark #colLeitura,
html.bibDark #capConteudo {
  background: var(--fundo-body);
  color: var(--texto);
}
html.bibDark #colFiltro,
html.bibDark #topoLeitura,
html.bibDark #capConteudo,
html.bibDark #listaLivros,
html.bibDark #menuVersos,
html.bibDark #cfgBibliaBox .cfgBibliaCt,
html.bibDark #editCapTxt {
  background: var(--fundo-form);
  color: var(--texto);
  border-color: var(--bordas);
}
html.bibDark #topoLeitura {
  box-shadow: 0 1px 0 rgba(255,255,255,.03);
}
html.bibDark #colFiltro h4,
html.bibDark #editCapBar,
html.bibDark #menuVersos li i {
  background: var(--barra-topo);
  color: var(--texto);
  border-color: var(--bordas);
}
html.bibDark .form-control,
html.bibDark select,
html.bibDark input,
html.bibDark textarea,
html.bibDark #campoBusca,
html.bibDark #areaControles input[disabled] {
  background: #101923;
  color: var(--texto);
  border-color: var(--bordas);
}
html.bibDark .form-control::placeholder,
html.bibDark input::placeholder,
html.bibDark textarea::placeholder {
  color: #8fa1b5;
}
html.bibDark .btn-default,
html.bibDark .input-group-addon,
html.bibDark #areaControles .input-group-addon,
html.bibDark .dvLocalRead,
html.bibDark #listaLivros ul li span,
html.bibDark #verCapitulo a p i,
html.bibDark #cfgBibliaBox .cfgCorBt {
  background: var(--detalhes);
  color: var(--texto);
  border-color: var(--bordas);
}
html.bibDark .btn-default:hover,
html.bibDark #areaControles .input-group-addon:hover,
html.bibDark #verCapitulo a p i:hover,
html.bibDark #menuVersos li:hover,
html.bibDark .resBusca:hover,
html.bibDark #listaLivros > li:hover,
html.bibDark #listaLivros ul li span:hover,
html.bibDark #listaLivros ul li span.active {
  background: var(--fundo-hover);
  color: var(--texto-hover);
  border-color: #57708e;
}
html.bibDark #listaLivros > li,
html.bibDark #menuVersos li,
html.bibDark .lnVerso,
html.bibDark #verCapitulo a p i,
html.bibDark .dvLocalRead,
html.bibDark #editCapBar,
html.bibDark #cfgBibliaBox .cfgCorBt,
html.bibDark #cfgBibliaBox .cfgPaleta button {
  border-color: var(--bordas);
}
html.bibDark #listaLivros li a,
html.bibDark #verCapitulo a,
html.bibDark #verCapitulo a p span,
html.bibDark #capConteudo,
html.bibDark #editCapTxt {
  color: var(--texto);
}
html.bibDark .sLiv,
html.bibDark .sInf,
html.bibDark .resBsuca,
html.bibDark #verCapitulo b,
html.bibDark .resBusca h5,
html.bibDark #btnMaisBus,
html.bibDark #cfgBibliaBox label {
  color: var(--sub-texto);
}
html.bibDark .resBsuca i,
html.bibDark .resBusca:hover h5,
html.bibDark #lbLivro,
html.bibDark #lbCap {
  color: var(--texto);
}
html.bibDark .numVerso {
  background: #40556e;
  color: #ffffff;
}
html.bibDark #verCapitulo .mark {
  background: #5b3f66;
  color: #ffffff;
}
html.bibDark #verCapitulo .marcar span,
html.bibDark #verCapitulo span.bibMarcado {
  background: var(--bib-marca-bg,#fefecf);
  color: var(--bib-marca-tx,#003366);
  font-weight: bold;
  font-style: italic;
}
html.bibDark #cfgBibliaBox {
  background: rgba(0,0,0,.65);
}
html.bibDark #cfgBibliaBox .cfgPaleta {
  background: #101923;
  border: 1px solid var(--bordas);
  padding: 6px;
  border-radius: 4px;
}
html.bibDark #cfgBibliaBox .cfgPaleta button.sel {
  outline-color: #9fd3ff;
}
html.bibDark #editCapTxt:focus {
  border-color: #9fd3ff;
  box-shadow: 0 0 0 2px rgba(159,211,255,.18);
}
html.bibLight #verCapitulo p.falaCristo > span[itemprop="text"],
body.bibLight #verCapitulo p.falaCristo > span[itemprop="text"] {
  color: var(--bib-cristo-tx,#00203F) !important;
  font-weight: bold;
  font-style: italic;
}
html.bibDark #verCapitulo p.falaCristo > span[itemprop="text"],
body.bibDark #verCapitulo p.falaCristo > span[itemprop="text"] {
  color: var(--bib-cristo-tx,#9fd3ff) !important;
  font-weight: bold;
  font-style: italic;
}
