
/* ---------- General ---------- */

html, body {
    font-family: 'Inter', 'Helvetica', sans-serif;
    background: white;
    color: black;
    margin: 0;
    font-weight: 300;

    /* Variables */
    --color-primary: #972910;
    --color-primary-dark: #6a1d0b;
    --color-primary-light: #bb381a;
    --color-red: #B40107;
    --color-green: #27ae60;
    --color-purple: #8e44ad;
}

.display-small,
.display-large {
    display: none;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
.team-member-name {
    font-family: "Cinzel", serif;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
    font-size: 1.3rem;
}

h2 {
    font-size: 1.7em;
    margin: 1em 0 1.3em 0;
    line-height: 1em;
    font-weight: 600;
    text-align: center;
    color: var(--color-primary);
}

h3 {
    font-size: 1.5em;
    line-height: 1em;
    font-weight: 600;
    margin: 3em 0 0.5em 0;
    padding: 0.1em 0;
    width: fit-content;
    color: var(--color-primary);
}

h4 {
    font-weight: 600;
    line-height: 1em;
    font-size: 1.4em;
    margin: 1em 0 0.5em 0;
    padding: 0.1em 0;
    width: fit-content;
}

section {
    padding: 2.7em 0;
}

p {
    margin: 1em auto;
    line-height: 1.3em;
}

strong {
    font-weight: 600;
}

em {
    font-style: italic;
}

table {
    border-collapse: collapse;
}

td,
th {
    border: 1px solid black;
    padding: 0.3em;
}

th {
    font-weight: bold;
    text-align: center;
}

.clearfloat {
    clear: both;
}

.image-circle {
    border-radius: 100%;
    width: 13em;
    max-width: 90%;
    display: block;
    margin: 1em auto;
}

.hidden {
    display: none;
}

.nowrap {
    white-space: nowrap;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.rtl {
    text-align: right;
}

/* ---------- Navigation ---------- */

nav {
    background-color: white;
    vertical-align: middle;
    color: white;
    font-family: "Times New Roman", Times, serif;
    text-transform: uppercase;
}

.navbar {
    padding: 0 0.5em;
}

.navbar-brand {
    display: inline-block;
    font-size: 1.2em;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: var(--color-primary);
}

.navbar-nav {
    letter-spacing: 0.05em;
}

.nav-link {
    font-weight: 300;
    font-size: 1.13em;
}

.nav-link.active {
    font-weight: 600;
}

nav a:hover {
    opacity: 0.95;
}

nav hr {
    margin: 0.5em 0;
}

/* ---------- Main ---------- */

main {
    font-size: 1.1em;
}

main a {
    text-decoration: none;
}

/* ---------- Welcome ---------- */

#welcome-banner {
    width: 100%;
    background-image: url("../images/welcome/welcome-banner.c6c990e3ea73.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: black;
}

#welcome-bannercredit {
    text-align: right;
    font-size: 0.8em;
    padding: 0.2em 0.5em;
    opacity: 0.8;
    font-style: italic;
}

#welcome-footer {
    font-size: 0.95em;
    padding: 5em 0;
    text-align: center;
}

#welcome-footer-content-text {
    margin-top: 2em;
}

#welcome-footer-content img {
    height: 4.5em;
    margin: 0 1em 1em 1em;
    display: inline-block;
}

/* ---------- Team ---------- */

.team-member-name {
    margin-top: 2em;
    color: var(--color-primary);
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
}

.team-member-role {
    text-align: center;
    font-size: 1.1rem;
    margin: 0.5em 0 1em 0;
    font-weight: bold;
}

.team-member-photo {
    display: block;
    margin: 1em auto;
    width: 13em;
    border-radius: 100%;
    border: 0.4rem solid var(--color-primary);
}

/* ---------- Database ---------- */

/* List */

#dblist-header {
    background: #DDD;
    color: #202020;
    padding: 0.3em;
    font-size: 0.9em;
}

