//-- General Reset --/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: black;
    margin: 0;
    padding: 0;
}

/* Header Styles */
header {
    position: relative;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: 35vh;
    /* Un tercio del alto de la pantalla */
    background-image: url('./IMG_2061.jpg');
    /* Reemplaza con la ruta a tu imagen */
    background-size: cover;
    /* Asegura que la imagen cubra el área */
    background-position: center;
    /* Centra la imagen */
    background-repeat: no-repeat;
    /* Evita que la imagen se repita */
    position: relative;
}

.header-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo oscuro semi-transparente para mejorar la legibilidad */
}

.logo {
    font-size: 32px;
    font-style: oblique;
    color: whitesmoke;
    text-align: center;
    font-weight: bold;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: whitesmoke;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: yellow;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: white;
    margin: 4px;
    transition: background 0.3s;
}

.hamburger:hover span {
    background: yellow;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #333;
        flex-direction: column;
        width: 100%;
        text-align: right;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background-color: black;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: blue;
    padding-bottom: 45px;
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

#searchBar {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border-radius: 10px;
    border-color: #ddd;
}

#sortMenu {
    padding: 10px;
    font-size: 16px;
    margin-left: 20px;
    border-radius: 10px;
    border-color: #ddd;
}

.book-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.book {
    flex: 0 1 calc(25% - 20px);
    /* 25% del ancho menos el espacio entre los libros */
    margin-bottom: 20px;
}

.book img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.book h3 {
    font-size: 18px;
    margin: 10px 0;
    color: whitesmoke;
}

.book p {
    font-size: 14px;
    color: #e9e2e2;
}

.book span {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

#pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

#pagination button {
    padding: 10px 20px;
    background-color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 10px;
}

#pagination button:disabled {
    background-color: grey;
    cursor: not-allowed;
}

#pageInfo {
    font-size: 16px;
    color: blue;
}

/* Footer Styles */
footer {
    padding: 20px;
    background-color: transparent;
    color: grey;
    text-align: center;
    margin-top: 40px;
}

.social-links,
.legal-links {
    margin-bottom: 10px;
}

.social-links a,
.legal-links a {
    color: grey;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover,
.legal-links a:hover {
    color: yellow;
}

.footer-image {
    max-width: 60px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
    footer-image: url('./books-images/blue-red-fire-dragon-600nw-2417582023.jpg)

    }