@charset "UTF-8";
body {
    margin: 0;
}

html,
body {
    background-color: transparent;
    overflow-x: hidden;
    width: 100%;
}

.paper-header {
    position: relative;
    width: 100%;
    height: auto; /* allow it to grow with content */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 2rem 0rem; /* add some internal padding for breathing space */
}

.paper-header img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* makes it fill and crop like background */
    z-index: 0;
    filter: brightness(80%);
}

.paper-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.header {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 80%;
    font-family: "Google Sans", sans-serif;
    max-width: 1300px;
    width: 100%;
}

.header h1 {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0;
}

.authors {
    font-size: 1.5rem;
    margin: 10px 0;
    line-height: 1.6;
}

.authors a {
    color: #ffebc6;
    text-decoration: none;
    font-weight: 500;
}

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

.affiliations {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 5px;
}

.conference {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #e6c361;
}

.corresponding-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #ffebc6;
    opacity: 0.95;
}

.link-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem; /* smaller top margin */
    margin-bottom: 0; /* removes extra bottom spacing */
}

.link-button {
    display: inline-flex;
    align-items: center; /* Ensures children center vertically */
    justify-content: center; /* Centers text + icon horizontally */
    gap: 0.6rem;
    background: rgba(34, 34, 34, 0.7);
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 9999px;
    padding: 0.75rem 1.6rem;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    transition: all 0.25s ease-in-out;
    line-height: 1; /* Prevents vertical offsets */
}

.link-button:hover {
    background: rgba(68, 68, 68, 0.9); /* less transparent when hovered */
    transform: translateY(-2px);
    border-color: #ffffff; /* stronger white edge on hover */
}

.link-button i.icon {
    font-size: 1.3rem;
    color: #f0f0f0;
}

.link-button img.icon {
    width: 1.3rem;
    height: 1.3rem;
    object-fit: contain;
    display: flex; /* Treat the image as a flex item */
    align-items: center; /* Vertically center */
    justify-content: center; /* Horizontally center */
    position: relative; /* Keep inside parent flex flow */
    flex-shrink: 0;
    margin: 0;
}

.oral-presentation {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffb347; /* warm orange that matches the gold tone */
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 0rem 1rem;
    border-radius: 9999px;
    transition: all 0.3s ease-in-out;
}

.oral-presentation:hover {
    background: rgba(255, 179, 71, 0.28);
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(255, 179, 71, 0.35);
}

.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0px 20px 80px 20px;
    font-family: "Google Sans", sans-serif;
    color: #222;
}

/* Section titles */
.content h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: #0f3d73; /* marine blue accent */
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.content h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background-color: #3b82f6;
    margin: 10px auto 30px;
    border-radius: 2px;
}

.content section {
    background-color: transparent; /* or your preferred background */
}

/* Section text */
.content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    margin-bottom: 2rem;
}

/* Subheadings (e.g., Introduction, Dataset, etc.) */
.content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 1rem;
    text-align: left;
}

.content ol,
.content ul {
    font-size: 1.1rem;
    /* line-height: 1.75;
    margin: 0rem 0 1.5rem 2rem; */
    color: #333;
    /* padding-left: 0; */
    margin-left: 0;
    list-style-position: inside;
}

.content ol li,
.content ul li {
    margin-bottom: 0.75rem;
}

.content ol {
    list-style-type: decimal;
}

.content ul {
    list-style-type: disc;
}

/* Marine-colored markers */
.content ol li::marker {
    color: #1e3a8a;
    font-weight: 600;
}

/* Figures within .content only */
.content figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2.5rem auto;
    text-align: center;
}

.content figure img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    background-color: transparent;
}

.content figure img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.content figcaption {
    font-size: 0.95rem;
    color: #555;
    font-style: italic;
    line-height: 1.5;
}

/* Inline strong */
.content .toolname {
    color: #0f3d73;
    font-weight: 600;
}

.content a {
    color: #1e3a8a; /* marine/royal blue accent */
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(59, 130, 246, 0.4); /* soft underline accent */
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.content a:hover {
    color: #0f3d73; /* slightly deeper blue on hover */
    border-bottom-color: rgba(15, 61, 115, 0.9);
}

.content a:active {
    color: #0a2e5c; /* slightly darker when clicked */
    border-bottom-color: rgba(10, 46, 92, 1);
}

.container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow-x: auto; /* enable horizontal scroll on small screens */
}

.caption {
    font-size: 0.95rem;
    color: #555;
    font-style: italic;
    line-height: 1.5;
    text-align: justify;
    text-align-last: center; /* center the last line */
    width: 100%;
    max-width: 100%;
    margin: 0.5rem auto 0;
    padding: 0.5rem 0;
    display: block;
}

/* Video figure styling — aligned with .content figure */
.video-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2.5rem auto;
    text-align: center;
    max-width: 800px;
}

/* Video appearance */
.video-figure video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
    background-color: #000;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Subtle hover animation — same feel as image hover */
