/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    font-family: sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    padding: 20px;
    font-size: 18px;
}

.cadmium-text {
    color: #9744B8;
    font-weight: bold;
}

ul {
    padding-left: 25px; /* Indents the entire list */
}

li {
    margin-top: 12px; /* Adds space between each bullet point */
    margin-bottom: 12px; /* Adds space between each bullet point */
}

code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f0f0f0;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.9em;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 40px;
}

/* Header styles */
.paper-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.paper-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.3;
    color: #682F7F;
}

.authors-section {
    margin-top: 20px;
}

.authors {
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.5;
}

.author {
    display: inline-block;
    margin: 0 15px 5px 0;
    white-space: nowrap;
}

.author:not(:last-child)::after {
    content: " ";
    margin-left: 10px;
}

.author sup {
    font-size: 18px;
    color: #666;
}

.affiliations {
    margin: 20px 0;
    font-size: 18px;
    line-height: 1.4;
    color: #555;
}

.affiliation {
    display: inline-block;
    margin: 0 20px 5px 0;
}

.contact {
    margin-top: 15px;
    font-size: 18px;
    color: #666;
}

.email {
    display: inline-block;
    margin: 0 15px 5px 0;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.footnote {
    font-size: 18px;
    color: #666;
    margin-top: 10px;
}

.figure-title {
    font-size: 28px;
    margin: 40px 0 20px;
    color: #682F7F;
    text-align: center;
}

/* Links section */
.links-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.link-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f8f9fa;
    /* border: 2px solid #e9ecef; */
    border-radius: 25px;
    text-decoration: none;
    color: #495057;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 160px;
    justify-content: center;
    font-size: 18px;
    color: #9744B8;
    background: #F7F0F9;
}

.link-button:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background: #ECDCF2;
}

.link-button.paper-button {
    background: #fff3cd;
    color: #856404;
}

.link-button.paper-button:hover {
    background: #ffeaa7;
}


.button-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Abstract section */
.abstract-section {
    margin: 40px 0;
}

.abstract-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #682F7F;
    text-align: center;
}

.abstract-section p {
    font-size: 18px;
    line-height: 1.7;
    text-align: justify;
}

/* Figures section */
.figures-section {
    margin: 40px 0;
}

.figure {
    margin: 100px 20px;
    text-align: center;
}

.figure-image {
    max-width: 100%;
    margin-bottom: 15px;
}

.figure-caption {
    font-size: 18px;
    line-height: 1.5;
    color: #555;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.figure-caption strong {
    color: #2c3e50;
}

.figure-caption em {
    font-style: italic;
}

/* BibTeX section */
.bibtex-section {
    margin: 60px 0 20px;
}

.code-block {
    position: relative;
    background: #f6f6f6; /* soft gray */
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 18px 20px 20px 20px;
    overflow: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.code-block pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    font-size: 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #ffffff;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.05s ease;
}

.copy-btn:hover {
    background: #f3f4f6;
}

.copy-btn:active {
    transform: translateY(1px);
}

.copy-btn.copied {
    background: #2ea043;
    border-color: #2ea043;
    color: white;
}

/* Author links styling */
.authors a {
    color: #9744B8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.authors a:hover {
    color: #9744B8;
    text-decoration: underline;
}

/* Logos section */
.logos-section {
    margin: 60px 0 40px 0;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.logo-image:hover {
    filter: grayscale(0%);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    .paper-title {
        font-size: 28px;
    }
    
    .authors {
        font-size: 18px;
    }
    
    .author {
        margin: 0 10px 8px 0;
    }
    
    .affiliation {
        margin: 0 10px 8px 0;
        font-size: 16px;
    }
    
    .links-section {
        flex-direction: column;
        align-items: center;
    }
    
    .link-button {
        width: 100%;
        max-width: 250px;
    }
    
    .abstract-section p {
        font-size: 18px;
    }
    
    .figure-caption {
        padding: 0 10px;
        font-size: 16px;
    }
    
    .contact {
        font-size: 16px;
    }
    
    .logos-container {
        gap: 20px;
    }
    
    .logo-image {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .paper-title {
        font-size: 24px;
    }
    
    .authors {
        font-size: 16px;
    }
    
    .abstract-section p {
        font-size: 16px;
    }
    
    .figure-caption {
        font-size: 14px;
    }
    
    .affiliations {
        font-size: 14px;
    }
    
    .contact {
        font-size: 14px;
    }
    
    .logos-container {
        gap: 15px;
    }
    
    .logo-image {
        height: 40px;
    }
}