* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FONTS */
@font-face {
    font-family: "Baskerville";
    src: url(https://files.catbox.moe/4bjzjt.otf);
}

@font-face {
    font-family: "PC98"; 
    src: url(https://files.catbox.moe/i0ns2d.ttf) format('truetype');
}

.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0.5) 25%, 
        rgba(0, 0, 0, 0) 25%
    );
    background-size: 100% 6px; 
    z-index: 999999; 
    pointer-events: none; 
    animation: tv-wave 4s ease-in-out infinite alternate, tv-flicker 0.15s infinite;
}

@keyframes tv-wave {
    0% {
        transform: translateX(-1px) scaleY(1);
        filter: hue-rotate(0deg);
    }
    50% {
        transform: translateX(1px) scaleY(1.01); 
    }
    100% {
        transform: translateX(-1px) scaleY(0.99);
        filter: hue-rotate(5deg);
    }
}

@keyframes tv-flicker {
    0% { opacity: 0.45; }
    20% { opacity: 0.55; }
    40% { opacity: 0.40; }
    60% { opacity: 0.50; }
    80% { opacity: 0.60; }
    100% { opacity: 0.48; }
}

/* Core Page Reset & Background Grid Setup */
body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden; 
    background-color: #000000;
    background-image: 
        linear-gradient(to right, rgba(255, 18, 0, 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 18, 0, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Baskerville', serif; 
    color: #ffffff;
}

/* Master Grid Structure Layout */
.page-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* Left Sidebar Navigation styling profiles */
.sidebar {
    width: 220px;
    height: 100%;
    background-color: #000000;
    border-right: 3px dashed #ff1200; 
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px 15px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.sidebar-btn {
    width: 100%;
    background: transparent;
    color: #ff1200;
    border: 2px solid #ff1200;
    padding: 12px;
    font-family: inherit;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.sidebar-btn:hover {
    background-color: #ff1200;
    color: #000000;
    box-shadow: 0 0 12px rgba(255, 18, 0, 0.6);
}

/* Main content field wrapper (Vertical block grouping flow) */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 40px 60px;
    box-sizing: border-box;
    overflow-y: auto;
}

.link-me-container {
    position: absolute; /* Change to fixed if you want it to stay when scrolling */
    top: 15px;
    right: 15px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 88px;
  }

/* Container pinned to the absolute top right corner */
    .corner-badge-container {
      position: relative; 
      top: 10px;       
  right: 10px;         /* Spacing from the right edge */
       width: 88px;     
  box-sizing: border-box;   /* Ensures it stays on top of other elements */
    }

    /* Small title text styling */
    .badge-title {
      font-size: 10px;
      text-align: center;
      margin-bottom: 4px;
      color: #333;     /* Dark gray text; change color as needed */
      text-transform: lowercase;
    }

    /* Target 88x31 image styling */
    .badge-image {
      width: 88px;
      height: 31px;
      display: block;  /* Removes inline spacing gaps */
      margin-bottom: 4px;
    }

    /* Tiny scrollbox matching specifications */
    .code-scrollbox {
      width: 88px;
      height: 40px;    /* Adjust height as needed to show text lines */
      background-color: #000000; /* Black background */
      color: #FF0000;            /* Red text */
      font-size: 9px;
      border: 1px dashed #666;   /* Dashed border like the screenshot */
      box-sizing: border-box;    /* Includes border in width calculation */
      padding: 2px;
      overflow-y: scroll;        /* Enables vertical scrolling */
      white-space: pre-wrap;     /* Forces code wrapping if lines are long */
      word-break: break-all;     /* Prevents layout breaking */
    }

/* HEADER MASTER WRAPPER */
.site-header {
    position: relative;
    width: calc(100% - 120px);
    max-width: 940px;
    height: 160px; /* Locked structural baseline for the titles */
    z-index: 10;
}

/* 🔥 1. FULLY DETACHED ARTWORK LAYER */
/* You can now move, nudge, or scale this anywhere completely independently */
.art-container {
    position: absolute;
    z-index: 1; 
}

.side-png {
    width: 420px;
    height: auto;
    object-fit: contain;
}

.credit-strip {
  position: absolute;
  top: 300px;   
  left: 10px; 
  background-color: #000000;
  border: 1px solid #ff0000; 
  color: #ffffff; 
  padding: 4px 8px; 
  font-family: 'Baskerville', serif; 
  font-size: 12px;  
  pointer-events: none; 
}


.header-group {
    position: absolute;
    left: 330px; 
    top: 100px;
    display: flex;
    flex-direction: column;
    z-index: 2;
}


.site-title {
    color: #ffffff;
    font-size: 5.5rem;
    margin: 0;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
}

.site-subtitle {
    color: #ff1200;
    font-size: 1.8rem;
    margin: 5px 0 0 20px; /* Indentation alignment matching the reference design */
    font-weight: normal;
    letter-spacing: 4px;
}

.linkme-subtitle {
    color: #ff1200;
    font-size: 1.8rem;
    margin: 0 0 5px 20px; /* Indentation alignment matching the reference design */
    font-weight: normal;
    letter-spacing: 2px;
}

/* MAIN CONTENT FIELD GRID: Splits into content block and update box side-by-side */
.content-section {
    display: flex;
    gap: 40px;
    margin-top: 230px;
    align-items: flex-start;
    width: 100%;
    max-width: 940px;
}

/* Consolidated textbox element block rules */
.text-content-wrapper {
    flex: 1;
    max-width: 560px;
    margin-top: 15px;
    background: #000000;
    padding: 15px;
    border: 2px solid #ff1200;
}

/* Inline warning textual rules matching reference values */
.view-notice-text {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: bold;
    margin: 0 0 25px 0;
    text-decoration: underline;
    text-align: left;
}

.content-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Updates interface parameters box profile settings */
.updates-box {
    width: 340px;
    background-color: #000000;
    border: 2px solid #ff1200;
    padding: 15px;
    margin-top: 200px;
    box-sizing: border-box;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.updates-title {
    text-align: left;
    font-weight: bold;
    color: #ff1200;
    border-bottom: 1px solid #ff1200;
    padding-bottom: 3px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.updates-list {
    height: 120px;
    overflow-y: scroll;
    line-height: 1.4;
    padding-right: 5px;
}

.updates-list::-webkit-scrollbar { width: 6px; }
.updates-list::-webkit-scrollbar-track { background: #000; }
.updates-list::-webkit-scrollbar-thumb { background: #ff1200; }

.art-credit {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 12px;
    text-align: left;
}

.webring-container {
            padding: 20px;
            display: inline-block;
            border-radius: 4px;
        }

        /* 3 Rows x 6 Columns Grid Setup */
        .webring-grid {
            display: grid;
            grid-template-columns: repeat(6, 88px); /* 6 columns wide */
            grid-template-rows: repeat(3, 31px);    /* 3 rows tall */
            gap: 12px 2px;                         /* Spacing between buttons (Vertical Horizontal) */
        }

        /* Button Style Placeholder */
        .web-button {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 88px;
            height: 31px;
            box-sizing: border-box;
            text-decoration: none;
            font-family: monospace;
            font-size: 10px;
            font-weight: bold;
            color: #ffffff;
            background: #222222;
            border: 1px solid #444444;
            cursor: pointer;
            overflow: hidden;
        }

        /* Image Button Styling */
        .web-button img {
            width: 100%;
            height: 100%;
            object-fit: fill; /* Ensures pixel-art buttons scale correctly */
            display: block;
        }

        /* Hover Effect */
        .web-button:hover {
            border-color: #ff0055; /* Highlights red on hover */
            opacity: 0.85;
            
          
.marquee-stack-wrapper {
    width: 100%;
    max-width: 940px;
    margin-top: 40px;
    padding: 7px 0;
    display: flex;
    flex-direction: column;
    gap: 7px; /* Small gap separating each row vertically */
}

/* Base structural layout for each individual row container */
.marquee-container {
    width: 100%;
    overflow: hidden;
    display: flex;
}

/* Master horizontal movement engine channel (Rows 1 and 3) */
.marquee-container .marquee-track {
    display: flex;
    width: max-content;
    animation: crawlLeft 25s linear infinite; /* Leftwards motion crawl */
}

/* Reverse engine channel (Row 2) */
.marquee-container.reverse .marquee-track {
    animation: crawlRight 25s linear infinite; /* Rightwards motion crawl */
}

/* Holds individual arrays securely lined up side-by-side */
.marquee-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 20px;
}

/* Stamp Image Dimension scale constraints */
.marquee-group img {
    height: 50px; /* Shrunk slightly to lock 3 rows cleanly inside vertical parameters */
    width: auto;
    object-fit: contain;
    border: 1px solid rgba(255, 18, 0, 0.2);
}

/* Stops ALL three layers tracking if any row gets moused over */
.marquee-stack-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

/* 🔥 ANIMATION LOGIC A: LEFT CRAWL */
@keyframes crawlLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 🔥 ANIMATION LOGIC B: RIGHT CRAWL */
@keyframes crawlRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}
