html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    --main-background-color: #ffffff;
    --code-background-color: #fafafa;
    --bar-background-color: #f3f3f3;
    --border-color: #d7d7d7;
    --text-color: #000000;
    --lighter-text-color: #a2a2a2;
    --hover-color: #c40000;
}

.top-bar {
    position: fixed;
    display: flex;
    justify-content: center;
    align-content: center;
    z-index: 1;
    width: 100%;
    height: 7vh;
    background-color: var(--bar-background-color);
    border-bottom: 2px solid var(--border-color);
}

.top-title {
    text-decoration: none;
    text-align: center;
    width: 20%;
    height: auto;
    font-size: 35px;
    color: var(--hover-color);

    font-family: 'Shadows Into Light', cursive;
    font-weight: bold;
}

.bottom-bar {
    margin-top: 25px;
    background-color: var(--main-background-color);
}

.bottom-bar-content {
    width: 45%;
    margin: 0 auto;
    border-top: 2px solid var(--border-color);
    padding-top: 15px;
    height: 50px;
    background-color: var(--main-background-color);
}

.bottom-source-link {
    margin: 0 auto;
}

.bottom-source-link a {
    color: var(--text-color);
    font-family: Roboto, sans-serif;
    font-size: 13px;
    text-decoration: none;
}

.bottom-source-link a:visited {
    color: inherit;
}

.bottom-source-link a:hover {
    color: var(--hover-color);
}

.bottom-source-link a::before {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
    content: "\27A4 ";
    color: var(--text-color);
    font-family: Roboto, sans-serif;
    font-size: 10px;
}

.content {
    padding-top: 7vh;
}

.left-bar {
    position: fixed;
    border-right: 2px solid var(--border-color);
    left: 0;
    width: 270px;
    height: 100%;
    background: var(--bar-background-color);
}

.left-bar-title {
    color: var(--text-color);
    font-family: Roboto, sans-serif;
    padding: 15px 0 10px 0;
    margin: 0 auto 15px;
    width: 90%;
    font-size: 18px;
    text-align: center;
    border-bottom: 1.5px solid var(--border-color);
}

.left-bar-item {
    margin: 5px 0 5px 15px;
}

.left-bar-item-link {
    color: var(--text-color);
    font-family: Roboto, sans-serif;
    font-size: 17px;
    text-decoration: none;
}

.left-bar-item-link:visited {
    color: inherit;
}

.left-bar-item-link:hover {
    color: var(--hover-color);
}

.left-bar-heading {
    margin: 5px 0 5px 15px;
    color: var(--text-color);
    font-family: Roboto, sans-serif;
    font-size: 15px;
}

.left-bar-heading a::before {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
    content: "\27A4 ";
    color: var(--text-color);
    font-family: Roboto, sans-serif;
    font-size: 10px;
}

.left-bar-heading a {
    color: var(--text-color);
    text-decoration: none;
}

.left-bar-heading a:visited {
    color: inherit;
}

.left-bar-heading a:hover {
    color: var(--hover-color);
}

.main-content-container {
    width: 45%;
    margin: 0 auto;
}

.main-content {
    margin-top: 40px;
}

.article-title {
    color: var(--text-color);
    font-family: Roboto, sans-serif;
    font-size: 35px;
}

.article-subtitle {
    color: var(--text-color);
    font-family: Roboto, sans-serif;
    font-size: 28px;
}

.article-date {
    color: var(--text-color);
    font-family: Roboto, sans-serif;
    font-size: 15px;
    text-align: end;
    padding-bottom: 5px;
}

.article-heading-1 {
    color: var(--text-color);
    font-family: Roboto, sans-serif;
    font-size: 25px;
    padding: 25px 0 5px;
}

.article-heading-anchor {
    position: relative;
    top: calc(-7vh + -20px);
}

.article-paragraph {
    color: var(--text-color);
    font-family: Roboto, sans-serif;
    font-size: 18px;
    padding: 7px 0;
}

.article-inline-code {
    font-family: Consolas, monospace;
    background: var(--code-background-color);
    border: 1.5px solid var(--border-color);
    border-radius: 5px;
    padding: 0 2px;
    font-size: 15px;
}

.article-codeblock {
    background: var(--main-background-color);
    border-radius: 5px;
    padding-top: 2px;
    color: var(--text-color);
}

.article-codeblock-source {
    background: var(--main-background-color);
    font-style: italic;
    font-family: Roboto, sans-serif;
    color: var(--lighter-text-color);
    border-radius: 5px;
    padding: 0 0 3px 4px;
    font-size: 13px;
}

.article-codeblock-code {
    font-family: Consolas, monospace;
    background: var(--code-background-color);
    border: 2px solid var(--border-color);
    font-size: 14px;
    border-radius: 5px;
    padding: 5px 0 5px 7px;
    white-space: pre;
}

.article-note-button {
    color: var(--text-color);
    font-family: Roboto, sans-serif;
    vertical-align: top;
    user-select: none;
    font-size: 12px;
}

.article-note-text-container {
    position: absolute;
    padding-left: 5px;
}

.article-note-text {
    font-size: 16px;
    display: none;
    width: 500px;
    padding: 5px;
    background: var(--bar-background-color);
    border: 2px solid var(--border-color);
    border-radius: 5px;
}

.article-note-input {
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.article-note-input:hover ~ .article-note .article-note-button {
    color: var(--hover-color);
}

.article-note-input:checked ~ .article-note .article-note-button {
    color: var(--hover-color);
}

.article-note-input:checked ~ .article-note .article-note-text {
    display: block;
}

.article-card-container {
    border-top: 1px solid var(--border-color);
}

.article-card {
    margin: 10px auto;
    width: 80%;
    color: var(--text-color);
    font-family: Roboto, sans-serif;
}

.article-card-link {
    margin: 2px 0;
}

.article-card-link a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 20px;
}

.article-card-link a:visited {
    color: inherit;
}

.article-card-link a:hover {
    color: var(--hover-color);
}

.article-card-info {
    font-size: 14px;
    padding-bottom: 3px;
}

.article-card-preview {
    font-size: 14px;
}

.article-card-end {
    border-top: 1px solid var(--border-color);
}