/* General */

@font-face {
    font-family: 'bogle-regular';
    src: url(assets/Bogle-Regular.otf);
}

@font-face {
    font-family: 'bogle-bold';
    src: url(assets/Bogle-Bold.otf);
}

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

body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    background-image: url(assets/backLibro.png);
    background-size: cover;
    overflow: hidden;
}

.containBook {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.imgBook {
    width: 100%;
    height: 100%;
}

/* Book */
.book {
    width: 10rem;
    height: 15.46rem;
    position: relative;
    transition: transform 0.5s;
}

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

.front {
    backface-visibility: hidden;
}

.front,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    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)
}

/* Button */
button {
    border: none;
    cursor: pointer;
    background-color: #1C233E;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 2rem;
}

button img {
    width: 1.25rem;
}

button p {
    color: #fff;
    font-family: 'bogle-regular';
    font-size: 0.75rem;
}

.buttonsBook {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.buttonsBook div{
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

#prev-btn img {
    transform: rotate(90deg);
}

#next-btn img {
    transform: rotate(270deg);
}

.iconsMasMen{
    width: 1rem;
}

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

#p2 {
    z-index: 15;
}

#p3 {
    z-index: 14;
}

#p4 {
    z-index: 13;
}

#p5 {
    z-index: 12;
}

#p6 {
    z-index: 11;
}

#p7 {
    z-index: 10;
}

#p8 {
    z-index: 9;
}

#p9 {
    z-index: 8;
}

#p10 {
    z-index: 7;
}

#p11 {
    z-index: 6;
}

#p12 {
    z-index: 5;
}

#p13 {
    z-index: 4;
}

#p14 {
    z-index: 3;
}

#p15 {
    z-index: 2;
}

#p16 {
    z-index: 1;
}


@media (min-width: 768px) {
    .book {
        width: 23rem;
        height: 35.558rem;
    }

    button{
        padding: 0.75rem;
        gap: 0.75rem;
    }

    button img {
        width: 2rem;
    }

    button p {
        font-size: 1.25rem
    }

    .containBook,
    .buttonsBook {
        gap: 1.5rem;
    }
    .iconsMasMen{
        width: 1.65rem;
    }
}

@media (min-width: 992px) {
    body{
        align-items: flex-start;
        margin-top: 2rem;
    }
    .book {
        width: 16rem;
        height: 24.736rem;
    }

    button img {
        width: 2rem;
    }

    button p {
        font-size: 1rem
    }
    
    .buttonsBook{
        display: flex;
        justify-content: space-between;
        width: 100vw;
        padding: 0 2rem;
        position: absolute;
        align-items: center;
    }
    .iconsMasMen{
        width: 1.45rem;
    }
}

@media (min-width: 1200px) {
    .book {
        width: 21rem;
        height: 32.466rem;
    }

    button img {
        width: 2.5rem;
    }

    button p {
        font-size: 1.25rem
    }
    .iconsMasMen{
        width: 2rem;
    }
}

@media (min-width: 1400px) {
    .book {
        width: 25rem;
        height: 38.65rem;
    }
}

@media (min-width: 1800px) {
    .book {
        width: 28rem;
        height: 43.288rem;
    }
    button img {
        width: 2.75rem;
    }
    .iconsMasMen{
        width: 2.25rem;
    }

    button p {
        font-size: 1.5rem
    }
}