/* General Styling */

body {
  background: #fdfaf0;
  color: black;
  border-color: black;
  font-family: 'Courier Prime', 'Special Elite', courier, monospace;
  text-align: center;
  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-bottom: 5px; 
  padding-left: 25px;
  text-decoration: underline;
}

p {
  text-indent: 40px;
  margin-bottom: 15px;
}

.latest-entry {
  margin-top: 40px;
}

@media (max-width: 600px) {
.latest-entry {
  margin-top: 10px;
}
    }

.first-paragraph {
  text-indent: 0;
}

.last-paragraph {
  margin-bottom: 0px;
}

/* This animation will only run on screens larger than 768px */
@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); }
}

@media (max-width: 600px) {
  p {
    text-indent: 20px; /* Cut the indent in half */
    margin-bottom: 12px;
    line-height: 1.5; /* Adds a bit of breathing room between lines */
  }
}

/* Header */
.navbar {
  width: 100%; 
  padding: 0px 0px; 
  padding-top: 10px;
  border-bottom: 2px dashed darkgrey; 
  display: flex; 
  align-items: center; 
  justify-content: center; /* This centers the title */
  position: relative;      /* This allows us to pin the links to the right */
  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;
  text-align: center;
}

.nav-links {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex; 
  gap: 20px; 
  position: absolute;
  right: 25px; 
}

.nav-links a {
  font-weight: normal; 
  transition: font-weight 0.2s ease; /* Optional: makes it feel smoother */
}

.nav-links a:hover {
  font-weight: bold;
  color: black;
}

@media (max-width: 600px) {
  /* ... keep your existing p and .content-area styles ... */

  .navbar {
    flex-direction: column; /* Stack title and links vertically */
    padding-bottom: 25px;        /* Add some breathing room */
    padding-top: 0px; 
    
  }

  .nav-links {
    position: static;       /* Undo the absolute positioning */
    margin-top: 0px;       /* Space between title and links */
    justify-content: center; /* Center the links horizontally */
    right: auto;            /* Reset the right pin */
  }
  
  .main-title a {
    margin-bottom: 0;
  }
}

/* Container: Remove centering and match your title's left padding */
.filter-buttons {
    display: flex;
    justify-content: flex-start; /* Align to the left */
    gap: 25px;                   /* Matches your .nav-links gap */
    margin: 5px 0 10px 0;
    padding-left: 25px;          /* Matches your .post-title padding-left */
    flex-wrap: wrap;
}

/* Individual Button Styling */
.filter-buttons button {
    background: transparent;
    border: none;
    border-bottom: 2px dashed transparent;
    padding: 0px 0; /* Keep top/bottom padding, zero out the sides */
    
    font-family: 'Courier Prime', 'Special Elite', courier, monospace;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: left;
}

/* Hover and Active states */
.filter-buttons button:hover {
    border-bottom: 2px dashed darkgrey;
    color: black;
}

.filter-buttons button.active {
    border-bottom: 2px solid black;
    color: black;
}

/* Mobile: Ensure the left alignment stays consistent */
@media (max-width: 600px) {
    .filter-buttons {
        padding-left: 25px; /* Keeps it lined up with your mobile content */
        gap: 15px;
    }
}

/* Content area styling. Grid, spacing, etc. */
.main-container {
  width: 100%;
  min-height: 100vh;
}

.content-area {
    display: grid;
  /* This creates three columns. 
     1fr means 'one fraction' of the remaining space. 
     The middle is 2fr (50%), and the sides are 1fr (25%) each. */
  grid-template-columns: 1fr 2fr 1fr;
}

/* Ensure the center column takes the middle spot */
.center-column {
  grid-column: 2;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 10px;
  padding-right: 10px;
}

.sidebar-left, .sidebar-right {
  flex: 1; /* 25% each */
  padding-left: 10px;
  padding-right: 10px;
}

.sidebar-left {
  grid-column: 1;
}

.sidebar-right {
  grid-column: 3;
}

.post-container {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  max-width: 800px;
}

.post-title {
  text-align:left;  
  margin-bottom: 5px; 
  padding-left: 25px;
  text-decoration: underline;
}

.side-column-first-title {
  display: block; 
  text-align: left;   
  margin-top: 0;
  margin-bottom: 5px;  
  padding-left: 25px;
  padding-top: 125px; 
  text-decoration: underline;
}

@media (max-width: 600px) {
  .side-column-first-title {
    padding-top: 20px;
  }
}

.center-column-content {
  padding: 20px;
  border: 2px solid darkgrey;
  border-radius: 20px;
  text-align: left;
}

.left-column-content {
  padding: 20px;
  text-align: left;
  border: 2px solid darkgrey;
  border-left: none; /* Removes the left side */
  border-radius: 0 20px 20px 0; /* Top-left, Top-right, Bottom-right, Bottom-left */
}

.right-column-content {
  padding: 20px;
  text-align: left;
  border: 2px solid darkgrey;
  border-right: none; /* Removes the left side */
  border-radius: 20px 0px 0px 20px; /* Top-left, Top-right, Bottom-right, Bottom-left */
}

.left-column-content img,
.center-column-content img,
.right-column-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px; /* Optional: gives the image slightly rounded corners too */
}

@media (max-width: 600px) {
  .content-area {
    padding: 0 15px; /* Slightly tighter margins to save space */
  }

  .center-post-content {
    padding: 15px;
  }

  .content-area {
    display: flex;
    flex-direction: column; /* Stacks sidebars under the center content */
    gap: 20px; /* Adds space between the stacked boxes */
  }

  .center-column {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  /* Optional: If you want to hide sidebars on mobile instead of stacking */
  /* .sidebar-left, .sidebar-right {
    display: none;
  } 
  */

  /* Reset borders for stacked layout so they don't look "cut off" */
  .left-column-content, .right-column-content {
    border: 2px solid darkgrey;
    border-radius: 20px;
  }
}

/* Catalog Specific Styling */
.catalog-page {
  margin-top: 60px;
}

.catalog-list {
  
  /* Existing styles below */
  list-style-type: disc; 
  text-align: left;      
  padding: 25px 50px;
  border: 2px solid darkgrey;
  border-radius: 20px;
}

.catalog-list li {
  margin-bottom: 8px;    /* Space between catalog items */
}

.catalog-list a {
  text-decoration: none;
  color: black;
}

.catalog-list a:hover {
  font-weight: bold;
}

/* Photo Carousel */
.photo-carousel {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    max-width: 100%;
    border-radius: 10px;
}

.photo-carousel img {
    height: 300px; 
    width: auto;   
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 600px) {

  .photo-carousel img {
    height: 170px;
  }
}