@font-face {
    font-family: 'terrariaFont';
    src: url(fonts/PixelOperator-Bold.ttf);
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'PixelFont';
    src: url(EstructuraYETC/PressStart2P-Regular.ttf);
    font-weight: normal;
    font-style: normal;
}

/* Establece el color de fondo de toda la página y permite scrollear */
body {
    background-image: url(imagenes/eli_junji5.gif);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* El fondo nunca se mueve */
    display: flex;
    font-family: terrariaFont;
    justify-content: center;
    align-items: flex-start; /* Hace que el cuadro empiece desde arriba */
    min-height: 100vh;
    margin: 0;
    padding: 60px 0; /* Respiro arriba y abajo */
    zoom: 67%; /* Escala visual al 67% permanentemente */
}

body::before {
    content: "";
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Filtro oscuro */
    backdrop-filter: blur(5px); /* Efecto de desenfoque */
    z-index: 1;
}

.content {
    background-color: rgb(240, 231, 231);
    filter: opacity(90%);
    width: 82%; /* Ligeramente menos ancho */
    max-width: 1000px; /* Límite reducido */
    height: auto; /* Crece naturalmente */
    min-height: 750px;
    padding: 60px;
    padding-right: 260px; /* Empuja el texto más a la izquierda para el nuevo tamaño de foto */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.content h1 {
    font-family: PixelFont;
    font-size: x-large; /* Texto un poco más grande */
    color: rgb(32, 139, 127);
    margin-bottom: 40px;
}

.content h2 {
    font-size: x-large; /* Texto un poco más grande */
    margin-top: 50px;
    margin-bottom: 25px;
}

.content p {
    font-size: 22px; /* Texto principal más grande para mejor lectura */
    text-align: left;
    color: black;
    margin-left: 20px;
    margin-bottom: 35px; 
    line-height: 1.6; 
}

.content ul {
    font-size: 20px; /* Elementos de lista más grandes */
    margin-bottom: 40px;
    line-height: 2;
}

/* Imágenes normales en la lista */
.normal-image {
    width: 140px; /* Imágenes de referencia un poco más grandes */
    height: 140px;
    display: block; 
    margin-bottom: 30px; 
    margin-left: 20px;
}

/* Contenedor lateral derecho */
.pie-de-foto {
    background-color: rgb(204, 176, 141);
    filter: opacity(100%);
    height: 860px; /* Alargado un poco más para el nuevo tamaño */
    width: 180px; /* Ensanchado para que quepa la imagen más grande */
    position: absolute;
    top: 50px;
    right: 26px;
    border-radius: 10px;
    text-align: end;
    z-index: 3;        
}

.pie-de-foto h2 {
    max-width: 130px;
    margin-left: 10px;
    font-family: monospace;
    color: rgb(67, 155, 155);
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 20px;
}

.pie-de-foto h3 {
    max-width: 130px;
    margin-left: 10px;
    font-family: monospace;
    font-size: 22px;
    color: blueviolet;
}

.pie-de-foto p {
    color: rgb(5, 5, 46);
    text-align: left;
    margin-left: 10px;
    margin-bottom: 10px;
    font-size: 18px; /* Texto de información lateral más grande */
} 

/* Imagen de Elizabeth en la esquina */
.corner-image {
    width: 160px; /* Imagen más grande */
    height: 280px; /* Imagen más grande */
    filter: opacity(100%);
    position: absolute;
    top: 540px; /* Ajustado para encajar bien */
    right: 36px; /* Centrado dentro del pie-de-foto más ancho */
    border-radius: 10px;
    z-index: 4;
}

.corazon-esquina {
    position: absolute;
    top: 400px;  
    left: -500px; 
    width: 500px;  
    height: auto;
    transform: rotate(310deg);
}

.texto-final { 
    position: absolute;
    bottom: 5px; 
    left: 5px; 
    margin: 0;
    font-size: 16px; /* Un poco más grande */
}

.img_regresar {
    position: fixed; 
    top: 10px; 
    left: 10px; 
    width: 100px; 
    height: auto;
    z-index: 5; 
}

.quick-top-nav {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 20;
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.25);
}

.back-home-black {
    color: #070707;
    font-size: 19px;
}

.back-home-neon {
    color: #ff2442;
    font-size: 20px;
    text-shadow:
        0 0 5px rgba(255, 36, 66, 0.95),
        0 0 11px rgba(255, 36, 66, 0.8),
        0 0 21px rgba(255, 36, 66, 0.5);
}

.edge-arrow {
    position: fixed;
    top: 50%;
    z-index: 20;
    transform: translateY(-50%);
    font-size: 60px;
    line-height: 1;
    text-decoration: none;
    color: rgba(20, 20, 20, 0.92);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.65);
    transition: transform 160ms ease, filter 160ms ease;
}

.edge-arrow:hover,
.edge-arrow:focus-visible {
    transform: translateY(-50%) scale(1.1);
    filter: brightness(1.2);
    outline: none;
}

.edge-arrow-right {
    right: 14px;
}

/* Estilos de iniciales (mantenidos) */
.overlay-text-image {
    position: absolute; 
    top: 2px; 
    left: 37%; 
    transform: translateX(-50%); 
    color: white; 
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    z-index: 4;
}
.imagen-primeraInicial {
    position: absolute; 
    top: 35px; 
    left: 51%; 
    height: 40px;
    width: 80px;
    transform: translateX(-50%); 
    color: white; 
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 4;
}
.imagen-segundaInicial {
    position: absolute; 
    top: 35px; 
    left: 55%; 
    height: 40px;
    width: 80px;
    transform: translateX(-50%); 
    color: white; 
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 4;
}
.imagen-terceraInicial {
    position: absolute; 
    top: 35px; 
    left: 59%; 
    height: 40px;
    width: 80px;
    transform: translateX(-50%); 
    color: white; 
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 4;
}