body {
    padding: 160px 20px 0 50px;
    background-color: white;
    color: black;
    font-family: "Courier New", Courier, monospace;
    max-width: 600px;
    margin: 20px auto;
    font-size: 16px;
    line-height: 1.5;
    
  }
  
  p, small {
    margin-left: 0;
    text-indent: 1.2em;
    line-height: 1.6;
  }

  h1 {
    font-size: 2em;
    padding-bottom: 10px;
    box-shadow: inset 0 -1px 0 0 rgba(0,0,0,0.2);

  }

  #top-nav {
    position: fixed;        /* Fixes nav relative to viewport */
    top: 40px;              /* 20px from top of window */
    right: 60px;            /* 20px from right edge */
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 8px;              /* Space between buttons */
    z-index: 1000;          /* Make sure nav is on top */
  }
  
  .nav-btn {
    background: none;       /* No background */
    border: none;           /* No border */
    padding: 0;
    font-family: "Courier New", Courier, monospace;
    font-size: 1.15rem;
    color: black;
    cursor: pointer;
    text-align: right;
    transition: opacity 0.3s ease;
  }
  
  .nav-btn:hover {
    opacity: 0.4;           /* Dim on hover */
    color: #0070f3;
    transition: color 0.3s ease, opacity 0.3s ease;
  }

  .nav-btn.active {
    font-weight: bold;
    text-decoration: underline;
    opacity: 1 !important;
    color: #007ACC;
  }

  section {
    opacity: 0;
    transition: opacity 0.5s ease;
    height: 0;
    overflow: hidden;
  }
  
  section.active {
    opacity: 1;
    height: auto; /* allow content to show */
  }

  /*BLOG SECTION*/
  .post-card {
    border: 1px solid black;
    padding: 15px;
    margin: 15px 0;
    cursor: pointer;
    background: #fafafa;
    transition: background 0.3s ease;
  }
  
  .post-card:hover {
    background: #f0f0f0;
  }
  
  .post-title {
    margin: 0 0 5px 0;
  }
  
  .post-date {
    color: gray;
    font-size: 0.85rem;
  }
  
  .post-excerpt {
    margin: 10px 0 0 0;
  }
  
  .post-content {
    margin-top: 10px;
    font-style: italic;
  }

  @media (max-width: 600px) {
    body {
      font-size: 18px;   /* bigger base font */
      padding-left: 15px; /* less left padding */
      padding-right: 15px; /* add right padding for balance */
      padding-top: 180px;
      max-width: 100%;
    }

    #top-nav {
      position: fixed;
      top: 0; /* stick to very top */
      right: 0;
      left: 0;
      display: flex;
      flex-direction: row; /*horizontal layout */
      justify-content: flex-start; /*align items from the left */
      gap: 20px; /*space between buttons */
      background: white; /* olid background so content doesn't show under nav */
      padding: 10px 15px; /*add some side padding */
      z-index: 1000;
      border-bottom: 1px solid #ddd; /* subtle separation */
      
      overflow-x: auto; /*enable horizontal scrolling */
      -webkit-overflow-scrolling: touch; /* mooth scrolling on iOS */
      scrollbar-width: thin; /*Firefox scrollbar style */
    }
  
    #top-nav::-webkit-scrollbar {
      height: 6px;
    }
    #top-nav::-webkit-scrollbar-thumb {
      background-color: rgba(0,0,0,0.2);
      border-radius: 3px;
    }
    
    .nav-btn {
      font-size: 1rem;
      padding: 6px 8px;
      text-align: center;
    }

    h1 {
      font-size: 1.8rem; /* bigger headings */
    }
  
    p, small {
      font-size: 1.1rem; /* readable paragraphs and dates */
      text-indent: 1em;
    }
  
  }