/* Base Reset and Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a0010; /* Dark fallback color */
    background-image: url('CityBackground.png'); /* Updated to requested filename/extension */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffb266; /* Warm Copper/Orange */
    font-family: 'VT323', monospace;
    font-size: 24px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative; /* Needed for absolute gif positioning */
}

/* Custom Scrollbar for this page */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.5); }
::-webkit-scrollbar-thumb { background: #ffb266; border-radius: 5px; }

/* A subtle button to go back to the OS page */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #ffb266;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 15px;
    border: 2px solid #ffb266;
    border-radius: 5px;
    z-index: 1001; /* Above screen gif */
}

.back-button:hover {
    background: #ffb266;
    color: #000;
}

/* Main Layout Setup */
#main-container {
    display: flex;
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    height: 80vh; /* Takes up 80% of the screen height */
    position: relative; /* Context for children */
}

/* The Shared Pane Style (The boxes) */
#content-pane, #nav-pane {
    background-color: rgba(0, 0, 0, 0.85); /* Dark slightly transparent background */
    border: 3px solid #ffb266;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 178, 102, 0.3); /* Glow effect */
    display: flex;
    flex-direction: column;
}

/* Header bars for the boxes */
.pane-header, .pane-header-small {
    border-bottom: 3px solid #ffb266;
    padding: 10px;
    text-align: center;
    background: rgba(255, 178, 102, 0.1);
    flex-shrink: 0; /* Prevents squishing */
}

.pane-header h1 {
    font-size: 40px;
    letter-spacing: 2px;
    font-weight: normal;
}

/* ==========================================
   LEFT PANE: CONTENT
   ========================================= */
#content-pane {
    flex-grow: 1; /* Takes up the majority of the space */
    width: 65%;
    overflow: hidden; /* Contains scrollable area */
}

.scrollable-content {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Hide sections unless they have the 'active' class */
.content-section {
    display: none; 
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Text formatting inside the blog */
.content-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
    border-bottom: 1px dashed #ffb266;
    padding-bottom: 5px;
}

.content-section p {
    line-height: 1.4;
    margin-bottom: 10px;
}

/* Simple fade in when switching tabs */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   RIGHT PANE: NAVIGATION
   ========================================= */
#nav-pane {
    width: 350px;
    min-width: 300px;
    overflow-y: auto; /* New: Make entire pane scrollable */
}

.icon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 30px;
    padding: 40px;
    justify-items: center;
    align-items: center;
}

.nav-icon {
    width: 80px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    image-rendering: pixelated;
}

.nav-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 178, 102, 0.8));
}

/* Styling the red Question Marks */
.placeholder-mark {
    font-size: 100px;
    color: #ff0000; /* Bold Red like your sketch */
    font-weight: bold;
    text-shadow: 2px 2px 0px #000;
    line-height: 1;
    user-select: none;
}

/* Specific style for the bottom right about button */
.about-mark {
    cursor: pointer;
    color: #ff0000;
}

.about-mark:hover {
    color: #ffb266;
}

/* ==========================================
   SCREEN GIF
   ========================================= */
.screen-gif {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000; /* Keep on top, slightly below back button if overlapping */
    width: 100px; /* Some reasonable size */
    height: auto;
    image-rendering: pixelated; /* Crisp pixel art */
    pointer-events: none; /* Passes clicks through to elements below if needed */
}