@charset "UTF-8";

@import '/styles/colors.css';
@import '/styles/fonts.css';

body {
    background-color: var(--bg1);
    color: var(--fg1);
    font-family: "Quicksand", sans-serif;
    font-size: 18px;
}

.navbar {
    z-index: 1;
    position: fixed;
    width: 23%;
    height: 100%;
    background-color: transparent;
    align-content: center;

    ul {
        list-style-type: none;
        overflow: hidden;
        align-content: left;
        margin: 0;
        padding: 2mm;
    }

    li {
        font-family: "Maple Mono";
        text-align: center;
        padding: 2mm 0mm;
        font-weight: 100;
        user-select: none;
    }

    a {
        color: var(--fg2);
        text-decoration: none;
    }

    a:hover,
    a.active {
        color: var(--accent1);
        text-shadow: 0px 0px 6px var(--accent1), 0px 0px 16px var(--accent2);
        font-weight: 600;
    }
}

.navbar.left {
    top: 0;
    left: 0;
}

.navbar.right {
    top: 0;
    right: 0;
}

#scroll-notches {
    flex: 1 0 auto;

    a {
        width: 100%;
        display: block;
        text-align: right;
    }
}

#docnav.navbar {
    li {
        padding: 0;
    }

    a {
        font-size: 14px;
    }

    a:not(.active, :hover) {
        color: var(--fg3);
        text-decoration: none;
    }

    >div {
        display: flex;
        flex-direction: row;
    }
}

#bookmark-list {
    display: flex;
    flex-direction: column;
    flex: 3 0 0;

    li {
        text-align: left;
        vertical-align: bottom;
        display: inline;
    }
}

main {
    overflow: hidden;

    margin: auto;

    top: 0mm;
    right: 22.5%;
    left: 22.5%;
    bottom: 0mm;

    height: 100%;
    min-height: 0;
    width: 55%;
    box-sizing: border-box;
    position: absolute;

    display: flex;
    flex-direction: column;
}

#content {
    overflow-y: scroll;

    text-align: left;
    padding: 40mm 20mm;
    min-height: 0;
    height: 100%;
    box-sizing: border-box;

    background-color: var(--bg2);
    border-left: 2px solid var(--fg1);
    border-right: 2px solid var(--fg1);

    scrollbar-width: none;
}

.center {
    text-align: center;
}

p {
    text-align: justify;
    margin-left: 5mm;

    code {
        background-color: var(--bg3);
    }
}

p.subtitle {
    margin-left: 0mm;
    text-align: center;
    font-weight: 100;
    font-style: italic;
    font-size: 16px;
    margin-bottom: 64px;
}

h1 {
    text-align: center;
    letter-spacing: 5px;
    font-weight: bold;
    font-family: "Maple Mono";
    font-size: 40px;
    color: var(--accent1);
    text-shadow: 0px 0px 2px var(--accent1), 0px 0px 10px var(--accent2);
    margin-top: 20vh;
}

h2 {
    font-weight: bold;
    font-style: italic;
    margin-top: 15mm;
    color: var(--accent2);
    text-shadow: 0px 0px 3px var(--accent2);
}

h2.contact-header {
    text-align: center;
}

h3 {
    font-weight: bold;
    font-style: italic;
    color: var(--accent2);
    text-shadow: 0px 0px 1px var(--accent2);
}

hr {
    margin: 20mm 30mm;
    color: var(--fg3);
}

code {
    font-family: "Maple Mono" !important;
    font-weight: 100;
    border-radius: 3px;
}

a {
    color: var(--link);
    text-decoration: none;
    font-weight: 100;
    font-family: "Maple Mono";

    :hover {
        color: var(--link-hover);
        text-shadow: 0px 0px 5px var(--fg1);
        font-weight: 200;
    }
}

a.disabled {
    color: var(--link-disabled);
    pointer-events: none;
}

.toc a {
    font-style: italic;
    color: var(--fg2);

    :hover {
        color: var(--accent1);
    }
}

ul.toc {
    list-style-type: none;
    padding: 0;
    line-height: 2em;
}

ul.contact {
    margin-left: 5vw;
    list-style: none;

    >li {
        margin-bottom: 2mm;
    }
}

a.post-preview {
    margin: 10mm 0;
    display: block;
    border: 1px solid var(--fg2);
    border-radius: 5px;
    padding-left: 5mm;
    color: var(--fg1);
}

a.post-preview:hover {
    border-color: var(--accent2);

    h3 {
        color: var(--accent1);
        text-shadow: 0px 0px 3px var(--accent1);
    }
}

.post-preview {
    p {
        font-family: "Quicksand";
    }

    h3 {
        font-weight: 600;
        font-family: "Maple Mono";
        margin-bottom: 0;
        color: var(--fg1);
    }

    time {
        float: right;
        margin: 5mm;
        font-size: 14px;
        color: var(--fg2);
    }
}

a.center-link {
    text-align: center;
    margin-top: 10mm;
    width: auto;
    display: block;
}

button.copy_button {
    align-self: self-start;
    float: right;
    color: var(--fg1);
}

@media (max-width: 1000px) {
    body {
        font-size: 14px;
    }

    #content {
        padding: 20mm 10mm;
    }

    h1 {
        font-size: 24px;
    }

    .navbar {
        font-size: 12px;
    }

    #docnav.navbar a {
        font-size: 12px !important;
    }
}
