
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');



input {
    display: none;
}

img {
    width: 100%;
    height: auto;
}

.book {
    display: flex;
	width:100%;
}

#cover {
    width: 50%;
    height: 650px;
}

.flip-book {
    width: 50%;
    height: 650px;
    position: relative;
    perspective: 1500px;
}

.flip {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: left;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition: .5s;
    color: #000;
}

p {
    font-size: 14px;
    line-height: 24px;
}

.front {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #fafafa;
    box-sizing: border-box;
    padding: 0px;
    /* box-shadow: inset 20px 0 50px r; */
}

.back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 99;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    background-color: #eee;
}

.next-btn {
    position: absolute;
    bottom: 110px;
    right: 13px;
    cursor: pointer;
    background: #000;
    padding: 5px;
    color: #fff;
}

.back-btn {
    position: absolute;
    bottom: 110px;
    right: 493px;
    cursor: pointer;
    background: #000;
    padding: 5px;
    color: #fff;
}





/* When the browser is at least 600px and above */
@media (min-width: 320px) and (max-width: 768px) {
 
.next-btn {
    position: absolute;
    bottom: 10px;
    right: 13px;
    cursor: pointer;
    background: #000;
    padding: 5px;
    color: #fff;
}

.back-btn {
    position: absolute;
    bottom: 10px;
    right: 493px;
    cursor: pointer;
    background: #000;
    padding: 5px;
    color: #fff;
}
}




#p1 {
    z-index: 8;
}
#p2 {
    z-index: 7;
}
#p3 {
    z-index: 6;
}


#p4 {
    z-index: 5;
}
#p5 {
    z-index: 4;
}
#p6 {
    z-index: 3;
}

#p7 {
    z-index: 2;
}
#p8 {
    z-index: 1;
}






#c1:checked ~ .flip-book #p1 {
    transform: rotateY(-180deg);
    z-index: 1;
}
#c2:checked ~ .flip-book #p2 {
    transform: rotateY(-180deg);
    z-index: 2;
}
#c3:checked ~ .flip-book #p3 {
    transform: rotateY(-180deg);
    z-index: 3;
}

#c4:checked ~ .flip-book #p4 {
    transform: rotateY(-180deg);
    z-index: 4;
}
#c5:checked ~ .flip-book #p5 {
    transform: rotateY(-180deg);
    z-index: 5;
}
#c6:checked ~ .flip-book #p6 {
    transform: rotateY(-180deg);
    z-index: 6;
}

#c7:checked ~ .flip-book #p7 {
    transform: rotateY(-180deg);
    z-index: 7;
}
#c8:checked ~ .flip-book #p8 {
    transform: rotateY(-180deg);
    z-index: 8;
}






