@charset "utf-8";

/*
 * Variables
 */
:root {
    --font-family: 'Poppins', sans-serif;
    --code-font-family: 'Fira Code' monospace;
    --sidebar-width: 22vw;
    --sidebar-inner-width: 300px;
    --default-border-radius: 10px;
    --default-breakpoint-width: 1000px;
    --default-wide-width: var(--default-breakpoint-width);
    --default-narrow-width: 700px;
    --default-article-width: 500px;
}

.color-scheme-light {
    display: inherit;
}

.color-scheme-dark {
    display: none;
}

@media (prefers-color-scheme: dark) {
    .color-scheme-light {
        display: none;
    }

    .color-scheme-dark {
        display: inherit;
    }
}

.reduced-motion-no-preference {
    display: inherit;
}

.reduced-motion-reduce {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .reduced-motion-no-preference {
        display: none;
    }

    .reduced-motion-reduce {
        display: inherit;
    }
}

@supports (font-variation-settings: normal) {
    :root {
        --code-font-family: 'Fira Code VF', monospace;
    }
}

/*
 * Reset
 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
figure,
figcaption,
blockquote,
dl,
dd {
    margin: 0;
}

body {
    line-height: 1.5;
}

input,
button,
textarea,
select {
    font: inherit;
}

html {
    background-color: #000000;
    font-family: var(--font-family);
    font-size: 15px;
}

body {
    color: var(--theme-foreground);
    font-family: var(--font-family);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--theme-foreground);
    font-weight: 500;
}

h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}

h4 {
    font-size: 1.1rem;
}

h5,
h6 {
    font-size: 1rem;
}

p {
    color: var(--theme-foreground);
}

/*
 * Base Elements
 */
pre {
    font-family: var(--code-font-family);
    font-size: 0.8rem;
    overflow-x: auto;
}

blockquote {
    background-color: var(--theme-background-alt);
    border-left: 5px solid var(--theme-accent);
    margin: 1rem;
    padding: 0.5rem 1.5rem;
}

code {
    background-color: var(--theme-background-alt);
    font-family: var(--code-font-family);
    font-size: 0.8rem;
    padding: 2px;
}

hr {
    border: solid 1px var(--theme-foreground-alt);
    color: var(--theme-foreground-alt);
    margin: 3rem auto;
    width: 80%;
}

ul li {
    list-style: none;
    position: relative;
}

ul li:before {
    color: var(--theme-accent);
    content: "\25CB";
    left: -1.5rem;
    position: absolute;
}

ol li {
    counter-increment: licounter;
    list-style: none;
    position: relative;
}

ol li:before {
    color: var(--theme-accent);
    content: counter(licounter) ":";
    left: -2.5rem;
    position: absolute;
    text-align: right;
    width: 1.5rem;
}

ol {
    counter-reset: licounter;
    list-style: none;
}

ul.inline li {
    display: inline-block;
    list-style: none;
}

ul.inline li:before {
    position: fixed;
    content: "";
}

dl {
    padding-left: 2rem;
}

dt {
    color: var(--theme-foreground);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 1rem 0;
}

dd {
    margin: 1rem;
    margin-bottom: 2rem;
}

dd > ul,
dd > ol {
    padding: 0 2rem;
}

.animated-dl dt {
    animation: var(--animation, 1s k-diagonal-bounce both);
    animation-delay: calc(var(--animation-order, 0) * 80ms);
    animation-play-state: var(--animation-state, running);
}

.animated-dl dd {
    animation: var(--animation, 1s k-diagonal-bounce both);
    animation-delay: calc(var(--animation-order, 0) * 100ms);
    animation-play-state: var(--animation-state, running);
}

figure,
figure img,
figure video {
    margin: 1rem auto;
    max-width: 90%;
}

figure img,
figure video {
    max-height: 500px;
}

figure div.image {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
}

figure img,
figure video,
figure div.image {
    box-shadow: 5px 5px 15px 5px rgba(0, 0, 0, 0.2);
}

figure {
    text-align: center;
}

figcaption {
    color: var(--theme-foreground-alt);
    font-size: 0.8rem;
    padding: 1rem;
}

table {
    border: solid 1px var(--theme-foreground-alt);
    border-collapse: collapse;
    width: 100%;
}

table th {
    color: var(--theme-background);
    font-weight: 500;
    padding: 0.5rem;
    text-align: left;
}

table td {
    color: var(--theme-foreground);
    padding: 0.5rem;
}

table thead {
    background-color: var(--theme-accent);
}

table tr:nth-child(even) {
    background-color: var(--theme-background-alt);
}

/*
 * Animations
 */
.animated > * {
    animation: var(--animation, 1s k-diagonal-bounce both);
    animation-delay: calc(var(--animation-order, 0) * 150ms);
    animation-play-state: var(--animation-state, running);
}

.animated-alt > * {
    animation: var(--animation, 1s k-horizontal-bounce both);
    animation-delay: calc(var(--animation-order, 0) * 150ms);
    animation-play-state: var(--animation-state, running);
}

.animation-paused {
    --animation-state: paused;
}

