body {
    background:  #4a1010;
}
input {
    display: none;
}
img {
    width: 380px;
    height: 920px;
}
.book1 {
    display: flex;  
    flex-direction: column;
    align-items: end;
}

.flip-book1 {
    width: 380px;
    height: 920px;
    position: relative;
    perspective: 1500px;
}
.flip1 {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: left;
    transform-style: preserve-3d;
    transform: rotate(0deg);
    transition: .5s;
    color:#000;
}
p {
    font-size: 14px;
    line-height: 24px;
}
.front1 {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #fff;
    box-sizing: border-box;
    padding: 0 13px;
    box-shadow: inset 20px 0 50px rgba(0,0,0,0.5) 0 2px 5px rgba(0,0,0,.5);
}
.back1 {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 99;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    background-color: #000;
}
.next-btn1 {
    position: absolute;
    bottom: 13px;
    right: 110px;
    cursor: pointer;
    color: #000;
}
.back-btn1 {
    position: absolute;
    bottom: 13px;
    right: 110px;
    cursor: pointer;
    color: #fff;
}
#p4 {
    z-index: 3;
}
#p5 {
    z-index: 2;
}
#p6 {
    z-index: 1;
}
#c4:checked ~ .flip-book1 #p4 {
    transform: rotateY(-180deg);
    z-index: 1;
    background-color: #cecece;
}
#c5:checked ~ .flip-book1 #p5 {
    transform: rotateY(-180deg);
    z-index: 2;
}
#c6:checked ~ .flip-book1 #p6 {
    transform: rotateY(-180deg);
    z-index: 3;
}
span {
    font-size: 26px;
    color: blue;
}
h2 {
    text-align:center;
}