/* General Page Structure */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #2C3E50;
}

/* Centered header content */
header {
    background-color: #D6E7FA;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: center;
    /* Centers the logo and title horizontally */
    align-items: center;
    flex-direction: column;
    /* Stack the logo and title vertically */
}

header h1 {
    color: #02459F;
    font-size: 2.5em;
    margin: 10px 0 0 0;
}

header img {
    height: 80px;
}

/* Horizontal navigation menu */
nav {
    display: flex;
    justify-content: space-around; /* Spread items evenly across the nav */
    background-color: #02459F;
    padding: 10px;
}

/* nav a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
} */

nav a, .dropdown-btn {
    display: inline-block;
    vertical-align: middle;
    padding: 14px 20px;  /* Adjust this to match the height */
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}

nav a:hover {
    background-color: #1ABC9C;
    transition: 0.3s;
}

/* Centered main content */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    color: #02459F;
}

/* Warning message */
.warning {
    background-color: #f39c12;
    color: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Centered footer content */
footer {
    text-align: center;
    padding: 20px;
    background-color: #D6E7FA;
    color: #2C3E50;
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #D6E7FA;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.footer-content table {
    margin: 0 auto;
    /* Centers the table in the footer */
}

.footer-content img {
    width: 100px;
    margin-right: 20px;
}

/* Button */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1ABC9C;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
}

.btn:hover {
    background-color: #16A085;
    transition: 0.3s;
}

/* Bundles list */
.bundles-list {
    margin-top: 20px;
    list-style: none;
    padding-left: 0;
}

.bundles-list li {
    background-color: #ecf0f1;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}

.bundles-list li a {
    color: #2C3E50;
    font-weight: bold;
    text-decoration: none;
}

.bundles-list li a:hover {
    text-decoration: underline;
}

/* Table container */
.table-container {
    width: 60%;
    margin: 0 auto;
}

/* Table styles */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    table-layout: auto;
    margin: 0;
    padding: 0;
}

.custom-table td {
    background-color: #b6f8d1;
    padding: 15px;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.custom-table td:first-child {
    width: 40px;
    text-align: center;
}

.custom-table a {
    color: #333;
    text-decoration: none;
    display: block;
}

.custom-table a:hover {
    text-decoration: underline;
}

.icon {
    vertical-align: middle;
    margin-right: 10px;
}

/* Styling for text-box (General container styling) */
.text-box {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.text-box:hover {
    background-color: #f0f0f0;
    /* Slightly darken on hover */
}

.text-box caption {
    font-weight: bold;
    font-size: 18px;
    display: inline-block;
    margin-bottom: 10px;
    text-align: left;
    /* Left align */
}

.text-box button {
    background-color: #333;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    /* Left align */
    margin-left: 10px;
    /* Add some space between caption and button */
}

.text-box button:hover {
    background-color: #555;
}

.text-box table {
    width: 100%;
    border-collapse: collapse;
}

.text-box table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.text-box table a {
    color: #1A73E8;
    text-decoration: none;
}

.text-box table a:hover {
    text-decoration: underline;
}

/* Specific styles for used-by-container */
#used-by-container {
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #f1f1f1;
    /* Lighter background */
    margin-bottom: 20px;
}

/* Specific styles for uses-container */
#uses-container {
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #e9f9e9;
    /* Slightly greenish background */
    margin-bottom: 20px;
}

/* Specific styles for relationships-container */
#relationships-container {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

/* General styling for containers */
.text-box {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.text-box:hover {
    background-color: #f0f0f0;
    /* Slightly darken on hover */
}

/* Left-align the caption and button inside the text-box */
.text-box caption {
    font-weight: bold;
    font-size: 18px;
    display: inline-block;
    margin-bottom: 10px;
    text-align: left;
    /* Left align */
}

/* Use flexbox to align caption and button horizontally and to the left */
.text-box-header {
    display: flex;
    align-items: center;
    /* Vertically center-align the caption and button */
    justify-content: flex-start;
    /* Left align the caption and button */
    margin-bottom: 10px;
}

.text-box-header button {
    background-color: #333;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    /* Add some space between caption and button */
}

.text-box-header button:hover {
    background-color: #555;
}

/* Ensure table takes full width */
.text-box table {
    width: 100%;
    border-collapse: collapse;
}

.text-box table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.text-box table a {
    color: #1A73E8;
    text-decoration: none;
}

.text-box table a:hover {
    text-decoration: underline;
}

/* Specific styles for used-by-container */
#used-by-container {
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #f1f1f1;
    /* Lighter background */
    margin-bottom: 20px;
}

/* Specific styles for uses-container */
#uses-container {
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #e9f9e9;
    /* Slightly greenish background */
    margin-bottom: 20px;
}

/* Specific styles for relationships-container */
#relationships-container {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

/* Disabled Row - Overrides cell background and color */
.disabled-row {
    background-color: #d3d3d3 !important;
    /* Light gray background */
    color: #a0a0a0 !important;
    /* Gray text */
    cursor: not-allowed;
}

