/* General styles */

body {
    font-family: Inter, sans-serif;
    color: #111;
    margin: 0 auto;
    box-sizing: border-box;
    line-height: 1.5em;
    font-size: 14px;
    font-weight: 350;
}

h1 {
    margin-top: 0;
    font-size: 1.5em;
    line-height: 1em;
    font-weight: 450;
}

h2 {
    font-size: 1.25em;
    font-weight: 450;
}

a:link,
a:visited {
    color: #00f;
    /* text-decoration-line: underline; */
    /* text-decoration-color: #bbb; */
    /* text-decoration-thickness: 1px; */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
}

section {
    max-width: 55em;
    margin: 0 auto 1em auto;
    padding: 0 2em;
}

p {
    line-height: 1.5em;
    margin-left: auto;
    margin-right: auto;
}

ul {
    padding-left: 1em;
}

/* Site-specific styles */

.software-list li {
    padding-bottom: 1em;
}

.software-list li>a:first-child {
    display: inline;
}

.software-list li .description {
    line-height: 1.25em;
    padding: 0.25em 0 0.375em 0;
}

.software-list li>a>img {
    display: inline;
    vertical-align: middle;
}

.software-list a:link,
.software-list a:visited {
    font-weight: 500;
}

#paper-list {
    display: flex;
    flex-direction: column;
    padding: 0.5em 0 0 0;
    margin: 0;
}

#paper-list strong {
    font-weight: 500;
}

#paper-list li {
    padding: 0.5em 0;
    align-items: center;
    gap: 1em 1.5em;
    line-height: 1.3em;
    flex-wrap: wrap-reverse;
}

#paper-list[data-show-default="false"] li {
    display: none;
}

#paper-list[data-show-default="true"] li {
    display: flex;
}

#paper-list li.paper-highlighted {
    background: #ffffd0;
    padding: 1em 2em;
    margin: 0.5em -2em;
    border-radius: 0;
}

#paper-list li.paper-default {
    display: flex;
}

#paper-list li h3 {
    font-size: inherit;
    font-weight: 500;
    color: #000;
    padding: 0;
    margin: 0;
}

#paper-list li .paper-visual {
    width: 12em;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    overflow: hidden;
    display: block;
    border-radius: 2px;
    /* Setting background can prevent dark borders apeparing after videos are resized.*/
    background: #f0f0f0;
}

#paper-list li .paper-visual * {
    display: none;
}

#paper-list li .paper-textual {
    flex-grow: 1;
    flex-basis: 20em;
}

.image-grid {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

.image-grid>a {
    width: 12em;
    height: 8em;
    display: block;
}

.image-grid>a:hover {
    opacity: 1;
}

.image-grid>a>* {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

span.highlight {
    background-color: #ffffd0;
}

.clickable-link {
    color: #00f;
    cursor: pointer;
    user-select: none;
}

.clickable-link:hover {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #aaa #f1f1f1;
}