/* General Body & Typography */
body {
    background-image: url('images/Blackhole01d.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #0c0a1a; /* Fallback color */
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

h1, h2 {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    border-bottom: 2px solid #4ec9b0;
    padding-bottom: 10px;
}

main, footer {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: rgba(12, 10, 26, 0.9);
    border-radius: 8px;
    text-align: center;
}

main p {
    line-height: 1.6;
    margin-bottom: 1em;
    text-align: left;
}

main ul {
    list-style-type: square;
    padding-left: 20px;
    text-align: left;
}

main ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Header & Responsive Navigation Styles */
header {
    background-color: rgba(26, 24, 42, 0.9);
    border-bottom: 1px solid #4ec9b0;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.site-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 15px 20px;
    transition: background-color 0.3s, color 0.3s;
    font-family: 'Roboto', sans-serif;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: #4ec9b0;
    color: #0c0a1a;
}

nav ul li a.active {
    background-color: #4ec9b0;
    color: #0c0a1a;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid #4ec9b0;
    color: #4ec9b0;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Media Query for Mobile Devices */
@media (max-width: 850px) {
    .site-title {
        font-size: 1.2em;
    }
    header {
        padding: 10px 20px;
    }
    nav ul {
        display: none;
        position: absolute;
        top: 67px;
        right: 0;
        width: 100%;
        background-color: rgba(26, 24, 42, 0.95);
        flex-direction: column;
        text-align: center;
        backdrop-filter: blur(5px);
    }
    nav.open ul {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
}

/* Page Specific Styles */
main h3 {
    font-family: 'Orbitron', sans-serif;
    color: #4ec9b0;
    border-bottom: none;
    font-size: 1.4em;
    margin-top: 40px;
    text-align: left;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    background-color: #1a182a;
    border: 1px solid #2a283a;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.gallery-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.gallery-item h3 {
    border-bottom: none;
    margin-top: 0;
    color: #ffffff;
    text-align: center;
}

table {
    width: 100%;
    margin-top: 40px;
    border-collapse: collapse;
    font-size: 0.9em;
}

table caption {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #4ec9b0;
}

table th, table td {
    padding: 12px 15px;
    border: 1px solid #2a283a;
    text-align: left;
}

table thead th {
    background-color: #1a182a;
    font-family: 'Orbitron', sans-serif;
}

table tbody tr:nth-child(even) {
    background-color: #110e24;
}

table tbody tr:hover {
    background-color: #2a283a;
}

.publication-item, .prediction-item {
    background-color: #1a182a;
    border: 1px solid #2a283a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.publication-item h3, .prediction-item h3 {
    margin-top: 0;
    border-bottom: none;
    color: #ffffff;
}

.publication-item .citation {
    font-style: italic;
    color: #a0a0a0;
    margin-top: -10px;
    margin-bottom: 20px;
}

.publication-item a {
    color: #4ec9b0;
    font-weight: bold;
    text-decoration: none;
}

.publication-item a:hover {
    text-decoration: underline;
}

.blog-post-list {
    text-align: left;
}

.blog-post-item {
    background-color: #1a182a;
    border: 1px solid #2a283a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.blog-post-item h3 a {
    color: #8a7de0;
    text-decoration: none;
}

.blog-post-item h3 a:hover {
    text-decoration: underline;
}

.post-date {
    font-style: italic;
    color: #a0a0a0;
    margin-top: 5px;
}

/* Glossary Styles */
dl {
    text-align: left;
}

dt {
    font-family: 'Orbitron', sans-serif;
    color: #4ec9b0;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 30px;
}

dd {
    margin-left: 0;
    margin-top: 5px;
    line-height: 1.6;
}

.download-button {
    display: inline-block;
    background-color: #4ec9b0;
    color: #0c0a1a;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.download-button:hover {
    background-color: #ffffff;
}

audio {
    width: 100%;
    margin-top: 20px;
}

.collaboration-notice {
    font-size: 0.8em;
    color: #a0a0a0;
    margin-top: 15px;
}

.inline-symbol {
    height: 1em;
    vertical-align: -0.15em;
    margin: 0 0.1em;
}

/* Link styled as a button */
.button-link {
    display: inline-block;
    background-color: #4ec9b0;
    color: #0c0a1a;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.button-link:hover {
    background-color: #80cbc4;
}

/* Constrains image width for blog posts */
.blog-image {
    max-width: 70%; /* Adjust this percentage as you like */
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 4px;
    border: 1px solid #444; /* Optional: adds a subtle border */
}
