/* General */

@font-face {
    font-family: "DepartureMono";
    src:
        url("/DepartureMono-1.500/DepartureMono-Regular.woff")
            format("embedded-opentype"),
        /* Internet Explorer */
            url("/DepartureMono-1.500/DepartureMono-Regular.woff")
            format("woff2"),
        /* Super Modern Browsers */
            url("/DepartureMono-1.500/DepartureMono-Regular.woff")
            format("woff"),
        /* Pretty Modern Browsers */
            url("/DepartureMono-1.500/DepartureMono-Regular.woff")
            format("truetype"),
        /* Safari, Android, iOS */
            url("/DepartureMono-1.500/DepartureMono-Regular.woff") format("svg"); /* Legacy iOS */
}

:root {
    background-color: black;
    color: white;
    font-family: "DepartureMono";
    box-sizing: border-box;
    --code-background-color: #6300d4;
    --code-background-gradient: linear-gradient(
        147deg,
        rgba(99, 0, 212, 1) 0%,
        rgba(0, 94, 201, 1) 100%
    );
}

@media only screen and (max-width: 800px) {
    nav,
    main,
    footer {
        width: 90%;
        border: 5px solid white;
        margin: 0 auto;
        padding: 1em;
    }

    body {
        margin-top: 2em;
    }
}

@media only screen and (min-width: 800px) {
    nav,
    main,
    footer {
        width: 80%;
        border: 5px solid white;
        margin: 0 auto;
        padding: 1em;
    }

    body {
        margin-top: 4em;
    }
}

@media only screen and (min-width: 1000px) {
    nav,
    main,
    footer {
        width: 50%;
        border: 5px solid white;
        margin: 0 auto;
        padding: 1em;
    }

    body {
        margin-top: 6em;
    }

    p {
        text-align: justify;
    }
}

/* Template */

nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

@media only screen and (max-width: 800px) {
    nav {
        display: flex;
        flex-direction: column;
        align-content: center;
        justify-items: center;
    }

    nav > h1,
    nav > div > ul {
        text-align: center;
    }
}

nav > div > ul {
    list-style: none;
    display: flex;
    color: white;
}

.homepage-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.homepage-content > p {
    width: 70%;
}

.homepage-content > picture {
    width: 20%;
}

.homepage-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 50%;
}

.contact-list {
    list-style: none;
    display: flex;
    padding-left: 0;
}

.contact-list > li {
    margin-right: 2em;
}

/* Typography */

a {
    color: white;
    font-family: "DepartureMono";
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    cursor: pointer;
}

/* p {
    text-align: justify;
} */

p > a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

p > picture > img {
    width: 90%;
    margin: 0 auto;
    display: block;
    height: auto;
}

.nav-link {
    margin: 0em 1em;
    color: white;
}

.nav-link:hover {
    outline: 3px solid white;
    outline-offset: 0.5em;
}

.collection-item {
    border: 5px solid white;
    margin: 0 auto;
    padding: 1em;
    margin-bottom: 1em;
}

.collection-title:hover {
    text-decoration: underline;
}

.section-title {
    margin-bottom: 2em;
}

pre {
    padding: 3em;
    background-color: var(--code-background-color);
    background: var(--code-background-gradient);
    overflow-x: scroll;
}

code {
    font-family: "DepartureMono";
    display: inline-block;
    background-color: var(--code-background-color);
    background: var(--code-background-gradient);
    padding: 0.02em;
    overflow-wrap: anywhere;
}

pre > code {
    background-color: unset;
    background: unset;
    overflow-x: unset;
}
