/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 60px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 700;
}

.authors {
    margin: 20px 0;
    font-size: 1.1em;
}

.authors span {
    display: inline-block;
    margin: 0 8px;
}

.authors a {
    color: #3498db;
    text-decoration: none;
}

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

.authors sup {
    font-size: 0.8em;
}

.affiliations {
    margin: 15px 0;
    font-size: 0.95em;
    color: #666;
}

.affiliations span {
    display: inline-block;
    margin: 0 15px;
}

.note {
    margin: 10px 0;
    font-size: 0.9em;
    color: #777;
}

.conference {
    margin: 20px 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #e74c3c;
}

/* Links */
.links {
    margin: 30px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 5px 10px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
}

/* Teaser and Images */
.teaser {
    margin: 40px auto;
    max-width: 60%;
}

.teaser img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.method-image img,
.results-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.method-image {
    margin: 30px auto;
    max-width: 95%;
}

.results-image {
    margin: 30px auto;
    max-width: 80%;
}

.method-image img,
.results-image img {
    width: 100%;
    height: auto;
}

/* Application Images */
#applications .results-image {
    max-width: 80%;
    margin: 30px auto;
}

#applications .results-image img {
    width: 100%;
    height: auto;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
    align-items: start;
}

.comparison-item {
    text-align: center;
}

.comparison-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
    display: block;
}

.comparison-item .caption {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* TL;DR Box */
.tldr {
    background-color: #ecf0f1;
    padding: 20px;
    border-left: 4px solid #3498db;
    margin: 30px 0;
    border-radius: 4px;
}

/* Sections */
section {
    margin: 50px 0;
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.5em;
    margin: 30px 0 15px 0;
    color: #34495e;
}

p {
    margin: 15px 0;
    text-align: justify;
    font-size: 1.05em;
    line-height: 1.8;
}

/* Citation */
.bibtex {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    overflow-x: auto;
}

.bibtex pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.5;
}

.bibtex code {
    color: #333;
}

/* Acknowledgements */
#acknowledgements p {
    text-align: center;
    font-style: italic;
    color: #666;
}

/* Footer */
footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #999;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }
    
    .authors span {
        display: block;
        margin: 5px 0;
    }
    
    .affiliations span {
        display: block;
        margin: 5px 0;
    }
    
    .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
        text-align: center;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
