html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

#flipbook-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    height: 80dvh;
    width: 90vw;
    margin-inline: auto;
    padding: 0.25rem;
}

#loader {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background-color: #ffffff;
    font-size: 2em;
    z-index: 100;
    animation: pulse 1.5s ease-in-out infinite;
}

.flipbook-viewport {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#flipbook {
    width: 100%;
    height: 100%;
    display: none;
}

.page {
    width: 100%;
    height: 100%;
}

#controls {
    margin-inline: auto;
    margin-block: 1rem;
    display: flex;
    justify-content: center;
    gap: 5rem;
    z-index: 10;
    padding: 0.5rem;
}

#controls button {
    background: none;
    /*border: none;*/
    cursor: pointer;
    color: #79835f;
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    padding: 0.75rem;
    border: 0.125rem solid #79835f;
    border-radius: 100%;
}

#controls button:hover {
    color: #a88b87;
    border-color: #a88b87;
    background-color: #f6f4f4;
}

#next {
    padding-left: 1rem !important;
}

#prev {
    padding-right: 1rem !important;
}

.zoom-controls {
    display: flex;
    justify-content: space-between;
}

.zoom-controls button:hover {
    color: #cfcfcf;
}

#zoom-in, #zoom-out {
    background: none;
    border: none;
    cursor: pointer;
    color: #a9a9a9;
    transition: color 0.3s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        color: #000000;
    }
    50% {
        transform: scale(1.5);
        color: #79835f;
    }
    100% {
        transform: scale(1);
        color: #000000;
    }
}
