/* some constants used throughout the website*/
:root {
    --nav-font: Arial, Helvetica, sans-serif;
    --nav-height: 6vh;
    --UCLA-gold: #FFD100;
    --UCLA-blue: #2774AE;
    --UCLA-darkblue: #003B5C;
    --body-font: #212529;
    --heading: #1859c2;
    --nav-darkblue: #05004a;
    --nav-color: #212529;
    --nav-color-light: #353c42;
    --nav-darkblue: #05004a;
}

html {
    overflow-x: hidden;
    font-family: var(--nav-font);
}

body {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 110%;
    color: var(--body-font)
}

strong {
    color: var(--body-font);
}

/* block: heading in the paragraph */
h1 {
    /* color: var(--UCLA-blue); */
    color: var(--heading);
}

/* element: paragraphs in the body text */
p {
    line-height: 150%;
    font-size: 18px;
}

/* links */
a {
    color: black;
    text-decoration: none;
    font-size: 18px;
}

a:focus,
a:hover {
    color: #005587;
    text-decoration: underline;
}

a.hover {
    text-decoration: none;
}

a.hover:hover {
    text-decoration: underline;
}

/* block: paper title in the body text */
papername {
    font-family: Arial;
    font-size: 18px;
    font-weight: 600;
}

/* element: divider line */
hr {
    width: 75%;
    color: silver;
    opacity: 0.5;
}

img {
    max-width: 100%;
}

.hero .publication-title img {
    max-height: 100px;
    width: auto;
    height: auto;
}

.figure-wide {
    display: block;
    margin: 30px auto;
    max-width: 1100px;
    width: 100%;
    height: auto;
}

.figure-medium {
    display: block;
    margin: 25px auto;
    max-width: 900px;
    width: 100%;
    height: auto;
}

.highlight-framework {
    display: block;
    margin: 32px auto 0;
    max-width: 1100px;
    width: 100%;
    height: auto;
}

.showcase-callout {
    margin-top: 24px;
    text-align: center;
    font-size: 1.45rem;
    font-weight: 700;
    font-style: italic;
    font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.3px;
    color: #0b3d91;
    line-height: 1.4;
}

.showcase-callout a {
    color: #008ad7;
    text-decoration: underline;
    font-size: inherit;
}

.showcase-callout a:hover,
.showcase-callout a:focus {
    color: #005587;
}

.text-image-row {
    align-items: center;
}

.text-image-row .figure-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.text-image-row .image-block {
    display: flex;
    justify-content: center;
}

.evaluation-copy {
    margin-top: 28px;
}

.insight-list {
    margin-top: 18px;
    padding-left: 20px;
}

.insight-list li {
    margin-bottom: 10px;
}

.figure-caption {
    margin-top: 18px;
    font-size: 0.92rem;
    color: #5f6b7c;
    text-align: center;
}

.evaluation-section {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-top: 28px;
}

.evaluation-block .title {
    margin-bottom: 20px;
}

.evaluation-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.evaluation-text {
    flex: none;
}

