body {
    background-image: url('images/hollow_knight_background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

header {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    width: 100%;
    margin-top: 20px; /* Añadido margen superior */
}

h1 {
    margin: 0;
    font-size: 2em;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#chapter-content {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    margin: 20px;
    max-width: 800px;
    width: 80%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Alinea verticalmente los elementos */
    width: 80%; /* Alinea con el ancho del #chapter-content */
    max-width: 800px;
    margin: 20px auto; /* Centro el nav */
}

button {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
    flex: 1; /* Asegura que los botones tengan el mismo tamaño */
    margin: 0 10px; /* Separación entre botones */
}

button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Estilo para el logo */
#logo-mario {
    flex: 1; /* Asegura que el logo tenga el mismo tamaño que los botones */
    margin: 0 10px; /* Separación entre el logo y los botones */
    max-height: 40px; /* Ajusta la altura del logo según sea necesario */
}

/* Estilos responsivos para dispositivos móviles */
@media (max-width: 600px) {
    header {
        margin-top: 40px; /* Incrementa el margen superior en móviles */
    }

    h1 {
        font-size: 1.5em;
    }

    #chapter-content {
        padding: 15px;
        margin: 15px;
    }

    nav {
        width: 90%; /* Ajusta el ancho en móviles */
    }

    button {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    #logo-mario {
        max-height: 30px; /* Ajusta la altura del logo en móviles */
    }
}
