* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: #d9d1c5;
    font-family: Georgia, serif;
    color: #40382f;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.boek-container {
    width: min(1000px, 94vw);
    margin: auto;
}

#boek {
    width: 100%;
}

.pagina {
    background: #f8f3e8;
    padding: 50px;
    position: relative;
    overflow: hidden;
    color: #40382f;
}

.pagina.titelpagina {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.pagina.titelpagina h1 {
    font-size: 32px;
    line-height: 1.25;
    font-weight: normal;
    margin: 0 0 20px;
}

.sub {
    font-size: 21px;
    margin-bottom: 70px;
}

.auteur {
    font-size: 16px;
}

.pagina.voorwerk {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.citaat {
    text-align: center;
    font-style: italic;
    font-size: 23px;
    line-height: 1.7;
    max-width: 80%;
    margin: auto;
}

.pagina.verhaal {
    display: block;
}

.kopregel {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #7b6b59;
    margin-bottom: 24px;
    letter-spacing: .5px;
}

.verhaal h2 {
    font-size: 25px;
    font-weight: normal;
    line-height: 1.3;
    margin: 0 0 24px;
}

.tekst {
    font-size: 16px;
    line-height: 1.55;
    text-align: justify;
}

.tekst p {
    margin: 0 0 13px;
}

.eersteLetter::first-letter {
    font-size: 38px;
    float: left;
    line-height: .25;
    padding-right: 4px;
}

.geluid {
    font-style: italic;
}


.illustratiePagina {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.illustratieVak {
    width: 100%;
    flex: 1;
    min-height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.illustratieVak img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.illustratieCaption {
    margin-top: 18px;
    font-style: italic;
    font-size: 15px;
    line-height: 1.5;
}

.inhoud {
    width: 90%;
    margin: 25px auto;
}

.inhoud .regel {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 0;
    border-bottom: 1px dotted rgba(80,60,40,.22);
    font-size: 14px;
}

.inhoud .kopregel {
    margin-bottom: 10px;
}

.boekPaginaNummer {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 14px;
}

/* Voorkaft en achterkaft */
.pagina.kaft {
background-color: #183653;
color: #ffffff;
}

/* Tekst op beide kaften */
.pagina.kaft h1,
.pagina.kaft h2,
.pagina.kaft p {
color: #ffffff;
}


@media (max-width: 700px) {
    body {
        padding: 8px;
    }

    .boek-container {
        width: 96vw;
    }

    .pagina {
        padding: 28px;
    }

    .verhaal h2 {
        font-size: 20px;
    }

    .tekst {
        font-size: 14px;
        line-height: 1.45;
    }

    .citaat {
        font-size: 18px;
    }
}

.hoofdstuk-placeholder { display:none; }
.auto-pagina { box-sizing:border-box; }
