body {
    display: flex;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }
  
  #toggleSidebar {
    display: none; /* Hide by default */
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background-color: #333;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
  }
  
  aside {
    width: 200px;
    padding: 20px;
    background-color: #f4f4f4;
    border-right: 1px solid #ccc;
    box-sizing: border-box;
    height: 100vh;
    overflow-y: auto; /* Allow vertical scrolling in sidebar */
    transition: transform 0.3s ease;
  }
  
  aside h1 {
    font-size: 1.5em;
    margin-bottom: 1em;
  }
  
  aside ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  aside ul li {
    margin-bottom: 0.5em;
  }
  
  aside ul li a {
    text-decoration: none;
    color: #333;
  }
  
  main {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
    margin-left: 2px; /* Margin to offset the fixed sidebar */
    overflow-y: auto; /* Allow vertical scrolling in main content */
    transition: margin-left 0.3s ease;
  }
  
  main section {
    margin-bottom: 2em;
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word; /* Break long words */
  }
  
  main section h2 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    word-wrap: break-word; /* Break long words in headings */
    overflow-wrap: break-word; /* Break long words in headings */
  }
  
  code {
    white-space: pre-wrap; /* Ensure code blocks wrap */
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Media queries for responsiveness */
  @media (max-width: 768px) {
    #toggleSidebar {
      display: block; /* Show the toggle button on mobile */
    }
  
    aside {
      position: fixed;
      transform: translateX(-100%);
    }
  
    aside.open {
      transform: translateX(0);
    }
  
    main {
      margin-left: 0;
    }
  }
  