/* style.css */

/* Basic Reset & Body Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 960px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Headings */
h1, h2, h3 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

h2 {
    font-size: 1.8em;
    margin-top: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

h3 {
    font-size: 1.4em;
    margin-top: 25px;
}

/* Paragraphs */
p {
    margin-bottom: 1em;
    text-align: justify;
}

/* Strong text */
strong {
    color: #e74c3c;
}

/* Formula/Code Styling (The key to making the math stand out) */
.formula {
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    font-weight: bold;
    color: #3498db;
    /* Optional: Small background highlight */
    background-color: #f0f8ff; 
    padding: 2px 4px;
    border-radius: 3px;
}

pre {
    background-color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 1.1em;
    text-align: center;
}

/* Image Styling */
.image-container {
    text-align: center;
    margin: 30px 0;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments (for mobile screens) */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.5em;
    }
}

/* --- Navigation Styles --- */

.navbar {
    overflow: hidden;
    background-color: #2c3e50; /* Dark Blue */
    position: sticky;
    top: 0px;
    width: 100%;
    display: flex;
    justify-content: space-between; /* Space out logo and links/icon */
    align-items: center;
    padding: 0 20px;
    z-index: 1000; /* Keeps menu on top of other elements */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo a {
    float: left;
    color: white;
    text-align: center;
    padding: 14px 0;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: bold;
}

.nav-links a {
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: inline-block;
}

.nav-links a:hover {
    background-color: #3498db; /* Bright Blue */
    color: black;
}

.nav-links a.active {
    background-color: #1abc9c; /* Teal/Green for active page */
    color: white;
}

/* Hamburger Icon (Hidden on Desktop) */
.navbar .icon {
    display: none;
    color: white;
    font-size: 24px;
    padding: 20px 40px;
    text-decoration: none;
}

/* Mobile Styles (When screen is 768px or less) */
@media screen and (max-width: 768px) {
    /* Hide desktop links and show icon */
    .nav-links {
        display: none; /* Hide the menu by default on small screens */
        position: sticky;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }
    
    .navbar .icon {
        display: block; /* Show the hamburger icon */
    }

    /* Make links fill the width when shown */
    .nav-links a {
        display: block;
        text-align: left;
    }
    
    /* JavaScript will add this class to show the menu */
    .nav-links.responsive {
        display: inline-block;
    }
    
    /* Adjust logo padding for mobile */
    .logo a {
        padding: 10px 0;
    }
}

.code-block { background-color: #0f172a;
    	color: #e2e8f0;
        padding: 1.5rem;
        border-radius: 0.5rem;
        font-family: 'JetBrains Mono', monospace;
        line-height: 1.6;
        margin: 1.5rem 0;
}