#blog {
    background-color: var(--main-fg-color);
    width: 80%;
    border: var(--main-border-color) 1px solid;
}

#blog > h2 {
    width: 90%;
    margin: 1rem auto 1rem auto ;
}

#blog a {
    text-decoration: none;
}
    
#blogposts > article:not(:first-child) {
    border-top: 1px solid var(--main-border-color);
}

#blogposts {
    width: 90%;
    margin: auto;
}


.postBody {
    margin-top: .5rem;
    margin-bottom: 1rem;
    min-height: 5rem;
}

.postBody > img {
    object-fit: cover;
    min-width: 5rem;
    max-width: 5rem;
    max-height: 5rem;
    border: 1px solid var(--main-border-color);
    border-radius: 1rem;
    margin-right: .5rem;
    float: left;
}

.postTitle {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.postTitle > .date {
    margin: 0;
}

.postTitle h2 {
    margin-bottom: 0;
}

#sidebarText > h3,
#myLinks {
margin-top: .5rem;
}

#me {
    border: 1px solid var(--main-border-color);
    border-radius: 10%;
}

@media screen and (max-width: 800px) {
    #body {
        margin: 0px 1rem 0px 1rem;
        display: flex;
        flex-direction:column-reverse;
    }
    #sidebar {
        display: flex;
        flex-direction: row;
        width: 100%;
        height: 10rem;
    }
    #me {
        width: 5rem;
        height: 5rem;
        margin: 1rem;
    }
    #blog {
        width: 100%;
    }
    .postTitle {
        display: flex;
        flex-direction: column-reverse;
    }
    .postTitle > h2 {
        margin-top: 0;
    }
    #sidebarText > h3 {
        margin-bottom: .25rem;
    }
}

@media screen and (min-width: 800px) {
    #body {
        display: flex;
        flex-direction: row-reverse;
    }
    #sidebar {
        width: 10rem;
        border-left: var(--main-border-color) 1px solid;
        padding: 1rem;
    }
    #me {
        width: inherit;
    }
}

#myLinks {
    list-style-type: none;
    padding-left: 0;
    font-size: large;
}

#myLinks > li {
    margin-bottom: .2rem;
}

.iconedLink > img {
    margin-right: .2rem;
    width: 1rem; 
    height: 1rem;
}
