@font-face {
    font-family: 'Go Mono';
    src: url('../font/Go-Mono.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'Go Mono';
    src: url('../font/Go-Mono-Italic.ttf') format('truetype');
    font-style: italic;
    font-weight: 400;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'Go Mono';
    src: url('../font/Go-Mono-Bold.ttf') format('truetype');
    font-style: normal;
    font-weight: 700;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: 'Go Mono';
    src: url('../font/Go-Mono-Bold-Italic.ttf') format('truetype');
    font-style: italic;
    font-weight: 700;
    text-rendering: optimizeLegibility;
}

:root {
    --mono-font-stack: Go Mono, Courier New, monospace, serif;
    --font-stack: Go Mono, Courier New, monospace, serif;
    --global-font-size: 13px;
    --global-line-height: 1.8em;
    --page-width: 65em;

    /*
    --background-color: #222225;
    --font-color: #e8e9ed;
    --global-font-color: #e8e9ed;
    --invert-font-color: #222225;
    --secondary-color: #a3abba;
    --tertiary-color: #a3abba;
    --primary-color: #62c4ff;
    --error-color: #ff3c74;
    --progress-bar-background: #3f3f44;
    --progress-bar-fill: #62c4ff;
    --code-bg-color: #3f3f44;
     */

    --display-h1-decoration: true;
}

strong {
    font-weight: bold;
}

.logo {
    font-weight: normal;
}

.terminal-menu li {
    margin-right: 20px;
}

figure {
    margin-top: 15px;
    margin-bottom: 15px;
    margin-left: 60px;
    margin-right: 60px;
}

.image-grid {
    display: grid;
    grid-template-rows: auto;
    display: grid;
    grid-gap: 1em;
    grid-template-rows: auto;
    grid-template-columns: repeat(auto-fit,
    minmax(calc(var(--page-width) / 4), 1fr));
}

.terminal-prompt::after {
    -webkit-animation: cursor 1s infinite;
    animation: cursor 1s infinite;
    width: 10px;
}

.terminal-prompt::before {
    content: none;
}

.gallery-image {
    margin-top: 10px;
    margin-bottom: 10px;
}

.posts-list {
    position: relative;
    padding-left: 130px;
    top: 0;
}

.post h1, .post h2 {
    padding-top: 0;
    margin: 0;
    margin-bottom: 5px;
}

.posts-list .date {
    display: inline-block;
    position: absolute;
    left: 0px;
    width: 130px;
    z-index: 400;
    padding-top: 0;
}

a {
    padding-left: 2px;
    padding-right: 2px;
    border-radius: 2px;
}

.footer {
    margin-top: 75px;
    padding-bottom: 30px;
    border-top: 0;
    text-align: center;
    color: var(--secondary-color);
}

.footer a {
    font-size: 30px;
}

@media only screen and (max-width: 850px) {
    .site-name {
        width: 2ch;
        overflow: hidden;
        display: inline-block;
    }

    .terminal-nav {
        align-items: flex-start;
        flex-direction: column;
        display: flex;
    }

    .terminal-menu ul {
        align-items: flex-start;
        display: flex;
        flex-direction: row;
        justify-content: left;
        margin-top: 0;
    }

    .terminal-menu li {
        margin-right: 20px;
    }

    .logo {
        padding: calc(var(--global-space) * 1) 0 calc(var(--global-space) * 1);
    }

    figure {
        margin-top: 5px;
        margin-bottom: 5px;
        margin-left: 30px;
        margin-right: 30px;
    }

    .posts-list {
        position: relative;
        padding-left: 0;
        top: 0;
    }

    .post h1, .post h2 {
        padding-top: 0;
    }

    .posts-list .date {
        display: inline-block;
        position: absolute;
        left: 0px;
        width: 150px;
        z-index: 400;
        font-weight: bold;
        padding-top: 0;
        display: none;
    }

    .footer {
        margin-top: 50px;
        padding-top: 5px;;
    }
}

pre code {
    font-family: var(--mono-font-stack);
    font-size: var(--global-font-size);
}

.chroma {
    background-color: #f5f5f5;
    padding: 5px;
    border-radius: 10px;
    overflow-x: scroll;
    scrollbar-width: none;
}

.chroma::-webkit-scrollbar {
    display: none;
}

img[alt="shield"] {
    height: calc(var(--global-font-size) * 1.2);
    width: auto;
    display: inline-block;
}

img[alt="me"] {
    height: auto;
    width: auto;
    border-radius: 125px;
    float: left;
    margin-right: var(--global-font-size);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 35px;
    height: 35px;
    background-color: var(--primary-color, #62c4ff);
    color: var(--invert-font-color, #222225);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    display: flex;
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top:active {
    transform: translateY(-1px);
}

@media only screen and (max-width: 850px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Share buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-color, #a3abba);
}

.share-label {
    color: var(--secondary-color, #a3abba);
    font-size: 14px;
    margin-right: 5px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    color: #000;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 16px;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    background-color: #000;
    color: white;
    border-color: #000;
}

@media only screen and (max-width: 850px) {
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .share-button {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Mermaid diagrams */
.mermaid {
    text-align: center;
    margin: 20px 0;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
}

.mermaid svg {
    max-width: 100%;
    height: auto;
}
