/* --- Basic page setup --- */
body {
    font-family: 'Times New Roman', serif;
    background-color: #000;
    color: #fff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* --- Main container/module --- */
.module {
    background-color: #000;
    border: 2px solid red;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
    padding: 20px;
    position: relative;
    overflow: hidden;

    /* IMPORTANT */
    margin: 0;          /* kill auto-centering */
    max-width: none;    /* kill 800px constraint */
}

/* Optional: “dripping red” effect using pseudo-elements */
.module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(255,0,0,0.2) 0px,
        rgba(255,0,0,0.2) 3px,
        transparent 3px,
        transparent 6px
    );
    pointer-events: none;
}

/* --- Sidebars --- */
.sidebar {
    border: 3px double red;
    padding: 15px;
    margin: 10px;
}

/* --- Links with glitch effect --- */
a {
    color: red;
    text-decoration: none;
    position: relative;
    transition: all 0.2s ease-in-out;
}

a:hover {
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% { text-shadow: 2px 0 red, -2px 0 blue; transform: translate(0,0); }
    20% { text-shadow: -2px -2px red, 2px 2px blue; transform: translate(-1px,1px); }
    40% { text-shadow: 2px 2px red, -2px -2px blue; transform: translate(1px,-1px); }
    60% { text-shadow: -2px 2px red, 2px -2px blue; transform: translate(-1px,1px); }
    80% { text-shadow: 2px -2px red, -2px 2px blue; transform: translate(1px,-1px); }
    100% { text-shadow: 2px 0 red, -2px 0 blue; transform: translate(0,0); }
}

/* --- CRT scanlines --- */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        rgba(0,0,0,0) 0px,
        rgba(0,0,0,0.05) 1px
    );
    pointer-events: none;
}

/* --- Glitchy background flicker --- */
@keyframes screen-flicker {
    0%, 19%, 21%, 50%, 52%, 100% { opacity: 1; }
    20%, 51% { opacity: 0.95; }
}

body {
    animation: screen-flicker 2s infinite;
}

/* --- Optional: red glow around module on hover --- */
.module:hover {
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
}

/* --- Optional: dripping effect more pronounced (experimental) --- */
.module.drip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10%;
    width: 5px;
    height: 20px;
    background: red;
    border-radius: 50%;
    animation: drip 1s infinite;
}

