/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    font-family: 'Courier New', Courier, monospace;
    color: #00FF41;
    overflow: hidden; /* Keep this to hide body scrollbars */
    background-image: url('city.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: -1;
}

#matrix-canvas {
    position: fixed; /* This is the key: it stays fixed to the viewport */
    top: 0;
    left: 0;
    width: 115%;
    height: 100%;
    z-index: -1;
    animation: pan-camera 90s linear infinite alternate;
}

/* --- MODIFICATION: Make the overlay the scrollable element --- */
.content-overlay {
    height: 100vh; /* It's exactly the height of the screen */
    width: 100vw;  /* It's exactly the width of the screen */
    overflow-y: auto; /* IMPORTANT: If content is taller, show a vertical scrollbar */
    padding: 20px;
    position: relative;
    z-index: 1;
}

#menu-toggle {
    position: fixed; /* Stays in place when scrolling */
    top: 20px;
    left: 20px;
    width: 40px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000; /* Ensures it's on top of everything */
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

#menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #FF1D8E; /* Pink lines */
    transition: all 0.3s ease-in-out;
}

/* The Side Menu Panel */
#side-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh; /* Full screen height */
    width: 300px;  /* Width of the menu */
    background-color: rgba(5, 0, 5, 0.9); /* Very dark, semi-transparent purple/black */
    border-right: 2px solid #FF1D8E; /* Pink accent border */
    z-index: 999; /* Just below the hamburger button */
    
    /* This is the key: Hide it off-screen to the left by default */
    transform: translateX(-100%);
    
    /* This makes the slide-in and slide-out smooth */
    transition: transform 0.4s ease-in-out;
    
    padding: 80px 30px 30px 30px; /* Top padding to leave space for the button */
}

/* The "Open" State for the Menu */
#side-menu.menu-open {
    /* When this class is added, move the menu back on-screen */
    transform: translateX(0);
}

/* Styling the links inside the menu */
#side-menu ul {
    list-style: none; /* Remove bullet points */
}

#side-menu ul li {
    margin-bottom: 25px; /* Space between menu items */
}

#side-menu ul li a {
    color: #00FF41; /* Green link text */
    text-decoration: none;
    font-size: 1.5rem;
    letter-spacing: 1px;
    transition: color 0.3s, letter-spacing 0.3s;
}

#side-menu ul li a:hover {
    color: #FFA500; /* Orange on hover */
    letter-spacing: 3px;
}


header {
    text-align: center;
    padding-bottom: 50px; /* Add space between header and first post */
}

h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    border: 3px solid #FF1D8E;
    padding: 10px 20px;
    margin-bottom: 20px;
    color: #FF1D8E;
    display: inline-block; /* Prevents border from stretching full width */
}

p {
    font-size: 1.2rem;
    color: #FFA500;
    letter-spacing: 2px;
}

header p::after {
    content: '_';
    animation: blink 1s step-end infinite;
}

/* --- NEW STYLES for the blog posts --- */
.post-container {
    max-width: 800px; /* Constrain the width of posts for readability */
    margin: 0 auto;   /* Center the post container */
}

.post {
    border: 2px solid rgba(0, 255, 65, 0.4); /* Faded green border */
    padding: 25px;
    margin-bottom: 50px; /* Space between posts */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
}

.post h2 {
    color: #FF1D8E; /* Pink for post titles */
    margin-bottom: 15px;
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.post p {
    color: #00FF41; /* Green for post body text */
    font-size: 1.1rem;
    line-height: 1.6;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.post-link {
    color: #FFA500; /* Orange for links */
    text-decoration: none;
    border: 1px solid #FFA500;
    padding: 8px 12px;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s;
}

.post-link:hover {
    background-color: #FFA500;
    color: #000;
}


/* Animation definitions (unchanged) */
@keyframes blink {
    50% { opacity: 0; }
}
@keyframes pan-camera {
    from { transform: translateX(0%); }
    to { transform: translateX(-15%); }

    
}