@import url('variables.css');

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url(../Resources/Bg.webp);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-color);
    overflow-y: scroll;

}

header {
    font-size: 2rem;
    color: var( --title-color);
    text-align: center;
    margin-bottom: 20px;
    background-color: var(--right-column-bg);
}

h1 {
    font-size: 2rem;
    color: var( --title-color);
    text-align: center;
    margin-bottom: 20px;
}

.container {
    display: flex;
    flex-direction: row;
    height: 100vh;
}

.main-content {
    flex: 3;
    padding: 20px;
}

.right-column {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--right-column-bg);
    border-left: 1px solid var(--border-color);
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--photo-border-color);
}

.photo {
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
    width: 100%;
}

nav ul li {
    text-align: center;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    color: var(--menu-text-color);
    position: relative;
    background-image: url(../Resources/menuH.webp);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

nav ul li:hover {
    cursor: pointer;
}

nav ul li:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--highlight-color);
    box-shadow: 0px 0px 10px var(--highlight-color);
}

p {
    padding: 10px;
    border-radius: 5px;
    text-align: justify;
}

#botones {
    position: fixed;
    bottom: 0;
    right: 0;
    min-height: 50px;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 0px;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.book-module {
    position: relative;
    width: 90%;
    height: 90%;
    margin: 20px auto;
    margin-bottom: 20px;
    perspective: 1000px;
}

.book-content {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 0px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto; /* Permitir scroll dentro del contenido cargado */
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.next-button, .prev-button, .ToolButton{
    top: 50%;
    right: -50px;
    background: none;
    border: none;
    cursor: pointer;
}

.next-button img, .prev-button img, .ToolButton img {
    width: 50px;
    height: 50px;
}

.next-button img:hover, .prev-button img:hover, .ToolButton img:hover {
    transform: scale(1.1);
    transition: transform 0.3s;
}

@media (max-width: 768px) {
    #botones {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        text-align: center;
        padding: 0px;
    }

    #about-me {
        position: fixed;
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.6);
        padding: 10px;
        border-radius: 0px;
        color: white;
        cursor: pointer;
    }

    #about-me-content {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        display: none;
        align-items: center;
        justify-content: center;
        text-align: center;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }

    #about-me-content.show {
        display: flex;
        opacity: 1;
    }

    .next-button img, .prev-button img, .ToolButton img {
        width: 30px;
        height: 30px;
    }
    
}
.right-column {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--right-column-bg);
    border-left: 1px solid var(--border-color);
    transition: transform 0.3s ease-in-out;
}

/* Ocultar right-column en pantallas pequeñas */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .right-column {
        position: fixed;
        top: 0;
        right: 0;
        width: 250px;
        height: 100vh;
        transform: translateX(100%);
        box-shadow: -3px 0 10px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        background-color: var(--right-column-bg);
    }
    
    .right-column.active {
        transform: translateX(0);
    }
    
    .book-module {
        flex-grow: 1;
        width: 100%;
        height: calc(100vh - 60px);
        overflow-y: auto;
    }
}

/* Estilos del menú hamburguesa */
.menu-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    background: var(--title-color);
    color: white;
    border: none;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1100;
    display: block;
}

@media screen and (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}
/* Estilos del menú hamburguesa */
.menu-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    background: var(--menu-item-bg);
    color: var(--text-color);
    border: none;
    padding: 10px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1100;
    display: block;
    transition: all 0.3s ease-in-out;
    border-radius: 0px;
}

@media screen and (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}
