/* General styling for the page */

body {

    font-family: Arial, sans-serif;

    margin: 20px;

    background-color: white;

}

 

/* Crossref container to behave like card-container */

#crossref > div {

    display: flex;

    flex-wrap: wrap;

    column-gap: 20px;

    justify-content: center;

}

 

/* Each entity styling */

.entity, div#objectproperties>div, div#dataproperties>div, div#annotationproperties>div, div#properties>div, div#auxiliary>div, div#classes>div{

    background-color: #ffffff;

    border: 1px solid #ddd;

    border-radius: 8px;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    padding: 20px;

    margin-bottom: 20px;

    flex: 1 1 100%; /* Full-width by default for mobile */

    max-width: 800px;

}

 

/* Title styling for each entity */

.entity h3 {

    font-size: 22px;

    color: #005A9C;

    font-weight: bold;

    margin-top: 0;

}

 

/* Backlink styling inside h3 */

.entity h3 .backlink a {

    font-size: 12px;

    color: #0077B5;

    text-decoration: none;

}

 

.entity h3 .backlink a:hover {

    text-decoration: underline;

}



.backlink {
    font-size:10pt;
    text-align:right;
    float:right;
    color:black;
    padding: 2px;
    border: 1px dotted navy;
    background-color: var(--bg-backlink);
    color: var(--text-backlink);
} 

/* Styling for comments */

.entity .comment p {

    font-size: 14px;

    color: #333;

    margin-top: 10px;

    margin-bottom: 15px;

}

 

/* Styling for lists (dl, dt, dd) */

.entity dl {

    margin: 10px 0;

}

 

.entity dt {

    font-weight: bold;

    color: #005A9C;

    margin-top: 10px;

}

 

.entity dd {

    margin-left: 20px;

    color: #333;

    font-size: 14px;

}

 

/* Preformatted text styling */

.entity pre {

    background-color: #f0f4f8;

    padding: 10px;

    border-radius: 5px;

    font-size: 13px;

    overflow-x: auto;

}

 

/* Description section */

.entity .description {

    margin-top: 15px;

    padding-top: 15px;

    border-top: 2px solid #ddd;

}

 

/* Style for unordered lists (hlist) */

.hlist {

    list-style: none;

    padding: 0;

    margin: 0;

    display: flex;

    flex-wrap: wrap;

    gap: 5px;

    justify-content: center;

    width: 100%;
}

 

/* Style for each list item */

.hlist li {

    background-color: #ffffff;

    border: 1px solid #ddd;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    padding: 15px;

    width: 100%; /* Default to full-width */

    max-width: 300px;

    margin: 5px;

    text-align: center;

}

 

/* Style for links inside list items */

.hlist li a {

    font-size: 16px;

    color: #005A9C;

    text-decoration: none;

    font-weight: bold;

    display: block;

}

 

.hlist li a:hover {

    text-decoration: underline;

}

 

/* Responsive adjustments */

@media (min-width: 600px) {

    .entity, div#objectproperties>div, div#dataproperties>div, div#annotationproperties>div, div#properties>div, div#classes>div , div#auxiliary>div {

        flex: 1 1 calc(50% - 20px); /* 2 entities per row for medium screens */

    }

 

    .hlist li {

        width: calc(50% - 20px); /* 2 items per row on medium screens */

    }

}

 

@media (min-width: 992px) {

    .entity, div#objectproperties>div, div#dataproperties>div, div#annotationproperties>div, div#properties>div, div#classes>div, div#auxiliary>div {

        flex: 1 1 calc(31.333% - 20px); /* 3 entities per row for large screens */

        max-width: none;

    }

 

    .hlist li {

        width: calc(31.333% - 20px); /* 3 items per row on large screens */

    }

}

#fixed-search-container {
    position: fixed;
    top: 10px;
    right: 10px;
    background: white;
    padding: 10px;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#search-crossref {
    width: 200px;
    padding: 5px;
    border: 1px solid #ccc;
}

#search-button {
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
}

@keyframes highlight {
    0% { background-color: antiquewhite ; }
    100% { background-color: inherit ; }
}
@keyframes highlight_old {
    0% { border-width: 2px; border-color: #005A9C; }
    100% { border-width: inherit; border-color: inherit ; }
}

.highlight * {
    background-color: inherit;
}

.highlight {
    animation: highlight 2s ease-in-out;
}

#revisionSection {
    margin-top: 3rem !important;
}

#revisionSection h2 {
    font-size: 1.8rem !important;
    margin-bottom: 1rem !important;
    border-bottom: 2px solid #ccc !important;
    padding-bottom: 0.3rem !important;
}

#revisionSection table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.95rem !important;
    background-color: #fff !important;
    border: 1px solid #e0e0e0 !important;
}

#revisionSection th,
#revisionSection td {
    text-align: left !important;
    padding: 12px 15px !important;
    vertical-align: top !important;
    border-bottom: 1px solid #ddd !important;
}

#revisionSection td:first-child {
    white-space: nowrap;
}

#revisionSection th {
    white-space: nowrap;
    background-color: #f5f5f5 !important;
    font-weight: bold !important;
    border-bottom: 2px solid #ccc !important;
}

#revisionSection tr:nth-child(even) {
    background-color: #f9f9f9 !important;
}

#revisionSection td ul {
    margin: 0 !important;
    padding-left: 20px !important;
    list-style-type: disc !important;
}

#revisionSection td ul ul {
    list-style-type: circle !important;
    padding-left: 20px !important;
    margin-top: 0.25rem !important;
}

#revisionSection li {
    margin-bottom: 4px !important;
}
