main {
    display: flex;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    background-color: var(--bg-color);
}

/* this adds a weird padding
when resizing between 870px width to
670px width to 505px width */
@media (max-width: 670px) {
    section {
        padding: 1em !important;
        margin-top: 0 !important;
        /* width: 505px !important; */
    }

    img {
        margin-top: 0 !important;
    }
}

@media (max-width: 870px) { /* 768px is 
    generally used for mobile */

    section {
        width: 100% !important;
        margin: 0 auto;
    } 

}


@media (max-width: 1024px) {
    main {
        flex-direction: column;
    }

    img {
        order: -1;
        margin: 0 auto;
        /* width: 370px; */
        /* padding: 1em 2em !important; */
    } 

    section {
        width: 100% !important;
        margin: 0 auto;
    }    
}

.profile {
    border-radius: 12px;
}

h1 {
    margin-bottom: 1em;
}

section div {
    margin-bottom: 2em;
}

section {
    padding: 2em;   
    display: flex;
    flex-direction: column;
    /* width: 855px; */
    /* width: 80%; */
    /* min-width: 670px; */
    width: 100%;
    margin-top: 1em;
}

img {
    padding: 1em;
    border-radius: 6%;
    max-height: 650px;
    margin-top: 2em;
}

.breaking-line {
    background-color: grey;
    width: 100%;
    height: 1px;
}