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

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

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

@font-face {
    font-family: "JetBrains Mono";
    src: url("../font/JetBrainsMono-BoldItalic.ttf") format("truetype");
    font-style: italic;
    font-weight: 700;
    text-rendering: optimizeLegibility;
}

:root {
    --global-font-size: 16px;
    --global-font-color: #444;
    --mono-font-stack: "JetBrains Mono", monospace;
    --font-stack: "JetBrains Mono", monospace;
    --global-line-height: 1.6em;
    --page-width: 750px;
    --display-h1-decoration: 1;
}

@media (prefers-color-scheme: dark) {
    :root {
	--background-color: #222225;
	--page-width: 750px;
	--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: #556b2f;
    }
}

@media (prefers-color-scheme: light) {
    :root {
	--background-color:#fff;
	--font-color:#151515;
	--invert-font-color:#fff;
	--primary-color:#1a95e0;
	--secondary-color:#727578;
	--error-color:#d20962;
	--progress-bar-background:#727578;
	--progress-bar-fill:#151515;
	--code-bg-color:#fff176;
    }
}

@media only screen and (max-width: 750px) {
    :root {
        --global-font-size: 14px;
        --global-font-color: #444;
        --global-line-height: 1.6em;
        --page-width: 70em;
    }
}

.sidebar-heading {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.box-masonry .box-masonry-image {
    background: #fff;
}

.box-masonry,
.box-masonry:hover {
    box-shadow: none;
}

.label {
    font-family: var(--font-stack);
}

body {
    font-family: var(--font-stack);
    font-size: var(--global-font-size);
    background-color: var(--background-color);
    margin-bottom: 75px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--font-stack);
    clear: both;
}

h1 {
    margin-bottom: 150px;
}

h1::after {
  content:"====================================================================================================";
  position:absolute;
  bottom:5px;
  left:0;
  display:var(--display-h1-decoration)
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* Match the width of the heading */
    border-bottom: 2px solid var(--font-color); /* Solid line */
}

h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* Match the width of the heading */
    border-bottom: 2px dashed var(--font-color); /* Dashed line */
}

h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* Match the width of the heading */
    border-bottom: 2px dotted var(--font-color); /* Dotted line */
}

h5::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* Match the width of the heading */
    border-bottom: 2px groove var(--font-color); /* Groove line */
}

h6::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* Match the width of the heading */
    border-bottom: 2px outset var(--font-color); /* Outset line */
}


hr {
  text-align: center;
  border: 0;
  margin: 2rem 0;

  &:before { content: '//////////' }
}


.content-column-content p,
.content-column-content li {
    color: #666;
}

.btn-ghost {
    color: #666;
    background-color: transparent;
    border-color: #333;
    font-weight: 400;
    font-family: var(--font-stack);
    padding: 6px 12px;
    font-size: 18px;
    line-height: 1.55;
    border-radius: 0;
    margin-left: 0;
    margin-top: 5px;
}

.content-column-content .command {
    color: #aaa;
}

