:root {
    --header-width: 200px;
    --body-width: min(max(75%, 500px), 1500px);
    --link-bright: #deb89c;
    --link-dull: #855741;
    --main-text-color: rgb(255, 230, 230);
}

html {
    height: 100%;
}

body {
    width: var(--body-width);
    margin: 0 auto;
    background-image: url("/img/bg_tile.png");
    font-family: Exo2;
    color: rgb(255, 230, 230);
    /*display: flex;*/
    flex-direction: row;
    background-attachment: fixed;
}

dialog {
    color: var(--main-text-color);
    inset-inline: auto;
    margin: 0;
    padding: 0;
    transition-behavior: allow-discrete;
}

a {
    color: #deb89c;
}

.header {
    width: var(--header-width);
    position: fixed;
    top: 50px;
    left: calc(((100vw - var(--body-width)) / 2) + 12px);
}

.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.main-logo {
    font-size: 30pt;
    color: #eaa07a;
    font-weight: bold;
    text-shadow: 0 0 25px black;
    text-align: center;
    margin-bottom: 10px;
    filter: drop-shadow(2px 4px 6px black);
}

.main-logo .logo-img {
    width: 120px;
}

.main-logo .logo-img:hover {
    animation-name: logo_spin;
    animation-duration: 1s;
    animation-play-state: running;
}

@media (prefers-reduced-motion) {
    .main-logo .logo-img:hover {
        animation-name: none;
    }

    #guestbook-container, .guestbook-entry-list {
        transition-duration: 0s !important;
    }
}

.main-logo img {
    width: 160px;
    display: block;
    margin: 0 auto;
    filter: saturate(1.5) contrast(1.5) brightness(1.3);
}

.nav-list {
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid white;
    border-radius: 20px 0 0 20px;
}

.nav-item {
    flex-grow: 1;
    text-decoration: none;
    border-radius: 10px;
    border-collapse: collapse;
    padding: 5px;
    margin: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16pt;
    display: block;
    opacity: 0.6;
    position: relative;
    transition: opacity 0.2s linear, padding-right 0.2s linear, width 0.2s linear;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
}

.nav-item:hover {
    color: #eaa07a;
    background-color: #42352d;
}

.nav-list .nav-item:hover {
    opacity: 1;
    padding-right: 20px;
    /*width: min(calc(var(--header-width) - 3em), 15%);*/
}

.icon-link {
    padding: 3px;
    display:inline-block;
    border-radius: 5px;
}

.icon-link:hover {
    background-color: #42352d;
}

.rss {
}

blog-meta {
    display: none !important;
}