.evaluation-gallery {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.evaluation-gallery img,
.evaluation-body img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media only screen and (max-width: 1023px) {
    .text-image-row .image-block {
        margin-left: 0;
    }
}

@media only screen and (min-width: 1024px) {
    .text-image-row .text-block {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .text-image-row .image-block {
        flex: 0 0 40%;
        max-width: 40%;
        margin-left: 5%;
    }
}

.publication-links .button span.icon {
    margin-right: 6px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.example-card {
    background: #ffffff;
    border: 1px solid #e2e5ec;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.example-card h3 {
    margin: 12px 0 10px 0;
    font-size: 20px;
}

.example-card p {
    font-size: 16px;
    line-height: 150%;
}

.example-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.showcase-section {
    margin-top: 40px;
}

.showcase-container {
    max-width: 100% !important;
    width: 100%;
    padding-left: 32px;
    padding-right: 32px;
}

.showcase-gallery {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 32px;
}

.showcase-figure {
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
}

.showcase-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.showcase-caption {
    text-align: center;
    font-size: 16px;
    line-height: 150%;
    color: #3b4255;
    margin-top: 16px;
}

.leaderboard-table-wrapper {
    margin-top: 30px;
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 16px 18px;
    text-align: center;
    font-size: 16px;
    border-bottom: 1px solid #edf0f5;
}

.leaderboard-table th {
    background: #f5f7fb;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 15px;
}

.leaderboard-table tr:last-child td {
    border-bottom: none;
}

.tag-pill {
    display: inline-block;
    background: #0f172a;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    letter-spacing: 0.3px;
}

ul {
    margin: 0;
}

/* list */
li {
    margin-top: 12px;
    font-size: 18px;
    display: list-item;
    text-align: -webkit-match-parent;
}

/* body of the page */
#body {
    width: 60vw;
    margin: auto;
}

/* section */
.section {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 4px;
}

/* anchor tag for nav button scrolling */
.anchor {
    position: relative;
    display: block;
    /* visibility: hidden; */
    top: calc(-1 * var(--nav-height));
    height: 1px;
}

/* the banner */
#title {
    margin-top: var(--nav-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(50vh - var(--nav-height));
    width: 100vw;
    left: 0vw;
    font-weight: bold;
    color: white;
    /* background: linear-gradient(to bottom, var(--nav-darkblue), var(--UCLA-blue)); */
    background: linear-gradient(180deg, var(--nav-darkblue), var(--UCLA-blue));
    /* background: linear-gradient(, var(--UCLA-darkblue), var(--UCLA-blue) 60%, white); */
}

#title-icon {
    width: 3em;
    margin: 10px;
}

/* used to center the title */
#title-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#title-text {
    font-size: 50px;
}

#subtitle-text {
    font-size: 30px;
    text-align: center;
    line-height: 125%;
    margin: -0.5em;
}

/* change this to adjust the vertical position of the title*/
#title-padding-bottom {
    font-size: 1.5em;
}

/* shows three examples on the home page */
#example-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* data example images */
.example-img {
    /* width: 15vw; */
    width: 90%;
    margin: auto;
}

/* makes its children independent columns on the same row */
.makecol {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#overview-left {
    width: 70%;
}

#overview-right {
    width: 35%;
}

/* not very important. Tried to make the website responsive */
@media only screen and (max-width: 1000px) {
    #body {
        padding: 0;
        margin: 0;
        width: 100%;
        left: 0;
    }

    .section {
        width: 98%;
        padding: 2.5%;
    }

    #overview-content-wrapper {
        flex-direction: column;
    }

    #overview-left,
    #overview-right {
        width: 100%;
    }

    table {
        display: none;
    }
}

.bibtax {
    /* font-family: Arial; */
    padding-left: 1em;
    padding-right: 1em;
    padding-top: 1em;
    padding-bottom: 1em;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.ext-link {
    /* color: var(--UCLA-blue); */
    color: #007bff;
    /* text-decoration: underline; */
}

#cc-img {
    --width: 40%;
    width: var(--width);
    margin: 0 calc(calc(100% - var(--width)) / 2);
}

/* class: profile */
.profile {
    display: inline-block;
    width: 180px;
}

/* class: profile image */
.profile-img {
    border-radius: 50%;
    width: 150px;
}

/* #task-pie-chart */
.col-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.col {
    width: 48%;
}

/* Table for three sub-tasks */
#tasks {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 70%;
    text-align: center;
    margin: auto;
    margin-top: 1em;
    margin-bottom: 2em;
}

/*table tile*/
#tasks th {
    border: 1px solid #ddd;
    padding: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
    background-color: var(--UCLA-darkblue);
    color: white;
}

#tasks td {
    border: 1px solid #ddd;
    padding: 8px;
}

#tasks tr:nth-child(even) {
    background-color: #f5f5f5;
}

#tasks tr:hover {
    background-color: #ddd;
}
