:root {
    --background: #101010;
    --color: #ffffff;
    font-family: "Kode Mono", monospace;
    color-scheme: dark light;
}

:root.light {
    --background: #ffffff;
    --color: #000000;
    background-color: #ffffff;
    color: #000000;
    color-scheme: light;
}

/* [visual-theme="light"] {
    --background: #abc0ff;
    --color: #000000;
}

[visual-theme="dark"] {
    --background: #101010;
    --color: #ffffff;
} */

@font-face {
    font-family: "Kode Mono";
    font-style: normal;
    font-weight: 400;
    src: url("fonts/Kode_mono/KodeMono-VariableFont_wght.ttf") format("truetype");
}

.kode-mono-body {
  font-family: "Kode Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 400 700;
  font-style: normal;
}

html, body {
    background-color: var(--background);
    color: var(--color);
    transition: background-color 0.3s, color 0.3s;
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

#light-theme-toggle {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    margin: auto 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-page-center {
    background-color: #151515;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background-color 0.3s, color 0.3s;
}

:root.light .landing-page-center {
    background-color: #f0f0f0;
}

nav {
    display: flex;
    align-content: center;
    justify-content: space-around;
    border: 1px solid currentColor;
    transition: border-color 0.3s;
}

nav button {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

nav button:hover {
    text-decoration: underline;
}

#top-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
    padding: 10px;
}

#top-header hgroup {
    text-align: center;
}

.center-container-art {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-container-art.hidden {
    display: none;
}

pre {
    font-family: inherit;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

section {
    display: none;
    flex-wrap: wrap;
    width: 100%;
}

section.visible {
    display: flex;
    flex-direction: column;
    height: auto;
}

#section-about {
    flex-direction: column;
}

.horizontal-frame-btn {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background: transparent;
    border: 1px solid currentColor;
    color: inherit;
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.horizontal-frame-btn:hover {
    text-decoration: underline;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    height: auto;
    transition: height 0.5s ease-in-out;
}

.slider-track {
    display: flex;
    align-items: flex-start;
    width: 200%;
    transition: transform 0.5s ease-in-out;
}

.slider-track.slid {
    transform: translateX(-50%);
}

.slider-track article {
    width: 50%;
    flex-shrink: 0;
    box-sizing: border-box;
}

ul.section-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    width: 100%;
}

ul.section-list li {
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

section.light, :root.light section {
    background-color: #f0f0f0;
}

article {
    flex-wrap: wrap;
    padding: 20px;
}

footer {
    display: flex;
    justify-content: center;
    border: 1px solid currentColor;
    transition: border-color 0.3s;
}
