#mainMenu {
    width: 20%;
    background-color: #000;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative; /* This is an anchor for child elements */
}

.menu-buttons-container {
    padding-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #000;
    flex-grow: 1; /* Allow this to fill available space */
}

/* --- Menu Button Styles --- */
.menu-button {
    width: 85%;
    height: 50px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../assets/images/PNG/Button03.png');
    background-size: 100% 100%;
    color: #EAEAEA;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.menu-button:hover {
    background-image: url('../assets/images/PNG/Button04.png');
    color: #FFF;
    transform: scale(1.05);
}
.menu-button.active {
    color: #FFF;
    box-shadow: 0 0 12px rgba(var(--glow-r), var(--glow-g), var(--glow-b), 0.8), 
                0 0 6px rgba(var(--glow-r), var(--glow-g), var(--glow-b), 0.5) inset;
}

/* --- Animation for newly unlocked buttons --- */
.menu-button.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.menu-button:not(.hidden) {
    animation: unlocked-in 0.5s ease-in-out forwards;
}

@keyframes unlocked-in {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Log Section Styles --- */
#logSection {
    width: 100%;
    height: 50%; /* Fixed height */
    background-color: #000;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
}

/* This is the glowing line at the top of the whole log section */
#logSection::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    animation: pulse-glow 5s ease-in-out infinite;
    z-index: 5;
}

.log-header {
    padding: 10px;
    position: relative; /* This is the anchor for the button */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#logOptionsBtn {
    background: none;
    border: none;
    color: #333; /* FIXED: A much darker, more subtle gray */
    font-size: 20px;
    cursor: pointer;
    position: absolute; /* Position it relative to the header above */
    right: 15px;      /* Give it some padding from the edge */
    transition: color 0.2s ease;
}

#logOptionsBtn:hover {
    color: #777; /* A lighter gray on hover */
}

.log-header h3 {
    margin: 0;
    font-size: 1em;
    font-weight: normal;
    color: white; /* Ensure title text is visible */
}

/* This is the glowing line below the title */
.log-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    animation: pulse-glow 5s ease-in-out infinite;
    z-index: 5;
}

#logContent {
    flex-grow: 1;
    overflow-y: auto;
    padding: 5px 10px; /* Add some padding */
}

.log-entry {
    margin-bottom: 5px;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: #90EE90; /* Default green color for readability */
}

/* Style for clickable log entries */
.log-entry.clickable {
    cursor: pointer;
    text-decoration: underline;
    font-style: italic;
    color: #AB47BC !important; /* A distinct purple color */
}

.log-entry.clickable:hover {
    filter: brightness(1.5);
}

/* Custom Scrollbar, now applied to #logContent */
#logContent::-webkit-scrollbar {
    width: 12px;
}
#logContent::-webkit-scrollbar-track {
    background: #111;
}
#logContent::-webkit-scrollbar-thumb {
    /* Use the CSS variable for your glow color */
    background-color: rgba(var(--glow-r), var(--glow-g), var(--glow-b), 0.5);
    border-radius: 6px;
    border: 3px solid #111;
}
#logContent::-webkit-scrollbar-thumb:hover {
    background-color: rgba(var(--glow-r), var(--glow-g), var(--glow-b), 0.8);
}