html,
body {
    height: 100%;
    font-size: 1.2rem;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
}

main {
    flex: 1;
    margin: auto;
    width: 80%;
    min-width: 80vw;
    max-width: 16rem;
    text-align: justify;
}

/** generic classes */
.center {
    text-align: center;
}


/** NAVIGATION BAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

nav h2 {
    margin: 0;
    font-size: 1.25rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: flex;
}

nav a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    color: black;
}

nav a:hover {
    opacity: 0.7;
}

nav a svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
    flex-shrink: 0;
}

nav a svg.github-icon {
    width: 1.35rem;
    height: 1.35rem;
}

.main p {
    max-width: 80%;
    margin: auto;
}

.highlight pre {
    border-radius: 0.3rem;
    padding: 1rem;
    overflow: auto;
}

.goat.svg-container {
    font-size: 16px;
}

pre.mermaid {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 1rem;
}

ul li,
ol li {
    line-height: 2rem;
}

section p {
    line-height: 2rem;
}

main img {
    max-height: 100%;
    max-width: 100%;
}

hr {
    border: 0;
    background-color: #fff;
    border-top: 1px dashed #8c8c8c;
}

/** FOOTER */
footer {
    min-height: 2rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

footer a {
    display: inline-flex;
    align-items: center;
    color: inherit;
}

footer a svg {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
}

/** RESPONSIVENESS */

@media screen and (width >= 1200px) {
    main {
        min-width: 60vw;
    }
}

@media screen and (width <= 700px) {
    footer,
    nav ul {
        font-size: 1rem;
    }
}

@media screen and (width <= 650px) {
    nav {
        display: block;
    }

    nav ul {
        margin-top: 0.5rem;
        display: flex;
        justify-content: space-between;
    }

    main {
        min-width: none;
        max-width: 100%;
    }
}

@media screen and (width <= 460px) {
    footer {
        font-size: 0.8rem;
    }
}