.animated-container {
    box-sizing: content-box;
    height: 0;
    overflow: hidden;
    transition: height 300ms ease-out;
}

/*
 * Sidebar
 */
.sidebar {
    --fa-primary-color: var(--theme-foreground);
    --fa-secondary-color: var(--theme-accent);
    border-right: solid 1px var(--theme-background-alt);
    bottom: 0;
    color: var(--theme-foreground);
    display: flex;
    flex-direction: column;
    left: 0;
    height: 100vh;
    max-width: 500px;
    min-width: 200px;
    position: fixed;
    top: 0;
    transition: transform 800ms;
    width: var(--sidebar-width);
    z-index: 5;
}

.sidebar-header {
    border-bottom: solid 1px var(--theme-background-alt);
    color: var(--theme-foreground);
    padding: 0.5rem;
    text-align: center;
}

.sidebar-logo {
    font-size: 1.2rem;
}

.sidebar-header .domain {
    color: var(--theme-foreground);
}

.sidebar-content {
    box-shadow: inset 0 -3px 10px rgba(0, 0, 0, 0.2);
    flex-grow: 1;
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sidebar-content::-webkit-scrollbar {
    display: none;
}

.sidebar-inner-content {
    margin: auto;
    max-width: calc(var(--sidebar-inner-width) + 80px);
}

.sidebar-footer {
    background-color: var(--theme-background);
    font-size: 0.8rem;
    text-align: center;
    padding: 1rem;
}

.sidebar-weather {
    border: solid 1px var(--theme-background-alt);
    border-width: 1px 0;
    padding: 1rem 0.5rem;
}

.sidebar-weather-inner {
    color: var(--theme-foreground-alt);
    display: flex;
    font-size: 0.9rem;
    justify-content: space-around;
    margin: auto;
    max-width: var(--sidebar-inner-width);
}

.sidebar-account {
    padding: 1rem;
}

.sidebar-account .account {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: var(--sidebar-inner-width);
}

.sidebar-account .account-user {
    display: flex;
}

.sidebar-account .account-image {
    margin-right: 1rem;
}

.sidebar-account .account-image img {
    height: auto;
    width: 3rem;
    border-radius: var(--default-border-radius);
}

.sidebar-account .account-notifications {
    justify-self: flex-end;
}

.sidebar-info {
    font-size: 0.8rem;
    padding: 1rem;
}

.sidebar-info ul.tags li a,
.sidebar-info ul.tags li a:link,
.sidebar-info ul.tags li a:visited,
.sidebar-info ul.tags li a:hover {
    font-size: 0.8rem;
}

.sidebar ul.links {
    font-size: 0.95rem;
    font-weight: 500;
}

.sidebar .spacer {
    height: 6px;
}

.sidebar-sponsorship {
    border-top: solid 1px var(--theme-background-alt);
    font-size: 0.75rem;
    padding: 1rem 1.5rem;
    text-align: center;
}

.sidebar-sponsorship-image {
    margin-bottom: 5px;
}

.sidebar-sponsorship img {
    min-height: 100px;
    max-height: 5rem;
    max-width: 100%;
}

/*
 * Main
 */
.section, .main-header, .main-footer {
    padding: 0.5rem 2rem;
    padding-left: calc(var(--sidebar-width) + 3rem);
}

.main-header {
    display: none;
    font-size: 1.1rem;
    left: 0;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 10;
}

.main-inner-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.main-footer {
    font-size: 0.9rem;
    padding-bottom: 2rem;
    padding-top: 0.5rem;
    text-align: center;
}

.footer-version {
    font-family: var(--code-font-family);
    font-size: 0.75rem;
}

.section, .sub-section, .themed-footer {
    --fa-primary-color: var(--theme-foreground);
    --fa-secondary-color: var(--theme-accent);
    color: var(--theme-foreground);
}

.section, .sidebar, .gradient {
    background: linear-gradient(120deg, var(--theme-background), var(--theme-background-alt));
}

.section {
    border-bottom: solid 2px var(--theme-background-alt);
}

.section-nav ul {
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
    margin-top: 0.25rem;
    padding: 0;
}

.section-nav ul li {
    margin-bottom: 1rem;
    margin-right: 2rem;
    white-space: nowrap;
}

.section-nav ul li.title {
    flex-grow: 1;
    font-size: 1.1rem;
    margin-right: 2rem;
}

.section-header {
    animation: var(--animation, 1.5s k-underline both);
    animation-delay: calc(var(--animation-order, 0) * 80ms);
    animation-play-state: var(--animation-state, running);
    background-image: linear-gradient(0.25turn, var(--theme-foreground), var(--theme-accent));
    background-position: 5px bottom;
    background-repeat: no-repeat;
    background-size: 0 1px;
    display: inline-block;
    font-size: 1rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
    padding: 0;
    padding-bottom: 3px;
}

.section-body {
    padding: 2.5rem 0;
}

.section-body.animated > * {
    animation: var(--animation, 1s k-diagonal-bounce both);
    animation-delay: calc(var(--animation-order, 0) * 120ms);
    animation-play-state: var(--animation-state, running);
}

.section-body.inline-list {
    display: flex;
    flex-wrap: wrap;
}

.section-body.list {
    display: grid;
    gap: 2rem 0;
    grid-template-columns: 1fr;
}

.section-body.list.compact {
    gap: 1rem 0;
}

.section-body.grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

.section-body iframe {
    background-color: #fff;
    border: none;
    margin: 2rem 0;
    height: 40rem;
    width: 100%;
}

div.section-tags {
    padding: 1rem;
    padding-bottom: 0;
    text-align: center;
}

div.section-tags .section-header {
    animation: none;
    background-image: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding-top: 0;
    padding-bottom: 0.5rem;
}

.section-image {
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 1rem;
    width: 100%;
}

.section-footer {
    font-size: 0.8rem;
    margin: 0;
    margin-bottom: 0.75rem;
}

.section-footer-nav {
    text-align: center;
}

.section-footer-nav > span {
    white-space: nowrap;
}

.sub-section {
    background-color: var(--theme-background);
    border-radius: var(--default-border-radius);
    padding: 1.5rem;
}

.sub-section.horizontal {
    display: flex;
}

.sub-section.horizontal .section-image {
    margin-bottom: 0;
    margin-right: 1.5rem;
}

.sub-section.horizontal .section-body {
    padding: 0;
}

.sub-section .section-header {
    animation: none;
    background-image: none;
    font-size: 1.1rem;
    margin: 0;
    margin-bottom: 1rem;
    padding: 0;
}

.sub-section .section-body {
    padding: 0.5rem 0;
}

.sub-section .section-body.padded {
    padding: 2rem 0;
}

.sub-section.account {
    background-color: transparent;
    display: flex;
}

.sub-section.account img,
.sub-section.account video {
    border-radius: var(--default-border-radius);
    box-shadow: 5px 5px 15px 5px rgba(0, 0, 0, 0.2);
    width: 10rem;
}

.sub-section.account h1 {
    font-size: 2.5rem;
    margin-top: -1rem;
}

.sub-section.account .info {
    font-size: 0.8rem;
    margin: 1rem;
}

.sub-section.account .info-title {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.sub-section.account .section-image {
    margin-right: 2rem;
    width: 10rem;
}

.sub-section.account .section-body {
    padding: 0;
    width: 100%;
}

.section-item {
    border-bottom: solid 1px var(--theme-background-alt);
    margin-bottom: 0.5rem;
    padding-bottom: 1rem;
}

.section-item > div,
.section-item > footer {
    font-size: 0.8rem;
}

.section-item > .section-header {
    font-size: 1rem;
    margin: 0;
    margin-bottom: 5px;
}

.section-item > footer {
    margin-top: 5px;
}

/*
 * Pages
 */
.spaced h1,
.spaced h2,
.spaced h3,
.spaced h4,
.spaced h5,
.spaced h6,
.spaced p {
    margin: 2rem 0;
}

.spaced li {
    margin: 0.75rem 0;
}

.article hr {
    border: solid 1px var(--theme-accent);
    color: var(--theme-accent);
    margin: 3rem auto;
    width: 80%;
}

.article {
    font-size: 1rem;
    margin: 2rem auto;
    max-width: 600px;
}

.article-photo,
.article-photo img,
.article-main,
.article-main div.image {
    max-height: 100% !important;
    width: 100%;
    max-width: 100% !important;
}

.article-photo {
    padding-top: 0.5rem;
}

.article-main {
    margin: 0;
    padding: 0;
}

.article-main figcaption {
    margin: 0.5rem;
    text-align: left;
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 0 !important;
}

.article-word-count {
    color: var(--theme-foreground-alt);
    font-size: 0.8rem;
    margin-top: 0.5rem !important;
}

.article-content {
    border-top: solid 2px var(--theme-foreground-alt);
    margin-top: 3rem;
    padding: 3rem 0;
}

.article time {
    margin-top: -2rem;
}

.narrow {
    margin: auto;
    max-width: var(--default-narrow-width);
}

.wide {
    margin: auto;
    max-width: var(--default-wide-width);
}

.centered {
    margin: auto;
    max-width: var(--default-narrow-width);
    text-align: center;
}

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

.two-column .column {
    margin: 0 1rem;
    width: 50%;
}

.pheader {
    padding: 1.5rem 0;
}

.pheader h1,
.pheader h2,
.pheader h3,
.pheader h4,
.pheader h5,
.pheader h6 {
    margin: 1rem 0;
}

.pheader h1 i {
    margin-right: 5px;
}

.pheader p {
    color: var(--theme-foreground-alt);
    font-size: 0.9rem;
    margin: 0;
    margin-left: 1rem;
    margin-top: 0.5rem;
}

/*
 * Links
 */
a,
a:link,
a:visited {
    color: var(--theme-accent);
    text-decoration: none;
}

a:hover {
    color: var(--theme-foreground);
    -webkit-text-decoration-color: var(--theme-accent);
            text-decoration-color: var(--theme-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

a.alt,
a.alt:link,
a.alt:visited {
    color: var(--theme-foreground);
}

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

p a,
p a:link,
p a:visited,
p a:hover,
a:hover,
a.alt:hover,
a.underline,
a.underline:link,
a.underline:visited,
a.underline:hover {
    text-decoration: underline;
    -webkit-text-decoration-color: var(--theme-foreground);
            text-decoration-color: var(--theme-foreground);
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}


ul.section-tags li a,
ul.section-tags li a:link,
ul.section-tags li a:visited,
ul.section-tags li a:hover,
ul.tags li a,
ul.tags li a:link,
ul.tags li a:visited,
ul.tags li a:hover {
    background-color: var(--theme-background-alt);
    border-radius: 20px;
    color: var(--theme-accent);
    display: inline-block;
    font-size: 0.85rem;
    padding: 3px 0.8rem;
    text-decoration: none;
    transition: color 1s, background-color 1s;
}

ul.section-tags li a:hover,
ul.tags li a:hover {
    background-color: var(--theme-accent);
    color: var(--theme-background);
}

/* Inline/Undecorated Lists */
ul.section-tags li,
ul.tags li,
ul.footer-links li,
.section-nav ul li {
    display: inline-block;
    list-style: none;
}

ul.info li:before,
ul.links li:before,
ul.section-tags li:before,
ul.tags li:before,
ul.footer-links li:before,
.section-nav ul li:before,
#reference-list li:before {
    position: fixed;
    content: "";
}

/*
 * Forms
 */
label {
    color: var(--theme-foreground-alt);
    display: block;
    font-size: 1.1rem;
    margin: 0.25rem 0;
}

input,
textarea,
select,
button {
    font-family: var(--default-font);
    padding: 10px;
}

input,
textarea,
select {
    border: solid 1px var(--theme-foreground);
    border-radius: 5px;
}

input[type="text"],
input[type="url"],
input[type="password"],
input[type="email"] {
    font-size: 0.9rem;
    width: 500px;
    max-width: 100%;
}

input[type="url"] {
    width: 100%;
}

input[type="file"] {
    display: none;
}

input[type="color"] {
    border: solid 1px var(--theme-background-alt);
    border-radius: 3px;
    padding: 0;
}

input[type="number"] {
    padding: 5px;
}

input[type="text"].color-value {
    font-family: var(--code-font-family);
    font-size: 0.7rem;
    width: 5rem;
    margin: 0;
    padding: 0.25rem;
}

input[type="text"].wide {
    width: 100%;
}

fieldset {
    border: solid 1px var(--theme-background-alt);
    border-radius: var(--default-border-radius);
    margin: 2rem 0;
    padding: 2rem;
}

legend {
    color: var(--theme-accent);
    font-weight: 500;
}

label.file-input {
    border: solid 1px var(--theme-background-alt);
    border-radius: var(--default-border-radius);
    background-color: var(--theme-accent);
    color: var(--theme-background-alt);
    cursor: pointer;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: normal;
    padding: 0.5rem 1.75rem;
}

textarea {
    font-family: var(--code-font-family);
    font-size: 0.8rem;
    height: 10rem;
    margin: 1rem 0;
    width: 100%;
}

textarea#content {
    height: 20rem;
}

textarea.code {
    height: 20rem;
}

textarea.summary {
    font-size: 0.75rem;
    width: 75%;
}

button {
    border: solid 1px var(--theme-background-alt);
    border-radius: var(--default-border-radius);
    background-color: var(--theme-background);
    color: var(--theme-accent);
    padding: 0.5rem 1.75rem;
}

button[type="submit"],
button.pulse {
    animation: var(--animation, 1s k-pulse alternate 2);
    animation-play-state: var(--animation-state, running);
    transition: background-color 1s;
}

button[type="submit"]:hover,
button.pulse:hover {
    background-color: var(--theme-background-alt);
}

button.alt {
    border: solid 1px var(--theme-background-alt);
    background-color: var(--theme-accent);
    color: var(--theme-background-alt);
}

button.link {
    animation: none;
    border: none;
    background-color: transparent;
    color: var(--theme-foreground);
    cursor: pointer;
    padding: 0;
}

button.link:hover > span {
    color: var(--theme-foreground);
}

button.link > span {
    border-bottom: solid 1px var(--theme-foreground);
    color: var(--theme-accent);
    margin: 0.25rem;
    display: inline-block;
}

button.icon {
    animation: none;
    background-color: transparent;
    border: none;
    padding: 0;
}

button.small,
button.tiny {
    font-size: 1rem;
    padding: 0.25rem 1rem;
}

button.tiny {
    font-size: 0.8rem;
}

.field {
    margin-bottom: 2rem;
}

.field.compact {
    margin-bottom: 0;
}

.field > .value {
    border-bottom: solid 1px var(--theme-accent);
    display: inline-block;
    margin: 1rem;
    padding-bottom: 0.25rem;
}

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

.field.inline label {
    margin: 0;
}

.field.inline > .value {
    margin: 0;
    padding: 0;
}

.field.small label {
    font-size: 0.8rem;
}

.field.small > .value {
    font-size: 0.8rem;
}

.field.small input {
    font-size: 0.8rem;
}

.field-help {
    color: var(--theme-foreground-alt);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.field-help p {
    color: var(--theme-foreground-alt);
}

.field-footer {
    color: var(--theme-foreground-alt);
    display: flex;
    font-size: 0.8rem;
    justify-content: space-between;
}

.field-footer > div:first-child {
    flex-grow: 1;
}

.field-footer > div {
    margin: 0 1rem;
}

.form-options {
    margin: 2rem 0;
}

.form-options .field {
    margin: 0;
}

.form-options label {
    font-size: 0.9rem;
}

.small label {
    font-size: 0.9rem;
}

.form-default,
.form-centered {
    border: solid 2px var(--theme-background-alt);
    border-radius: var(--default-border-radius);
    margin: auto;
    max-width: 700px;
    padding: 2rem 3rem;
}

.form-centered {
    text-align: center;
}

.form-error {
    background-color: var(--theme-background-alt);
    border-left: solid 4px var(--theme-accent);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    padding: 1rem;
}

.form-progress {
    margin: 3rem 0;
    text-align: center;
}

.progress-container {
    background-color: var(--theme--background);
    border: solid 2px var(--theme-background-alt);
    border-radius: var(--default-border-radius);
    height: 1rem;
    margin: 1rem auto;
    padding: 2px;
    width: 80%;
}

.progress {
    background: linear-gradient(120deg, var(--theme-foreground), var(--theme-accent));
    border-radius: var(--default-border-radius);
    height: 100%;
    transition: width 500ms;
}

/*
 * Autocomplete
 */
#autocomplete {
    background: linear-gradient(120deg, var(--theme-background-alt), var(--theme-background));
    border: solid 1px var(--theme-background-alt);
    border-radius: 8px;
    color: var(--theme-foreground);
    margin-top: 5px;
    overflow-y: auto;
    padding: 0.75rem;
    position: absolute;
    width: 100%;
    z-index: 2;
}

#autocomplete .value {
    color: var(--theme-accent);
}

#autocomplete .label {
    color: var(--theme-foreground-alt);
    font-size: 0.8rem;
    margin-left: 1rem;
}

