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

body {
    margin: 0;
    padding: 0;
padding-left: 2%;
padding-right: 2%;
    height: 100vh;
    overflow: hidden;
    flex-direction:column;
    justify-content: center;
    font-family: 'Roboto';
    align-items: center;
    background: linear-gradient(90deg , #fff 50% , #4a1010 50% );
	overflow-y: scroll;
}

input {
    display: none;
}

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

.book {
    display: flex;
}

#cover {
    width: 600px;
    height: 550px;
}

.flip-book {
     width: 600px;
    height: 550px;
    position: relative;
    perspective: 100%;
}

.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;
}
li {
font-size:14px;
    
}

.front {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #fafafa;
    box-sizing: border-box;
    padding: 0 13px;
    /* 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: #000;
}

.next-btn {
    position: absolute;
    bottom: 13px;
    right: 13px;
    cursor: pointer;
    color: #000;
}

.back-btn {
    position: absolute;
    bottom: 13px;
    right: 13px;
    cursor: pointer;
    color: #000;
}

#p1 {
    z-index: 5;
}
#p2 {
    z-index: 4;
}
#p3 {
    z-index: 3;
}
#p4 {
    z-index: 2;
}
#p5 {
    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;
}
@media screen and (max-width: 420px) {
            body {
               background-color: lightblue;
            }
p {
    font-size:2vw;
    line-height: 2vw;
}
h2{font-size:3vw;}
li{font-size:2vw;}
         }