/* Global Styles */

body {
    font-family: "Courier New", monospace;
    background-color: #000;
    color: rgba(128,255,128,0.8);
    margin: 0;
    padding: 0;
    line-height: 1.6;



}

/* Global Title Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: "Courier New", Courier, monospace;
    color: #44ff44;
    margin: 0;
    line-height: 1.2;
    text-align: center; /* Optional: Centers titles */
}

.styled-line {
    border: none;
    border-top: 2px solid #44ff44;  /* Green line */
    margin: 20px 0;  /* Adds space above and below the line */
}

.terminal {
    border: solid 3px #BBBBBB;
    border-radius: 16px;
    background-color: #131;
    background-image: radial-gradient(ellipse 1000% 100% at 50% 90%, transparent, #121);
    background-position: center;
    min-height: 100vh;
    box-shadow: inset 0 0 10em 1em rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
}

.scanline {
    width: 100%;
    height: 60px;
    position: absolute;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(56, 112, 82,0), rgba(56, 112, 82,0.1)) !important;
    z-index: 1;
    animation: scan 36s linear infinite;
}

.scanline.delay-1 {
    animation-delay: 12s; /* Starts 12s after the first one */
}

.scanline.delay-2 {
    animation-delay: 24s; /* Starts 24s after the first one */
}

@keyframes scan {
    from { transform: translateY(-10%); }
    to { transform: translateY(15000%); }
}

/* Content Layout */
.layout-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

/* Header */
.header-container {
    text-align: center;
    position: relative;
    padding: 40px 0;
    margin-bottom: 40px;
    max-width: 900px;
    margin: 0 auto;
    overflow: visible; /* Ensure the logo isn't clipped */
}

.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    position: relative;
}

.main-content {
    width: 800px;
    margin-top: 00px;
}

/* Layout container for sidebars */
.sidebar-container {
    display: flex;
    flex-direction: column;  /* Stacks sidebars vertically */
    gap: 20px;  /* Optional: space between sidebars */
    position: relative;
}

/* Sidebar */
.sidebar {
    width: 275px;
    padding: 20px;
    border: double 3px #80FF80;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    height: fit-content;
    margin-top: var(--sidebar-position, 0);  /* Custom vertical positioning for each sidebar */
    position: relative;  /* Required for positioning */
}

/* Sidebar image specific styles */
.sidebar svg, .sidebar img {
    width: 100%;
    max-width: 275px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

.sidebar h2 {
    margin-top: 0;
    text-align: center;
}

/* Header */
.header-container {
    text-align: center;
    position: relative;
    padding: 40px 0;
    margin-bottom: 40px;
}

.background-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: auto;
    z-index: 0;
    object-fit: contain;
    display: block; /* Ensure proper rendering */
}

.title {
    font-family: "Courier New", monospace;
    font-size: 3em;
    color: #44ff44;
    margin: 0;
    line-height: 1.2;
}

.subtitle {
    font-family: "Courier New", monospace;
    font-size: 1.8em;
    color: #44ff44;
    margin: 10px 0 0 0;
}

/* Document Entry */
.document-entry {
    margin: 20px 0;
    border: double 3px #80FF80;
    border-radius: 10px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
}

h2 {
    color: #44ff44;
    margin: 0 0 10px 0;
}

.author {
    font-style: italic;
    color: rgba(128,255,128,0.8);
    margin-bottom: 10px;
}

.context {
    font-size: 0.9em;
    color: rgba(128,255,128,0.6);
    margin-bottom: 15px;
}

.button-container {
    text-align: center;
}

.link, .expand-btn {
    display: inline-block;
    text-decoration: none;
    font-size: 1em;
    color: #90EE90;
    background-color: transparent;
    border: 2px solid #80FF80;
    border-radius: 5px;
    padding: 10px 15px;
    margin-top: 10px;
    transition: all 0.3s;
    cursor: pointer;
    font-family: "Courier New", monospace;
}

.link:hover, .expand-btn:hover {
    color: #131;
    background-color: #80FF80;
    text-decoration: underline;
}

.link:hover::before, .expand-btn:hover::before {
    content: "> ";
}

/* Image Container */
.image-container img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border: double 3px #80FF80;
    border-radius: 10px;
}

.exploration-logs {
    margin-top: 30px;
}

.warning-box {
    background: linear-gradient(to bottom, rgba(51, 51, 51, 0.6), rgba(34, 34, 34, 0.6)); /* Low opacity gray */
    border: solid 2px #000;
    padding: 1px 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    margin: 0px 0;
    color: #fff;
}

.warning-box h2 {
    margin: 0;
    color: red;
}

.warning-box hr {
    border: none;
    border-top: 1px solid #fff;
    margin: 10px 0;
}

/* SCP Title System */
.scp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

.scp-header .scp-title {
    font-size: 2em;
    color: #44ff44;
}

.scp-header .scp-clearance {
    font-size: 1.2em;
    color: #44ff44;
}

.scp-header .scp-containment {
    font-size: 1.2em;
    color: #ffcc00;
}

.scp-title-bar {
    border-top: 2px solid #44ff44;
    border-bottom: 2px solid #44ff44;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
}

/* Table Style */
table {
    border: 2px solid #44ff44; /* Highlighted outline for the table */
    width: 100%;
    margin-top: 20px;
    padding: 10px; /* Space between text and border */
    background-color: rgba(0, 0, 0, 0.7); /* Matches the background */
    color: rgba(128, 255, 128, 0.8); /* Text color */
    font-family: "Courier New", monospace;
    text-align: left;
    box-shadow: 0 0 10px rgba(68, 255, 68, 0.8); /* Optional glowing effect */
    table-layout: fixed;
}