#autocomplete .result {
    border-radius: 4px;
    padding: 0.75rem 0.25rem;
}

#autocomplete .result:hover,
#autocomplete .result.active {
    background-color: var(--theme-accent);
}

#autocomplete > .result:hover .value,
#autocomplete > .result.active .value {
    color: var(--theme-background);
}

#autocomplete > .result:hover .label,
#autocomplete > .result.active .label {
    color: var(--theme-background-alt);
}

/*
 * Posts
 */
.post-header {
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.post-content {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
    word-break: break-word;
}

.post-counts {
    font-size: 0.8rem;
    margin-top: 2rem;
}

.post-footer {
    font-size: 0.9rem;
    margin-top: 1rem;
}

.post-date {
    color: var(--theme-foreground-alt);
}

.post-sponsorship {
    border-top: solid 1px var(--theme-background);
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
    padding: 1.5rem;
}

.post-sponsorship-image {
    margin-bottom: 0.5rem;
}

.post-sponsorship img {
    max-width: 90%;
    max-height: 10rem;
}

/*
 * Comments
 */
.comment-header {
    color: var(--theme-foreground-alt);
    font-size: 0.8rem;
    margin-bottom: 2rem;
}

.comment-content {
    margin-top: 0;
    margin-bottom: 2.5rem;
    word-break: break-word;
}

.comment-footer {
    align-items: center;
    border-top: solid 1px var(--theme-background-alt);
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
}

.comment-author {
    color: var(--theme-foreground);
    display: flex;
    font-size: 1rem;
    font-weight: 500;
}

.comment-author img {
    height: 3rem;
    margin: 5px;
    margin-right: 0.75rem;
    width: 3rem;
}

.comment-author-hash {
    font-size: 0.75rem;
}

.comment-footer {
    margin-bottom: -0.5rem;
    margin-top: 1rem;
}

.comment-date {
    color: var(--theme-foreground-alt);
    font-size: 0.9rem;
}

.comment-controls {
    font-size: 0.9rem;
    text-align: right;
}

.depth-1 { margin-left: 1rem }
.depth-2 { margin-left: 2rem }
.depth-3 { margin-left: 3rem }
.depth-4 { margin-left: 4rem }
.depth-5 { margin-left: 5rem }


.image-left {
    display: flex;
}

.image-left .section-image {
    margin-right: 2rem;
    padding: 5px;
    width: 3rem;
}

.image-left .section-image div {
    background-repeat: no-repeat;
    background-size: cover;
    height: 3rem;
    width: 3rem;
}

.image-left .section-image img {
    width: 3rem;
}

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

.image-right .section-image {
    margin: 0;
    margin-left: 1rem;
    padding: 0;
    width: 6rem;
}

.image-right .section-image div {
    background-repeat: no-repeat;
    background-size: cover;
    height: 6rem;
    width: 6rem;
}

.image-right .section-image img {
    width: 6rem;
}

.image-left .section-header,
.image-right .section-header {
    font-size: 1.1rem;
    margin: 0 !important;
    padding: 0;
}

.image-left .section-footer,
.image-right .section-footer {
    font-size: 0.8rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

/*
 * Message
 */
.message {
    background-color: var(--theme-background);
    border-radius: var(--default-border-radius);
    padding: 2rem;
}

.message-date {
    color: var(--theme-foreground-alt);
    font-size: 0.8rem;
}

.message-content {
    margin-top: 2rem;
}

/*
 * Reference
 */
.reference .sub-section {
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.reference .sub-section .section-body {
    border-top: solid 1px var(--theme-background-alt);
}

.reference .section-header {
    font-size: 1.2rem;
    margin-bottom: 0;
    padding-bottom: 0.75rem;
}

.reference pre {
    font-size: 1rem;
    padding: 1rem;
}

.example {
    margin: 2rem;
}

.example-title {
    font-size: 1.2rem;
}

.example-content {
    padding: 0.5rem;
}

.example-output {
    overflow-x: auto;
    padding: 2rem;
}

/*
 * Copy Button
 */
.copy-button-container {
    display: inline-block;
}

.copy-button {
    animation: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    padding-right: 3px;
}

.copy-text {
    color: var(--theme-foreground-alt);
    cursor: pointer;
    font-size: 0.8rem;
}

/*
 * Calendar
 */
.calendar-container {
    margin: auto;
    margin-top: 0;
    max-width: 500px;
    text-align: center;
    padding: 2rem 4rem;
}

.calendar-container h3 {
    margin-top: 0.5rem;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    margin: 1rem;
}

.calendar {
    display: inline-grid;
    font-size: 1rem;
    grid-template-columns: repeat(7, auto);
    width: 100%;
}

.calendar .header {
    background-color: var(--theme-foreground-alt);
    border: solid 1px var(--theme-foreground-alt);
    box-sizing: content-box;
    color: var(--theme-background);
    height: 1rem;
    padding: 0.5rem 1rem;
}

.calendar .day {
    background-color: var(--theme-background);
    border: solid 1px var(--theme-foreground-alt);
    box-sizing: content-box;
    height: 2rem;
    padding: 0.5rem 1rem;
}

.calendar .day.weekend {
    background-color: var(--theme-background-alt);
}

.calendar .day.disabled {
    color: var(--theme-foreground-alt);
    cursor: not-allowed;
}

.calendar .day:not(.disabled):hover, .calendar .day.selected {
    background-color: var(--theme-accent);
    color: var(--theme-background);
    cursor: pointer;
}

.calendar .day > div {
    animation: var(--animation, 300ms k-day-bounce both);
    animation-delay: calc(var(--animation-order, 0) * 80ms);
    animation-play-state: var(--animation-state, running);
}

.time-picker {
    display: inline-block;
    font-size: 1rem;
    margin: 0 1rem;
}


/*
 * Graphs
 */
.bar-graph {
    --height: 300px;
    background-size: calc(var(--height) / 10) calc(var(--height) / 10);
    background-image:
        linear-gradient(to bottom, var(--theme-background-alt) 1px, transparent 1px);
    border: solid 1px var(--theme-background-alt);
    border-top: none;
    display: flex;
    justify-content: space-around;
    height: var(--height);
    margin: 1rem;
    width: 100%;
}

.bar-graph .bar-container {
    height: var(--height);
}

.bar-graph .bar {
    display: flex;
    flex-direction: column-reverse;
    flex-flow: column-reverse;
    height: var(--height);
}

.bar-graph .bar-inner {
    animation: var(--animation, 1s k-bar-grow both);
    animation-delay: calc(var(--animation-order, 0) * 100ms);
    animation-play-state: var(--animation-state, running);
    background-color: var(--theme-background);
    font-style: var(--code-font-family);
    font-size: 1.2rem;
    text-align: center;
    padding-top: 1rem;
    opacity: 1;
}

.bar-graph .bar-caption.tilted {
    transform: rotate(45deg);
    margin-top: 1rem;
    overflow: visible;
    line-break: strict;
    white-space: nowrap;
}

.combined-bar-graph {
    background-color: var(--theme-background-alt);
    border: solid 1px var(--theme-background);
}

.combined-bar-graph .bar {
    animation: var(--animation, 1s k-combined-bar-grow both);
    animation-delay: calc(var(--animation-order, 0) * 100ms);
    animation-play-state: var(--animation-state, running);
    display: flex;
    height: 30px;
    margin: 3rem 0;
    width: 100%;
}

.combined-bar-graph .bar > div {
    height: 30px;
}

.combined-bar-graph-caption {
    font-size: 0.9rem;
    padding: 1rem;
}

.combined-bar-graph-caption p {
    margin: 0;
}

.salary-graph {
    display: flex;
    margin: 1rem 0;
}

.salary-graph .legend {
    color: var(--theme-foreground-alt);
    display: flex;
    flex-direction: column;
    font-size: 0.6rem;
    justify-content: space-between;
    text-align: right;
}

.salary-graph .legend > div {
    padding: 0.5rem 0;
}

.salary-graph-caption {
    font-size: 0.8rem;
    margin-left: 5rem;
    margin-top: 5rem;
}

.salary-graph-caption p {
    margin: 0;
}


/*
 * Resume/Portfolio
 */
.skill-name {
    animation: var(--animation, 800ms k-bump-vertical both);
    animation-delay: calc(var(--animation-order, 0) * 100ms);
    animation-play-state: var(--animation-state, running);
    margin: 0;
}

.skill-description {
    animation: var(--animation, 2500ms k-fade-in both);
    animation-delay: calc(var(--animation-order, 0) * 100ms);
    animation-play-state: var(--animation-state, running);
    font-size: 0.9rem;
}

.job-type {
    display: inline-block;
    font-size: 0.8rem;
    padding-left: 2rem;
}

.project-media {
    align-items: center;
    justify-content: center;
    display: flex;
    margin: 3rem 0;
}

.project-media > div {
    margin: 0 1rem;
}

.project-media video {
    animation: var(--animation, 4s k-fade-in both 200ms);
    animation-play-state: var(--animation-state, running);
    border-radius: var(--default-border-radius);
    box-shadow: 5px 5px 15px 5px rgba(0, 0, 0, 0.2);
    max-height: 300px;
    max-width: 400px;
}

.project-media-list {
    margin: 2rem 0;
}

.project-media-list li {
    animation: var(--animation, 2s k-slide-in both);
    animation-delay: calc(var(--animation-order, 0) * 600ms);
    animation-play-state: var(--animation-state, running);
    margin: 0.5rem 0;
}

.project-media-placeholder {
    align-items: center;
    justify-content: center;
    background-color: var(--theme-foreground-alt);
    border-radius: var(--default-border-radius);
    color: var(--theme-background);
    display: flex;
    font-size: 0.9rem;
    height: 200px;
    width: 300px;
}


/*
 * Other
 */
.accent {
    color: var(--theme-accent);
}

.alt {
    color: var(--theme-foreground-alt);
}

.foreground {
    color: var(--theme-foreground);
}

.fixed {
    height: 100%;
    overflow: hidden;
}

.bold {
    font-weight: 500;
}

strong,
.bolder {
    font-weight: 600;
}

.hidden {
    display: none !important;
}

.monospace {
    font-family: var(--code-font-family);
}

.large {
    font-size: 1.2rem;
}

ul.large li {
    margin: 1rem 0;
}

.small {
    font-size: 0.8rem;
}

.clear {
    background-color: transparent;
}

.gallery .section-image {
    height: 25rem;
}

.half {
    width: 320px;
}

.stretch {
    grid-column: span 2;
}

.even-flex {
    display: flex;
}

.even-flex > * {
    flex-grow: 1;
}

pre.email {
    margin: 2rem 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.sub-title {
    color: var(--theme-foreground-alt);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.section-body .desc {
    color: var(--theme-foreground-alt);
    font-size: 0.8rem;
    margin: 0;
    margin-bottom: 3rem;
}

.table {
    align-items: center;
    display: flex;
}

.table > * {
    margin: 0 0.5rem;
}

.table > *:first-child {
    flex-grow: 1;
}

.pagination {
    display: flex;
    justify-content: space-around;
}

.actions {
    border-top: solid 1px var(--theme-background-alt);
    margin: 1rem 0.5rem;
    padding: 0.5rem;
}

.centered-actions {
    display: flex;
    justify-content: center;
}

.centered-actions > div {
    margin: 0 1rem;
}

#highlighted {
    border: solid 1px var(--theme-accent);
}

.forum {
    font-size: 0.9rem;
}

.forum img {
    height: 2rem;
    width: 2rem;
}

ul.info {
    margin: 0.5rem;
    padding: 0;
}

ul.info li {
    font-size: 0.9rem;
    list-style: none;
    margin: 0.5rem 0;
}

ul.info.items li {
    display: flex;
}

ul.info.items li .icon {
    width: 1.5rem;
}

ul.info.items li .label {
    color: var(--theme-foreground-alt);
}

ul.info.items li .value {
    color: var(--theme-accent);
    flex-grow: 1;
    text-align: right;
}

.sub-item .label {
    font-weight: 500;
}

.sub-item .value {
    color: var(--theme-foreground-alt);
    margin-top: 0.75rem;
    margin-left: 1rem;
}

.thought-header {
    font-weight: 600;
    margin: 1rem;
    margin-top: 2rem;
    text-align: left;
}

.account-gravatar {
    margin: auto;
    margin-bottom: 1rem;
}

.account-gravatar img {
    border-radius: 100%;
    max-width: 8rem;
}

.account-gravatar figcaption {
    font-size: 0.75rem;
    padding: 0.5rem;
}

ul.links {
    margin: 1rem;
    padding: 0;
}

ul.links li {
    list-style: none;
    margin: 0.5rem 0;
}

ul.links li i {
    margin-right: 0.5rem;
}

ul.links.animated li,
.animated-list li {
    animation: var(--animation, 800ms k-diagonal-bounce both);
    animation-delay: calc(var(--animation-order, 0) * 40ms);
    animation-play-state: var(--animation-state, running);
}

#reference-list {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    padding-left: 1rem;
}

#reference-list li {
    list-style: none;
    margin: 0.5rem 0;
    padding: 0;
    padding-left: calc(var(--ref-level) * 1rem);
}

#reference-list li i {
    margin-right: 0.5rem;
}

ul.section-tags,
ul.tags {
    margin: 0;
    padding: 0;
}

ul.section-tags {
    margin-top: 1rem;
}

ul.section-tags li,
ul.tags li {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

ul.section-tags li a,
ul.section-tags li a:link,
ul.tags.small li a,
ul.tags.small li a:link {
    font-size: 0.8rem;
}

ul.tags.animated li {
    animation: var(--animation, 1.5s k-diagonal-bounce both);
    animation-delay: calc(var(--animation-order, 0) * 80ms);
    animation-play-state: var(--animation-state, running);
}

ul.footer-links li {
    animation: var(--animation, 1s k-diagonal-bounce both);
    animation-delay: calc(var(--animation-order, 0) * 80ms);
    animation-play-state: var(--animation-state, running);
    margin-right: 1rem;
}

.toc {
    font-size: 1.1rem;
}

.toc > div {
    margin: 0.5rem;
}

.toc > div > i {
    min-width: 2rem;
    width: 2rem;
}

.code,
.terms,
.summary {
    font-family: var(--code-font-family);
    font-size: 0.8rem;
}

.terms h1,
.terms h2,
.terms h3,
.terms p {
    margin-bottom: 1rem;
}

.footnotes {
    font-size: 0.8rem;
    padding-top: 1.5rem;
}

.footnotes hr {
    border: solid 1px var(--theme-foreground-alt);
    color: var(--theme-foreground-alt);
    width: 50%;
}

.email-label {
    display: inline-block;
    font-weight: 500;
    width: 3rem;
}

ul.rates {
    margin: 2rem;
}

ul.rates li {
    margin: 2rem 0;
}

.career-box-main {
    font-family: var(--code-font-family);
    font-size: 4rem;
    margin: auto;
    padding-top: 2rem;
}

.career-info-box > div {
    display: flex;
    align-items: center;
}

.career-quarter-box {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: repeat(200px, 2);
    height: 400px;
}

.career-quarter-box > div {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 50px;
    text-align: center;
}

.attachment-controls {
    display: flex;
    font-size: 0.8rem;
    margin-top: 1rem;
    justify-content: space-between;
}

ul#contribute-selection button[data-user-selected="true"] {
    border: solid 1px var(--theme-accent);
    background-color: var(--theme-background);
    color: var(--theme-accent);
}

button#contribute-button {
    margin: 2rem;
}