p.social a {
    margin: 0 0 10px 0;
    color: #fff;
    display: inline-block;
    width: 30px;
    height: 30px;
    border: none;
    line-height: 30px;
    font-size: 25px;
    text-align: center;
    vertical-align: bottom;
    color: #999999;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

.active a {
    text-decoration: underline;
}

strong {
    font-weight: bold;
}

.logo {
    font-weight: normal;
}

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

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

.footer {
    clear: both;
    margin-top: 100px;
    padding-top: 10px;
    border-top: 1px solid var(--secondary-color);
    color: var(--global-font-color);
}

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

.image-grid a {
    display: block; /* Make the link block-level to control the image container */
    /* width: 350px; */
    /* height: 350px; */
    width: 100%;
    height: 100%;
    background-color: white; /* Background color for whitespace */
    display: flex;
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
    transition: transform 0.3s ease-in-out; /* Transition for hover effect */
}

.image-grid a:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

.image-grid img {
    max-width: 100%; /* Ensure the image can shrink to fit the container */
    max-height: 100%; /* Ensure the image can shrink to fit the container */
    object-fit: contain; /* Ensure the image maintains aspect ratio and fits inside */
    transition: opacity 0.3s ease-in-out; /* Optional: smooth transition for image opacity */
}

.image-grid a:hover img {
    opacity: 0.9; /* Optional: dim the image on hover for a visual effect */
}

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

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

/* custom html attribute to do file copy using ox-hugo reference
 Basically stops image from showing up*/
.resource-copy {
  display: none !important;
}

.gallery-image {
    margin-top: 10px;
    margin-bottom: 10px;
    /* max-height: 600px; /\* Keep maximum height to be 600px *\/ */
    height: auto;
    width: 80%;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.social-icons a {
    font-size: 1.4rem;
    text-decoration: none;
    color: var(--font-color);
    transition: transform 0.15s ease-in-out; /* Transition for hover effect */
}

.social-icons a:hover {
    background-color: transparent;
    box-shadow: none;
    outline: none;
    transform: scale(1.15); /* Slight zoom on hover */
}

.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;
}

code {
    font-weight:inherit;
    background-color: var(--code-bg-color);
    font-family:var(--mono-font-stack)
}
code::after,
code::before {
  display:inline
}

pre code::after,
pre code::before {
  content:""
}
pre {
  display:block;
  word-break:break-all;
  word-wrap:break-word;
  color:var(--secondary-color);
  border:1px solid var(--secondary-color);
  padding:var(--global-space);
  white-space:pre-wrap;
  white-space:-moz-pre-wrap;
  white-space:-o-pre-wrap
}
pre code {
  overflow-x:scroll;
  padding:0;
  margin:0;
  min-width:100%;
  font-family:var(--mono-font-stack);
}

/* Code language badges -- stolen from ARCHIE theme*/
.highlight pre {
    position: relative;
    padding-top: 1.75rem;  /* ← makes room for the badge */
}

.highlight pre code[class*="language-"] {
  -webkit-overflow-scrolling: touch;
}

.highlight pre code[class*="language-"]::before {
    background: #000000;
    border-radius: 0 0 0.25rem 0.25rem;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.025rem;
    padding: 0.1rem 0.5rem;
    position: absolute;
    /* Fallback for older browsers */
    right: 1rem;
    top: 0;
    /* Modern logical properties */
    inset-inline-end: 1rem;
    inset-block-start: 0;
    text-align: right;
    text-transform: uppercase;
}

/* Language-specific badges */
.highlight pre code[class*="language-js"]::before,
.highlight pre code[class="language-javascript"]::before {
  content: "js";
  background: #f7df1e;
  color: #000000;
}

.highlight pre code[class*="language-ts"]::before {
  content: "ts";
  background: #3178c6;
  color: #ffffff;
}

.highlight pre code[class*="language-py"]::before,
.highlight pre code[class*="language-python"]::before {
  content: "python";
  background: #3776ab;
  color: #ffffff;
}

.highlight pre code[class*="language-go"]::before {
  content: "go";
  background: #00add8;
  color: #ffffff;
}

.highlight pre code[class*="language-css"]::before {
  content: "css";
  background: #1572b6;
  color: #ffffff;
}

.highlight pre code[class*="language-html"]::before {
  content: "html";
  background: #e34f26;
  color: #ffffff;
}

.highlight pre code[class*="language-json"]::before {
  content: "json";
  background: #000000;
  color: #ffffff;
}

.highlight pre code[class*="language-yml"]::before,
.highlight pre code[class*="language-yaml"]::before {
  content: "yaml";
  background: #cc1018;
  color: #ffffff;
}

.highlight pre code[class*="language-shell"]::before,
.highlight pre code[class*="language-bash"]::before,
.highlight pre code[class*="language-sh"]::before {
  content: "shell";
  background: #4eaa25;
  color: #ffffff;
}

.highlight pre code[class*="language-md"]::before,
.highlight pre code[class*="language-markdown"]::before {
  content: "markdown";
  background: #083fa1;
  color: #ffffff;
}

.highlight pre code[class*="language-rust"]::before {
    content: "rust";
    background: #ce422b;
    color: #ffffff;
}

.highlight pre code[class*="language-cpp"]::before,
.highlight pre code[class*="language-c++"]::before {
  content: "c++";
  background: #00599c;
  color: #ffffff;
}

.highlight pre code[class*="language-fortran"]::before {
  content: "fortran";
  background: #4d41b1;
  color: #ffffff;
}

.highlight pre code[class*="language-elisp"]::before,
.highlight pre code[class*="language-emacs-lisp"]::before {
  content: "elisp";
  background: #7f5ab6;
  color: #ffffff;
}

.highlight pre code[class="language-tex"]::before {
    content: "latex";   /* display "latex" even though the class is "tex" */
    background: #008080;
    color: #ffffff;
}

.highlight pre code[class="language-text"]::before {
    content: "text";
    background: #888888;
    color: #ffffff;
}


/* This is for small screen devices, e.g. phones */
@media only screen and (max-width: 750px) {
    .site-name {
        width: 2ch;
        overflow: hidden;
    }

    .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: 130 px;
        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;
    }

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