/* Header styles */
.header-container {
    text-align: center;
    background-image: url("/static/imgs/borsiis_story/contenedores/header movil.4ee3544c7800.webp");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 922/579;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header-content {
    padding: 5%;
}

.header-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.header-subtitle {
    font-size: 2.2rem;
    color: white;
    margin: 0 0 4% 0;
}

/* Story container styles */
.story-container {
    background-image: url("/static/imgs/borsiis_story/contenedores/content movil.4b733b5c014c.webp");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 922/1205;
    position: relative;
    z-index: 1;
}

.story-image {
    position: absolute;
    bottom: 100%;
    left: 30%;
    width: 100px;
    z-index: 2;
    height: auto;
    transform: translateX(-50%) translateY(35%);
}

.story-section {
    width: 80%;
    padding: 6%;
    margin: 3% auto 5% auto;
    background-image: url("/static/imgs/borsiis_story/contenedores/tabla movil.a85d09d3c595.webp");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 874/1258;
}

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

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

.story-paragraph {
    font-size: 1.3rem;
    line-height: 1.3;
    text-align: left;
    color: #51024d;
}

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

.nav-button {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: #0056b3;
}

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

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

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

    /* Header styles */
    .header-container {
        background-image: url("/static/imgs/borsiis_story/contenedores/header tablet.87240cbe2238.webp");
        aspect-ratio: 1281/446;
    }

    .header-content {
        padding: 7%;
    }

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

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

    /* Story container styles */
    .story-container {
        background-image: url("/static/imgs/borsiis_story/contenedores/content tablet.a5a9914ef441.webp");
        aspect-ratio: 1281/778;
    }

    .story-image {
        width: 130px;
    }

    .story-section {
        background-image: url("/static/imgs/borsiis_story/contenedores/tabla tablet.8f47825ea17d.webp");
        aspect-ratio: 1190/804;
        /* margin-top: 8%; */
    }

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

    /* Navigation styles */

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

}

/* Media query for tablets */
@media (min-width: 768px) {

    /* Header styles */
    .header-title {
        font-size: 4.5rem;
    }

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

    .header-content {
        padding: 5%;
    }

    .story-image {
        width: 140px;
    }

    .story-section {
        /* margin-top: 6%; */
    }

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

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

/* Media query for laptops */
@media (min-width: 1024px) {

    /* Header styles */
    .header-container {
        background-image: url("/static/imgs/borsiis_story/contenedores/header pc.51969f9dd0e8.webp");
        aspect-ratio: 1921/446;
    }

    .header-content {
        padding: 5%;
    }

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

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

    /* Story container styles */
    .story-container {
        background-image: url("/static/imgs/borsiis_story/contenedores/content pc.593bb9fcd8f9.webp");
        aspect-ratio: 1921/778;
    }

    .story-image {
        width: 160px;
        left: 30%;
    }

    .story-section {
        background-image: url("/static/imgs/borsiis_story/contenedores/tabla pc.415eccc376b4.webp");
        aspect-ratio: 1432/791;
        width: 70%;
        /* margin-top: 4%; */
    }

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

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

/* Media query for large screens */
@media (min-width: 1524px) {

    /* Header styles */
    .header-title {
        font-size: 5rem;
    }

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

    .story-image {
        width: 200px;
        left: 35%;
    }

    /* Story container styles */
    .story-section {
        width: 60%;
        /* margin-top: 4%; */
    }

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

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