.content {
    height: 100vh;
    margin: 0 10px 0 210px;
    border-radius: 0;
    border-left: 2px solid white;
    border-right: 2px solid white;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    box-sizing: border-box;`
}

.blog-index, .art-index {
    padding: 20px;
    display: flex;
    min-height: 100%;
}

.blog-tags {
    max-height: calc(100vh - 120px);
    overflow: hidden auto;
    position: sticky;
    top: 20px;
    right: 0;
    scrollbar-width: thin;
}

.blog-tag {
    display: list-item;
    list-style: none;
    border-bottom: 1px solid var(--link-dull);
    padding: 2px 0;
}

.blog-tag a:hover {
    color: var(--link-dull);
}

.blog-item {
    border-left: 2px solid white;
    padding: 10px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, rgba(222, 184, 156, 0.1), rgba(222, 184, 156, 0.0));
}

.blog-item-date {
    font-size: 10pt;
}

.blog-item-title {
    font-size: 18pt;
    font-weight: bold;
}

.blog-post a {
    color: #deb89c;
}

.blog-item-title a {
    color: #deb89c;
}

.blog-item-description {
    font-size: 14pt
}

.blog-header {
    font-size: 18pt;
    font-weight: bold;
    border-bottom: 2px solid white;
    width: 80%;
    text-align: center;
    margin: 0 auto;
}

.blog-post {
    padding: 10px 20px;
    min-height: 300px;
}

.art-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    height: fit-content;
    width: 100%;
}

.art-thumbnail {
    height: fit-content;
    padding: 2px;
    margin: 2px;
    cursor: pointer
}

.art-thumbnail:hover {
    background-color: #222;
}

#art_viewer {
    background: transparent;
    padding: 15px;
    inset-inline: 0;
    margin: auto;
}

#art_viewer::backdrop {
    background-color: black;
    opacity: 0.6;
}

#art_viewer .close-button {
    position: fixed;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    margin: 20px;
}

#art_viewer .full-art {
    padding: 2vh;
    max-height: 90vh;
}

.art-page-list {
    text-align: center;
    position: sticky;
    top: 20px;
    left: 0;
    height: fit-content;
    max-height: calc(100% - 120px);
}

.art-thumbnail img {
    display: block;
    height: 200px;
    margin: auto;
    transition: scale 0.3s;
}

.art-thumbnail img:hover {
    scale: 1.1;
}

.art-tag-list {
    font-size: 10pt;
    display: inline-block;
}

.art-tag-list a {
    display: inline-block;
    background: #303050;
    padding: 3px;
    margin: 3px;
    border-radius: 5px;
    text-decoration: none;
}

.art-tag-list a:hover {
    background: #404060;
}

.timeline-entry {
    display:table-row;
    margin: 5px;
}

.year-column {
    display:table-cell;
    border-right: 2px solid #555;
    padding-right: 5px;
    width: 5em;
    font-size: 16pt;
    text-align: center;
    font-family: monospace;
    vertical-align: center;
    border-top: 3px solid #444;
}

.description-column {
    display:table-cell;
    padding: 5px;
    flex-basis: fit-content;
    border-top: 3px solid #444;
}

.content::before {
    content: ' ';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/img/background.jpg");
    background-position: bottom right;
    background-size: cover;
    opacity: 0.7;
    z-index: -1;
}

.content-header {
    font-size: min(20pt, 2vw);
    border-bottom: 2px solid white;
    padding: 5px 10px;
    text-align: center;
    font-weight: bold;
    width: 100%;
    margin: 0 auto;
    position: sticky;
    background-color: rgba(0, 0, 0, 0.9);
    top: 0;
    left: 0;
    box-sizing: border-box;
}

.main-content, .blog-post {
    width: min(calc(100% - 80px), max(80%, 700px));
    /*width: min(calc(100% - var(--header-width)), max(70%, 600px));*/
    min-height: calc(100vh - 145px - 1em);
    margin: 0 auto 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.blog-post div img {
    max-width: 500px;
    width: 90%;
}

.construction {
    display: block;
    width: 300px;
    margin: 0 auto;
}

.close-button {
    vertical-align: bottom;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.close-button:hover {
    filter: invert(1);
}
/*.rings {*/
/*    background-image: url("/img/rings.png");*/
/*    background-size: cover;*/
/*    z-index: -10;*/
/*    pointer-events: none;*/
/*    opacity: 0.6;*/
/*}*/

/*.planets {*/
/*    background-image: url("/img/planets.png");*/
/*    background-size: cover;*/
/*    z-index: -5;*/
/*    pointer-events: none;*/
/*    opacity: 0.3;*/
/*}*/


.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.links {
    padding: 20px;
}

.link {
    display: block;
}

.link a {
    color: #deb89c;
}

.ebuddy {
    cursor: pointer;
    position: fixed;
    bottom: 15px;
    left: 80px;
    scale: 2;
    image-rendering: pixelated;
    transform-origin: bottom right;
}

#ebuddy-dialog {
    cursor: auto;
    visibility: hidden;
    width: 300px;
    font-size: 14pt;
    color: white;
    padding: 12px;
    border: 2px solid white;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 1);
    transform-origin: bottom left;
    position: fixed;
    bottom: 60px;
    left: 140px;
}

.ebuddy-option {
    list-style: none;
}

.ebuddy-option a {
    font-size: 12pt;
    color: #deb89c;
    text-decoration: none;
}

.ebuddy-option a:hover {
    color: #855741;
}

ul {
    padding-inline-start: 10px;
}

.footer {
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.9);
    /*min-height: 100px;*/
    max-height: 200px;
    color: white;
    /*padding: 8px;*/
    margin: 0 auto 0 auto;
    width: 100%;
    display: flex;
    position: sticky;
    bottom: 0;
    left: 0;
    border-top: 2px solid white;
}

.guestbook {
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid transparent;
    color: var(--link-bright);
    margin: 5px;
    min-width: 100px;
    flex-grow: 0;
}

.guestbook:hover {
    border: 1px solid white;
    border-radius: 10px;
    background: rgba(133, 87, 65, 0.3);
}

.guestbook img {
    display: inline-block;
    padding: 0 0;
    width: 40px;
}

@font-face {
    src: url("/8bitoperator_jve.ttf");
    font-family: "8bitoperator";
}

@font-face {
    src: url("/Exo2.ttf");
    font-family: "Exo2";
}


.writing-content {
    width: 600px;
    margin: 0 auto;
}

.writing-item {
    padding: 20px 8px;
}

.writing-link {
    font-weight: bold;
    margin-left: 15px;
    display: list-item;
    text-align: left;
    cursor: pointer
}

.nav-item:hover {
    color: #deb89c;
}

.nav-item-icon img {
    width: 1em;
    padding: 0 5px;
    vertical-align: middle;
}

.blog-list {
    display: grid;
    grid-template-columns: auto;
    /*grid-template-columns: auto auto;*/
}

.buttons-area {
    align-content: center;
}

.cool-buttons-area {
    margin: 8px;
}

.cool-buttons {
    text-align: center;
    padding: 0 8px;
}

.other-buttons-area {
    padding-top: 4px;
    border-top: 2px solid white;
}

.image-subtitle {
    font-size: 80%;
}

.site-links {
    text-align: center;
    padding: 5px;
    min-width: 170px;
}

.site-links .icon-link {
    height: 25px;
    vertical-align: bottom;
}

.site-links .icon-link img {
    width: 25px;
}

.fav-games-list {
    display: grid;
    grid-template-columns: auto auto auto;
    flex-wrap: wrap;
}

.fav-games-list span {
    padding: 8px;
    display: inline-block;
    border: 1px solid white;
}

@media (width <= 1300px) {
    .main-content {
        width: max(85%, calc(100% - var(--header-width)));
    }

    .footer .other-buttons-list {
        display: none;
    }
}

@media (width <= 1100px) {
    .header {
        width: 100%;
        left: 0;
        top: 10px;
    }

    .fav-games-list {
        grid-template-columns: auto auto;
    }

    .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        background: rgba(0, 0, 0, 1);
        border-left: none;
        border-right: none;
        border-radius: 0;
        align-items: center;
    }

    .nav-item {
        padding: 0;
    }

    .nav-list .nav-item {
        font-size: max(10pt, 2vw);
        text-align: center;
    }

    .main-logo {
        display: block;
        position: fixed;
        right: 5px;
        bottom: 5px;
        pointer-events: all;
    }

    .site-links {
        position: fixed;
        right: 20px;
        top: 160px;
        min-width: auto;
        display: flex;
        flex-direction: column;
    }

    .site-links .icon-link {
        margin: 10px 0;
    }

    .site-links .icon-link img {

        pointer-events: all;
    }

    .main-logo img.logo-text {
        width: 100px;
        display: inline-block;
    }

    .nav-list .nav-item:hover {
        opacity: 1;
    }

    div.content {
        margin: 80px 10px 0px 10px;
        height: calc(100vh - 80px);
        border-radius: 20px 0px 0 0;
        border: 2px solid white;
        border-bottom: none;
    }

    .footer .guestbook {
        justify-content: center;
        padding: 0 8px;
    }
}


@media (width <= 750px) {
    .blog-list {
        grid-template-columns: auto;
    }

    .footer {
        position: relative;
    }

    div.comments-group {
        width: 100%;
        box-sizing: border-box;
    }

    .main-logo {
        display: none;
    }

    .ebuddy {
        left: auto;
        right: 20px;
    }
}

@media (height <= 600px) {
    .main-logo {
        display: flex;
        margin-left: 0px;
        margin-bottom: 0px;

    }

    .nav-list .nav-item {
        padding: 0 5px;
    }

    .main-logo img.logo-img {
        width: 40px;
        height: 40px;
    }

    .main-logo img.logo-text {
        width: 100px;
    }

    .footer {
        position: relative;
    }

    .footer .other-buttons-list {
        display: none;
    }

    .footer .guestbook {
       justify-content: center;
        padding: 0 8px;
    }

    .footer .guestbook img {
        display: none;
    }
}

.blog-post h3 {
    width: max(70%, 600px);
    margin: 0 auto;
    border-top: 2px solid white;
    text-align: center
}

@keyframes logo_spin {
    0% {
        rotate: 0deg
    }
    100% {
        rotate: 360deg
    }
}

#guestbook-container {
    box-shadow: 0 0 20px 10px black;
    position: fixed;
    bottom: -600px;
    width: 350px;
    max-height: 500px;
    border: 2px solid white;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.95);
    /*right: 100px;*/
    left: calc(((100vw - var(--body-width)) / 2) + 100px);
    flex-direction: column;
    transition: bottom 0.4s, display 0.4s;
}

#guestbook-container[open] {
    display: flex;
}


#guestbook-container[closed] {
    bottom: -600px;
}

.guestbook-header {
    font-size: 20pt;
    width: 100%;
    border-bottom:2px solid white;
    padding: 5px;
    text-align: center;
    flex-grow: 0;
    box-sizing: border-box;
}

.guestbook-entry-list {
    flex-grow: 1;
    overflow-y: scroll;
    height: 0px;
    display: flex;
    transition: height 0.4s ease-in;
    transition-delay: 0.4s;
}

.guestbook-entry-list .guestbook-entry, #comments .comment {
    border: 1px solid white;
    padding: 5px;
    margin: 10px;
    border-radius: 10px;
}

.guestbook-entry-list .guestbook-name, #comments .comment-name {
    border-bottom: 1px solid #aaa;
    padding: 5px;
    font-weight: bold;
    width: max-content;
    color: var(--link-bright);
}

.guestbook-entry-list .guestbook-content, #comments .comment-content {
    padding: 8px 8px 8px 12px;

}

.page-number {
    padding: 5px;
    color: #deb89c;
}

.page-number:hover {
    color: #855741;
}

.page-number:first-of-type::before {
    content: 'Page';
    padding-right: 5px;
}

.guestbook-tabs {
    font-size: 60%;
    padding: 0 10px;
    color: var(--link-bright);
}

.guestbook-tabs span {
    cursor: pointer;
}

.guestbook-tabs span:hover {
    color: var(--link-dull);
}

.guestbook-page-list {
    position: sticky;
    bottom: 0;
    flex-grow: 0;
    text-align: center;
    padding: 8px;
    border-top: 2px solid white;
    width: 100%;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    align-items: center;
}

.guestbook-sign-form {
    display: none;
}

.guestbook-sign-form input[type="text"] {
    font-size: 18pt;
    text-align: center;
    padding: 8px;
    margin: 20px auto;
    width: 50%;
    display: block;
}

.guestbook-sign-form textarea {
    display: block;
    height: 200px;
    width: 80%;
    margin: 20px auto 0 auto;
    font-size: 14pt;
}

.guestbook-sign-form input[type="button"] {
    margin: 10px auto;
    padding: 5px;
    font-size: 14pt;
}

.character-count {
    text-align: center;
    font-weight: bold;
}

.page-number {
    cursor: pointer;
}

.guestbook-sign-form input[type="submit"] {
    text-align: center;
    padding: 5px;
    font-size: 14pt;
    margin: 10px auto;
}

.active-page-number {
    color: var(--link-dull);
}

.guestbook-sign-form input, .guestbook-sign-form textarea {
    display: block;
}

#comments {
    /*width: 350px;*/
    /*height: 500px;*/
    /*left: calc(50vw - 175px + 100px);*/
    /*bottom: 200px;*/
    /*margin-top: 30px;*/
    /*position: fixed;*/
    border-top: 2px solid white;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    /*border-radius: 20px;*/
}

#load-comments {
    cursor: pointer;
    text-align: center;
    margin: 20px 0 0 0;
    padding: 8px;
    font-size: 14pt;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid white;
    border-top: 2px solid white;
    color: var(--link-bright);
}

#load-comments:hover {
    background: rgba(133, 87, 65, 0.3);
}

.comments-header {
    vertical-align: middle;
    font-size: 20pt;
    text-align: center;
    padding: 5px;
    width: 100%;
    border-bottom: 2px solid white;
    box-sizing: border-box;
}

.post-comment-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 8px;
}

.post-comment-form input[type="text"] {
    font-size: 12pt;
    padding: 5px;
    margin: 5px;
    width: 120px;
    height: 2em;
}

.post-comment-form textarea {
    font-size: 11pt;
    padding: 5px;
    margin: 5px;
    width: 250px;
    height: 2em;
}

.post-comment-form input[type="button"] {
    font-size: 12pt;
    padding: 5px;
    margin: 5px;
    height: 2em;
}

.comments-group {
    width: min(500px, 70%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.tag-link {
    margin: 10px;
    font-size: 120%;
}

#button-embed-container {
    box-shadow: 0 0 20px 10px black;
    position: fixed;
    bottom: 120px;
    width: 350px;
    border: 2px solid white;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.95);
    left: calc(((100vw - var(--body-width)) / 2) + 120px);
    display: none;
    flex-direction: column;
}

.button-embed-header {
    font-size: 16pt;
    width: 100%;
    border-bottom:2px solid white;
    text-align: right;
    flex-grow: 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.button-embed-header span:first-child {
    margin: 0 0 0 5px;
    text-align: left;
}

.button-embed-header span:last-child {
    margin: 0 10px 5px 0;
    flex-grow: 1;
    text-align: right;
}

.button-embed-text {
    margin: 8px;
    height: 60px;
}

.game {
    border-bottom: 2px solid #CCC;
    padding-bottom: 20px;
}

.programming-description {
    border: 1px solid white;
    padding: 0 15px 0 10px;
    border-left: 3em solid #446;
    font-family: monospace;
    margin: 20px 0;
}

.programming-description p {
    margin-left: 2em;
}

.programming-description p::after {
    content: '}';
    color: #bd745a;
    opacity: 0.5;
    display: block;
    margin-left: -2em;
}

.programming-description p::before {
    content: 'function() {';
    color: #bd745a;
    opacity: 0.5;
    display: block;
    margin-left: -2em;
}

.programming-description h3 {
    color: #999;
}
.programming-description h3::before {
    content: '/*';
}

.programming-description h3::after {
    content: '*/';
}

.bluesky-embed {
    margin-left: auto;
    margin-right: auto;
}

@media (device-pixel-ratio: 3) {
    .content {
        width: 2000px;
    }
}
