/* General */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    background-color: lightgray;
}

/* Button */
button {
    border: none;
    background-color: transparent;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.5s;
}


/* Book */
.book {
    width: 450px;
    height: 600px;
    position: relative;
    transition: transform 0.5s;
}

.paper {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    perspective: 1500px;
}

.front {
    backface-visibility: hidden;
    border-left: 3px solid gray;
}

.front, 
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    transform-origin: left;
    transition: transform 0.5s;
}

.front {
    z-index: 1;
}

.back {
    z-index: 0;
}

.front-content,
.back-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.back-content {
    transform: rotateY(180deg)
}

/* Paper Flipped */
.flipped .front,
.flipped .back {
    transform: rotateY(-180deg)
}

/* Paper Z-index */
#p1 {
    z-index: 25;
}

#p2 {
    z-index: 24;
}

#p3 {
    z-index: 23;
}

#p4 {
    z-index: 22;
}

#p5 {
    z-index: 21;
}

#p6 {
    z-index: 20;
}

#p7 {
    z-index: 19;
}

#p8 {
    z-index: 18;
}

#p9 {
    z-index: 17;
}

#p10 {
    z-index: 16;
}

#p11 {
    z-index: 15;
}

#p12 {
    z-index: 14;
}

#p13 {
    z-index: 13;
}

#p14 {
    z-index: 12;
}

#p15 {
    z-index: 11;
}

#p16 {
    z-index: 10;
}

#p17 {
    z-index: 9;
}

#p18 {
    z-index: 8;
}

#p19 {
    z-index: 7;
}

#p20 {
    z-index: 6;
}

#p21 {
    z-index: 5;
}

#p22 {
    z-index: 4;
}

#p23 {
    z-index: 3;
}

#p24 {
    z-index: 2;
}

#p25 {
    z-index: 1;
}



/* Customization */

.book-title {
    font-size: 3em;
    margin-bottom: 40px;
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}

.button-img {
    width: 30px;
    height: 30px;
    

}

#b1 {
    padding: 20px;
    text-align: center;
    font-size: 1.2em;
    justify-content: space-around;
}

#b1 h2 {
    font-size: 2em;
    margin-top: 10px;
    margin-bottom: 20px;
}

#b1 p {
    margin-bottom: 20px;
}


