/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

p {
    font-size: 18px;
}

body {
    font-family: "Titillium Web", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    font-weight: 300;
    font-size: 18px;
    padding-top: 20px;
    margin-left: auto;
    margin-right: auto;
    width: 900px;
}

.container {
    margin: 0 auto;
    padding-top: 20px;
    text-align: center;
    background: white;
}

h1 {
    font-size: 44px;
    color: #000;
    line-height: 120%;
}

.authors {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.author-name {
    color: #0073e6;
    text-decoration: none;
    font-weight: bold;
}

.affiliations {
    font-style: italic;
    color: #444;
    margin-top: 10px;
}

.image-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.Overview {
	text-align: left;
	margin: 24px 0;
}

.diagram {
    width: 45%;
    max-width: 400px;
    border-radius: 8px;
}

.abstract p {
    text-align: justify;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    margin-top: 20px;
    margin-bottom: 50px;
}

/* New section styles */
.source-code-section {
    margin-top: 50px;
    padding: 20px 0;
}

.source-code-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
}

.source-link {
    color: #2962b5;
    text-decoration: none;
}

.source-link:hover {
    text-decoration: underline;
}

.video-container {
    margin: 30px auto;
    max-width: 800px;
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

.video-caption {
    margin-top: 10px;
    font-style: italic;
    color: #666;
}

.benchmarks-section {
    margin-top: 50px;
    padding: 20px 0;
    margin-bottom: 30px;
}

.benchmarks-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
}

.benchmarks-section p {
    text-align: justify;
    color: #333;
    font-size: 20px;
}

.benchmark-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin: 0 auto;
    margin-bottom: 50px;
    max-width: 1000px;
    margin-top: 50px;
}

table {
    width: auto;
    /* Shrinks to content */
    max-width: 90%;
    /* Prevents it from being too wide */
    margin: 0 auto;
    /* Centers the table */
    border-collapse: collapse;
    table-layout: fixed;
    /* Ensures uniform column widths */
}

th,
td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    word-wrap: break-word;
    white-space: normal;
    /* Allows wrapping */
}

th {
    max-width: 120px;
    /* Limits column width */
    overflow-wrap: break-word;
    /* Ensures long words break */
}

.highlight {
    color: #0000ff;
    font-weight: bold;
}

.model-family {
    background-color: #f0f0f0;
}

.benchmark-grid-big {
    display: flex;
    flex-direction: row;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin: 0 auto;
    margin-top: 80px;
    max-width: 1100px;
    justify-content: center;
}

.benchmark-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benchmark-graph {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

.graph-label {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.benchmark-description {
    margin: 40px auto;
    max-width: 800px;
    text-align: justify;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Interpretable Features Section */
.interpretable-features-section {
    margin-top: 50px;
    padding: 20px 0;
}

.interpretable-features-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.features-grid {
    max-width: 900px;
    margin: 0 auto;
}

.features-row {
    margin-bottom: 30px;
}

.feature-diagrams {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.feature-img {
    max-width: 45%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

.feature-graph {
    text-align: center;
}

.feature-graph img {
    max-width: 90%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

.scatter-plots {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.scatter-img {
    max-width: 30%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

.heatmaps {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.heatmap-img {
    max-width: 45%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

.features-description {
    max-width: 800px;
    margin: 40px auto;
    text-align: justify;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Model Variants Section */
.model-variants-section {
    margin-top: 50px;
    padding: 20px 0;
}

.model-variants-section h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.variants-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.variant-graph {
    flex: 1;
}

.variant-img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

.variants-description {
    max-width: 800px;
    margin: 40px auto;
    text-align: justify;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Divider */
.divider {
    margin: 50px auto;
    height: 1px;
    max-width: 800px;
    /* background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0)
    ); */
}

/* Paper Section */
.paper-section {
    margin-top: 50px;
    padding: 20px 0;
}

.paper-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

.paper-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.paper-preview {
    flex: 0 0 60%;
    text-align: center;
}

.paper-pages {
    margin-bottom: 20px;
}

.paper-img {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.paper-download {
    color: #2962b5;
    text-decoration: none;
    font-size: 18px;
}

.paper-download:hover {
    text-decoration: underline;
}

.paper-citation {
    flex: 0 0 35%;
    text-align: left;
    padding: 20px;
}

.paper-citation h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.authors-citation {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

.paper-title-citation {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

@media only screen and (max-width: 1500px) {
	/* Styles for tablets and smaller screens */
	.benchmark-grid-big {
		display: block;
		width: 100%;
		overflow-x: auto;
	}
}

@media only screen and (max-width: 1024px) {
	/* Styles for tablets and smaller screens */
	body {
		max-width: 600px;
	}
}

@media only screen and (max-width: 640px) {
	/* Styles for mobile phones */
	body {
		max-width: 100%;
	}
	.container {
		margin: 14px;
	}
	.authors {
		flex-wrap: wrap;
	}
	.image-container img {
		width: 100%;
	}
}
