/* Estilo de la página */
body {
    font-family: 'Lucida Console', Monaco, monospace;
    background-color: #e9e5f4ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: #333;
}

/* Imagen del banner */
#banner {
    width: 1200px;
    height: auto;
}

/* Título y subtítulo centrados */
h1, h2 {
    text-align: center;
}

h1 {
    font-size: 2.5em;
    margin: 10px 0;
}

h2 {
    font-size: 1.5em;
    font-weight: normal;
    margin: 0;
    color: #555;
}
/* Estilo para italicas */
i {
    color: #c6738cff;
}

/* Botones de navegación de otras páginas */
.page-buttons {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.page-buttons button {
    padding: 10px 20px;
    margin: 5px;
    font-family: 'Lucida Console', Monaco, monospace;
    font-weight: bold;
    cursor: pointer;
    background-color: #ff5a89ff;
    color: #Fff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.page-buttons button:hover {
    background-color: #ff45f8ff;
}

/* Contenedor principal de la historieta */
.comic-container {
    position: relative;
    width: 1280px;
    height: 1074px;
    border: 2px solid #444;
    padding: 20px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Mensaje alternativo cuando la imagen no está disponible */
.comic-container p {
    font-size: 1.2em;
    text-align: center;
    color: #555;
}

/* Imagen de la historieta */
#comic-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Botones de navegación de historietas */
.navigation-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.navigation-buttons button {
    padding: 8px 12px;
    margin: 5px;
    font-family: 'Lucida Console', Monaco, monospace;
    font-weight: bold;
    cursor: pointer;
    background-color: #3771c8ff;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    min-width: 100px;
}

.navigation-buttons button:hover {
    background-color: #00aa88ff;
}

/* Estilo del buscador y menú desplegable */
#search-bar {
    padding: 8px;
    border: 1px solid #444;
    border-radius: 5px;
    font-family: 'Lucida Console', Monaco, monospace;
    outline: none;
    width: 150px;
    display: inline-block;
}

#search-button {
    padding: 8px 12px;
    margin-left: 5px;
    font-family: 'Lucida Console', Monaco, monospace;
    font-weight: bold;
    background-color: #ffa645ff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#search-button:hover {
    background-color: #333;
}

#comic-select {
    width: 150px;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    outline: none;
    margin-top: 0;
}

#comic-index {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* Área de pie de página */
footer {
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #444;
    background-color: #f7e3e3ff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Reglas de diseño responsivo para dispositivos móviles */
@media (max-width: 768px) {
    #banner {
        width: 100%;
        height: auto;
    }

    .comic-container {
        width: 100%;
        height: auto;
        padding: 10px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.2em;
    }

    .page-buttons button, .navigation-buttons button {
        padding: 6px 12px;
        font-size: 0.8em;
        min-width: 80px;
    }

    #comic-index {
        flex-direction: column;
    }

    #search-bar,
    #comic-select {
        width: 100px;
    }

    footer {
        width: 100%;
        padding: 15px;
    }
}