@import url("https://fonts.googleapis.com/css?family=Cardo");
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

:root {
  --textColor: rgba(0, 0, 0, 0.85);
  --brandColor: #560219;
  --sans-font: "Open Sans", Arial, sans-serif;
  --serif-font: "Merriweather", Georgia, "Times New Roman", Times, serif;
}

body {
  font: 1em var(--serif-font);
  margin: 0;
  line-height: 1.35em;
  color: var(--textColor);
  background-color: #fdfeff;
  /* text-align: justify; */
}

a:link,
a:visited,
a:active {
  text-decoration: none;
  color: #0092f2;
}

a:hover {
  text-decoration: none;
  color: #99d6ff;
}

h1,
h2,
h3,
h4 {
  margin: 24px 0;
  font-family: var(--sans-font);
  font-weight: 600;
}

h1 {
  font-size: 24px;
  font-weight: bold;
}

h2 {
  margin: auto;
  font-size: 22px;
}

h3 {
  margin: 8px 0;
  font-size: 20px;
}

h4 {
  font-size: 18px;
}

hr {
  height: 1px;
  background: lightgrey;
  border: none;
}

q {
  font-style: italic;
}

/* REUSABLE CLASSES */

.show-mobile {
  display: none;
}

.show-desktop {
  display: block;
}

.d-flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.align-items-center {
  align-items: center;
}

.center {
  text-align: center;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.d-none {
  display: none;
}

/* ELEMENT CLASSES */

.app-bar {
  position: fixed;
  left: 0;
  right: 0;
  height: 50px;
  padding: 6px 0;
  background-color: var(--brandColor);
  color: white;
  text-align: center;
  z-index: 1000;

  & > .content {
    height: 100%;
  }

  & h1 {
    margin: 12px 0px;
    font-family: var(--serif-font);
    font-size: 19px;
    font-weight: bold;

    & a {
      color: rgba(255, 255, 255, 0.85) !important;
    }
  }
}

.main-nav {
  transition: all 1s ease;
  z-index: 1000;

  & ul {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    font-family: var(--sans-font);
    list-style: none;

    & li a {
      color: rgba(255, 255, 255, 0.85);
      font-size: 15px;

      &:visited {
        color: rgba(255, 255, 255, 0.85);
      }
    }
  }
}

#toggleMenu {
  display: none;
}

.toolbar {
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  padding: 12px;
  background-color: #ebebeb;
  z-index: 999;

  & h2 {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    font-size: 20px !important;
  }

	.search {
    min-width: 200px;
	}	

  & input.pagefind-ui__search-input.svelte-e9gkc3 {
    width: 200px;
    height: 36px;
    padding: 0 27px;
    font-size: 14px;
    font-weight: normal;
  }

  & .pagefind-ui__search-clear.svelte-e9gkc3 {
    height: 32px !important;
  }

  & .pagefind-ui__form.svelte-e9gkc3:before {
    top: 12px !important;
    left: 8px !important;
  }
}

select.drop {
  padding: 6px;
  background-color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
}

.button-group {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  min-width: 198px;
}

button.square {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 4px;
  background-color: var(--brandColor);
  color: white;
  cursor: pointer;
}

.no_strongs #strongBt,
.no_translit #translitBt,
.no_greek #greekBt,
.no_grammar #gramBt {
  background-color: rgb(123, 0, 5, 0.3);
}

.no_strongs .strongs,
.no_translit .translit,
.no_greek .greek,
.no_greek .punct,
.no_grammar .refs {
  display: none;
}

.install-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  padding: 12px 16px;
  background: rgba(86, 2, 25, 0.97);
  color: #fff;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
}

.install-banner.hidden {
  display: none;
}

.install-banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.install-banner__content p {
  margin: 0;
  font: 600 14px/1.4 "Open Sans", Arial, sans-serif;
}

.install-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.install-banner button {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font: 600 14px/1 "Open Sans", Arial, sans-serif;
  cursor: pointer;
}

.install-banner button:not(.secondary) {
  background: #fff;
  color: var(--brandColor);
}

.install-banner button.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.main-content {
  margin-top: 124px;
  padding-bottom: 40px;
}

