@font-face {
    font-family: FixedSys; /* set name */
    src: url("/gallery/assets/fonts/FixedSys.woff2") format("woff2"); /* url of the font */
}

:root {
    --background: #66ff66;
    --foreground: #282828;
    --link-color: #0000ee;
    --cursor-color: var(--background);
}
[data-theme="dark"] {
    --background: #282828;
    --foreground: #00ff66;
    --link-color: red;
    --cursor-color: var(--foreground);
}

::selection {
    background-color: var(--foreground);
    color: var(--background);
}

.hidden {
    display: none !important;
}
.no-select {
    /* Safari */
    -webkit-user-select: none;
    /* IE 10 and IE 11 */
    -ms-user-select: none;
    /* Standard syntax */
    user-select: none;
}

html {
    /* Forces the root element to be at least the height of the screen */
    min-height: 100vh; 
    scrollbar-width: none;
}

body {
    margin: 1ch;
    margin-top: 2ch;
    background-color: var(--background);
    color: var(--foreground);
    font-family: FixedSys, monospace;
    font-size: 28px;
    line-height: 1;
}

p,
div {
    margin: 0;
}
a {
    color: var(--link-color);
}
ul {
    list-style-type: none;
    /* Optional: removes default browser indentation */
    padding: 0;
    margin: 0;
}

.horizontal-seperator {
    width: fit-content;
    /*margin-left: auto;
    margin-right: auto;*/
}
.mono-spaced-div {
    width: 28px;
}

#nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2ch;
    background-color: var(--background);
    color: var(--foreground);
    z-index: 666; /* Ensure it's on top of other elements */
    display: flex;
    flex-direction: row;
}
#nav-bar a {
    width: fit-content;
    text-decoration-line: none;
    border-left: 0.3ch solid var(--foreground);
    border-right: 0.3ch solid var(--foreground);
    padding-left: 0.7ch;
    padding-right: 0.7ch;
}

#custom-menu {
    position: absolute; /* Position relative to the viewport */
    background-color: var(--foreground);
    color: var(--background);
    padding: 0.8%;
    margin: 0;
    list-style: none;
    z-index: 1000; /* Ensure it's on top of other elements */
}

#custom-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border: solid 3px var(--background);
}

#custom-menu li {
    padding: 0 10px 0 10px;
    cursor: pointer;
}
/* Invert the colors on hover to create a solid selection block */
#custom-menu li:hover {
    background-color: var(--background);
    color: var(--foreground);
}

#custom-menu .separator {
    height: 1px;
    background-color: var(--background);
    margin: 4px 0;
    padding: 1px;
}

#figlet-container {
    font-family: "Courier New", Courier, monospace !important;
    font-size: 23.5px !important;
    white-space: pre; /* Essential for preserving FIGlet spaces */
    line-height: 1;
    overflow-x: hidden;
    overflow-y: hidden;
}

.hero-section {
    display: flex;
    flex-direction: row;
}
.second-section {
    display: flex;
    flex-direction: row;
}
#hero-picture {
    height: 21rem
}
#crazy-picture {
    height: 28rem;
    width: 36ch;
    object-fit: cover;
}


/* Hide the default OS cursor */
html, body, a, li {
    cursor: none !important; 
}

#terminal-cursor {
    position: fixed; /* Fixed to viewport */
    top: 0;
    left: 0;
    background-color: var(--cursor-color);
    pointer-events: none; /* CRITICAL: Allows clicks to pass through the cursor to links below */
    z-index: 9999; /* Keeps it on top of everything */
    
    /* Optional Retro Effect: Inverts the text color beneath the cursor block */
    mix-blend-mode: difference; 
}
/* The harsh on/off terminal blink */
@keyframes terminal-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
/* We will add and remove this class using JavaScript */
.cursor-blink {
    animation: terminal-blink 1s step-end infinite;
}