* {
    box-sizing: border-box;
    --handlab-primary: #7d122a;
    --handlab-secondary: #ff9c2f;
}

#videoTable th:nth-child(2),
#videoTable th:nth-child(3),
#videoTable td:nth-child(2),
#videoTable td:nth-child(3) {
    display: none;
}

.wordLink {
    cursor: pointer;
    text-decoration: underline;
    color: #0066cc;
}

.subtle {
    color: #666;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 20px;
    color: #222;
}

h1 {
    text-align: left;
    margin-top: 10px;
    margin-bottom: 25px;
    font-size: 2rem;
}

a {
    color: #0066cc;
}

a:hover {
    text-decoration: underline;
}

#logo {
    max-width: 100%;
    height: auto;
}

input, select, button {
    min-width: 10em;
    padding: 10px;
    font-size: 18px;
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
}


tr:nth-child(even of :not([hidden])) {
  background-color: #ececec;
}

td {
    cursor: pointer;
    display: flex;
    width: 100%;
}

#posterTable td {
    display: table-cell;
    width: auto;
    cursor: auto;
}

td div {
    width: 100%;
    min-width: 5em;
}

th, td {
    border: 1px solid #ccc;
    padding: 14px;
    font-size: 18px;
}

th {
    color: var(--handlab-primary);
    background: color-mix(in srgb, var(--handlab-secondary) 50%, transparent);
}

button {
    cursor: pointer;
}

iframe {
    width: 100%;
    border: none;
}


.header-images {
    display: flex;
    align-items: centre;
    gap: 10px;
    margin-bottom: 20px;
}

.header-images img {
    display: block;
    max-width: 100%;
    height: auto;
}

#videoContainer {
    width: 100%;
    margin-bottom: 20px;
    max-width: 700px;
    margin: 0 auto 20px auto;
}

#videoTitle {
    text-align: left;
    margin-bottom: 10px;
}

.terminfocss {
    color: #0066cc;
    font-weight: bold;
}

.terminfocss a {
    color: #ff9c2f;
    font-weight: bold;
}
#termInfo {
    display: flex;
    flex-wrap: wrap;
    justify-content:
    space-between;
    gap: 10px
}

#videoFrame {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    padding-bottom: 5px;
}

.tableHead {
    display: flex;
    flex-wrap: nowrap;
    justify-content:flex-start;
    gap: 10px
}

.tableHead > div {
    width: 50%;
}

.tableHead a{
    color: #7d122a;
    font-weight: bold;
}

.tableHead div {
    text-align: left;
}

#filterBar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: sticky;
    top: 0;
    background: #ffffffa0;
    z-index: 1000;
    padding-bottom: 18px;
}

#filterBar * {
    flex-grow: 1
}

#themeFilter, #searchInput {
    min-width: 10em;
}

#videoTable {
    width: 100%;
}

#backToTop {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: auto;
    padding: 8px 12px;
    font-size: 14px;
    background: #303030b0;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    z-index: 2000;

    /* Prevent stretching */
    display: inline-block;
    white-space: nowrap;
}

#backToTop:hover, #backToTop:focus{
    background: #555;
}

#posterSearch {
    display: flex;
    flex: 1;
}

.poster-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 18px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#posterTable {
    width: 100%;
    border-collapse: collapse;

}

#posterTable th,
#posterTable td {
    border: 2px solid #ccc;
    padding: 14px;
    font-size: 18px;
    text-align: left;
}

#posterTable th {
    color: var(--handlab-primary);
    background: color-mix(in srgb, var(--handlab-secondary) 50%, transparent);
}

#posterTable tbody tr:nth-child(even) {
    background-color: #ececec;
}

#posterTable a {
    color: #0066cc;
}

.back-to-dictionary-img {
    display: block;
    max-width: 50px;
    height: auto;
}
@media (max-width: 600px) {
    #posterTable th,
    #posterTable td {
        padding: 10px;
        font-size: 16px;
    }
}


