/* Default theme. Simple, yet elegant. */
/* Use Open Sans as the default sans serif font. */
@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,500,700|Source+Code+Pro:300,400,500,700");

/* See https://getbootstrap.com/docs/5.2/customize/css-variables/#root-variables for variables to override. */
:root {
    --bs-font-sans-serif: "Open Sans", sans-serif;
    --bs-link-color: var(--bs-blue);
    --tf-pill-bg: var(--bs-gray);
    --tf-icon-fill: var(--bs-gray);
    --tf-icon-hover: var(--bs-gray-500);
    --tf-page-bg-color: var(--bs-white);
    --tf-footer-bg-color: var(--bs-gray-200);
    --tf-projects-bg-color: var(--bs-gray-100);

    --color-text-primary: #333;
    --color-text-tertiary: #777;
    --color-text-link: #4078c0;
    --color-bg-primary: #fff;
    --color-bg-secondary: #fafbfc;
    --color-bg-tertiary: #f8f8f8;
    --color-border-primary: #ddd;
    --color-border-secondary: #eaecef;
    --color-border-tertiary: #d1d5da;
    --color-kbd-foreground: #444d56;
    --color-markdown-blockquote-border: #dfe2e5;
    --color-markdown-table-border: #dfe2e5;
    --color-markdown-table-tr-border: #c6cbd1;
    --color-markdown-code-bg: #1b1f230d;
}

/* Format social media icons */
.tf-social {
    display: inline-block;
    fill: var(--tf-icon-fill);
    height: 1.5em;
    vertical-align: -.1em;
    width: 1.5em;
    transition: 0.2s;
}

.tf-social:hover {
    fill: var(--tf-icon-hover);
}

a {
    text-decoration: none;
}

@media (max-width: 500px) {
    .navbar-brand {
        display: none;
    }

    .navbar-brand-mobile {
        display: inline;
    }
}

/* Simplify the styling of the bottom of Essay cards. */
.card-footer {
    background-color: var(--bs-white);
    border-top: none;
}

/******************************************************************************/

blockquote {
    margin-left: 0;
    margin-right: 0;
    padding: 0 15px;
    color: var(--color-text-tertiary);
    border-left: 4px solid var(--color-markdown-blockquote-border);
}

table {
    display: block;
    width: 100%;
    overflow: auto;
    word-break: normal;
    word-break: keep-all;
    border-collapse: collapse;
    border-spacing: 0;
}

table tr {
    background-color: var(--color-bg-primary);
    border-top: 1px solid var(--color-markdown-table-tr-border);
}

table tr:nth-child(2n) {
    background-color: var(--color-bg-tertiary);
}

table th,
table td {
    padding: 6px 13px;
    border: 1px solid var(--color-markdown-table-border);
    vertical-align: top;
}

kbd {
    display: inline-block;
    padding: 5px 6px;
    font: 14px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
    line-height: 10px;
    color: var(--color-kbd-foreground);
    vertical-align: middle;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border-tertiary);
    border-radius: 3px;
    box-shadow: inset 0 -1px 0 var(--color-border-tertiary);
}

pre {
    word-wrap: normal;
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: var(--color-bg-tertiary);
    -webkit-border-radius: 3px;
    border-radius: 3px;
}

pre code {
    display: inline;
    max-width: initial;
    padding: 0;
    margin: 0;
    overflow: initial;
    font-size: 100%;
    line-height: inherit;
    word-wrap: normal;
    white-space: pre;
    border: 0;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    background-color: transparent;
}

pre code:before,
pre code:after {
    content: normal;
}

code {
    font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
    padding: 0;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
    margin: 0;
    font-size: 85%;
    background-color: var(--color-markdown-code-bg);
    -webkit-border-radius: 3px;
    border-radius: 3px;
}

code:before,
code:after {
    letter-spacing: -0.2em;
    content: "\00a0";
}

a {
    color: var(--color-text-link);
    text-decoration: none;
    background: transparent;
}

img {
    max-width: 100%;
    max-height: 100%;
}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

del {
    text-decoration: line-through;
}
