#info-section {
    box-sizing: border-box; /* ensures padding and border are included in the element's total width and height */
    background-color: #202A44;
    text-align: center;
    color: white;
    width: 100%;
}

#info-title {
    font-size: 2em;
    margin-top: 5%;
}

#info-container{
    display: flex;                /* puts them in a row */
    justify-content: center;      /* centers horizontally */
    align-items: flex-end;        /* bottom-aligns them for visual balance */
    gap: 20px;                    /* space between boxes */
    flex-wrap: wrap;              /* makes it flexible on smaller screens */
    box-sizing: border-box;
    text-align: left;
    align-items: stretch; /* makes all children the same height */
    padding: 2.5% 10% 2.5% 10%;
}

#info-picture { 
    flex: 1 2 0;
    background-image: url("../pictures/before.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto; /* let the flex container decide height */
    border: white 2px solid;
    border-radius: 0 30px 0 30px;
    width: 100%;
    object-fit: cover;
}

#bpoints {
    color: #ff4b4b;
    text-decoration: underline;
    font-size: 1.8em;
    margin-bottom: 0.5%;
    margin-top: 1%;
}

#info-text {   
    flex: 2 1 0;
    transition: all 0.3s ease;
     display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto; /* let the flex container decide height */
}

#ba-text {
    align-items: flex-start;
    text-align: center;
}

@media (max-width: 1000px) {
    #info-picture {
        flex: 0 1;
        width: 0px;
        position: absolute;
        opacity: 0;
    }
    #info-text {
        display: flex;
        height: auto;
        width: auto;
    }
    #ba-text {
        opacity: 0;
    }
}