/* Browsers have a default of 1 rem = 16px if the user doesn't adjust it. */

@font-face {
    font-family: 'SF Monog Regular';
    src: url('/https/flawless.dev/fonts/sf-mono-regular.woff2'),
}

html {
    overflow-y: scroll;
}

a {
    color: black;
}

.highlight {
    background-color: antiquewhite;
}

.sub-title-descirption {
    margin-top: -15px;
    padding: 5px;
    background-color: antiquewhite;
}

main {
    max-width: 42.5rem;
    margin: auto;
    margin-bottom: 4rem;
    padding: 1rem;

    font-family: 'ui-monospace', 'SF Monog Regular', Consolas, 'Liberation Mono', 'Courier New', monospace;
    color: black;
}

div.announcement {
    position: absolute;
    top: 0;
    padding: 6px 0;
    text-align: center;
    font-size: 0.8rem;
    color: white;
    max-width: 42.5rem;
    width: 92%;
    background-color: darkslategrey;
}

div.announcement a {
    color: white;
}

header {
    display: flex;
    padding-top: 1.6rem;
}

header a {
    color: darkslategrey;
    text-decoration-color: darkslategrey;
    display: flex;
}

header a>* {
    align-self: center;
    font-size: 1.2rem;
}

header a img {
    width: 2rem;
}

header a.docs {
    margin-left: auto;
    padding-right: 1rem;
}

header a.replay {
    padding-right: 1rem;
}

header a.discord {
    padding-right: 0.2rem;
}

h2 {
    font-size: 1rem;
}

section {
    padding-top: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

section img {
    width: 100%;
}

section p.img-description {
    text-align: center;
    font-size: 0.8rem;
}

ul.essay-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

ul.essay-list li {
    display: flex;
    white-space: nowrap;
}

ul.essay-list li a {
    text-decoration: none;
    margin-right: 0.6rem;
}

ul.essay-list li a:hover {
    text-decoration: underline;
}

ul.essay-list li span.date {
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
    box-sizing: border-box;
}

ul.essay-list li span.date:before {
    content: '..................................................';
    margin-right: 0.6rem;
}

pre.language-rust {
    padding: 0.8rem;
    font-size: 0.875rem;
}

code,
pre {
    font-size: 0.875rem;
    background-color: #fcf5ea !important;
    color: #111111;
}

blockquote {
    border-left: 1rem antiquewhite solid;
    padding-inline-start: 1rem;
    margin-inline-start: 0;

}


/* Mobile adjustments */
@media only screen and (max-width: 720px) {
    div.announcement {
        width: 88%;
    }

    header {
        padding-top: 3rem;
    }

    header a>* {
        font-size: 0.9rem;
    }

    pre {
        overflow-x: scroll;
    }

    h2 {
        font-size: 1rem;
    }

    section {
        font-size: 0.9rem;
    }

    code {
        font-size: 0.8rem;
    }
}