.background-container {
    width: 100%;
    background-image: url("/static/imgs/borsiis_dash/capitulos/cap 1/cap 1 movil.4d1a4c8440a0.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 922/2266;
    padding-bottom: 5%;
}

/* Header styles */
.header-container {
    margin: 20% auto;
    text-align: center;
}

.header-content {
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.header-image {
    display: none;
    max-width: 100%;
    height: auto;
}

.header-title {
    font-size: 4rem;
    font-weight: 700;
    color: #74bcda;
    margin: 0;
}

.header-subtitle {
    font-size: 3rem;
    color: #eba74f;
    margin: 0 0 4% 0;
}


/* Story container styles */
.story-container {
    padding: 5%;
    margin: 0 auto;
    width: 90%;
    background-image: url("/static/imgs/borsiis_dash/capitulos/cap 1/cap 1 y 3 movil.ff6e82bf30b7.webp");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.story-content-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    margin-top: 0;
}

/* Text content styles */
.story-article {
    margin-bottom: 2rem;
}

.story-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: left;
    color: #0a2c65;
}

.story-paragraph {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: left;
    color: #0a2c65;
}

/* Navigation styles */
.story-navigation {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 1rem 0;
    border-top: 1px solid #dee2e6;
}

.nav-button {
    padding: 0.5rem 1rem;
    background-image: url("/static/imgs/borsiis_dash/movil/boton 3.28e0872c52d8.webp");
    background-size: 100% 100%;
    color: black;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
}

.next-chapter {
    margin-left: auto;
}

.prev-chapter {
    margin-right: auto;
}

/* Media query for big mobile devices */
@media (min-width: 576px) {

    /* Header styles */
    .header-container {
        width: 70%;
        margin: 14% auto;
    }

    .header-content {
        background-image: none;
        aspect-ratio: initial;
        align-items: center;
        display: flex;
        align-items: stretch;
        width: 100%;
    }

    .header-image {
        display: block;
        aspect-ratio: 1/1;
        flex: 1;
        max-width: 40%;
    }

    .header-title-container {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 10px;
    }

    .header-title {
        font-size: 5.3rem;
    }

    .header-subtitle {
        font-size: 3.5rem;
    }

    /* Story container styles */
    .story-container {
        max-width: 80%;
        background-image: url("/static/imgs/borsiis_dash/capitulos/cap 1/cap 1 y 3 movil.ff6e82bf30b7.webp");
        padding: 1.5rem;
        margin: 0 auto 5% auto;
    }

    /* Text content styles */
    .story-paragraph {
        font-size: 1.4rem;
        line-height: 1.7;
    }

    /* Navigation styles */

    .nav-button {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
    }

}

/* Media query for tablets */
@media (min-width: 768px) {
    .background-container {
        background-image: url("/static/imgs/borsiis_dash/capitulos/cap 1/cap 1 tablet.0de586f72396.webp");
        aspect-ratio: 1281/2172;
    }

    /* Header styles */
    .header-container {
        width: 70%;
        margin: 10% auto;
    }

    .header-content {
        justify-content: space-between;
        width: 100%;
    }

    .header-title {
        font-size: 7rem;
    }

    .header-subtitle {
        font-size: 4rem;
    }

    /* Story container styles */
    .story-container {
        max-width: 70%;
        background-image: url("/static/imgs/borsiis_dash/capitulos/cap 1/cap 1 y 3 tablet.cbcab98703a5.webp");
        padding: 1.5rem;
        margin: 0 auto 5% auto;
    }

    .story-content-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Text content styles */
    .story-paragraph {
        font-size: 1.4rem;
        line-height: 1.7;
        text-align: left;
    }

    /* Navigation styles */
    .nav-button {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
    }
}

/* Media query for laptops */
@media (min-width: 1024px) {
    .background-container {
        background-image: url("/static/imgs/borsiis_dash/capitulos/cap 1/cap 1 pc.99cb3dc456c1.webp");
        aspect-ratio: 1921/2164;
    }

    /* Header styles */
    .header-container {
        width: 70%;
        margin: 7% auto;
    }

    .header-content {
        width: 100%;
    }

    .header-title-container {}

    .header-title {
        font-size: 6rem;
    }

    .header-subtitle {
        font-size: 3rem;
    }

    /* Story container styles */

    /* Text content styles */
    .story-paragraph {
        font-size: 1.7rem;
        line-height: 1.8;
    }

    /* Navigation styles */
    .nav-button {
        font-size: 1.2rem;
        padding: 0.7rem 1.4rem;
    }
}

/* Media query for large screens */
@media (min-width: 1524px) {
    .background-container {
        background-image: url("/static/imgs/borsiis_dash/capitulos/cap 1/cap 1 pc.99cb3dc456c1.webp");
    }

    /* Header styles */
    .header-container {
        width: 70%;
        margin: 7% auto;
    }

    .header-content {
        width: 100%;
    }

    .header-title {
        font-size: 8rem;
    }

    .header-subtitle {
        font-size: 4rem;
    }

    /* Story container styles */
    .story-container {
        max-width: 60%;
        background-image: url("/static/imgs/borsiis_dash/capitulos/cap 1/cap 1 y 3 pc.edb87c6dba18.webp");
        padding: 3%;
    }

    /* Text content styles */
    .story-paragraph {
        font-size: 1.9rem;
        line-height: 1.9;
        margin-bottom: 2rem;
    }

    /* Navigation styles */
    .nav-button {
        font-size: 1.3rem;
        padding: 0.8rem 1.6rem;
    }
}
