body {
    margin: 0;
    padding: 20px;
    font-family: 'Segoe UI', sans-serif;
    background: #f7f9fb;
    color: #333;
  }
  
  h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
  }
  
  .category {
    margin-bottom: 40px;
  }
  
  .category h2 {
    background: #3498db;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
  }
  
  .algo-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .algo-card {
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: 0.2s ease;
    cursor: pointer;
    flex: 1 1 180px;
    max-width: 250px;
  }
  
  .algo-card:hover {
    background: #eaf4ff;
    transform: translateY(-2px);
  }
  
  #codeBlock {
    display: none;
    margin-top: 30px;
  }
  
  #codeBlock h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  pre {
    background: #1e1e1e;
    color: #f1f1f1;
    padding: 20px;
    border-radius: 10px;
    white-space: pre-wrap;
    font-size: 0.9rem;
    max-height: 400px;
    overflow-y: auto;
  }
  