﻿

/* 3d stuff */
.bc-book-image {
    display: flex;
    align-items: baseline;
    --justify-content: center;
    perspective: 600px;
    height: 200px;
    width: 140px;
    font-size: 4px;
}

.bc-books-image:after {
    content: "";
    flex: auto;
    
}


.bc-bookpage .bc-book-image {
    width: 100%;
    zoom: 1.5;
    transform-origin: left top;
    /* transform: scale(1.5); */
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .bc-bookpage .bc-book-image {
        margin: 0 auto;
        width: 150px;
    }
}

@keyframes initAnimation {
    0% {
        transform: rotateY(-30deg);
    }

    100% {
        transform: rotateY(0deg);
    }
}

.bc-book {
    width: 140px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-30deg);
    transition: 0.5s ease;
    animation: 0.5s ease 0s 1; /* -- initAnimation; */
}

    .bc-book.bc-book-volumes {
        transform: rotateY(-20deg);
    }

    .bc-book:hover {
        transform: rotateY(0deg);
    }


/*.book > :first-child { */

.bc-book .bc-book-frontcover {
    position: absolute;
    top: 0;
    left: 0;
    background-color: red;
    width: 130px;
    height: 200px;
    transform: translateZ(25px);
    background-color: #01060f;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 20px rgba(100, 100, 100, 0.5);
}

/*.book::before { */
.bc-book .bc-book-pages {
    position: absolute;
    content: ' ';
    background-color: blue;
    left: 0;
    top: 3px;
    width: 48px;
    height: 194px;
    transform: translateX(102px) rotateY(90deg);
    background: linear-gradient(90deg, #fff 0%, #e9e9e9 5%, #fff 10%, #f9f9f9 15%, #fff 20%, #f9f9f9 25%, #fff 30%, #f9f9f9 35%, #fff 40%, #f9f9f9 45%, #fff 50%, #f9f9f9 55%, #fff 60%, #f9f9f9 65%, #fff 70%, #f9f9f9 75%, #fff 80%, #f9f9f9 85%, #fff 90%, #e9e9e9 95%, #fff 100% );
}

/* .book::after { */
.bc-book .bc-book-backcover {
    position: absolute;
    top: 0;
    left: 0;
    content: ' ';
    width: 130px;
    height: 200px;
    transform: translateZ(-25px);
    background-color: #01060f;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(100, 100, 100, 0.5);
}



/* overrides */
.bc-cover-start-flat .bc-book {
    transform: rotateY(0deg);
}

    .bc-cover-start-flat .bc-book:hover {
        transform: rotateY(-30deg);
    }

.bc-cover-no-hover-rotate .bc-book:hover {
    transform: rotateY(-30deg);
}

.bc-cover-halign-center .bc-book-image {
    justify-content: center;
}
.bc-cover-halign-right .bc-book-image {
    justify-content: flex-end;
}

.bc-cover-valign-bottom .bc-book {
    margin-top: auto;
}