/* Load custom font */
@font-face {
    font-family: "NerdFont";
    src: url('./fonts/cmunrm.ttf') format('truetype'); /* Replace with your font file name */
}

@font-face {
    font-family: 'ElegantFont';
    src: url('./fonts/ttn_b.ttf') format('truetype'); /* Replace with your font file name */
}

@font-face {
    font-family: 'NerdFont_bf';
    src: url('./fonts/cmunbx.ttf') format('truetype'); /* Replace with your font file name */
}

@font-face {
    font-family: 'NerdFont_it';
    src: url('./fonts/cmunci.ttf') format('truetype'); /* Replace with your font file name */
}

@font-face {
    font-family: 'NerdMono';
    src: url('./fonts/mono.ttf') format('truetype'); /* Replace with your font file name */
}


/* Theme Variables*/
:root {
    --background-color: #c3b39c;
    --text-color: #000000;
    --button-background-color: transparent;
    --button-border-color: transparent;
    --button-text-color: #000000;
}

/* Apply variables */



.main-button, .option-button {
    background-color: var(--button-background-color);
    border-color: var(--button-border-color);
    color: var(--button-text-color);
}


html {
    height: 100%;
    font-family: 'NerdFont';
    background: url('./assets/images/background_.png') no-repeat center center fixed; 
    background-size: cover; /* Ensures the image covers the screen */
    background-attachment: fixed; /* Keeps the image fixed during scrolling */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
     /* background-color: var(--background-color); */
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

body {
    height: 100%;
    font-family: 'NerdFont';
    background: url('./assets/images/background_.png') no-repeat center center fixed; /* Replace with your image path */
   
    background-size: cover; /* Ensures the image covers the entire background */
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
}



/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'NerdFont';
}

/* Vertical Divider Lines */
.divider {
    width: 1.5pt;
    height: 100%;
    background-color: var(--text-color);
    position: relative;
    flex-shrink: 1; /* Allows dividers to shrink if needed */
}

.left-divider {
    margin-right: auto;
}

.right-divider {
    margin-left: auto;
}

/* Ensure middle column is scrollable vertically only */
.content {
    width: 600px; /* Fixed width for the middle content column */
    max-width: 100vw; /* Ensure it doesn’t exceed viewport width */
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center content horizontally */
    justify-content: flex-start; /* Align content to the top */
    overflow-y: auto; /* Enable vertical scrolling for the column */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    max-height: 100vh; /* Limit the height to the viewport */
    height: 120%; /* Let the column stretch as needed */
    padding: 20px; /* Add spacing around content */
    box-sizing: border-box; /* Ensure padding is included in the width/height calculation */
    background: rgba(255, 255, 255, 0.6); /* Semi-transparent background for readability */
}



/* Horizontal Divider Line */
.separator-line {
    width: 95%;
    border: none;
    border-top: 2px dashed var(--text-color);
    margin: 30px 0;
}

/* Vertical Empty Spacer*/
.spacer {
    height: 20px; /* Adjust to control the vertical space */
}


.title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    margin-top: 20px;
    white-space: nowrap; /* Ensure the title is on a single line */
}

.subtitle {
    font-size: 0.9rem;
    margin-bottom: 30px;
    transform: translateX(75%); /* Shift the element to the right by 10% of its width */
}


/* Options Buttons at the Bottom */
.options {
    display: flex;
    justify-content: space-around;
    width: 260%;
    max-width: 500px;
    margin-top: 20px;
}

.option-button {
    width: 30%; /* Adjusted width */
    padding: 15px 0; /* Increased padding to ensure text fits */
    font-size: 1.2rem; /* Increased font size for better readability */
    font-family: NerdFont;
    cursor: pointer;
    border: 2px dashed var(--text-color);
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center; /* Center text inside the button */
}