.video-figure video:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Caption — reuse your existing figcaption style */
.video-figure figcaption {
    font-size: 0.95rem;
    color: #555;
    font-style: italic;
    max-width: 700px;
    line-height: 1.5;
    margin-top: 0.75rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

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

.code-container {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

/* Allow hover through the pre/code layers */
.code-container pre,
.code-container code {
    pointer-events: none;
}

.code-container pre {
    background-color: #f1f3f5;
    padding: 1.2rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9rem;
    margin: 0;
}

.code-container code {
    font-family: "Fira Code", monospace;
    color: #2c3e50;
    display: block;
    white-space: pre;
}

/* Copy button styles */
.copy-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0;
    transition:
        opacity 0.2s ease,
        background-color 0.2s ease;
    pointer-events: auto; /* Button remains clickable */
    z-index: 2; /* Stay on top */
}

.copy-btn:hover {
    background-color: #0056b3;
}

.copy-btn.copied {
    background-color: #28a745;
}

.code-container:hover .copy-btn {
    opacity: 1;
}

footer {
    width: 100%;
    text-align: center;
    background-color: #0f3d73; /* suggested professional medium blue */
    color: #ffffff;
    padding: 0.6rem 0;
    font-size: 0.9rem;
}

.summary-table th,
.summary-table td {
    padding: 0.9rem 0.7rem;
    border: 1px solid #e2e8f0;
    font-weight: 600; /* make all cells bold */
    font-size: 1.3rem; /* slightly larger font */
    text-align: center;
}

.summary-table thead th {
    background: linear-gradient(90deg, #0f3d73 0%, #1e3a8a 100%);
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
}

.summary-table tbody tr:nth-child(even) {
    background-color: #f1f5f9;
}

.summary-table tbody tr:hover {
    background-color: #e0f2fe;
    transition: background-color 0.2s ease-in-out;
}

.performance-table {
    width: 100%;
    border-collapse: separate; /* change from collapse to separate */
    border-spacing: 0; /* removes gaps between cells */
    font-family: "Google Sans", sans-serif;
    font-size: 0.95rem;
    text-align: center;
    color: #1e293b;

    border: 1px solid #e2e8f0; /* outer border */
    border-radius: 10px; /* adjust radius as you like */
    overflow: hidden; /* ensures the corners stay neat */
}

.performance-table th,
.performance-table td {
    padding: 0.75rem 0.6rem;
    border: 1px solid #e2e8f0;
}

.performance-table thead th {
    background: linear-gradient(90deg, #0f3d73 0%, #1e3a8a 100%);
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
}

.performance-table tbody tr:nth-child(even) {
    background-color: #f1f5f9;
}

.performance-table tbody tr:hover {
    background-color: #e0f2fe;
    transition: background-color 0.2s ease-in-out;
}

/* Section headings like “Open-source VLMs” */
.performance-table-group {
    background-color: #e2e8f0;
    font-weight: 600;
    font-style: italic;
    color: #0f3d73;
    text-align: center;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Keep the summary and performance tables style consistent inside wrapper */
.summary-table,
.performance-table {
    min-width: 650px; /* allows table to scroll when screen < this width */
    width: 100%;
}

/* 1️⃣ Tablet breakpoint — adjust layout smoothly around medium screens */
@media (max-width: 1200px) {
    .header {
        max-width: 95%;
    }

    .authors {
        font-size: 1.2rem;
    }

    .link-buttons {
        gap: 0.8rem;
    }

    .link-button {
        padding: 0.6rem 1.3rem;
    }

    .content {
        padding: 0px 20px 80px 20px;
    }

    .content h2 {
        font-size: 1.8rem;
    }

    .content p {
        font-size: 1.05rem;
    }
}

/* 2️⃣ Phone breakpoint — stacked header elements, readable typography, full-width buttons */
@media (max-width: 800px) {
    .paper-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem 3rem;
        min-height: 320px;
    }

    .header {
        padding: 10px;
    }

    .header h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .authors {
        font-size: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .link-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .link-button {
        width: 90%;
        text-align: center;
    }

    .content {
        padding: 50px 15px;
    }

    .content h2 {
        font-size: 1.6rem;
    }

    .content p {
        font-size: 1rem;
    }

    .content figure img {
        border-radius: 8px;
    }

    .video-figure {
        margin: 1.8rem auto;
        width: 100%;
    }

    .video-wrapper {
        padding-bottom: 56.25%;
        border-radius: 8px;
    }

    .video-wrapper iframe {
        border-radius: 8px;
    }

    .content a {
        border-bottom: 1.5px solid #0f3d73;
    }

    .link-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 1rem; /* adds padding to the container edges */
        box-sizing: border-box;
    }

    .link-button {
        width: 100%;
        max-width: 400px; /* optional — keeps buttons from being too wide on large phones */
        text-align: center;
    }
}

/* 3️⃣ Extra small devices — prioritize vertical spacing, hide some minor text decorations */
@media (max-width: 500px) {
    .header h1 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .authors {
        font-size: 0.9rem;
    }

    .affiliations {
        font-size: 0.9rem;
    }

    .conference {
        font-size: 1rem;
    }

    .link-button {
        font-size: 0.9rem;
        padding: 0.6rem 1.1rem;
    }

    .content h2 {
        font-size: 1.4rem;
    }

    .content p {
        font-size: 0.95rem;
    }

    .copy-btn {
        top: 0.4rem;
        right: 0.4rem;
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }

    footer {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .link-buttons {
        padding: 0 1.2rem; /* slightly more space on very small screens */
    }

    .link-button {
        width: 100%;
        max-width: 350px;
    }
}
