  /* * { border: 1px solid red !important; } */

  .section-window {
    background: white;
    border: 3px solid black;
    box-shadow: 4px 4px 0px #3B3B3B;
    font-family: 'Courier Prime', Courier, monospace; /* Closer to Chicago */
    min-width: 0;
    /* padding: 2px; */ /* Inner white border effect */ 
    margin-top: 20px;
  }

  .title-bar {
    border-bottom: 2px solid black;
    min-height: 20px;
    display: flex;
    align-items: center;
    padding: 2px;
    font-weight: bold;
    font-size: 12px;
  }

  .close-box {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    border: 2px solid black;
    border-radius: 50%;
    margin: 0px 5px 0px 5px;
    background-color: white;
  }

  .title {
    flex-grow: 1;
    text-align: center;
    letter-spacing: 1px;
  }

  .content {
    padding: 10px;
    min-height: 50px;
    text-align: left;
  }
  
/* Audio player */
  
  .audio-player-custom {
    border: 2px solid black;
    background: #fdfaf0;
    padding: 8px;
    box-shadow: 2px 2px 0px #3B3B3B;
    margin-bottom: 10px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.retro-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: #000;
    font-family: 'Courier Prime', monospace;
    font-weight: bold;
    font-size: 10px;
    background: white;
    border: 2px solid black;
    padding: 2px 8px;
    cursor: pointer;
    box-shadow: 2px 2px 0px #3B3B3B;
}

.retro-btn:active {
    box-shadow: 0px 0px 0px black;
    transform: translate(1px, 1px);
}

.track-info {
    font-size: .8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Container for the whole player */
.audio-window {
  border: 2px solid black;
  background: #fdfaf0; /* Classic grey */
  padding: 10px;
  box-shadow: inset -1px -1px #3B3B3B, inset 1px 1px #3B3B3B; /* Inset "well" look */
}

/* The Timeline Bar */
#seek-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 12px;
  background: white;
  border: 2px solid black;
  outline: none;
  margin: 10px 0;
}

/* The "Thumb" (The draggable box) */
#seek-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 20px;
  background: #d3d3d3;
  border: 2px solid black;
  box-shadow: 1px 1px 0px white;
  cursor: pointer;
}

.time-display {
  font-size: 10px;
  text-align: right;
  margin-bottom: 5px;
}
  
  /* --- General Styling --- */
body {
  background: #fdfaf0;
  color: black;
  border-color: black;
  font-family: 'Courier Prime', 'Special Elite', courier, monospace;
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0.3px 0.3px 0.5px rgba(0, 0, 0, 0.3), 
               -0.2px -0.2px 0.3px rgba(0, 0, 0, 0.2);
}

.article-title {
  text-transform: uppercase;
  text-align: left;  
  margin-top: 20px;
  margin-bottom: 5px; 
  padding-left: 25px;
  text-decoration: underline;
}

p {
  text-indent: 40px;
  margin-bottom: 15px;
}

.image-source {
  color: grey;
  text-indent: 0;
  font-size: .8rem;
}

.first-paragraph { text-indent: 0; }
.last-paragraph { margin-bottom: 0px; }
.prefix-latest-article { color: #636363; }
.latest-entry { margin-top: 40px; }

/* --- Layout Containers --- */
.main-container {
  width: 100%;
  min-height: 100vh;
}

.content-area {
  display: grid;
  /* Use 'max-content' or fixed percentages if you want more control */
  grid-template-columns: minmax(200px, 1fr) minmax(400px, 2fr) minmax(200px, 1fr); 
  column-gap: 30px;
  margin: 0 auto;
  width: 100%;
  max-width: 1400px; /* Prevents the site from getting too wide on huge monitors */
  justify-content: center;
}

.center-column {
  grid-column: 2;
  width: 100%;
  margin: 0 auto;
}

.sidebar-left, .sidebar-right {
  padding: 0 10px;
  margin-top: 30px;
}

.sidebar-left { grid-column: 1; }
.center-column { grid-column: 2; }
.sidebar-right { grid-column: 3; }

.post-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
}

.post-title {
  text-align: left;  
  margin-bottom: 5px; 
  padding-left: 25px;
  text-decoration: underline;
  text-transform: uppercase;
}

.side-column-first-title {
  display: block; 
  margin-top: 20px;
}

/* --- Box Styles --- */
.center-column-content, .left-column-content, .right-column-content {
  padding: 20px;
  text-align: left;
  border: 2px solid darkgrey;
}

.center-column-content { border-radius: 20px; }

.left-column-content {
  border-left: none;
  border-radius: 0 20px 20px 0;
}

.right-column-content {
  border-right: none;
  border-radius: 20px 0px 0px 20px;
}

.left-column-content img, .center-column-content img, .right-column-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Navigation & Buttons --- */
.navbar {
  width: 100%; 
  padding-top: 10px;
  border-bottom: 2px dashed darkgrey; 
  display: flex; 
  align-items: center;
  justify-content: center;
  position: relative; 
  box-sizing: border-box;
}