.home.main-content {
  margin-top: 80px;
  padding-bottom: 40px;
}

.book-group {
  color: rgba(0, 0, 0, 0.7);
  margin: 0 0 8px;
}

.book-lists {
  & ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;

    & a {
      font-family: var(--sans-font);
      line-height: 1.5;
    }
  }
}

/* STRUCTURE */

.wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.content {
  max-width: 1200px;
  margin: 0 auto;
	padding: 0 24px;

  & h2 {
    margin-top: 32px;
    padding: 8px 12px;
    background: #efefef;
    border-radius: 4px;
  }

  & p {
    line-height: 1.6;
  }
}

.content-frame {
  flex: 1;
  width: 100%;
}

#movebox {
  text-align: center;
}

/* INTERLINEAR */

.chapter-wrapper {
	width: 95%;
	margin: 0 auto;
}

ul.versiculos {
	list-style: none;
	padding: 0;
	
	& li {
    display: flex;
    gap: 16px;
    margin: 24px 0 40px;


		& .interlinear {
			display: flex;
			gap: 12px;
			flex-wrap: wrap;

			& .token {
					display: flex;
					flex-direction: column;
					gap: 0;
			}
		}
	}
}

#movebox2,
#topheading,
.page-header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  padding-top: 32px;
  padding-bottom: 24px;
  font-size: 1.05em;
  font-weight: 700;
  color: #7b0000;
  text-align: center;
}

.page-header h3 {
  font-family: var(--serif-font);
  font-weight: bold;
}

#movebox2 a,
#topheading a {
  padding: 4px;
  border-radius: 50px;
  color: #00a7ff;
  opacity: 0.3;
}

#movebox2 a:hover,
#topheading a:hover {
  background-color: #e5e5e5;
  opacity: 1;
}

#movebox2 table {
  width: 100%;
}

.vheading {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #7b0000;
  text-align: center;
}

.title,
.hdg {
  display: inline-block;
  padding-bottom: 20px;
  font-size: 17px;
  line-height: 44px;
  font-weight: bold;
  color: black;
}

.pericope-title {
	margin: 0;
	padding: 0 !important;
	background: transparent !important;
  color: black;
	font-family: Merriweather, Georgia, "Times New Roman", Times, serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 44px;
	text-align: center;
}

table.tablefloatleft td {
  height: 140px;
}

.refmain {
  font-size: 15px;
  color: #7b0000;
  line-height: 21px;
  line-height: 8px;
  font-weight: 700;
}

.strongs {
	display: block;
  font-size: 15px;
  color: #0092f2;
  line-height: 26px;
  font-family: Arial, Helvetica, Sans-serif;
  text-decoration: none;

	&:hover {
		color: blue;
	}
}

.pos a,
.strongs a,
.strongs {
  font-size: 12px;
  color: #0092f2;
  line-height: 24px;
  font-family: Arial, Helvetica, Sans-serif;
}

.greek {
	display: block;
  font-size: 21px;
  color: #242424;
  line-height: 32px;
  font-family: "Cardo", "GentiumAlt", "Galilee Unicode Gk", "Galatia SIL", "Palatino Linotype", Arial, Helvetica, Sans-serif;

	&:hover {
		color: blue;
		cursor: pointer;
	}
}

.punct {
  font-size: 20px;
  color: #7b0000;
  line-height: 1;
  font-family: Ariel Black, Arial, Helvetica, Sans-serif;
  font-weight: 700;
  text-decoration: none;
  text-align: justify;
}

.eng, .translate {
  font-size: 16px;
  color: #7b0000;
  font-style: italic;
  line-height: 26px;
}

.translit,
.translit a {
  font-family: Arial, Helvetica, Sans-serif;
  font-size: 15px;
  color: #777;
  line-height: 26px;
  font-style: italic;
}

.strongsnt a, .refs {
  font-size: 12px;
  color: #707070;
  line-height: 28px;
  font-family: Arial, Helvetica, Sans-serif;

	&:hover {
		color: blue;
		cursor: pointer;
	}
}

/* *** */

/*-------------------------------------------------*/

/*-------------------------------------------------*/