/* Scrollable Text Box */
.scrollable-box {
    width: 85%;
    height: 450px; /* Adjust height as needed */
    margin: 20px 0;
    padding: 10px;
    padding-left: 5pt; /* Adds a 5pt space on the left side */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Disable horizontal scrolling */
    border: 2px dashed var(--button-border-color);
    background-color: var(--background-color); /* Match page background color */
    color: var(--button-text-color); /* Text color */
    cursor: pointer; /* Makes it look clickable */
    box-sizing: border-box; /* Include padding and border in width and height */
    word-wrap: normal; /* Normal word wrap behavior */
    white-space: normal; /* Allow text to wrap normally */
    word-break: keep-all; /* Prevent breaking words in the middle */
    font-size: 1em; /* Base font size, adjust as needed */
    line-height: 1.5; /* Improves readability */
    text-align: left; /* Align text to the left */
}




/* Specific styling for smaller screens */
@media (max-width: 780px) {
    /* Adjust the content area for medium screens */
    .content {
        width: 90vw; /* Make content take up 90% of the viewport width */
        padding: 20px; /* Add padding to prevent edge overlap */
        overflow-y: hidden; /* Enable vertical scrolling */
        overflow-x: auto; /* Prevent horizontal scrolling */
    }

    /* Adjust title styling for better display on medium screens */
    .title {
        font-size: 2rem; /* Slightly reduce font size */
        text-align: center;
        white-space: normal; /* Allow wrapping if needed */
    }

    .subtitle {
        text-align: center; /* Center-aligns the subtitle text */
        transform: none; /* Removes any existing translation or offset */
        margin: 0 auto; /* Centers the subtitle within the container */
    }
    

    /* Adjust button styling */
    .option-button {
        width: 95%; /* Buttons take up most of the viewport width */
        height: 20%;
        max-width: 100%; /* Prevent overflow */
        font-size: 1.3rem; /* Adjust font size for medium screens */
        color: --button-text-color;
    }

    /* Adjust options layout for medium screens */
    .options {
        display: flex;
        justify-content: center; /* Center the buttons horizontally */
        flex-direction: column; /* Align buttons vertically */
        align-items: center; /* Center the buttons vertically if there's extra height */
        gap: 10px; /* Add space between the buttons */
        width: 100%; /* Ensure the container takes full width */
        max-width: 400px; /* Set a maximum width if desired */
        margin: 0 auto; /* Center the container itself if needed */
        margin-top: 0;
    }

    .image-title-container {
        flex-direction: column;
        text-align: center; /* Center align the content */
        margin-left: 0px;
    }

    #pfp {
        /* max-width: 120px;  Reduce max width for smaller screens */
        width: 80%;       /* Adjust the overall width */
        margin-top: 40pt;
        border-radius: 20%; /* Adjust the rounding if desired */
    }

    #top_spacer_index{
        height: 40px
    }

}


/* Blog Section */

/* Add this inside your <head> or in your CSS file */
#post-list li {
    margin-bottom: 18px; /* Adjust spacing as needed */
    line-height: 1.35;
}
#post-list a {
    color: #0000EE;
    text-decoration: underline;
    font-family: NerdFont;
}
.post-date {
    color: #888;
    font-size: 0.92em;
    margin-left: 10px;
    font-family: NerdMono, monospace;
}

.yaml-meta {
    font-size: 0.7em;
    color: #888;
    margin-bottom: 0.3em;
    font-family: ElegantFont;
}

/* Markdown Styles*/
#markdown-content h1 {
    color: #232D4B;
    font-size: 1.8em;
    border-bottom: 2px solid #E57200;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

#markdown-content h2 {
    color: #232D4B;
    font-size: 1.5em;
    margin-top: 1.2em;
    margin-bottom: 0.4em;
}

#markdown-content p {
    margin-bottom: 0.75em; /* Increase for more space, decrease for less */
}

#markdown-content pre {
    font-family: 'NerdMono', monospace;
    font-size: 0.75em;      /* Adjust this value to make code blocks smaller */
    background: #f5f5f5;
    color: #232D4B;
    border-radius: 8px;
    padding: 12px 18px;
    margin: 18px 0;
    overflow-x: auto;
    white-space: pre;
}

#markdown-content code {
    font-family: 'NerdMono', monospace;
    font-size: 0.75em;     /* Slightly smaller for inline code */
    background: #f5f5f5;
    color: #232D4B;
    border-radius: 4px;
    padding: 2px 6px;
}

#markdown-content img {
    max-width: 95%;
    height: auto;
    display: block;
    margin: 0 auto; /* optional: center the image */
    padding: 6px 2px;
}