.css-selector {
    color: var(--theme-foreground);
    font-weight: bold;
}

.css-property {
    color: var(--theme-accent);
}

.css-value {
    color: var(--theme-foreground-alt);
}

.page-message {
    font-family: var(--code-font-family);
    font-size: 1.1rem;
}

.page-message-binary {
    font-family: var(--code-font-family);
    font-size: 1.5rem;
    margin: auto;
    width: 100%;
}

.page-message > span,
.page-message-binary > span {
    transition: color 500ms;
}

#floating-sidebar-control {
    display: none;
}

.from {
    margin: 0.5rem 0;
}

.instance {
    border-top: solid 1px var(--theme-background-alt);
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.instance .title {
    color: var(--theme-accent);
    font-size: 1.2rem;
}

.instance .subtitle {
    color: var(--theme-foreground-alt);
    font-size: 0.9rem;
}

.instance-actions {
    margin: 1rem 0;
}

.instance-actions h4 {
    font-size: 1rem;
}

.stream-video-container {
    align-items: center;
    display: grid;
    height: 50vh;
    justify-items: center;
    margin: auto;
    max-width: 700px;
    min-height: 200px;
    width: 100%;
}

.loading {
    width: 100px;
    height: 100px;
    margin: auto;
    text-align: center;
}

.loading-ring {
    position: absolute;
    width: 100px;
    height: 100px;
}

.loading-ring:first-child {
    transform: skew(30deg, 20deg);
}

.loading-ring:last-child {
    transform: skew(-30deg, -20deg) scale(-1, 1);
}

.loading-ring:last-child svg {
    animation-delay: -0.5s;
}

.loading-ring svg {
    animation: var(--animation, 1s k-rotate linear infinite);
    fill: rgba(0, 0, 0, 0.2);
}

.divider {
    border: solid 1px var(--theme-background-alt);
    border-width: 1px 0;
    color: var(--theme-accent);
    font-size: 1rem;
    margin: 2rem auto;
    padding: 1rem;
    text-align: center;
    width: 75%;
}

.hue-light {
    display: flex;
    padding: 1rem;
}

.color-square {
    border: solid 1px #ddd;
    border-radius: 10px;
    height: 4rem;
    width: 4rem;
}

.hue-light .color-square {
    margin-right: 2rem;
}

.hue-light .color-hex {
    font-size: 1.2rem;
    font-family: var(--code-font-family);
}

.section-footer .color-square {
    height: 2rem;
    width: 2rem;
}

.section-footer .hue-light .color-hex {
    font-size: 1rem;
}