.disabled-row td {
    background-color: #d3d3d3 !important;
    /* Light gray for all td elements in the row */
    color: #a0a0a0 !important;
    /* Ensures text color is gray */
}

.hidden-column {
    display: none;
    /* Hide both table header and data cells */
}

/* Ensures the button inside the table is aligned to the left */
.text-box-content .toggle-button {
    text-align: left;
    /* Align button text to the left */
    display: block;
    background-color: #333;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 0;
    /* No left margin */
}

.text-box-content .toggle-button:hover {
    background-color: #555;
    /* Change color on hover */
}

/* Ensures the table is 100% wide */
.artefacts-table,
.related-artefacts-table {
    width: 100%;
    /* Full width */
}

/* Table header styling (darker background) */
.text-box table th {
    background-color: #d9d9d9;
    /* Slightly darker gray for the table header */
    color: #333;
    /* Dark text */
    font-weight: bold;
    padding: 10px;
    border-bottom: 2px solid #ccc;
}

/* Ensures the label row background is white for artefacts and related artefacts */
.artefacts-table th,
.related-artefacts-table th {
    background-color: #ffffff;
    /* White background for label rows */
    color: #333;
    /* Dark text */
}

/* General table row styling */
.text-box table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background-color: #ffffff;
    /* Default background color for table rows */
}

.text-box table td:first-child {
    background-color: #ffffff;
    /* White background for the first column if needed */
}

/* Ensure the table is 100% wide */
.artefacts-table,
.related-artefacts-table {
    width: 100%;
    /* Full width */
    border-collapse: collapse;
}

/* Info Bar */
.info-bar {
    display: flex;
    justify-content: space-between;
    /* Equal spacing between items */
    align-items: center;
    /* Vertically center the items */
    background-color: #f2f2f2;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    width: 100%;
    /* Ensures it takes full width */
}

.info-item {
    flex: 1;
    /* Distribute space equally */
    text-align: center;
    /* Center text inside each item */
    padding: 0 10px;
    /* Add padding inside each item for spacing */
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

.info-item strong {
    font-weight: bold;
}

/* Notes Box */
.note-box {
    display: flex;
    align-items: center; /* Align items vertically centered */
    background-color: #f2f2f2;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    width: 100%; /* Ensures it takes full width */
}

.note-box img {
    height: 40px;
    margin-right: 25px; /* Space between the icon and the text */    
}

.note-box .note-text {
    flex-grow: 1; /* Allow the text to take up the remaining space */
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    text-align: left; /* Left-align the text */
}

/* Notes Home */
.note-home {
    display: flex;
    align-items: center; /* Align items vertically centered */
    background-color: #f2f2f2;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 20px;
    /* width: 100%;  Ensures it takes full width */
}

.note-home img {
    height: 40px;
    margin-right: 25px; /* Space between the icon and the text */    
}

.note-home {
    flex-grow: 1; /* Allow the text to take up the remaining space */
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
    text-align: left; /* Left-align the text */
}

/* Add these styles if they're not already in your CSS file */
/* Ensure the table spans full width and aligns content in one row */
.header-table {
    width: 60%;
    table-layout: fixed;
    border-collapse: collapse;
}

.header-table td {
    padding: 10px;
    vertical-align: middle;
}

/* Left column logo */
.header-table .left {
    text-align: left;
    width: 20%;
}

/* Center column for text */
.header-table .center {
    text-align: center;
    width: 60%;
}

/* Right column logo */
.header-table .right {
    text-align: right;
    width: 20%;
}

/* Ensure images have the same height to fit nicely */
.header-table img {
    width: auto;
    /* Adjust based on your design */
    height: 60px
}

h1, h2, h3 {
    color: #333;
}
ul {
    margin-left: 20px;
}
.container-html {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 70%; /* Set a maximum width */ 
    margin: 20px auto; /* Center the container */
    text-align: left;
}
.container-html figure {
    margin: 20px 0;
}
.container-html figcaption {
    font-style: italic;
    font-size: 0.9em;
}
.container-html img {
    width: 600px; /* Set all images to the same width */
    height: auto;
}

.text-and-figure {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between the text and figure */
    margin-bottom: 30px; /* Space below each section */
}

.text-and-figure {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}


.text-content, .text-and-figure figure {
    flex: 1;
    max-width: 45%; /* Each item takes up to 45% width to prevent overflow */
}

.text-content {
    margin-right: 20px;
}

.text-and-figure {
    align-items: center; /* Vertically centers content */
}

.text-and-figure img {
    max-width: 100%;
    height: auto;
}

figure {
    text-align: center;
}

@media (max-width: 768px) {
    .text-and-figure {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .text-content, .text-and-figure figure {
        max-width: 100%;
    }
}



/* Dropdown container */

.dropdown {
    position: relative;
    display: inline-block; /* Keep it inline with other links */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block; /* Show dropdown on hover */
}


/* Dropdown button (parent) */
.dropdown-btn {
    background-color: #02459F; /* Match the background of the navigation bar */
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    font-weight: bold;
}

/* Links in the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Hover to display dropdown */
.dropdown-content a:hover {
    background-color: #ddd;
}
