:root {
    --bg: #05161f;
    --bgSoft: #1e231f;
    --text: #cdcecd;
    --textSoft: #a8a9a8;
    --primary: #005bff;
    --accent: #0094ee;
    --warning: #ffa924;
    --fonts: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

html {
    font-size: 1em;
    font-family: var(--fonts);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg);
    color: var(--text);
}

* {
    margin: 0;
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Fixes iOS font sizing anomaly */
code {
    text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

:not(pre) > code {
    background-color: var(--bgSoft);
    padding: 1px 3px;
    border-radius: 5px;
    font-size: inherit;
}

.container {
    max-width: 760px;
    padding-left: 15px;
    padding-right: 15px;
    margin: auto;
    min-height: 100vh;
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    font-size: 17px;
    line-height: 1.7em;

    h1 {
        border-width: 0;
        font-size: 1.6em;
        margin-bottom: 0.2em;
    }

    h2 {
        font-size: 1.3em;
        margin-bottom: 1em;
    }

    h3,
    h4,
    h5,
    h6 {
        margin-bottom: 1em;
    }

    p,
    blockquote,
    dl,
    ol,
    ul,
    table,
    pre,
    details {
        margin-bottom: 1em;
    }

    li>ul,
    li>ol {
        margin-bottom: 0;
    }

    pre {
        width: 100%;
        overflow-x: auto;
        padding: 10px;
        margin: 20px 0;
    }

    pre>code {
        font-size: 14px;
    }

    figure {
        text-align: center;

        figcaption {
            color: var(--textSoft);
            font-size: 14px;
        }
    }

    table {
        border-collapse: collapse;
        min-width: 95%;
        max-width: 95%;
        display: table;
        margin: 0 auto 1em auto;
    }

    td {
        padding: 10px;
    }

    tr:nth-child(even) {
        background-color: var(--bgSoft);
    }

    tr:hover {
        background-color: var(--accent);
    }

    th {
        padding-top: 12px;
        padding-bottom: 12px;
        text-align: left;
        background-color: var(--primary);
    }

    mark {
        background-color: var(--accent);
    }
}

/* NAVBAR START */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 20px 0;
    margin: 15px 0 20px 0;
}

.logo {
    font-size: 1.5em;
}

.links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.5em;
}

/* NAVBAR END */

/* LIST START */

.listItem {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.listItemContent {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.listItemContentDate {
    font-size: 16px;
}

.listItemContentTitle:hover {
    color: var(--accent);
}

.listItemTagsList {
    display: flex;
    gap: 10px;
}

.listItemTag {
    padding: 0 5px 0 5px;
    border-radius: 5px;
    background-color: var(--bgSoft);
}

/* LIST END */

/* SINGLE POST START */

.postInfo {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin: 1em 0 1.5em 0;
}

.postInfo h1 {
    margin-bottom: 0;
}

.meta {
    display: flex;
    justify-content: space-between;
}

.metaDateDraft {
    padding: 1px;
    background-color: var(--warning);
    border-radius: 5px;
    color: var(--primary);
}

#TableOfContents a {
    color: var(--textSoft);
}

#TableOfContents a:hover {
    color: var(--accent);
}

.post h1,
h2,
h3,
h4,
h5 {
    border-bottom: 1px solid var(--textSoft);
    padding-bottom: 0.3em;
}

.post img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.post a {
    color: var(--primary);
}

.post a:hover {
    color: var(--accent);
}

.postIntro {
    margin-bottom: 1em;
}

.postContent {
    margin-bottom: 2em;
}

.postTags {
    display: flex;
    align-items: center;
    gap: 15px;
}

.singlePostTag {
    padding: 2px 5px 2px 5px;
    border-radius: 5px;
    border: 1px solid var(--textSoft);
}

.singlePostTag:hover {
    background-color: var(--bgSoft);
}

/* SINGLE POST END */

/* FOOTER START */

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    font-size: 1em;
    margin-top: auto;
}

.footer a:hover {
    color: var(--accent);
}

.footerSocial {
    display: flex;
    gap: 10px;
}

/* FOOTER END */

/* 404 START */
.not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.not-found a {
    color: var(--primary);
}

.not-found h1 {
    margin-bottom: 1em;
}

/* 404 END */

@media (max-width:1024px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media only screen and (max-width: 540px) {
    .footer {
        margin-top: 20px;
        flex-direction: column;
        height: auto;
        gap: 10px;
    }
}