#leftbox {
  float: left;
  padding-left: 0px;
  padding-right: 0px;
  padding-top: 0px;
  padding-bottom: 0px;
  width: 100%;
  text-align: justify;
}

.vheading2 {
  text-align: left;
  background-color: #fff0e6;
  margin-top: 15px;
  margin-bottom: 10px;
  padding-left: 8px;
  font: 1.1em Verdana, Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #552200;
  border-top-right-radius: 12px;
  border-top-left-radius: 12px;
}

.padleft {
  padding-left: 14px;
  padding-right: 14px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.p {
  line-height: 18px;
}

.h {
  height: 23px;
  background-image: url(/hr.gif);
  background-repeat: repeat-x;
}

/*** ------- SETAS DE NAVEGAÇÃO ------- ***/

#left {
  position: fixed;
  top: 50%;
  left: -10px;
  z-index: 1;
}

#right {
  position: fixed;
  top: 50%;
  right: -10px;
  z-index: 1;
}

#left a,
#right a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50px;
}

#left a:hover,
#right a:hover {
  background-color: #ddd;
}

#left a:hover #seta-esquerda {
  fill: #0092f2;
}

#right a:hover #seta-direita {
  fill: #0092f2;
}

#botright {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 1;
}

#botright a:hover #seta-acima {
  fill: #0092f2;
}

/*-------------------------------------------------*/

.spc {
  font-size: 12px;
  font-family: Arial, Helvetica, Sans-serif;
}

.spc2 {
  font-size: 35px;
  font-family: Arial, Helvetica, Sans-serif;
}

.spc3 {
  font-size: 35px;
  font-family: Arial, Helvetica, Sans-serif;
}

.spc4 {
  font-size: 35px;
  font-family: Arial, Helvetica, Sans-serif;
}

.spc5 {
  font-size: 35px;
  font-family: Arial, Helvetica, Sans-serif;
}

.translit2 {
  font-size: 15px;
  color: #001320;
  line-height: 14px;
  font-family: Arial, Helvetica, Sans-serif;
  text-decoration: none;
  text-align: justify;
}

.reftop {
  font-size: 15px;
  color: #ffffff;
  line-height: 14px;
  line-height: 8px;
  font-family: Arial, Helvetica, Sans-serif;
  font-weight: 700;
  text-decoration: none;
  text-align: justify;
}

.reftop2 {
  font-size: 15px;
  color: #ffffff;
  line-height: 16px;
  line-height: 8px;
  font-family: Arial, Helvetica, Sans-serif;
  font-weight: 700;
  text-decoration: none;
  text-align: justify;
}

.reftop3 {
  font-size: 15px;
  color: #ffffff;
  line-height: 8px;
  font-family: Arial, Helvetica, Sans-serif;
  font-weight: 700;
  text-decoration: none;
  text-align: justify;
}

.refbot {
  font-size: 15px;
  color: #ffffff;
  /*   line-height: 21px;*/
  line-height: 8px;
  font-family: Arial, Helvetica, Sans-serif;
  font-weight: 700;
  text-decoration: none;
  text-align: justify;
}

.reftrans {
  font-size: 15px;
  color: #ffffff;
  /*  line-height: 21px;*/
  line-height: 8px;
  font-family: Arial, Helvetica, Sans-serif;
  font-weight: 700;
  text-decoration: none;
  text-align: justify;
}

.tablefloatleft,
.tablefloat {
  float: left;
  margin: 4px;
}

.clearfloat {
	clear: both;
	margin-left: -24px;
}

/* BEE */

.content-container {
	width: 80%;
	margin: 0 auto;
}

.pericope.title {
  display: block;
	margin-top: 16px;
  margin-bottom: 0;
  padding: 16px;
  font-size: 18px;
  text-align: center;
  line-height: 1;
}

.pericope.concordance {
  font-style: italic;
  font-size: 14px;
  display: block;
  font-weight: normal;
  margin-top: 8px;
  color: dimgrey;
  font-family: sans-serif;
}

.pericope.text {
  padding: 0 40px;

  & p {
    margin: 8px 0;
    font-size: 17px;
    color: #262626;
    text-align: left;
    line-height: 1.8;
  }
}

.chapter-number {
  margin-right: 4px;
  color: #560219;
  font-size: 21px;
  font-weight: bold;
}

