.book-slider {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: fixed;
    z-index: 9999;
    background-color: #070706d2;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    
}

.book-section {
    padding: 0px 50px;
    width: 100%;
    padding: 40px 0;
    text-align: center;
}

.book-section>.container {
    width: 100%;
    aspect-ratio: 9/3;
    position: relative;
    border-radius: 2%;
    margin-bottom: 30px;
}

.container>.right {
    position: absolute;
    height: 100%;
    width: 50%;
    transition: 0.7s ease-in-out;
    transform-style: preserve-3d;
}

.book-section>.container>.right {
    right: 0;
    transform-origin: left;
    border-radius: 10px 0 0 10px;
}

.right>figure.front,
.right>figure.back {
    margin: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-repeat: no-repeat;
    backface-visibility: hidden;
    background-size: 100%;
    background-color: white;
    overflow: hidden;
}

.right>figure.front {
    background-position: right;
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 2px 15px -2px rgba(0, 0, 0, 0.2);
}

.right>figure.back {
    background-position: left;
    border-radius: 10px 0 0 10px;
    box-shadow: -2px 2px 15px -2px rgba(0, 0, 0, 0.2);
    transform: rotateY(180deg);
}

.flip {
    transform: rotateY(-180deg);
}

.flip::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    border-radius: 0 10px 10px 0;
    background-color: rgba(0, 0, 0, 0.1);
}

.book-section>button {
    border: 2px solid #ef9f00;
    background-color: transparent;
    color: #ef9f00;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
    transition: 0.3s ease-in-out;
}

.book-section>button:focus,
.book-section>button:active {
    outline: none;
}

.book-section>p {
    color: rgba(0, 0, 0, 0.7);
    font-family: calibri;
    font-size: 24px;
}

.book-section>p>a {
    text-decoration: none;
    color: #ef9f00;
}

.book-section>button:hover {
    background-color: #ef9f00;
    color: #fff;
}

.front#cover,
.back#back-cover {
    background-color: #ffcb63;
    font-family: calibri;
    text-align: left;
    padding: 0 30px;
}

.front#cover h1 {
    color: #fff;
}

.front#cover p {
    color: rgba(0, 0, 0, 0.8);
    font-size: 14px;
}

.main-con {
    width: 90%;
    height: 80vh;
    background-color: deepskyblue;
    border-radius: 12px;
    padding: 1rem;
    margin: 8px;

}

#close-menu,#rotate-img {
    position: absolute;
    top: 0;
    right: 0;
    margin: 1rem;
    color: white;
    cursor: pointer;

}

.viewMenu {
    cursor: pointer;
}

#close-menu{
    display: block;
}
@media (min-width:600px) {
    #rotate-img{
        display:none ;
    }
}


@media (max-width: 700px) {

    .book-slider2 {
        margin: 0px;
        padding: 0px;
        position: fixed;
        z-index: 9999;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        background-color: black;
        overflow: hidden;
    }

    .book-section2 {
        transform: rotate(90deg);
        transform-origin: center;
        height: 100vw;
        min-width: 90vh;
        padding: 0px;
        margin: 0px;
        scale: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .book-section2 button {
        display: none;
    }
}