:root {
    --normal-color: #400040;
    --header-color: #339933;
    --footer-color: #CCEECC;
    --white-color: #FFFFFF;
    --default-font: Verdana, Geneva, Arial, helvetica, sans-serif; /* Define font-family variable */
}

body {
    font-family: var(--default-font);
    font-size: 18px;
    color: var(--normal-color);
    font-weight: normal;
    background-color: var(--white-color);
    background-image: url("Images/Contour.jpg");
    margin: 0;
}

.bold {
    font-weight: bold;
}

.red, .green, .blue, .white {
    font-family: var(--default-font);
}

/* Specific text colors */
.red { color: #FF0080; }
.green { color: #008000; }
.blue { color: #0000FF; }
.white { color: var(--white-color); }

td, th {
    font-family: var(--default-font);
    font-size: 18px;
    color: var(--normal-color);
}

th {
    font-weight: bold;
}

td.small, th.small {
    font-family: var(--default-font);
    font-size: 12px;
    text-align: right;
}

th.small {
    font-weight: bold;
}

th, th.small {
    background-color: var(--header-color);
    color: var(--white-color);
}

table {
    border-spacing: 0;
    border-collapse: collapse;
}

.bordered-table {
    width: 90%; /* Matches the inline attribute */
    margin: 0 auto; /* Centers the table */
    border: 1px solid var(--normal-color); /* Adds a thin border around cells */
    border-collapse: collapse; /* Ensures borders are clean and consistent */
    border-spacing: 0; /* Eliminates extra space between cells */
    font-family: var(--default-font); /* Ensures consistent font usage */
    background-color: var(--white-color); /* Optional: background color */
}

.bordered-table th, .bordered-table td {
    padding: 4px; /* Matches cellpadding="4" */
    border: 1px solid var(--normal-color); /* Borders around individual cells */
}

.nested-table, .nested-two-col {
    width: 90%; /* Take 90% of the parent's width */
    margin: 4px auto; /* Center the table with top and bottom margins */
    border-collapse: collapse; /* Eliminate gaps between cells */
    border-spacing: 4px; /* Space between cells, equivalent to cellspacing */
    border: none; /* No visible border */
}

/* Responsive styling for two column table */
@media screen and (max-width: 540px) {
    .nested-two-col td {
        display: block;
        width: 100%;
    }
    .nested-two-col tr {
        display: block; /* Make rows stack vertically */
    }
}

.header-title {
    font-family: var(--default-font);
    color: var(--white-color);
    font-size: 48px;
    text-align: center;
}

.header-table {
    background-color: var(--header-color);
    width: 100%;
    padding: 8px;
}

.header-row {
    background-color: var(--header-color);
}

img {
    aspect-ratio: attr(width) / attr(height); /* Maintains the aspect ratio */
    max-width: 100%; /* Scales down for smaller screens */
    height: auto;    /* Adjusts height accordingly */
}

.image-container {
    display: flex;
    justify-content: center; /* Horizontally centers the image */
    align-items: center;    /* Vertically centers the image if the container has height */
    margin: 16px 0;         /* Adjust margin as needed (replaces hspace and vspace) */
}

.centered-image {
    max-width: 100%;        /* Ensures responsiveness for mobile users */
    height: auto;           /* Maintains aspect ratio */
}

.thumbnail-img {
    width: 112px;
    height: 112px;
}

@media screen and (min-width: 540px) {
    .thumbnail-img {
        width: 224px;
        height: 224px;
    }
}

.code {
    max-width: 100%;
    background-color: #ffffff;
    overflow-x: auto;            /* horizontal scrollbar as a fallback */
    clear: right;                /* Ensures container starts below floating images */
    display: flow-root;          /* Creates new block formatting context */
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;       /* Preserve whitespace and wrap */
    word-wrap: break-word;       /* Break words that exceed container */
    word-break: break-all;       /* Force break for long strings of digits */
    font-size: 18px;
}

/* Flex Footer */
/* Adjust footer spacing */
.footer, .footer-home {
    font-family: var(--default-font); /* Use variable */
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    justify-content: center; /* Center items by default */
    padding: 16px;
    padding-bottom: 72px; /* Add space for fixed navigation */
    background-color: var(--footer-color);
    text-align: center;
}

.footer-home {
    padding-bottom: 16px;
}

/* Keep your existing footer author and copyright styles */
.footer-author,
.footer-copyright {
    width: 50%;
    text-align: left;
}

.footer-copyright {
    text-align: right;
}

/* Fixed navigation bar */
.fixed-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--footer-color);
    padding: 16px;
    display: flex;
    justify-content: center;
    gap: 16px;
}