.verse-number {
  min-width: 8px;
  margin-right: 0;
  color: #560219;
  font-size: 12px;
  font-weight: bold;
  text-align: right;
  vertical-align: super;
}

.verse-text {
  margin-right: 4px;
}

.chapter-footer {
	margin-top: 40px;
	margin-left: 40px;
	border-top: solid 1px darkgrey;
	font-style: italic;

	& h6 {
    margin-top: 8px;
    margin-bottom: 4px;
    font-family: var(--sans-serif);
    font-size: 13px;
    font-style: normal;
	}

	& small {
    display: block;
	}
}

/* MOBILE STYLES - GENERAL */

@media screen and (max-width: 768px) {
  .show-desktop {
    display: none;
  }

  .show-mobile {
    display: block;
  }

  .app-bar {
    padding: 6px 12px;
  }

  h2.show-mobile {
    margin-bottom: 12px;
    text-align: center !important;
  }

  nav.main-nav {
    position: absolute;
    background-color: #560219;
    right: 0;
    top: 100%;
    padding: 12px 24px;
    display: none;

    & ul {
      display: block;
      text-align: left;

      & li {
        line-height: 2.3;
      }
    }

    &.open {
      display: block;
    }
  }

  #toggleMenu {
    background: transparent;
    border: none;
    display: block;

    & .burger-icon {
      display: flex;
      flex-direction: column;
      gap: 5px;
      width: 24px;

      & .burger-layer {
        height: 3px;
        background-color: rgba(255, 255, 255, 0.85);
      }
    }
  }

  .install-banner__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .install-banner__actions {
    width: 100%;
  }

  .install-banner button {
    flex: 1;
  }

  .home.main-content {
    padding: 0 8px;
    margin-top: 56px;
  }

  .main-content {
    margin-top: 205px;
  }

  .toolbar {
		& .content {
			display: flex;
			flex-direction: column;
			align-items: center;
			gap: 16px;

			& h1 {
				font-size: 22px;
				text-align: left;
				line-height: 1.2;
			}

			& h2 {
				text-align: left;
				line-height: 1.3;
				font-size: 20px;
			}

			& h3 {
				font-size: 18px;
			}

			& h4 {
				font-size: 16px;
			}

			& > .d-flex {
				justify-content: center;
			}

			& .input-group, .search {
				width: auto;
			}

			& .button-group {
				margin-top: 12px;
    		justify-content: center;
			}
		}
  }

  .d-flex.flex-wrap > div {
    width: 100%;
    line-height: 1.6;
  }

	.page-header {
  	justify-content: space-between;
	}

	.chapter-wrapper {
		width: auto;
		margin: 0 8px;
	}

  .pericope {
    &.title {
			margin-top: 0;
      padding: 16px;
    }

    &.text {
      padding: 0 16px;
    }
  }

	.chapter-footer {
    margin: 24px 16px 0;
	}

  input.pagefind-ui__search-input.svelte-e9gkc3 {
    width: calc(100vw - 24px);
    margin: 12px 0 0;
  }
}

/* SOBRE */

.indice {
  border: solid 1px lightgrey;
  padding: 24px 24px 12px 0;
  width: 290px;
  text-align: left;
  height: fit-content;

  & a {
    margin-bottom: 12px;
    display: block;
  }
}

/* TOOLTIPS */

.verse-text span.tooltip {
	border-bottom: dashed 1px blue;
	cursor: pointer;
}

.tooltip_templates {
	display: none;
}

/* NOTAS e PALAVRAS-CHAVE */

.tooltipster-sidetip.tooltipster-light .tooltipster-content {
	/* padding: 0 8px; */

	& h4, h5 {
		margin-top: 8px;
		margin-bottom: 8px;
		font-family: var(--serif-font);
	}

	& p {
		font-size: 14px;
		line-height: 1.5;
	}
}

/* Recursos textuais */

cite {
    font-weight: 600;

		/* &:before {
			content: "“";
		}

		&:after {
			content: "”"
		} */
}

.ref {
    font-style: italic;
		cursor: pointer;
		color: darkslategrey;
}

.redletter {
	color: #e60000;
}