.navbar a { text-decoration: none; color: #333; font-weight: bold; }

.main-title a {
  display: inline-block;
  text-decoration: none;
  color: black;
  line-height: .8;
  margin: 0 auto;
}

.nav-links {
  list-style-type: none;
  display: flex; 
  gap: 20px; 
  position: absolute;
  right: 25px; 
}

.nav-links a { font-weight: normal; transition: font-weight 0.2s ease; }
.nav-links a:hover { font-weight: bold; color: black; }

.nav-box a {
  color: black;
}

.nav-box a:hover {
  text-decoration: underline;
  font-weight: bold;
}

#post-list li {
    margin-bottom: 10px;
    display: block;      /* Ensures margin is applied correctly */
}

.header-margin {
  margin: 50px;
}

.filter-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 25px;
    margin: 5px 0 10px 0;
    padding-left: 25px;
    flex-wrap: wrap;
}

.filter-buttons button {
    background: transparent;
    border: none;
    border-bottom: 2px dashed transparent;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-buttons button:hover { border-bottom: 2px dashed darkgrey; color: black; }
.filter-buttons button.active { border-bottom: 2px solid black; color: black; }

/* --- Catalog & Media --- */
.catalog-list {
  list-style-type: disc; 
  text-align: left;      
  padding: 25px 50px;
  border: 2px solid darkgrey;
  border-radius: 20px;
  width: 100%;
  box-sizing: border-box;
}

.catalog-list a { text-decoration: none; color: black; }
.catalog-list a:hover { font-weight: bold; }

img {
  border: 2px solid black;
/*  filter: grayscale(1) brightness(1.2) contrast(2); */
}

/* Optional: Clear the filter on hover to show the original image */
img:hover {
  filter: none;
}

.photo-carousel {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 5px; 
    padding-right: 5px;
}

.photo-carousel img {
    height: 300px; 
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 2px 2px 0px #3B3B3B;
}

.photo-carousel img:only-child {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.thumbnail {
  width: 100%;      /* Take up the full width of the sidebar content */
  max-width: 100%;   /* Don't go larger than the sidebar */
  height: auto;
  margin: 0 auto;
  box-shadow: 2px 2px 0px #3B3B3B;
}

/* --- Special Under Construction Rules --- */

/* Targets the container only on this page */
.under-construction-mode {
  min-height: 60vh; /* Gives the page enough height to actually center things */
  align-items: center; 
}

/* Targets the box inside the center column only on this page */
.under-construction-mode .center-column-content {
  text-align: center;
  border-color: #636363; /* Optional: make it look a bit different */
}

/* Forces the title to center and removes the left padding/alignment */
.under-construction-mode .article-title {
  text-align: center;
  padding-left: 0;
  margin-top: 0;
}

/* --- Animations (Desktop Only) --- */
/* @media (min-width: 769px) {
    #article-placeholder { animation: fadeIn 2s; }
    .sidebar-left { animation: fadeInLeft 1s; }
    .sidebar-right { animation: fadeInRight 1s; animation-delay: 1s; animation-fill-mode: backwards; }
} */

@keyframes fadeIn { from { opacity: 0; transform: translateY(500px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-500px); } to { opacity: 1; transform: translateX(0px); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(500px); } to { opacity: 1; transform: translateX(0px); } }

/* --- MOBILE STYLING (The Fix) --- */
@media (max-width: 600px) {
  
  .header-margin {
  margin: 0px;
}

  /* 1. Navbar Centering Fix */
  .navbar { 
    flex-direction: column; 
    padding-bottom: 20px; 
    align-items: center; /* Centers items horizontally in the column */
    text-align: center;
  }

  .main-title {
    width: 100%;
    margin: 0 auto 10px auto;
  }

  .nav-links { 
    position: static !important; /* Breaks the 'right: 25px' desktop rule */
    margin: 10px auto 0 auto !important; 
    justify-content: center; 
    width: 100%;
    padding: 0;
  }

  /* 2. Content Area & Gaps */
  .content-area {
    display: flex;
    flex-direction: column;
    /* This creates the equal gap on both left and right sides */
    padding: 0 20px; 
    width: 100%; 
    box-sizing: border-box;
    gap: 0;
  }

  .sidebar-left, .sidebar-right, .center-column, .post-container {
    grid-column: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    width: 100%;
  }

  /* Title spacing controls the 'gap' */
  .post-title, .article-title, .side-column-first-title {
    margin-top: 25px !important; 
    margin-bottom: 10px !important;
    text-align: left;
    width: 100%;
  }

  /* Reset box borders */
  .left-column-content, .right-column-content, .center-column-content {
    border: 2px solid darkgrey !important;
    padding: 15px;
    margin-bottom: 5px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Button alignment */
  .filter-buttons { 
    padding-left: 10px; 
    gap: 12px; 
    justify-content: center; /* Centers filter buttons on mobile */
  }

  /* Typography & Misc */
  p { text-indent: 20px; margin-bottom: 12px; line-height: 1.5; }
  .latest-entry { margin-top: 10px; }
  .photo-carousel img { height: 170px; }
  .thumbnail { width: 100%; height: auto; }
}

.under-construction-mode {
    justify-content: center;
    display: flex !important; /* Overrides the standard layout to keep it centered */
    flex-direction: column;
  }