body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.menu-bar {
    background-color: #2f54b2;
    padding: 10px 0;
    margin-bottom: 20px;
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu-item {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    margin-right: 10px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.menu-logo {
    margin:-10px 10px;
    width:46px;
    height:46px;
    float:right;
}

.menu-item:hover {
    background-color:#2f54b2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.content {
    width:80vw;
}

.footer {
    background-color: #2f54b2;
    padding: 15px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #ccc;
}

.main-subject,
.blank-node {
    background-color: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

.main-subject {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

h1 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.8em;
}

/* .types {
    margin: 1rem 0;
} */


.labels {
    margin: 1rem 0;
}

.label {
    font-size: 1.4em;
    color: #2c3e50;
    margin: 0.5rem 0;
    font-weight: 500;
    line-height: 1.4;
}

.descriptions {
    margin: 1rem 0;
}

.description {
    color: #666;
    margin: 0.5rem 0;
    line-height: 1.6;
    font-size: 1.1em;
}

.main-description {
    margin: 0.2em 0 1em;
    font-size: 1.1em;
    line-height: 1.4;
    color: #666;
}

.subject-group {
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.subject-header {
    color: #2c3e50;
    font-size: 1.2em;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
    display: flex;
    align-items: center;
}

.subject-header::before {
    content: "►";
    margin-right: 0.5rem;
    color: #3498db;
    font-size: 0.8em;
}

table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

td {
    max-width: 600px;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: normal;
    hyphens: none;
    padding: 4px;
    border-top: 1px solid #dee2e6;
    vertical-align: top;
}

td:empty {
    border-top: none;
}

td:first-child {
    width: 30%;
    color: #2980b9;
    font-weight: 500;
}

td:first-child:empty {
    border-left: 2px solid transparent;
}

td:last-child {
    width: 70%;
    color: #2980b9;
}

td:nth-child(2) {
    color: #27ae60;
}

/* enable wrapping of long URLs: prefer break between prefix and local */
.predicate-link {
    white-space: normal;
}

.predicate-link .prefix {
    display: inline-block;
    white-space: nowrap;
}

.predicate-link .local {
    display: inline-block;
}

/* Inverse relations */
.inverse-relations-heading {
    color: #666;
    font-size: 1.4em;
    margin-top: 2rem;
    margin-bottom: 0.5em;
}

.blank-node.inverse-relation-box h3 {
    font-size: 1.1em;
    margin-bottom: 1em;
}

.blank-node.inverse-relation-box h3 .predicate-chain-context {
    font-size: inherit;
    color: inherit;
}

.blank-node.inverse-relation-box h3 .predicate-chain-context a {
    color: inherit;
}

.inverse-subjects-flow {
    display: block;
    margin-top: 0.5rem;
}

.inverse-subject-wrapper {
    display: block;
    white-space: normal;
    word-break: break-word;
    padding: 4px;
    border-top: 1px solid #dee2e6;
}

.inverse-subjects-flow .more-results {
    display: block;
    padding: 4px;
    border-top: 1px solid #dee2e6;
}

.inverse-subjects-flow .type-badge {
    padding: 1px 4px;
    font-size: 0.85em;
    margin-left: 0.3em;
    margin-bottom: 0;
    vertical-align: baseline;
    position: relative;
    top: 0;
}


.formats {
    margin-top: 2rem;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.formats-row {
    display: flex;
    align-items: baseline;
}

.formats-label {
    flex: 0 0 var(--pred-col-width, 30%);
    font-weight: normal;
    color: #555;
    padding-right: 1em;
    box-sizing: border-box;
}

.formats-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.formats a {
    color: #3498db;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #3498db;
    border-radius: 4px;
}

.formats a:hover {
    background-color: #3498db;
    color: white;
}

.formats .data-source {
    flex-basis: 100%;
    margin-top: 0.5rem;
    font-size: 0.85em;
    color: #666;
}

.formats .data-source a {
    color: #666;
    text-decoration: none;
    padding: 0;
    border: none;
    border-radius: 0;
    background-color: transparent;
}

.formats .data-source a:hover {
    background-color: transparent;
    color: #3498db;
    text-decoration: underline;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.header-section {
    margin-bottom: 2em;
}

.header-section h1 {
    font-size: 1.6em;
    margin: 0 0 0 0;
    color: #333;
}

.uri-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2em;
}

.uri-line h2,
.uri-line h3 {
    font-size: 1.1em;
    color: #666;
    margin: 0;
    flex: 1;
    padding-right: 1em;
}

.types {
    flex: 0 0 auto;
    text-align: right;
}

@media (max-width: 480px) {
    .uri-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .types {
        text-align: left;
        margin-top: 0.4em;
    }
}

.type-badge {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 0.3em 0.6em;
    margin: 0.2em;
    border-radius: 3px;
    border: 1px solid #dee2e6;
    font-size: 0.9em;
    text-decoration: none;
}

.type-badge:hover {
    text-decoration: none;
}

.type-badge .prefix {
    color: #2980b9;
}

.type-badge .local {
    color: #333;
    font-weight: 600;
}

h2 {
    font-size: 1.6em;
    margin: 0 0 0.5em 0;
    color: #333;
}

.images-section {
    display: flex;
    gap: 1em;
    margin: 1em 0;
    flex-wrap: wrap;
}

.image-container {
    flex: 0 0 auto;
    position: relative;
    transition: transform 0.2s;
}

.sameas-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 3px;
    pointer-events: none;
}

.image-container:hover {
    transform: scale(1.02);
}

.image-container a {
    display: block;
    text-decoration: none;
}

.image-container img {
    height: 200px;
    width: auto;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.image-container:hover img {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.blank-nodes-section {
    margin-top: 2rem;
}

.blank-node {
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.blank-nodes-section h2 {
    color: #666;
    font-size: 1.4em;
    margin-bottom: 0;
}

.blank-node h3 {
    color: #2980b9;
    font-size: 1.1em;
    margin-top: 0.5em;
    margin-bottom: 0.25em;
    line-height: 1.4;
}

.predicate-chain-context {
    font-size: 0.8em;
    color: #999;
}

.predicate-chain-context a {
    color: #999;
}

.prefix {
    color: #2980b9;
}

.local {
    color: #333;
    font-weight: 600;
}

.uri-object {
    text-decoration: none;
    color: #2980b9;
}

.uri-object:hover {
    text-decoration: underline;
}

.uri-object .local {
    color: #2980b9;
}

.blank-node-ref {
    color: #2980b9;
    text-decoration: none;
}

.blank-node-ref:hover {
    text-decoration: underline;
}

.predicate {
    white-space: nowrap;
}

.predicate .local {
    color: #333;
}

.datatype {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-left: 0.3em;
    font-family: monospace;
    vertical-align: super; 
}

.datatype:hover {
    color: #2c3e50;
}

.wkt-details {
    display: inline;
}

.wkt-summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: baseline;
    gap: 0.4em;
}

.wkt-summary::-webkit-details-marker {
    display: none;
}

.wkt-summary::before {
    content: '▶';
    font-size: 0.7em;
    color: #999;
    transition: transform 0.15s;
}

details[open] .wkt-summary::before {
    transform: rotate(90deg);
}

.wkt-type {
    color: #27ae60;
}

.wkt-hint {
    font-family: Arial, sans-serif;
    font-size: 0.85em;
    color: #999;
    font-style: italic;
}

.wkt-full {
    display: block;
    margin-top: 0.3em;
    word-break: break-all;
    white-space: pre-wrap;
}

.language-tag {
    font-size: 0.85em;
    color: #27ae60;
    margin-left: 0.3em;
    font-family: monospace;
    font-weight: 600;
    vertical-align: super; 
}

.language-tag:hover {
    color: #229954;
}

.properties-table {
    width: 100%;
    table-layout: fixed;
}

.properties-table td:first-child {
    width: var(--pred-col-width, 30%);
    vertical-align: top;
}

.predicate-set {
    background-color: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

.map-container {
    width: 100%;
    min-width: 400px;
    height: 250px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.marker-popup {
    padding: 3px 6px;
    font-size: 0.9em;
    white-space: nowrap;
}

.marker-popup h3 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    color: #2c3e50;
}

.marker-popup p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
    color: #666;
}

/* Language tabs */
.lang-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.lang-tab {
    padding: 1px 8px;
    font-size: 0.75em;
    border: 1px solid #c0c8d8;
    border-radius: 3px;
    background: #f4f6fa;
    color: #555;
    cursor: pointer;
    line-height: 1.6;
}

.lang-tab:hover {
    background: #e0e8f4;
    border-color: #2f54b2;
    color: #2f54b2;
}

.lang-tab.active {
    background: #2f54b2;
    color: white;
    border-color: #2f54b2;
}

.lang-tabs-cell {
    vertical-align: top;
}

.lang-value {
    padding-top: 2px;
}

.html-literal {
    color: #444;
    line-height: 1.6;
}
