/* ---------- */
/* -- MAIN -- */
/* ---------- */
/* Contenido Principal */
#main {
    width: 100%;
    margin-top: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

#cont {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Animación del Título de Sección */
#h1_section {
    width: 100%;
    font-size: 2rem;
    text-align: center;
    animation: colores 5s infinite;
    font-weight: bold;
    margin-bottom: 20px;
}

@keyframes colores {
    0% { color: #E9DEAF; }
    50% { color: #ff5722; }
    100% { color: #E9DEAF; }
}

/* Tarjeta de Libro con Tamaño Medio */
.caja_art {
    width: 280px;  /* Ancho ajustado a tamaño medio */
    padding: 15px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid #ddd;
    box-shadow: inset 0px 0px 8px rgba(0, 0, 0, 0.1), 0px 2px 5px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.caja_art:hover {
    box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.2), 0px 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

/* Estilo del Título de Libro */
.h2_art {
    width: 90%;
    margin-bottom: 10px;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 1.3rem;
    color: #333;
    text-align: center;
}
.h2_art_white {
    color: #fff;
}

/* Descripción de ISBN */
.p_arts {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
    text-align: center;
}
.p_arts_n {
    font-size: 0.9rem;
    color: white;
    text-align: center;
}

/* Imagen del Libro */
.imagen_art {
    width: 90%;
    height: 180px; /* Altura media ajustada */
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 5px;
}

/* Enlace de Descarga en Modo Claro */
.links_dia, .links_dia:link, .links_dia:visited {
    color: #333;
    text-decoration: none;
    background-color: #f0f0f0;
    border-top: 1px solid #ccc;
    box-shadow: 0px -3px 3px rgba(155, 155, 155, 0.2);
    transition: all 0.2s ease;
}
.links_dia:hover {
    color: #555;
    background-color: #e0e0e0;
    box-shadow: 0px -4px 6px rgba(53, 53, 53, 0.25);
}

/* Enlace de Descarga en Modo Oscuro */
.links_noche, .links_noche:link, .links_noche:visited {
    color: #fff;
    background-color: #444;
    box-shadow: 0px -3px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}
.links_noche:hover {
    color: #ddd;
    background-color: #333;
    box-shadow: 0px -4px 6px rgba(0, 0, 0, 0.3);
}

/* Estilos Comunes para el Enlace de Descarga */
.links {
    width: 100%;
    height: 45px;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 0 0 8px 8px;
    padding: 10px;
}

.scroll-trigger {
    width: 100%;
    height: 1px;
}

/* Loader spinner shown when fetching items */
#loader {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    animation: spin 1s linear infinite;
    display: none;
    z-index: 1000;
}

#loader.active {
    display: block;
}

@keyframes spin {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}






@media only screen and (min-width: 900px) {
    #main {
        max-width: 1200px;
    }
}
