@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #000000;
  color: #000000;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 35%;
}

body.dark {
  background-color: #020202;
  color: #ffffff;
}

header {
  background-color: #040404;
  color: #ffffff;
  text-align: center;
  padding: 1rem;
}

.logo {
  height: 85px;
  border-radius: 50%;
}

footer {
  background-color: #ffffff00;
  color: rgb(128, 125, 125);
  text-align: center;
  padding: 1rem;
}

body {
  font-family: Arial, sans-serif;
  padding: 20px;
  background-color: #ffffff;
}

select, button {
  margin: 10px 0;
  padding: 8px;
  font-size: 16px;
}

#versiculos p {
  margin: 5px 0;
  background-color: #ffffff00;
}

#versiculoTexto {
  background-color: #000000;
  color: rgb(0, 0, 0);
  text-align: center;
  padding: 1rem;
}
button:hover {
  background-color: #8a878761;
}
button {
  padding: 0.5em 1em;
  margin-left: 0.5em;
  border-radius: 10px; /* Arredondamento das bordas */
    border: none;
    background-color: #ededed;
    color: rgb(0, 0, 0);
    cursor: pointer;
    transition: background-color 0.3s;
}


main {
  padding: 1em;
}
mark {
  background: yellow;
}

input[type="text"] {
  padding: 0.5em;
  margin-top: 1em;
  width: 60%;
}
input[type="text"] {
  padding: 12px 20px;
  border: 1px solid #ccc;
  border-radius: 20px;
  width: 60%;
  font-size: 16px;
  transition: all 0.3s ease-in-out;
}

/* Select de Livro e Capítulo */
select {
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 20px;
  border: 1px solid #ccc;
  background-color: #ffffff;
  margin-right: 10px;
  transition: border-color 0.3s;
}

select:focus {
  border-color: #040404;
  outline: none;
  box-shadow: 0 0 5px rgba(93, 101, 243, 0.5);
}

/* Botão Mostrar Versículos */
#mostrarVersiculos {
  background-color: #5d65f3;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#mostrarVersiculos:hover {
  background-color: #4a54d1;
}
.versiculo-marcado {
  background-color: yellow;
  border-radius: 5px;
  padding: 3px;
}
#cabecalho {
  background-image: url('ceia.jpg'); /* Caminho da imagem */
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 30px 0;
  position: relative;
  filter: contrast(1.2) brightness(1.1);
}
#cabecalho::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* escurece a imagem */
  z-index: 0;
  border-radius: 0 0 10px 10px;
}

#cabecalho * {
  position: relative;
  z-index: 1;
}
:root {
  --bg-color: #ffffff;
  --text-color: #000000;
}

body.dark-mode {
  --bg-color: #000000;
  --text-color: #ffffff;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: all 0.3s ease;
}

.botao-camera {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 15px 18px;
  font-size: 22px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 999;
}


.ocr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}

.ocr-modal video {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}

.close-ocr {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ff4444;
  color: white;
  border: none;
  font-size: 24px;
  padding: 5px 10px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 10000;
}

.botao-camera {
  position: fixed;
  bottom: 20px;
  right: 20px;
  border: none;
  border-radius: 50%;
  padding: 16px;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: 0.3s ease;
  z-index: 999;
  backdrop-filter: blur(8px);
}

/* Tema escuro (quando body tem classe 'dark-mode') */
body.dark-mode .botao-camera {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Tema claro */
body:not(.dark-mode) .botao-camera {
  background: rgba(0, 0, 0, 0.07);
  color: #222;
}

.botao-camera:hover {
  transform: scale(1.1);
  cursor: pointer;
}




#tirarFoto {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background-color: white;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#cropBox {
  position: fixed;
  top: 30%;
  left: 10%;
  width: 80%;
  height: 20%;
  border: 2px solid white;
  box-sizing: border-box;
  z-index: 15;
  pointer-events: none;
}


#maskOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* insulfilme preto */
  z-index: 5;
  pointer-events: none;

  /* Recorta a área central proporcional à tela */
  clip-path: polygon(
    0% 0%, 100% 0%, 100% 100%, 0% 100%,
    0% 0%, 
    10% 0%, 10% 30%, 90% 30%, 90% 50%, 10% 50%, 10% 0%
  );
}

.video-container {
  position: relative;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
}
.video-container video {
  width: 100%;
  height: auto;
  display: block;
}


 .btn-voltar {
      margin-top: 30px;
      background-color: #222;
      padding: 10px 20px;
      border-radius: 8px;
      border: none;
      color: white;
      cursor: pointer;
      transition: 0.3s;
    }

    .btn-voltar:hover {
      background-color: #555;
    }

