* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    display: flex;
    font-family: sans-serif;
    background-color: lightblue;
    background-image: url(img/logonuevo.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
}

/* Menú Lateral */
.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100px;
    height: 100%;
    background-color: transparent;
    color: white;
    padding-top: 20px;
    z-index: 1000; /* Asegurar que el menú esté sobre otros elementos */
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    padding: 15px;
    text-align: center;
}

.sidebar ul li a {
    color: #212529;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

/* Ajustes del Flipbook */
.container {
    margin-left: 100px; /* Espacio reservado para el menú lateral */
    width: calc(100% - 100px); /* Ajuste para que el flipbook no tape el menú */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

button {
    border: none;
    background-color: transparent;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.5s;
    z-index: 900; /* Asegurarse que esté detrás del menú */
}

button:focus {
    outline: none;
}

button:hover i {
    color: rgb(102, 102, 102);
}

i {
    color: whitesmoke;
    font-size: 4em;
}

.book {
    width: 35%;
    height: 100%;
    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 lightblue;
}

.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);
}

.flipped .front,
.flipped .back {
    transform: rotateY(-180deg);
}

.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#p1 { z-index: 15; }
#p2 { z-index: 14; }
#p3 { z-index: 13; }
#p4 { z-index: 12; }
#p5 { z-index: 11; }
#p6 { z-index: 10; }
#p7 { z-index: 9; }
#p8 { z-index: 8; }
#p9 { z-index: 7; }
#p10 { z-index: 6; }
#p11 { z-index: 5; }
#p12 { z-index: 4; }
#p13 { z-index: 3; }
#p14 { z-index: 2; }
#p15 { z-index: 1; }

