:root {
    --background-color: #002b36;
    --font-color: #839496;
    --primary-color: #cb4b16;
    --font-stack: "Input Mono",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    padding-left: 1vw;
    padding-right: 1vw;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-left: 2px #839496 solid;
    border-right: 2px #839496 solid;
    box-shadow:
        -15px 0 30px -15px rgba(0, 0, 0, 0.4),
         15px 0 30px -15px rgba(0, 0, 0, 0.4);
}

main {
    flex: 1;
}

.padded {
    padding: 0 calc(var(--global-space) * 2);
}

.screen-reader {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

header > nav.terminal-menu .menu-item {
    color: var(--primary-color);
}

header > nav.terminal-menu .menu-item:hover,
header > nav.terminal-menu .menu-item.active {
    background: var(--primary-color);
}

header > nav.terminal-menu .menu-item:hover {
    color: #fff;
}

header > nav.terminal-menu .menu-item.active {
    color: var(--background-color);
}

nav > .logo {
    width: 100%;
}

.terminal-nav {
    flex-direction: row;
    align-items: center;
}

.terminal-menu ul {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
}

.terminal-menu li {
    margin: 0 2em 0 0;
}

.terminal-menu li:last-child {
    margin-right: 0;
}

body.page-index main {
    display: flex;
    align-items: center;
    justify-content: center;
}

#splash {
    line-height: 1;
    letter-spacing: 0px;
    font-size: 3vw;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    background-color: var(--background-color);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border: 2px #839496 solid;
    box-shadow:
        0 -15px 30px -15px rgba(0, 0, 0, 0.4),
        0  15px 30px -15px rgba(0, 0, 0, 0.4);
}

#splash pre {
    margin: 0;
    border: none;
    background: transparent;
    white-space: pre;
}

@media (max-width: 600px) {
    #splash {
        font-size: 4vw;
        min-height: 0;
        overflow-x: auto;
        padding: 2em 0;
    }
}

#index-nav {
    gap: 5vw;
    flex-direction: row;
}

#index-nav > ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 25px;
}

#index-nav > ul > li::after {
    content: none;
}

#blog-title {
    line-height: 1;
    letter-spacing: 0px;
    font-size: 0.5em;
    display: flex;
    flex-wrap: wrap;
    gap: 2ch;
    justify-content: center;
}

.ascii-art-word {
    margin: 0;
    white-space: pre;
    flex: 0 0 auto;
    border: none;
    color: var(--font-color);
    font-weight: bold;
    line-height: 1;
}

h2 {
    margin-bottom: 5px;
}

.terminal-card {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.terminal-card > header {
    text-align: left;
    padding-left: var(--global-space);
}

.terminal-card > header > a {
    color: var(--invert-font-color);
}

.terminal-card p {
    padding: var(--global-space);
}

.img-link:hover {
    background-color: var(--background-color);
}

.gallery-grid {
    display: grid;
    gap: 7px;
    align-items: center;
    margin: 0 0 var(--global-line-height);
}

.graff-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    justify-content: center;
}

.graff-gallery .gallery-grid {
    display: block;
    margin: 0;
    position: relative;
}

.graff-gallery-item {
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.graff-gallery-item a {
    position: absolute;
    inset: 0;
    display: block;
}

.graff-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail {
    border-radius: 10px;
    overflow: hidden;
}

.thumbnail img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.pswp__tags {
    background: rgba(114, 117, 120, 0.75);
    font-size: 16px;
    color: #fff;
    width: 100%;
    padding: 2px 8px;
    position: absolute;
    left: 0;
    bottom: 0;
    text-align: center;
}

.pswp__tags a {
    color: #fff;
    text-decoration: underline;
}

.pswp__counter {
    z-index: 1;
}

.pswp__exif {
    height: 100%;
    padding: 5px;
    background: rgba(0, 0, 0, 0.75);
    font-size: 12px;
    color: var(--pswp-icon-color);
    text-shadow: 1px 1px 3px var(--pswp-icon-color-secondary);
    opacity: 0.85;
    margin-left: auto;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.tags, .exif {
    display: none;
}

#tag-gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, 150px);
    grid-gap: 7px;
    justify-content: center;
}

.tag-gallery-item {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
}

.tag-gallery-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

@media (max-width: 530px) {
    #tag-gallery-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .tag-gallery-item {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
    .tag-gallery-item img {
        width: 100%;
        height: 100%;
    }
}

footer {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

#rss-icon {
    margin-left: 5px;
    margin-right: 5px;
}

.cc-license,
.cc-license span {
    display: inline-block;
}

.cc-license img {
    height: 22px !important;
    margin-left: 3px;
    vertical-align: text-bottom;
}
