    body {
      font-family: 'Poppins', sans-serif;
      margin: auto;
      padding: 2rem;
      background: #f8f9fa; /* Light gray */
      color: #1f2937;
      max-width: 1100px;
    }

    header {
      text-align: center;
      padding: 2rem 0;
      background: #ffffff;
      color: #333;
      border-radius: 10px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    header img {
      width: 500px;
      height: auto;
      margin-bottom: 1rem;
    }
    
    .header-content {
      max-width: 800px;
      margin: 0 auto;
      padding: 0 1rem;
      text-align: center;
    }

    
    /* Option 1: Add margin-top to the footer */
    footer {
      margin-top: 3rem; /* Adjust the value as needed */
    }
    
    @media (max-width: 500px) {
      header img {
        max-width: 200px;
      }
    }

    h1 {
      font-size: 2.5rem;
      margin: 0;
      font-weight: 600;
    }

    input[type="text"] {
      padding: 1rem;
      width: 100%;
      max-width: 500px;
      border: 2px solid #ccc;
      border-radius: 5px;
      font-size: 1rem;
      outline: none;
      transition: all 0.3s ease-in-out;
      display: block;
      margin: 1rem auto;
      background: #ffffff;
    }

    input[type="text"]:focus {
      border-color: #888;
      box-shadow: 0 0 10px rgba(136, 136, 136, 0.5);
    }

    #categories {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 2rem;
      margin-top: 2rem;
    }

    button {
      padding: 0.75rem 1.5rem;
      border: none;
      border-radius: 5px;
      background: #e5e7eb;
      color: black;
      cursor: pointer;
      font-size: 1rem;
      font-family: 'Poppins', sans-serif;
      font-weight: 600;
      transition: background 0.3s ease-in-out;
    }

    button:hover {
      background: #ccc;
    }

    .active {
      background: #888;
      color: white;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1rem;
    }

    .card {
      border: 1px solid #ddd;
      padding: 1rem;
      border-radius: 5px;
      background: white;
      box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
      text-decoration: none;
      color: inherit;
      transition: transform 0.3s ease-in-out;
    }

    .card:hover {
      transform: scale(1.04);
    }

    .card img {
      width: 100%;
      height: auto;
      border-radius: 5px;
      margin-bottom: 0.75rem;
    }

    .card h2 {
      font-size: 1.25rem;
      color: #333;
      margin-bottom: 0.5rem;
    }

    .card p {
      font-size: 0.875rem;
      color: #666;
    }
    
    .tag {
      display: inline-block;
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
      font-size: 0.75rem;
      font-weight: 600;
      margin-right: 0.25rem;
      margin-bottom: 0.25rem;
    }

    .tag-blue {
      background-color: #d0e8ff;
      color: #005fa3;
    }
	
	.tag-orange {
      background-color: #ffe7d0;
      color: #a34400;
    }

	.tag-pink {
      background-color: #fed0ff;
      color: #9500a3;
    }

    .tag-green {
      background-color: #d4f4dd;
      color: #197a30;
    }

    .tag-red {
      background-color: #ffd6d6;
      color: #b30000;
    }
    
    /* new colours */
    .tag-yellow {
      background-color: #fff9d6;
      color: #cc8800;
    }

    .tag-purple {
      background-color: #f0e6ff;
      color: #6b2c91;
    }

    .tag-teal {
      background-color: #d0f7f4;
      color: #006b5d;
    }

    .tag-amber {
      background-color: #fff4d6;
      color: #b8860b;
    }

    .tag-coral {
      background-color: #ffe4e1;
      color: #c85250;
    }

    .tags-container {
      margin-top: 0.5rem;
    }

    .tag.selected {
      outline: 2px solid #000;
    }
    
    @keyframes pulse { /* pulse behaviour */
      0% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.05); opacity: 0.85; }
      100% { transform: scale(1); opacity: 1; }
    }
    
    .more-info-link {
      visibility: hidden;
      opacity: 0;
      margin-top: 10px;
      font-weight: bold;
      color: #0077cc;
      text-decoration: underline;
      font-size: 0.875rem;
      float: right;
      transition: opacity 0.3s ease;
    }
    
    .card:hover .more-info-link {
      visibility: visible;
      opacity: 1;
      animation: pulse 1s ease-in-out; /* pulse behaviour */

    }
    
    .more-info-link:hover {
      color: #005fa3;
    }
    
    .donation-link {
      visibility: hidden;
      opacity: 0;
      margin-top: 10px;
      font-weight: bold;
      color: #0077cc;
      text-decoration: underline;
      font-size: 0.875rem;
      float: left;
      transition: opacity 0.3s ease;
    }
    
    .card:hover .donation-link {
      visibility: visible;
      opacity: 1;
      animation: pulse 1s ease-in-out; /* pulse behaviour */

    }
    
    .donation-link:hover {
      color: #005fa3;
    }
    
    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(31, 41, 55, 0.9); /* dark semi-transparent */
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

/* overlay behaviours */
    .overlay.hidden {
      display: none;
    }

   .overlay-content {
     background: white;
     padding: 2rem;
     border-radius: 10px;
     max-width: 800px;
     width: 90%;
     max-height: 90%;
     overflow-y: auto;
     position: relative;
     box-shadow: 0 8px 16px rgba(0,0,0,0.2);
   }

    .close-button {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
    }
    


/* Container for search bar and tooltip */
.search-container {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 500px;
  margin: 1rem auto;
}

/* Info icon styling */
.info-icon {
  position: relative;
  cursor: pointer;
  font-size: 22px;
  user-select: none;
  color: #555;
  line-height: 1;
  background-color: transparent;
  transition: color 0.2s;
}

.info-icon:hover {
 
  color: #000;
}

.info-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: normal;        /* <-- critical: allows wrapping */
  max-width: 220px;           /* <-- limits tooltip width */
  width: max-content;         /* allows it to size naturally but still be capped */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 1000;
  text-align: left;           /* better for longer text */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  line-height: 1.4;
}


/* Show tooltip on hover */
.info-icon:hover::after {
  opacity: 1;
}

@media (hover: none) and (pointer: coarse) {
  .card .donation-link,
  .card .more-info-link {
    visibility: visible !important;
    opacity: 1 !important;
    animation: none !important;
  }
}



/*
.screenshot-gallery img {
  max-width: 100%;
  margin-top: 1rem;
  border-radius: 5px;
}
*/  