.blog-posts{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 70vw;
    height: fit-content;
}

.blog-posts section{
    margin-top: 15vh;
}

.centered{
    display: block;
    margin: auto;
}

.post{
    margin-top: 10vh;
}

section h2 {
    font-size: 2.5rem;
}

.post h3{
    font-size: 1.8rem;
    text-align: center;
}


code {
    font-size: 0.7rem;
    width: fit-content;
}


/* for smaller screens (<= 768px) */
@media only screen and (max-width: 768px) {
    /* change root size so rem units scale down */
    html {
        font-size: 85%;
    }
    h1, h2, h5 {
        text-align: center;
    }
    code{
        width: 100%;
        font-size: 0.6rem;
    }
    .blog-posts {
        width: 90vw;
    }
    .blog-posts section{
        margin-top: 2rem;
    }
    pre code.hljs {
        padding: 0px !important;
    }
    .post{
        margin-top: 0rem;
        margin-bottom: 1rem;
    }
    .box {
        padding-top: 5rem;
    }
}