/* style.css - Estilo moderno para a História Eclesiástica */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 30px;
}

h1 {
    font-size: 2rem;
    color: #1e3c72;
    border-bottom: 2px solid #1e3c72;
    padding-bottom: 5px;
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 1.5rem;
    color: #2b4f7c;
    margin: 20px 0 10px;
    border-left: 5px solid #1e3c72;
    padding-left: 15px;
}

/* Navegação entre capítulos */
.chapter-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    padding: 15px;
    background-color: #f1f3f5;
    border-radius: 50px;
}

.chapter-nav a {
    display: inline-block;
    min-width: 45px;
    padding: 8px 12px;
    background-color: #ffffff;
    color: #1e3c72;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

.chapter-nav a:hover:not(.active) {
    background-color: #1e3c72;
    color: white;
    transform: scale(1.05);
}

.chapter-nav .active {
    background-color: #1e3c72;
    color: white;
    cursor: default;
    pointer-events: none;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.prev-next {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.prev-next a {
    padding: 10px 20px;
    background-color: #1e3c72;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.prev-next a:hover:not(.disabled) {
    background-color: #0f2b4f;
}

.prev-next .disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}

/* Conteúdo do capítulo */
.content {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fefefe;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.03);
}

.paragraph {
    margin-bottom: 1em;
    text-align: justify;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    background-color: #1e3c72;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.back-link:hover {
    background-color: #0f2b4f;
}

footer {
    margin-top: 40px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .container { padding: 20px; }
    h1 { font-size: 1.8rem; }
    .chapter-nav a { min-width: 35px; padding: 6px 8px; }
}
/* MENU */
.menu{
text-align:center;
margin-bottom:30px;
}
.menu a{
text-decoration:none;
margin:0 10px;
padding:8px 12px;
background:#f4f4f4;
border-radius:5px;
color:#333;
font-weight:bold;
}
.menu a:hover{
background:#e0e0e0;
}
/* RODAPÉ */
.footer{
margin-top:40px;
padding-top:20px;
border-top:1px solid #ddd;
text-align:center;
font-size:14px;
color:#666;
}

/* GRID DOS LIVROS */

.book-grid {
    list-style: none;
    padding: 0;
    margin: 40px auto;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(140px, 1fr));

    gap: 15px;

    max-width: 800px;
}


/* BOTÕES DOS LIVROS */

.book-grid li a {

    display: block;

    text-align: center;

    padding: 14px 10px;

    font-size: 18px;
    font-weight: bold;

    text-decoration: none;

    color: white;

    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #1e3c72,
        #2a5298
    );

    box-shadow:
        0 4px 10px rgba(0,0,0,0.2);

    transition: all 0.25s ease;
}


/* EFEITO HOVER */

.book-grid li a:hover {

    transform: translateY(-4px);

    box-shadow:
        0 8px 18px rgba(0,0,0,0.3);

    background: linear-gradient(
        135deg,
        #2a5298,
        #4facfe
    );
}


/* EFEITO CLIQUE */

.book-grid li a:active {

    transform: scale(0.97);

}


/* RESPONSIVO CELULAR */

@media (max-width: 600px) {

.book-grid {

    grid-template-columns:
        repeat(2, 1fr);

}

.book-grid li a {

    font-size: 16px;

    padding: 12px;

}

}