table td {
    padding: 5px; /* Padding inside the table cell for text */
    border: none; /* No internal border between cells */
}

table p {
    margin: 0; /* Remove default margin on paragraphs */
    padding: 0; /* No padding inside paragraphs */
}

/* Footnotes */
.footnotes {
    margin-top: 20px;
    font-size: 0.9em;
}

.footnotes a {
    color: #44ff44;
    text-decoration: none;
}

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

/* Style for the "Back to Index" link */
.back-link {
    text-align: center;
    margin-top: 10px;
    z-index: 2;
    position: relative;
}

.back-link a {
    font-size: 0.8em; /* Smaller text */
    color: #44ff44; /* Green color */
    text-decoration: none;
    border-bottom: 1px dashed #44ff44; /* Underline effect */
}

.back-link a:hover {
    text-decoration: underline;
    color: #80ff80; /* Light green on hover */
}

.document-entry {
    margin-bottom: 15px;
    border: 1px solid #444;
    padding: 10px;
    background-color: #222;
}

.collapsible {
    font-family: "Courier New", monospace;
    background-color: #444;
    color: white;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    font-size: 16px;
    margin-bottom: 10px;
    border-radius: 5px; /* Adds rounded corners for button */
    transition: background-color 0.3s;
}

.collapsible:hover {
    background-color: #555; /* Slightly darker on hover */
}

.content {
    padding: 10px;
    background-color: #333;
    display: none; /* Make content visible by default */
}

.button-container a {
    color: #1a73e8;
    text-decoration: none;
}

.button-container a:hover {
    text-decoration: underline;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 20px;
}

.document-entry {
    margin-bottom: 15px;
    border: 1px solid #444;
    padding: 10px;
    background-color: rgba(34, 34, 34, 0.6); /* Darker, semi-transparent background */
}

.collapsible {
    background-color: rgba(68, 68, 68, 0.6); /* Darker shade of grey with transparency */
    color: white;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    font-size: 16px;
    margin-bottom: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.collapsible:hover {
    background-color: rgba(80, 80, 80, 0.8); /* Slightly darker on hover */
}

.content {
    padding: 10px;
    background-color: rgba(51, 51, 51, 0.6); /* Dark background with transparency */
    display: none; /* Keep content hidden by default */
    width: 100%;
    clear: both;
}

.button-container a {
    color: #1a73e8;
    text-decoration: none;
}

.button-container a:hover {
    text-decoration: underline;
}

.section-title {
    font-size: 34px;
    font-weight: bold;
    margin-top: 20px;
}

/* Table styling for 4x2 table with borders on interior walls only */
.table-bordered {
    width: 100%;
    border-collapse: collapse;
}

.table-bordered td, .table-bordered th {
    border-left: 1px solid #444; /* Border between columns */
    border-top: 1px solid #444; /* Border between rows */
    padding: 10px;
    text-align: left;
}

/* Remove outer borders */
.table-bordered td:first-child, .table-bordered th:first-child {
    border-left: none;
}

.table-bordered tr:first-child td {
    border-top: none;
}

.header-row {
    background-color: rgba(128, 128, 128, 0.6); /* 0.6 alpha gray */
    font-weight: bold;
}


.single-cell-table {
    width: 100%;
    border: 2px solid #44ff44; /* Green border */
    margin-top: 20px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7); /* Matches background */
    color: rgba(128, 255, 128, 0.8); /* Text color */
    font-family: "Courier New", monospace;
    text-align: center; /* Centers text */
    box-shadow: 0 0 10px rgba(68, 255, 68, 0.8); /* Optional glowing effect */
}

.single-cell-table td {
    padding: 20px; /* Add some padding inside the cell */
    border: none; /* No internal borders */
}

.emphasis-box {
    border: 2px solid #44ff44; /* Green border similar to the table */
    padding: 10px;
    background-color: rgba(128, 128, 128, 0.6); /* 0.6 opacity gray background */
    color: rgba(128, 255, 128, 0.8); /* Green text color */
    font-family: "Courier New", monospace;
    text-align: left;
    box-shadow: 0 0 10px rgba(68, 255, 68, 0.8); /* Green glowing effect */
    margin: 10px 0;
}


.sidebar-container, .sidebar-container-right {
    flex: 1;
}

.main-content {
    flex: 3;
    padding: 10px;
}

.centered-image {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.centered-image-short {
    display: block;
    margin: 0 auto;
    max-width: 50%;
    max-height: 50%;
    height: auto;
}

.audio-container {
    margin-top: 10px;
    padding: 5px;
    background-color: rgba(0, 255, 0, 0.1); /* Subtle green glow */
    border: 1px solid #00ff00; /* Green border for SCP aesthetic */
    text-align: center;
}

audio {
    width: 100%;
    max-width: 100%;
    filter: brightness(0.8) contrast(1.2); /* Retro glow effect */
}
.audio-frame {
    display: block;
    width: 100%; /* Full width to prevent overflow */
    max-width: 300px; /* Keeps it compact */
    height: 40px; /* Adjust height as needed */
    border: none;
    background: transparent;
    margin: 10px auto; /* Centers the player */
    position: relative; /* Ensure proper stacking */
    z-index: 9999; /* Ensure it's on top */
}

.footnote-number {
    color: blue;
    font-weight: bold;
}
