/* Feb2025.css */

/* ----- COLOR SCHEME ----- */
:root {
    --lighter: #F5FFFA; /* White */
    --light: #d9d9d9; /* Light grey */
    --medium: var(--medium); /* Medium grey */
    --dark: #252525; /* Dark grey */
    --link: #4169E1; /* Royal blue*/
    --button: #1E90FF; /* Dodger blue*/
    --header: #339432; /* Unknown */
    --h1: #000080; /* Navy blue*/
    --h2: #000080; /* Navy blue*/
    --h3: #000080; /* Navy blue*/
    --royal: #4169E1; /* Royal blue*/
    --dodger: #1E90FF; /* Dodger blue*/
    --inlinecode: #4169E1; /* Royal blue*/
        /* Electric Blue #007FFF */
        /* Bright Azure #0078FF  */
    --regularcode: #000080; /* Navy blue*/
    --rcode: #000080; 
    --output: #dc143c; 
    --red: #0078FF; /* Bright Azure */
    --codehc: orangered;
    --bgchc: #fffbe6;
}

/* ----- GLOBAL STYLES ----- */
* {
    word-wrap: break-word;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--medium);
}

html {
    background-color: var(--lighter);
    font-size: 16px;
    height: 100%;
    overflow-y: scroll; /* Ensures vertical scrollbar is always visible */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--medium);
    color: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ----- TEXT STYLING ----- */
p {
    margin-bottom: 15px; /* Adjust space between paragraphs */
}

a {
    color: var(--link);
    text-decoration: none;
    padding: 0px 0px;
}

a:hover {
    text-decoration: underline;
}

a img {
    border: none;
}

/* ----- NAVIGATION BAR ----- */
.navbar {
    max-width: 1100px; /* Match .container-box */
    margin: 0 auto;  /* Center the navbar */
    background-color: var(--light);
    padding: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
}

.navbar ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ----- PAGE LAYOUT ----- */
.container-box {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
    background-color: var(--medium);
}

main {
    display: flex;
    width: 100%;
    gap: 10px; /* Space between sidebar and content */
}

/* ----- SIDEBAR ----- */
.sidebar {
    width: 30%;
    background-color: var(--light);
    padding: 10px;
    border-radius: 10px;
    margin-right: 4px;
    margin-top: 10px;
}

.sidebar .profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 20%;
    margin-bottom: 15px;
}

.sidebar h1, .sidebar h2 {
    margin-bottom: 5px;
    color: var(--dark);
}

.sidebar .social-links {
    list-style: none;
    padding: 0;
}

.sidebar .social-links li {
    margin: 10px 0;
}

.sidebar p {
    padding-bottom: 4px;
}

/* ----- MAIN CONTENT ----- */
.content {
    width: 70%;
    background-color: var(--light);
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 70%;
    max-width: 70%;
    overflow: hidden;
}

.content p{
    border: 0px solid blue;
    margin-top: -0px;
}

.content h1 {
    color: var(--h1);
    border-bottom: 2px solid var(--h1);
    margin-bottom: 20px;
    padding-bottom: 4px;
    font-size: 1.5rem;
}

.content h2 {
    color: var(--h2);
    border-bottom: 2px solid var(--h2);
    margin-bottom: 20px;
    padding-bottom: 0px;
    padding-top: 8px;
    font-size: 1.3rem;
}

.content h3 {
    color: var(--h3);
    border-bottom: 2px solid var(--h3);
    margin-bottom: 0px;
    padding-bottom: 0px;
    padding-top: 4px;
    font-size: 1.1rem;
}

.content .main-image {
    width: 400px;
    max-width: 600px;
    border-radius: 10px;
    margin-top: 20px;
}

.content li {
    list-style-type: disc; /* Ensures bullet points */
    margin-left: 20px;
    position: relative;
    margin-top: 0px;
    padding-top: 0px;
}

.content li:has(button) {
    margin-left: 20px;
    padding-top: 0px;
    list-style-type: none;
}



/* ----- CODE BLOCKS ----- */
.content pre {
    margin: 10px 0px;
    padding: 10px 10px;
    background-color: var(--lighter);
    border-radius: 5px;
    overflow-x: auto;
    overflow-y: auto;
}

.content code {
    font-size: 1.0rem;
    font-family: "Consolas", "Courier New", monospace;
    background-color: var(--light);
    border-radius: 10px;
    padding-top: 20px;
}

.content code.inline-code {
    font-size: 1.0rem;
    font-family: "Consolas", "Courier New", monospace;
    font-weight: bold;
    background-color: var(--light);
    color: var(--inlinecode);
    padding: 0px 0px;
}

.content code.regular-code {
    font-size: 1.0rem;
    font-family: "Consolas", "Courier New", monospace;
    font-weight: bold;
    background-color: var(--light);
    color: var(--regularcode);
    padding: 0px 0px;
}

/* ----- CODE BLOCK STYLING ----- */
.content code.code-block {
    font-size: 0.95rem;
    font-family: "Consolas", "Courier New", monospace;
    background-color: var(--lighter); /* Dark background for contrast */
    color: var(--rcode); /* Light text for readability */
    padding: 0px 0px;
    overflow-x: auto; /* Allows horizontal scrolling if needed */
    line-height: 1.2;
    white-space: pre-wrap /* Ensures proper line breaks */
}

.code-block .output {
    color: var(--output); /* Example: DodgerBlue */
    font-weight: normal;
}

.content .cx{
    font-family: "Fira Code", "Consolas", monospace;
    color: var(--codehc);
    background-color: var(--bgchc);
    font-weight: normal;
    padding: 2px 4px;
    border-radius: 3px;
    }

.content .cxx{
    font-family: "Fira Code", "Consolas", monospace;
    color: var(--dodger);
    font-weight: normal;
    background-color: inherit;
    padding: 0px 0px;
    border-radius: 0px;
    }

xxc {
    font-family: "Fira Code", "Consolas", monospace;
    color: var(--dodger);
    font-weight: normal;
    background-color: inherit;
    padding: 0px 0px;
    border-radius: 0px;
}

/* ----- FUNCTION BUTTONS ----- */
.r-functions-list button {
    font-family: "Consolas", "Courier New", monospace;
    margin: 4px 0px;
    padding: 4px 8px;
    background-color: var(--button);
    color: var(--lighter);
    border: none;
    font-size: 1.0rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.r-functions-list button:hover {
    background-color: var(--lighter);
    color: var(--button);
}

.r-functions-list div {
    margin-bottom: 15px;
}

/* ----- LOGO ----- */
.r-logo {
    margin-bottom: -10px;
}

/* ----- RESPONSIVE DESIGN (MOBILE FRIENDLY) ----- */
@media screen and (max-width: 768px) {
    /* Navigation Bar - Stack Items on Mobile */
    .navbar {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }
    .navbar ul {
        flex-direction: column;
        gap: 10px;
    }
    .navbar ul li {
        text-align: center;
        padding: 10px;
    }

    /* Stack Sidebar Above Content on Mobile */
    main {
        flex-direction: column;
        align-items: center;
    }
    .sidebar {
        width: 100%;
        text-align: center;
    }
    .content {
        width: 100%;
    }

    /* Reduce Spacing for Small Screens */
    .container-box {
        padding: 5px;
    }
}

.hidden {
    display: none;
}
