/* Custom Scrollbar to match a dark dashboard dial */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #000000; 
    border-left: 1px solid #4a0000; /* Subtle dark red separator */
}
::-webkit-scrollbar-thumb {
    background: #1c0000; 
    border: 1px solid #8b0000; /* Crisp crimson handle */
}

/* Base Page Foundations: Pitch Black & Soft Red */
body {
    background-color: #000000; /* Pure midnight black */
    color: #cc2222; /* Soft dashboard red text - clear but not blinding */
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    margin: 0;
    padding: 40px 20px;
    line-height: 1.6;
}

/* Outer Website Wrapper Box */
#wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #050000; /* Incredibly dark translucent crimson-black tint */
    border: 1px solid #990000; /* Sharp crimson frame line */
    box-shadow: 0 0 15px rgba(153, 0, 0, 0.2); /* Soft crimson dash glare */
    padding: 25px;
}

/* Header Text Area */
header {
    text-align: center;
    padding-bottom: 10px;
}

header h1 {
    font-size: 2.2em;
    margin: 0 0 5px 0;
    letter-spacing: 3px;
    color: #ff3333; /* Slightly brighter red for high priority readouts */
    text-shadow: 0 0 4px rgba(255, 51, 51, 0.4);
}

.subtitle {
    font-style: italic;
    color: #880000; /* Dimmer red for auxiliary text */
}

/* Monospace Text Divider Line */
.divider {
    text-align: center;
    color: #660000; /* Low light dividers */
    font-weight: bold;
    margin: 20px 0;
    letter-spacing: 2px;
    user-select: none; 
}

/* Responsive Split Layout Block */
.main-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

/* Sidebar Column Layout */
.sidebar {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-box {
    background: #000000;
    border: 1px solid #990000; /* Red Div Grid Style */
    padding: 15px;
}

.sidebar-box h3 {
    margin: 0 0 12px 0;
    font-size: 1em;
    color: #ff3333;
    text-align: center;
    letter-spacing: 1px;
}

/* Sidebar Navigation Styling */
.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar nav a {
    color: #cc2222;
    text-decoration: none;
    padding: 4px;
    transition: all 0.1s ease-in-out;
}

/* Indie Hover Highlight Effect - Reverses colors like an old interface */
.sidebar nav a:hover {
    background-color: #990000;
    color: #000000;
    padding-left: 8px; 
}

/* Status Zone Adjustments */
.status-zone p {
    margin: 8px 0;
    font-size: 0.95em;
}

.mock-button {
    width: 88px;
    height: 31px;
    border: 1px solid #990000;
    background: #110000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
    color: #660000;
    margin: 10px auto;
}

.small-text {
    font-size: 0.85em;
    text-align: center;
    margin: 0;
    color: #660000;
}

/* Content Area Layout */
.content-feed {
    flex: 2.5;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-feed h2 {
    margin-top: 0;
    font-size: 1.3em;
    color: #ff3333;
    border-bottom: 1px solid #440000;
    padding-bottom: 5px;
}

/* Scroll Box Section */
.updates-box {
    border: 1px dashed #990000;
    padding: 15px;
    background: #030000;
}

.scroll-container {
    max-height: 110px;
    overflow-y: scroll; 
    padding-right: 10px;
    font-size: 0.95em;
}

.update-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #220000;
    padding-bottom: 6px;
}

.update-item:last-child {
    border-bottom: none;
}

.date {
    color: #ff3333;
    font-weight: bold;
}

/* Emoticon Highlight Styling - Gives emoticons an active dashboard illumination glow */
.cute {
    color: #ff4d4d;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 77, 77, 0.7);
}

/* Footer Section styling */
footer {
    text-align: center;
    font-size: 0.9em;
    color: #660000;
}

footer a {
    color: #cc2222;
    font-weight: bold;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Blank Entry Box Framework */
.blank-entry-box {
    border: 1px solid #990000; /* Sharp crimson frame line matching your divs */
    background: #000000;       /* Deep car interior black */
    min-height: 120px;         /* Gives the frame physical height even when totally empty */
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
    transition: border-color 0.15s ease;
}

/* Optional: Gives a subtle active pulse look when you hover over a blank entry shell */
.blank-entry-box:hover {
    border-color: #ff3333;
}

/* Minimalist label inside the border frame */
.entry-meta {
    font-size: 0.85em;
    color: #660000; /* Dim red so it sits quietly in the corner */
    letter-spacing: 1px;
    user-select: none;
}
/* Styling for your uploaded profile picture */
.glitch-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 2px solid #e94560;
    

}

/* Optional responsive tweak for the profile display box */
.profile-box {
    text-align: center;
  
}

.layout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    
    /* Centering magic */
    max-width: 900px;  /* Limits how wide the website can stretch */
    margin: 0 auto;    /* Centers the entire page content horizontally */
    padding: 20px;     /* Keeps a nice safety padding on mobile screens */
}
/* Center wrapper for the entire site content */
.main-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
}

