/* Classic 90s Web Design CSS */

/* Body styling with classic grey background and Fira Sans Extra Condensed font */
body {
    font-family: "Fira Sans Extra Condensed", "Arial Narrow", Arial, Helvetica, sans-serif;
    background-color: #c0c0c0;
    color: #000000;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styling */
.header {
    background: linear-gradient(to bottom, #000080, #0000cd);
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #ffff00;
}

.header h1 {
    margin: 10px 0;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px #000000;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

marquee {
    background-color: #ffff00;
    color: #000000;
    padding: 5px;
    font-weight: bold;
    font-size: 1.1em;
}

/* Navigation bar - classic 90s style */
.navbar {
    background-color: #808080;
    padding: 10px;
    text-align: center;
    border-top: 2px solid #ffffff;
    border-bottom: 2px solid #000000;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

.navbar a {
    color: #ffff00;
    text-decoration: none;
    padding: 5px 10px;
    font-size: 1.1em;
}

.navbar a:hover {
    background-color: #000080;
    color: #ffffff;
}

/* Links - classic blue and purple */
a {
    color: #0000ff;
    text-decoration: underline;
}

a:visited {
    color: #800080;
}

a:hover {
    color: #ff0000;
    background-color: #ffff00;
}

/* Sidebar styling */
.sidebar {
    background-color: #d3d3d3;
    padding: 15px;
    border: 3px ridge #808080;
    margin-bottom: 20px;
}

/* Page container layout for flexible sidebar and content */
.page-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar-wrapper {
    width: 20%;
    min-width: 200px;
    background-color: #c0c0c0;
    padding: 10px;
}

.content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #c0c0c0;
}

/* Sticky sidebar for desktop view */
@media (min-width: 769px) {
    .sidebar-wrapper {
        position: sticky;
        top: 0;
        align-self: flex-start;
        max-height: 100vh;
        overflow: visible;
    }
    
    .sidebar {
        position: sticky;
        top: 0;
    }
}

.sidebar h3 {
    color: #000080;
    border-bottom: 2px solid #000080;
    padding-bottom: 5px;
    font-family: Arial, Helvetica, sans-serif;
}

.sidebar ul {
    list-style-type: square;
    padding-left: 20px;
}

.profile-photo {
    width: 100%;
    max-width: 150px;
    border: 4px solid #000000;
    margin-bottom: 15px;
    display: block;
}

/* Main content sections */
.section {
    background-color: #ffffff;
    padding: 20px;
    margin: 20px;
    border: 3px outset #808080;
}

.section h2 {
    color: #000080;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(to right, #add8e6, #ffffff);
    padding: 10px;
    border: 2px solid #000080;
    margin: -20px -20px 15px -20px;
}

.section h3 {
    color: #008000;
    font-family: Arial, Helvetica, sans-serif;
    border-bottom: 2px dotted #008000;
    padding-bottom: 5px;
}

.section hr {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, #000080, #0000cd, #000080);
    margin: 15px 0;
}

/* Tables */
table {
    border-collapse: collapse;
}

table th {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    text-align: left;
}

table td {
    vertical-align: top;
}

/* Lists */
ol, ul {
    line-height: 1.8;
}

ol li {
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background-color: #808080;
    color: #ffffff;
    padding: 10px 20px;
    margin-top: auto;
    border-top: 3px solid #000000;
    font-family: "Fira Sans Extra Condensed", Arial, Helvetica, sans-serif;
}

.footer hr {
    border: 0;
    height: 2px;
    background-color: #000000;
}

.footer a {
    color: #ffff00;
}

.footer img {
    margin: 5px;
    vertical-align: middle;
}

/* Strong and emphasis */
strong {
    color: #000080;
}

em {
    color: #008000;
}

/* Center tag support (90s style) */
center {
    text-align: center;
}

/* Responsive adjustments while maintaining 90s feel */
@media (max-width: 768px) {
    .page-container {
        flex-direction: column;
        overflow: visible;
    }
    
    .sidebar-wrapper,
    .content-wrapper {
        width: 100%;
        overflow: visible;
        max-height: none;
    }
    
    .sidebar-wrapper {
        position: static;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    marquee {
        font-size: 0.9em;
    }
}

/* Blinking text effect (classic 90s) */
.blink {
    animation: blink-animation 1s steps(5, start) infinite;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

/* Under construction GIF placeholder */
.construction {
    text-align: center;
    padding: 20px;
}

/* Paper card styling */
.paper-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f8f8;
    border: 2px ridge #808080;
    transition: background-color 0.2s;
}

.paper-card:hover {
    background-color: #eef0ff;
}

.paper-image {
    flex-shrink: 0;
    width: 200px;
}

.paper-image img {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border: 2px solid #808080;
    background-color: #e0e0e0;
}

.paper-info {
    flex: 1;
    min-width: 0;
}

.paper-title {
    font-weight: bold;
    font-size: 1.05em;
    color: #000080;
    margin-bottom: 4px;
    font-family: Arial, Helvetica, sans-serif;
}

.paper-authors {
    font-style: italic;
    color: #333;
    margin-bottom: 3px;
    font-size: 0.95em;
}

.paper-authors u {
    font-style: italic;
}

.paper-venue {
    color: #008000;
    margin-bottom: 6px;
    font-size: 0.95em;
}

.paper-links {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9em;
}

.paper-links a {
    color: #0000ff;
    text-decoration: none;
    font-weight: bold;
}

.paper-links a:hover {
    color: #ff0000;
    background-color: #ffff00;
    text-decoration: underline;
}

/* Responsive paper cards */
@media (max-width: 768px) {
    .paper-card {
        flex-direction: column;
    }

    .paper-image {
        width: 100%;
        text-align: center;
    }

    .paper-image img {
        width: 100%;
        max-width: 280px;
        height: auto;
    }
}

/* Scrollable news section */
.news-scrollable {
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #808080;
    margin-bottom: 15px;
}

.news-scrollable::-webkit-scrollbar {
    width: 16px;
}

.news-scrollable::-webkit-scrollbar-track {
    background: #d3d3d3;
    border: 1px solid #808080;
}

.news-scrollable::-webkit-scrollbar-thumb {
    background: #808080;
    border: 1px solid #000000;
}

.news-scrollable::-webkit-scrollbar-thumb:hover {
    background: #606060;
}

/* Firefox scrollbar styling */
.news-scrollable {
    scrollbar-width: auto;
    scrollbar-color: #808080 #d3d3d3;
}
