h1 {
    font-family: "Roboto Mono";
    font-weight: 100;
    margin: 0;
    color: rgba(0, 0, 0, 0.45);
}

p,
h2 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1em;
    font-weight: normal;
    color: rgba(0, 0, 0, 0.45);
}

a {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.45);
}

a:hover {
    text-decoration: none;
    color: blue;
    background-color: blue;
    transition: 0.3s;
}

a:active {
    text-decoration: none;
    color: blue;
}



/* CSS for desktop devices */
@media only screen and (min-width: 767px) {

    html,
    body {
        margin: 0px;
        padding: 0;
        border: 0;
        vertical-align: baseline;
    }

    .side-bar {
        position: absolute;
        top: 10vh;
        left: 10vh;
        z-index: 100;
        max-height: 90vh;
        display: flex;
        /*added*/
        flex-direction: column;
        /*added*/
    }

    .text {
        margin-top: 2em;
        max-width: 20vw;
        overflow-y: auto;
    }

    .content {
        position: absolute;
        width: 100vw;
        height: 100vh;
        z-index: 0;
        top: 0;
        overflow-y: auto;
        display: grid;
        place-items: center;
        scroll-behavior: smooth !important;
        scroll-snap-type: y mandatory;
        scroll-padding: 0 50%;
    }

    .spacer {
        height: 5vh;
    }

    img {
        margin-top: 5vh;
        max-height: 80vh;
        max-width: 95vw;
        margin-left: auto;
        margin-right: auto;
        display: block;
        scroll-snap-align: center;
    }

    img2:hover {
        opacity: 0.5;
        transition: 0.3s;
    }
}

/* CSS for mobile devices */
@media only screen and (max-width: 768px) {

    html,
    body {
        margin: 5px;
        padding: 0;
        border: 0;
        vertical-align: baseline;
    }

    img {
        margin-top: 60px;
        max-width: 100%;
        max-height: 60vh;
    }

    .menu {
        display: none;
    }

    .content {
        text-align: center;
    }

    #info-extra {
        display: none;
    }
}