/* Classic Academic Website Style - Inspired by 1990s/early 2000s university pages */

body {
    font-family: "Times New Roman", Times, serif;
    background-color: #f5f5dc; /* Beige background */
    color: #000000;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border: 2px solid #8b4513;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

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

h1 {
    color: #8b0000; /* Dark red */
    font-size: 2.5em;
    margin-bottom: 5px;
    font-weight: bold;
    text-transform: none;
}

.subtitle {
    color: #000080; /* Navy blue */
    font-size: 1.2em;
    font-style: italic;
    margin-top: 0;
}

hr {
    border: none;
    border-top: 3px double #8b4513;
    margin: 20px 0;
}

/* Navigation */
nav {
    background-color: #e6e6fa; /* Lavender */
    padding: 10px;
    text-align: center;
    border: 1px solid #8b4513;
    margin-bottom: 25px;
    font-size: 0.95em;
}

nav a {
    color: #00008b; /* Dark blue */
    text-decoration: none;
    font-weight: bold;
    padding: 0 8px;
}

nav a:hover {
    color: #ff0000;
    text-decoration: underline;
}

/* Main Content */
main {
    margin-top: 20px;
}

section {
    margin-bottom: 35px;
}

h2 {
    color: #8b0000; /* Dark red */
    font-size: 1.8em;
    border-bottom: 2px solid #8b4513;
    padding-bottom: 5px;
    margin-top: 30px;
}

h3 {
    color: #000080; /* Navy blue */
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
}

p {
    text-align: justify;
    margin: 10px 0;
}

/* Lists */
ul, ol {
    margin: 15px 0;
    padding-left: 40px;
}

ul li, ol li {
    margin: 8px 0;
}

ul.references li {
    list-style-type: square;
    margin: 12px 0;
}

/* Links */
a {
    color: #0000ee; /* Classic hyperlink blue */
    text-decoration: underline;
}

a:visited {
    color: #551a8b; /* Classic visited link purple */
}

a:hover {
    color: #ff0000;
    background-color: #ffffe0; /* Light yellow highlight */
}

a:active {
    color: #ff0000;
}

/* External link indicator (optional old-school touch) */
a[target="_blank"]::after {
    content: " ⤴";
    font-size: 0.8em;
}

/* Strong emphasis */
strong {
    color: #8b0000;
    font-weight: bold;
}

em {
    font-style: italic;
    color: #2f4f4f;
}

/* Footer */
footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.9em;
    color: #666666;
}

footer a {
    color: #0000ee;
    text-decoration: underline;
}

/* Blink effect for important notices (classic but tasteful) */
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.3; }
}

.blink {
    animation: blink 2s infinite;
}

/* Horizontal rule variations */
hr.small {
    width: 50%;
    margin: 15px auto;
}

/* Blockquote styling */
blockquote {
    border-left: 4px solid #8b4513;
    margin: 20px 0;
    padding-left: 20px;
    font-style: italic;
    color: #2f4f4f;
    background-color: #f0f0f0;
}

/* Table styling (if needed) */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #8b4513;
}

th {
    background-color: #e6e6fa;
    padding: 8px;
    text-align: left;
    font-weight: bold;
}

td {
    padding: 8px;
}

/* Counter for the "under construction" feel without being too kitsch */
.new {
    color: #ff0000;
    font-weight: bold;
}

.updated {
    color: #008000;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 15px;
        border-width: 1px;
    }

    h1 {
        font-size: 2em;
    }

    nav {
        font-size: 0.85em;
    }

    nav a {
        display: inline-block;
        padding: 5px;
    }
}
