@charset "UTF-8";


#manual-wrapper {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
   
}

#manual-icon {
    width: 40px;
    height: 40px;
    background: #8b4513;
    color: #f4e4bc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    border: 2px solid #5d2e0a;
    position: relative;
}

#manual-tooltip {
    visibility: hidden;
    width: 150px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    position: absolute;
    right: 50px;
    font-size: 12px;
}

#manual-icon:hover #manual-tooltip {
    visibility: visible;
}

#manual-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.revista-container {
    background: #f4e4bc;
    width: 80%;
    max-width: 500px;
    height: 600px;
    padding: 40px;
    border: 10px solid #5d2e0a;
    box-shadow: 10px 10px 0px #2e1a05;
    position: relative;
    font-family: 'Courier New', Courier, monospace;
    color: #4a3721;
    overflow-y: auto;
}

.hidden { display: none !important; }

#close-manual {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #5d2e0a;
    color: white;
    border: none;
    cursor: pointer;
}

#book-container {
    width: 500px;
    height: 800px;
    position: relative;
    perspective: 2000px; 
}

.page {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #f4e4bc;
    transform-origin: left;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1); 
    transform-style: preserve-3d;
    z-index: 1;
}
.page canvas {
    display: block;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.cover {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #8b4513 0%, #5d2e0a 100%) !important;
    color: #f4e4bc !important;
    border: 2px solid #3d1f07;
}

.cover h1 {
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: 2px solid #f4e4bc;
}
.page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 10%);
    opacity: 0;
    transition: opacity 1.2s;
    pointer-events: none;
}

.page.flipped::after {
    opacity: 1;
}

.page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(0,0,0,0.1) 0%, rgba(255,255,255,0.2) 50%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.6s;
    z-index: 2;
}

.page.flipped {
    transform: rotateY(-180deg); 
}
.page:hover:not(.flipped) {
    transform: rotateY(-10deg); 
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}
.page > * {
    backface-visibility: hidden;
}


#lang-switch {
    width: 35px;
    height: 35px;
    background: #f4e4bc;
    border: 2px solid #5d2e0a;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    right: 55px; 
    top: 2px;
    font-size: 20px;
    transition: transform 0.2s;
}

#lang-switch:hover {
    transform: scale(1.1);
}
