.flipbook {
    position: relative;
    width: 45vw;
    max-width: 400px;
    aspect-ratio: 7 / 11;
}
.flipbook:focus {
    outline: none;
}
.book {
    width: 100%;
    height: 100%;
    position: relative;
    perspective: 1000px;
}
.page {
    width: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transform-origin: left;
    transition: transform 1s cubic-bezier(0, 0, 0, 0.88), margin-left 0.5s ease;
}
.front, .back {
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    background: #fff;
    border: 1px solid #ddd;
}
.back {
    transform: rotateY(180deg);
}
.flipped {
    transform: rotateY(-180deg);
}
.front img, .back img {
    object-fit: cover;
    box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.05);
}
.nav-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.flipbook-nav-btn {
    all: unset;
    cursor: pointer;
    margin: 0 10px;
}
.flipbook-nav-btn i {
    font-size: 2rem;
    color: black;
    opacity: 0.4;
    transition: opacity 0.2s;
}
.flipbook-nav-btn i:hover {
    opacity: 0.7;
}
.flipbook-nav-btn:focus {
    outline: none;
    box-shadow: none;
}
.flipbook-nav-btn.disabled {
    cursor: default;
    pointer-events: none;
    opacity: 0.5;
}