.site-header {
    border-top: 0 !important;
}

dfn {
    font-weight: 600;
    font-style: normal;
}

table caption {
    font-weight: 600;
}

/* fix padding, margin, border of syntax highlighting when using line numbers */
table.rouge-table, table.rouge-table * {
    padding: 0px;
    margin: 0px;
    border: 0px;
}
table.rouge-table > tbody > tr > td.gutter.gl {
    padding: 0px 8px 0px 0px; 
}

/* hint script */
.aside {
    margin: 30px auto;
    padding-bottom: 12px;
    border-radius: 7px 7px 7px 7px;
    -webkit-box-shadow: 0px 14px 32px 0px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0px 14px 32px 0px rgba(0, 0, 0, 0.15);
    box-shadow: 0px 14px 32px 0px rgba(0, 0, 0, 0.15);
}
.aside h3, .aside h4 {
    margin: 0 0 0 38px;
    padding-top: 12px;
    padding-bottom: 12px;
}
.aside-text {
    margin: 0 0 0 38px;
    overflow: hidden;
    padding-bottom: 12px;
    padding-right: 38px;
}

/* tooltip */
.tooltip-container {
    position: relative; /* This positions the tooltip-box absolutely within the container */
    display: inline-block;
    cursor: pointer; /* So the user knows it's hoverable */
}
.highlight-text {
    text-decoration: underline dashed #2a7ae2;
    text-underline-offset: 4px; /* Adjust space between text and underline */
    text-decoration-thickness: 2px; /* Adjust thickness of the underline */
    color: #2a7ae2; /* Optional: change text color */
    cursor: pointer; /* Indicate that it's interactive */
}
.tooltip-box {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Position below the highlight text */
    left: 0;
    margin-top: 8px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 8px; /* Rounded corners */
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    min-width: 400px;
    max-width: 600px; /* Optional: Limit width if desired */
    z-index: 100; /* Ensure it appears on top of other elements */
}
.tooltip-container:hover .tooltip-box {
    display: block; /* Show the block when hovering over the text */
}

/* rating */
.rating {
    color: gold;
    font-size: 24px;
}

/* thumbnail gallery */
.thumbnail-gallery {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
}
.thumbnail-gallery a {
    display: block;
    flex: 1;
    max-width: calc(50% - 8px);
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.thumbnail-gallery a:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.thumbnail-gallery img {
    width: 100%;
    height: auto;
    object-position: top;
}

/* lightbox overlay */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.lightbox:target {
    display: flex;
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    text-decoration: none;
    font-weight: bold;
}