/* Base flex container layout for side-by-side split */
.layout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

/* Sidebar configuration (Left column) */
.sidebar {
    flex: 1;
    min-width: 250px;
}

/* Main Content box configuration (Right column) */
.main-content {
    flex: 2;
    min-width: 300px;
}

/* The distinct retro panel boxes seen on your homepage */
.panel-box {
    background-color: #000000; /* Pitch black panel interior */
    border: 1px dashed #7a0000; /* Dark red retro dashed border */
    padding: 20px;
    margin-bottom: 20px;
    height: 100%;
    box-sizing: border-box;
}


/* Text coloring helper classes */
.red-text {
    color: #e94560;
    font-weight: bold;
}

/* Full-screen black container covering the site on load */
.boot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', monospace;
    transition: transform 0.5s ease-in-out; /* Handles the slide when triggered */
}

/* Slide away action triggered by Javascript keypress */
.boot-overlay.triggered-slide {
    transform: translateY(-100vh);
}

/* Container for typing lines */
.boot-text-container {
    width: 80%;
    max-width: 600px;
    color: #990000;
    text-shadow: 0 0 5px #ff0000;
}

/* Individual terminal script lines */
.boot-line {
    white-space: nowrap;
    overflow: hidden;
    margin: 10px 0;
    width: 0;
    animation: typing 0.4s steps(30, end) forwards;
}

/* Delays each line so they sequence out perfectly */
.boot-line:nth-child(1) { animation-delay: 0.2s; }
.boot-line:nth-child(2) { animation-delay: 0.7s; }
.boot-line:nth-child(3) { animation-delay: 1.2s; }
.boot-line:nth-child(4) { animation-delay: 1.7s; }

/* Interactive prompt text formatting */
.boot-prompt {
    margin-top: 25px;
    color: #ff3333;
    font-weight: bold;
    min-height: 20px;
}

/* Classic terminal cursor/prompt blinking loop */
.blink-text {
    animation: terminalBlink 1s step-end infinite;
}

/* Keyframes for text execution */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes terminalBlink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
} 

@keyframes crtAmbientFlicker {
    0% {
        opacity: 0.98;
        filter: brightness(1.02);
    }
    10% {
        opacity: 1;
        filter: brightness(1);
    }
    20% {
        opacity: 0.99;
        filter: brightness(0.98);
    }
    30% {
        opacity: 1;
        filter: brightness(1.01);
    }
    40% {
        opacity: 0.98;
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        filter: brightness(0.99);
    }
    60% {
        opacity: 0.99;
        filter: brightness(1.02);
    }
    70% {
        opacity: 1;
        filter: brightness(1);
    }
    80% {
        opacity: 0.98;
        filter: brightness(0.98);
    }
    90% {
        opacity: 1;
        filter: brightness(1.01);
    }
    100% {
        opacity: 0.99;
        filter: brightness(1);
    }
}
#wrapper {
    animation: crtAmbientFlicker 0.1s infinite;
}

/* The glass screen overlay: adds scanlines and a slight vignette */
.crt-screen-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 6px 100%; /* Creates the micro-scanline grid layout */
    z-index: 9998; /* Right underneath the boot screen overlay, but above the site */
    pointer-events: none; /* Allows you to still click links through the layer */
}
/* --- CLEAN CRT SYSTEM ANIMATIONS --- */

/* Ambient Screen Flicker */
@keyframes crtAmbientFlicker {
    0% { opacity: 0.98; }
    50% { opacity: 1.00; }
    100% { opacity: 0.99; }
}

/* Boot Screen Power Off (Horizontal Collapse) */
@keyframes crtPowerOff {
    0% {
        transform: scale(1, 1);
        filter: brightness(1);
        opacity: 1;
    }
    40% {
        transform: scale(1, 0.01);
        filter: brightness(4);
        opacity: 1;
    }
    80% {
        transform: scale(0.01, 0.01);
        filter: brightness(10);
        opacity: 0.8;
    }
    100% {
        transform: scale(0, 0);
        opacity: 0;
    }
}