/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header styles */
header {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 0.5rem;
}

.site-title {
    font-family: Futura, "Trebuchet MS", Arial, sans-serif;
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    padding: 0;
    color: #1e81b0;
    text-decoration: none;
}

/* Navigation styles */
nav {
    margin-top: 0.5rem;
}

nav a {
    font-family: Helvetica, Arial, sans-serif;
    text-decoration: underline;
    color: #0066cc;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

nav a:hover {
    color: #003366;
}

nav a:visited {
    color: #0066cc;
}

/* Main content styles */
main {
    padding: 0;
}

/* Blog index specific styles */
body:not(.post-page) main {
    margin-top: 0;
}

#blog-posts {
    margin: 1rem 0 0 0;
    padding: 0;
}

#blog-posts .blog-post {
    margin-bottom: 0.125rem;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    padding: 0.075rem 0;
}

#blog-posts .post-date {
    color: #555;
    margin-right: 0.5rem;
    min-width: 100px;
    font-weight: 500;
}

#blog-posts .post-title {
    color: #1e81b0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
    line-height: 1.2;
}

#blog-posts .post-title:hover {
    color: #166490;
    border-bottom-color: #166490;
}

#blog-posts .post-title:visited {
    color: #1e81b0;
}

/* Blog post content styles */
.blog-post-content {
    max-width: 100%;
    margin: 0;
}

.blog-post-content h1 {
    font-family: Futura, "Trebuchet MS", Arial, sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.blog-post-content .post-date {
    margin-bottom: 2rem;
    font-weight: 500;
    color: #555;
}

.blog-post-content .post-body {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #2c2c2c;
}

.blog-post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
}

.blog-post-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

/* About page styles */
.about-content {
    max-width: 100%;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    body {
        padding: 0 15px;
    }
    
    .blog-post {
        flex-direction: column;
    }
    
    .post-date {
        margin-bottom: 0.25rem;
    }
    
    .blog-post-content h1 {
        font-size: 2rem;
    }
} 
  
/* 
   Styling for tables  
*/


.styled-table {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: Futura, "Trebuchet MS", Arial, sans-serif;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);   
}

.styled-table thead tr {
    background-color: #1e81b0;
    color: #ffffff;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

.styled-table tbody tr {
    border-bottom: 1px solid #1e81b0;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #1e81b0;
}

.styled-table tbody tr.active-row {
    font-weight: bold;
    color: #1e81b0;
}

/* 
   Styling for the image containers 
*/

.image-gallery-section {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between images */
    width: 90%; /* Take up 90% of the viewport width */
    max-width: 800px; /* Maximum width for each individual container */
    padding: 10px;
    box-sizing: border-box; /* Include padding in the width calculation */
    margin: 0 auto 50px auto; /* Center horizontally, 50px bottom margin */
    border: 1px solid #e0e0e0; /* Optional: add a border to distinguish sections */
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.gallery-image {
    width: 100%; /* Image takes full width of its container */
    height: auto; /* Maintain aspect ratio */
    max-height: 90vh; /* Limit height to 90% of the viewport height */
    object-fit: contain; /* Ensures the whole image is visible within the bounds */
    display: block; /* Remove extra space below image */
    border-radius: 5px;
}

/* Optional: Add some responsiveness for smaller screens if needed */
@media (max-width: 600px) {
    .image-gallery-section {
        width: 95%; /* Slightly more width on smaller screens */
    }
}


/* 
   Styling for the table of context index at the top of certain pages 
*/

.index {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 30px;
    background-color: #f9f9f9;
    /* Added for rounded corners */
    border-radius: 8px; /* You can adjust this value for more or less rounding */
}
.index h2 {
    margin-top: 0;
    color: #333;
}
.index ul {
    list-style: none;
    padding: 0;
}
.index li {
    margin-bottom: 5px;
}
.index a {
    text-decoration: none;
    color: #007bff;
}
.index a:hover {
    text-decoration: underline;
}
 