#dblist-header div {
    display: inline-block;
    margin-right: 3em;
}

#dblist-header label {
    font-weight: 500;
    font-size: 0.9em;
    display: inline-block;
    vertical-align: middle;
}

#dblist-header input {
    display: inline-block;
    vertical-align: middle;
}

#dblist-header a {
    background: #303030;
    color: white;
    padding: 0.2em 1em;
    border-radius: 0.4em;
    display: inline-block;
    vertical-align: middle;
    font-weight: 500;
    font-size: 0.9em;
}

#dblist-header a:hover {
    background: #404040;
}

#dblist-body {
    overflow-y: auto;
    max-height: calc(100vh - 5.3em);
}

#dblist-body thead th {
    position: sticky;
    top: -1px;
    background-color: black;
    color: white;
    z-index: 1;
    padding: 0.2em;
    box-shadow: inset 0 4px 0 0 #000, 
                inset 0 -4px 0 0 #000;
    cursor: pointer;
    user-select: none;
}

#dblist-body thead th:not(.filter-active):hover {
    background: #272727;
}

#dblist-body table {
    font-size: 0.9rem;
}

#dblist-body table tbody td {
    line-height: 1em;
    height: 1em;
    overflow: hidden;
    width: 10em;
    cursor: pointer;
}

#dblist-body table tbody tr:hover {
    background: #F5F5F5;
}

#dblist-body .cell-wrapper {
    max-height: 2em;
    overflow: hidden;
    position: relative;
}

#dblist-body tr.expanded .cell-wrapper {
    max-height: fit-content; 
}

#dblist-body-thead-menu {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 10px;
    z-index: 1000;
    min-width: 150px;
    border-radius: 4px;
}

.dblist-body-thead-menu-section {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.dblist-body-thead-menu-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.dblist-body-thead-menu-section button {
    font-size: 0.8rem;
}

.dblist-body-thead-menu-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 5px;
    margin-bottom: 5px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    cursor: pointer;
}

.dblist-body-thead-menu-btn:hover {
    background: #eee;
}

#dblist-body.filter-item {
    display: block;
    margin-bottom: 5px;
}

#dblist-body-thead-menu .close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #888;
}

#dblist-body-thead-menu .close-btn:hover {
    color: #d9534f;
}

#dblist-body-thead-menu #filterList {
    max-height: 15em;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #eee;
    padding: 5px;
    margin-top: 5px;
    background: #fafafa;
}

#dblist-body-thead-menu .filter-item {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    cursor: pointer;
}

#dblist-body-thead-menu .filter-action-btn {
    font-size: 0.8rem;
    padding: 3px 6px;
    margin-right: 5px;
    cursor: pointer;
    background: #eee;
    border: 1px solid #ccc;
}

#dblist-body .filter-action-btn:hover {
    background: #ddd;
}

#dblist-body th.filter-active {
    background-color: #cdffdc;
    color: #1cb757;
}

/* Detail */

#dbdetail-header-adminlink {
    float: right;
    padding: 0.3em 0.8em;
    display: block;
    width: fit-content;
    margin-bottom: 0.5em;
    border-radius: 1em;
    background: var(--color-primary);
    color: white;
    font-size: 0.95em;
    font-weight: 500;
}

#dbdetail-header h2 {
    clear: both;
    padding-top: 1em;
}

.dbdetail-body-detail {
    display: block;
    margin: 1em auto;
}

.dbdetail-body-detail label {
    display: block;
    font-weight: 500;
}

.dbdetail-body-detail span {
    display: block;
}

/* ---------- Publications and Presentations ---------- */

#publications li,
#presentations li {
    margin: 0.8em 0;
}

/* ---------- Error Pages ---------- */

.errorpage-path {
    font-weight: 500;
}

.errorpage-code {
    margin-top: 3em;
    font-size: 0.8em;
}
