/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: calibri;
    background-color: #f9fafb;
    background-image: url(https://i.ebayimg.com/images/g/kCMAAOSwqF9kUmNt/s-l1200.jpg);
    color: #111827;
    line-height: 1.6;
    padding: 20px;
}

/* Para navegadores modernos */
::selection {
    background-color: #e1d7a1; 
    color: white;
}

/* Para Firefox */
::-moz-selection {
    background-color: #e1d7a1;
    color: white;
}

/* Barra de rolagem */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
    background-color: #3b82f6;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #2563eb;
}

main {
    width: 800px;           
    margin: 0 auto;         
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Cabeçalho */
header {
    background-color: #2563eb;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 30px;
}
a{
    color: #b55f39;
    text-decoration: green underline;
}
a: hover{
    color: #0e0704;
    text-decoration: green underline;
}
header h1 {
    text-align:center;
    font-size: 2rem;
}

/* Container principal */
.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Botão */
.botao {
    display: inline-block;
    background-color: #3b82f6;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 5px 5px 15px 0;
    transition: background-color 0.2s ease;
}

.botao:hover {
    background-color: #2563eb;
}

botao1{
    background: #70b539;
    padding: 10px;
    border-radius:1px;
    
}
botao1 a{
   color: white;
   text-decoration: none;
   font-weight:900;
}botao1:hover{
    background: #b539ad;
    border-radius:18px;
}
p {
    font-size:18px;
  margin-bottom:20px;  
}


ul {
    list-style: none; 
    padding-left: 0;  
}

ul li {
    position: relative;
    padding-left: 1.5em; 
    margin-bottom: 0.5em;
}

ul li::before {
    content: "🍋";
    position: absolute;
    left: 0;
    top: 0;
}
/* Cada livro */
.livro {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 6px solid #3b82f6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.livro h2 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.livro h2 a {
    color: #1d4ed8;
    text-decoration: none;
}

.livro h2 a:hover {
    text-decoration: underline;
}

.livro p {
    margin-bottom: 15px;
    color: #374151;
}



/* Título do livro */
.titulo-livro {
    text-align: center;
    font-size: 2rem;
    color: #1d4ed8;
    margin-bottom: 20px;
}

/* Descrição com fundo diferente */
.descricao-livro {
    background-color: #f3f4f6;
    padding: 15px;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #374151;
}

/* Bloco de botões do livro */
.acoes-livro {
    margin-bottom: 20px;
}

/* Botão padrão (já deve estar no seu CSS como .botao) */
.botao {
    display: inline-block;
    background-color: #3b82f6;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    margin-right: 10px;
    transition: background-color 0.2s ease;
}

.botao:hover {
    background-color: #2563eb;
}

/* Botão de excluir (vermelho) */
.botao.excluir {
    background-color: #ef4444;
}

.botao.excluir:hover {
    background-color: #dc2626;
}

/* Conteúdo do capítulo */
.conteudolivro {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    color: #111827;
    font-size: 1rem;
    line-height: 1.6;
}


h3{
    font-size: 30px;
}

.pagina-livro {
    width: 1000px;           
    margin: 0 auto;
    padding: 20px;
    float:left;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


.config-leitura {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.config-leitura select {
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#conteudo-livro {
    font-size: 16px;
    font-family: serif;
    line-height: 1.6;
}



.sumario-flutuante {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 300px;
    max-height: 70vh;
    overflow-y: auto;
    background-color: #f3f4f6;
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    z-index: 1000;
}

.sumario-flutuante h4 {
    margin-top: 0;
    font-size: 1rem;
    text-align: center;
}

.sumario-flutuante ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.sumario-flutuante ul li {
    margin: 0.4em 0;
}

.sumario-flutuante ul li a {
    text-decoration: none;
    color: #7ab162;
    transition: color 0.2s;
}

.sumario-flutuante ul li a:hover {
    color: #1d4ed8;
}

/* BOTÃO de menu no mobile */
.sumario-toggle {
  display: none;
  position: fixed;
  top: 15px;
  right: 15px;
  background-color: #7ab162;
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 6px;
  z-index: 1100;
  font-size: 1rem;
  cursor: pointer;
}












/* Ajustes gerais para telas pequenas */
@media (max-width: 600px) {
    html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
  box-sizing: border-box;
}
#conteudo-livro iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  margin: 1rem auto;
  box-sizing: border-box;
}

    header {
        font-size: 1.5rem;
        padding: 15px;
    }

    main, .container {
        width: 100% !important; 
        padding: 10px;
        margin: 0 auto;
    }

    .botao {
        padding: 10px 14px;
        font-size: 0.9rem;
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .livro {
        padding: 15px;
        font-size: 0.95rem;
    }
     .pagina-livro {
    width: 100%; /* Ocupa toda a largura da tela */
    padding: 15px;
    float: none;
    border-radius: 0;
    box-shadow: none;
  }

  .config-leitura {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }


.sumario-toggle {
    display: block;
  }



 .sumario-flutuante {
    top: 60px;
    right: 10px;
    width: calc(100% - 20px);
    max-height: 80vh;
    position: fixed;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
  }
.sumario-flutuante.ativo {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .sumario-flutuante h4 {
    font-size: 1.1rem;
  }

  .sumario-flutuante ul li a {
    font-size: 1rem;
  }

  #conteudo-livro {
    font-size: 15px;
    line-height: 1.6;
  }
}
