body {
    font-family: 'Courier New', monospace;
    background-color: #f4f4f4;
    color: #000;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #000;
}

h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 3em;
    margin: 0;
    font-weight: bold;
}

main {
    flex: 1;
    padding: 20px;
    align-items: center;
    justify-content: center;
    display: flex;
}

/* Header links and titles */
header .subject {
    text-decoration: none;
}

header h1 .subject {
    color: rgb(0, 71, 90);
    background-color: transparent;
    padding: 0;
}

header h2.subject {
    background-color: #00475a;
    color: #fff;
    padding: 0 5px;
    font-family: 'Courier New', monospace;
}

/* Table subject links/text */
table .subject {
    color: #000;
    font-weight: bold;
    text-decoration: none;
}

footer {
    background-color: #000;
    color: #fff;
    padding: 20px;
    text-align: center;
    border-top: 5px solid #00475a;
}

footer p {
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1em;
    font-family: 'Courier New', monospace;
    min-width: 400px;
    border: 2px solid #000;
    box-shadow: 5px 5px 0px #000;
    background-color: #fff;
}

table thead tr {
    background-color: #00475a;
    color: #ffffff;
    text-align: left;
    border-bottom: 2px solid #000;
}

table th,
table td {
    padding: 12px 15px;
    border-right: 1px solid #000;
}
table th:last-child,
table td:last-child {
    border-right: none;
}

table tbody tr {
    border-bottom: 1px solid #000;
}

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

table tbody tr:last-of-type {
    border-bottom: none;
}

table tbody tr:hover {
    background-color: #e0f7fa;
}

.styled-data-cell {
    text-align: center;
    vertical-align: middle;
}

/* Breadcrumb Navigation Styling */
.breadcrumb {
    padding: 10px 20px;
    background-color: #e0e0e0;
    border-bottom: 2px solid #000;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.breadcrumb a {
    color: #0000ee;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #000;
}

/* Responsive Table Styling */
@media screen and (max-width: 768px) {
    header {
        padding: 15px;
    }

    table {
        width: 100%;
        min-width: 600px; /* Force scroll on smaller screens */
        font-size: 0.9em;
    }
    
    table th,
    table td {
        padding: 10px;
    }
    
    main {
        padding: 10px;
        width: 100%;
        display: block; /* Allow scrolling */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    /* Make table content responsive */
    thead th {
        white-space: nowrap;
    }
    
    td {
        word-break: break-word;
    }
}

/* Mobile screens */
@media screen and (max-width: 480px) {
    header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px 10px;
    }

    h1 {
        font-size: 2.2em;
    }
    
    h2 {
        font-size: 1.4em;
    }

    table {
        font-size: 0.85em;
        min-width: 500px; /* Ensure table doesn't get too squished */
    }
    
    th, td {
        padding: 8px 6px;
    }

    .breadcrumb {
        font-size: 0.8em;
        padding: 8px 15px;
        white-space: nowrap;
        overflow-x: auto;
    }
    
    footer {
        padding: 15px;
        font-size: 0.9em;
    }
}