@keyframes drip {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

.contact-buttons {
    display: flex;          /* flexible layout */
    flex-wrap: wrap;        /* allow wrapping to next line */
    gap: 5px;               /* space between buttons */
    justify-content: flex-start; /* align buttons to left */
}

.contact-button {
    background-color: #000;
    color: red;
    border: 2px solid red;
    padding: 4px 8px;
    font-family: 'Times New Roman', serif;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    text-decoration: none;
    display: inline-block;
    font-size: 8px;
    width: 60px;          /* FIXED width */
    text-align: center;
}

.contact-button:hover {
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    color: #fff;
    animation: glitch 0.3s infinite;
}



.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.info-grid div {
    border: 1px solid red;
    padding: 10px;
    text-align: center;
    background: #000;
    box-shadow: 0 0 10px rgba(255,0,0,0.3);
}

.description-box {
    border: 2px solid red;
    padding: 15px;
    margin-top: 20px;
    background: #000;
}

.page-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

/* Sidebar */
.sidebar-nav {
    width: 180px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    margin: 6px 0;
}

.sidebar-nav a {
    display: block;
    padding: 5px;
    border: 1px solid red;
    text-align: center;
}

/* Main content */
.content-area {
    flex: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.post-header {
    text-align: center;
}

.post-meta {
    font-size: 14px;
}

.post-content {
    line-height: 1.6;
}

.post-divider {
    text-align: center;
    margin: 40px 0; /* space above & below */
}

.post-divider img {
    max-width: 100%;
    height: auto;
    pointer-events: none; /* makes it feel more decorative */
}

.page-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.sidebar-nav {
    width: 180px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    margin: 6px 0;
}

.sidebar-nav a {
    display: block;
    padding: 5px;
    border: 1px solid red;
    text-align: center;
    text-decoration: none;
    color: red;
    font-family: 'Times New Roman', serif;
    box-shadow: 0 0 10px rgba(255,0,0,0.3);
    transition: all 0.2s ease-in-out;
}

.sidebar-nav a:hover {
    color: #fff;
    box-shadow: 0 0 20px rgba(255,0,0,0.6);
    animation: glitch 0.3s infinite;
}

.content-area {
    flex: 1;
}

.site-entry {
    border: 2px solid red;
    padding: 15px;
    margin-bottom: 20px;
    background: #000;
    box-shadow: 0 0 10px rgba(255,0,0,0.3);
}

.site-entry h2 a {
    color: red;
    text-decoration: none;
}

.site-entry h2 a:hover {
    color: #fff;
    animation: glitch 0.3s infinite;
}

/* ===== CUSTOM SCROLLBAR ===== */

/* Firefox */
.resources-module {
    scrollbar-width: thin;
    scrollbar-color: red black;
}

/* Chrome / Edge / Safari */
.resources-module::-webkit-scrollbar {
    width: 8px;
}

.resources-module::-webkit-scrollbar-track {
    background: #000;
}

.resources-module::-webkit-scrollbar-thumb {
    background: red;
    box-shadow: 0 0 10px red;
}

.resources-module::-webkit-scrollbar-thumb:hover {
    background: #ff4444;
}
/* PAGE CENTERING FIX */
.page-wrap {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

/* STANDARD HUB MODULE */
.hub-module {
    width: 100%;
    max-width: 520px;
}

/* CATEGORY SPACING */
.hub-module h2 {
    border-bottom: 1px solid red;
    padding-bottom: 4px;
}

/* GRID TIGHTENING */
.hub-grid {
    margin-bottom: 25px;
}


/* HOMEPAGE LAYOUT FIX */
/* ===== HOMEPAGE 3-COLUMN FIX (FINAL) ===== */
.container {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
}

/* stop module centering inside homepage */
.container > .module {
    margin: 0;
    max-width: none;
}

/* ===== HOMEPAGE 3-COLUMN LAYOUT ===== */
.container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch; /* equal height columns */
    max-width: 1200px;
    margin: 20px auto;
}

.container > .module {
    margin: 0;
    max-width: none;
}

/* HUB BUTTON STYLING */
.hub-module button {
  background-color: #110000;
  color: #ff5555;
  border: 1px solid #ff0000;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  padding: 6px;
  cursor: pointer;
  text-shadow: 1px 1px 0 #660000;
  box-shadow: inset 0 0 6px #330000, 0 0 8px rgba(255,0,0,0.4);
  transition: all 0.2s ease;
}

/* Hover effect */
.hub-module button:hover {
  background-color: #220000;
  color: #ffaaaa;
  box-shadow: 0 0 14px rgba(255,0,0,0.7);
}

/* Click / active state */
.hub-module button:active {
  background-color: #330000;
  box-shadow: inset 0 0 10px #000;
}

/* ============================= */
/* MEDIA MODULE LAYOUT FIX       */
/* ============================= */

/* Center the media module and set max width */
.media-module {
    max-width: 520px;        /* match hub-module width */
    margin: 80px auto;       /* center module on page */
    text-align: center;
}

/* Grid for buttons */
.media-module .button-grid {
    display: grid;
    grid-template-columns: 1fr; /* one button per row */
    gap: 8px;                   /* spacing between buttons */
    margin-bottom: 25px;        /* spacing under grid */
}

/* Buttons themselves */
.media-module .button-grid button {
    width: 100%;               /* fill the grid column */
    padding: 4px;              /* same as hub buttons */
    font-size: 12px;           /* match hub-module */
    box-sizing: border-box;    /* ensures padding stays inside width */
    background-color: #110000; /* match hub-module style */
    color: #ff5555;
    border: 1px solid #ff0000;
    font-family: "Courier New", Courier, monospace;
    cursor: pointer;
    text-shadow: 1px 1px 0 #660000;
    box-shadow: inset 0 0 6px #330000, 0 0 8px rgba(255,0,0,0.4);
    transition: all 0.2s ease;
}

/* Hover effect */
.media-module .button-grid button:hover {
    background-color: #220000;
    color: #ffaaaa;
    box-shadow: 0 0 14px rgba(255,0,0,0.7);
}

/* Active / clicked state */
.media-module .button-grid button:active {
    background-color: #330000;
    box-shadow: inset 0 0 10px #000;
}

/* Optional: match hub-module headers */
.media-module h2 {
    border-bottom: 1px solid red;
    padding-bottom: 4px;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Polaroid frame — fixed size */
.polaroid {
    width: 280px;               /* fixed width — change this if you want bigger/smaller */
    height: 360px;              /* fixed height — includes photo + bottom white area for caption */
    background: #f5f5f5;
    padding: 15px 15px 50px 15px;   /* more padding at bottom for caption space */
    box-shadow: 0 4px 15px rgba(0,0,0,0.7),
                0 0 0 8px #111,
                inset 0 0 0 1px #222;
    transform: rotate(0deg);
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(135deg, #eee 0%, #ddd 100%);
    overflow: hidden;           /* important: prevents image overflow */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.polaroid:hover {
    transform: scale(1.06) rotate(2deg);
    box-shadow: 0 12px 35px rgba(200,0,0,0.35),
                0 0 0 10px #220000;
    z-index: 5;
}

/* Image container — fixed size + cropping */
.polaroid .image-wrapper {
    width: 100%;
    height: 260px;              /* this controls how tall the photo area is */
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.polaroid img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* crops the image to fill the area, keeps aspect ratio */
    object-position: center;    /* centers the crop */
    display: block;
}

/* Caption at the bottom */
.polaroid .caption {
    text-align: center;
    margin-top: 18px;
    font-family: "Courier New", Courier, monospace;
    color: #111;
    font-size: 1.05rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}
