      
    body {
      font-family: 'Georgia', serif;
      background-color: #fff;
      color: #222;
      margin: 0;
      padding: 0;
        overflow-x: hidden;
    }
*, *::before, *::after {
  box-sizing: border-box;
}


.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
  box-sizing: border-box;
}

    header {
      text-align: center;
      margin-bottom: 2rem;
    }

    h1 {
      font-size: 2.2rem;
      margin-bottom: 0.5rem;
    }

    .subtitle {
      font-size: 1rem;
      color: #666;
    }

    article h2 {
      font-size: 1.4rem;
      margin-top: 2rem;
      color: #444;
    }

    pre {
      background: #f4f4f4;
      padding: 1rem;
      overflow-x: auto;
      border-left: 4px solid #ccc;overflow-x: auto;
  word-wrap: normal;
  white-space: pre-wrap;


    }
      
    code {
      font-family: 'Courier New', monospace;
      font-size: 0.95rem;
    }

    footer {
      text-align: center;
      margin-top: 3rem;
      font-size: 0.9rem;
      color: #888;
    }

    html {
      scroll-behavior: smooth;
    }

    nav#index {
      background-color: #f9f9f9;
      border: 1px solid #ddd;
      padding: 1rem;
      margin-bottom: 1rem;
    }
    /*nav bar */
    .navbar {
  background-color: #2c3e50;
  color: white;
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #1abc9c;
}
/*side bar */
.main-layout {
  display: flex;
  flex-direction: row;
}

.sidebar {
  width: 250px;
  min-height: 100vh;
  background-color: #f9f9f9;
  border-right: 1px solid #ddd;
  padding: 1rem;
  position: sticky;
  top: 3.5rem;
  height: calc(100vh - 3.5rem);
  overflow-y: auto;
}

.manual-toc ul {
  list-style: none;
  padding-left: 0;
}

.manual-toc li {
  margin-bottom: 0.75rem;
}

.manual-toc a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 0.95rem;
}

.manual-toc a:hover {
  color: #1abc9c;
}

.sidebar-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #444;
}

.content-area {
  flex: 1;
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

  /* .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #ddd;
    top: 0;
  } */
.sidebar {
  width: 200px;
  height: 100vh; /* Full viewport height */
  position: fixed;
  top: 0;
  left: 0;
  background-color: #f9f9f9;
  border-right: 1px solid #ddd;
  padding: 1rem;
  overflow-y: auto; /* enables scrolling */
  z-index: 100; /* stays behind navbar */
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}
.sidebar::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

  .content-area {
    padding: 1rem;
    margin: 0;
    max-width: 100%;
     margin-left: 10px; /* same as sidebar width */
  padding: 2rem;
  max-width: 500px;
  }

  .sidebar-title {
    text-align: center;
    font-size: 1rem;
  }

  .manual-toc ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 0;
  }

  .manual-toc li {
    margin: 0;
  }

  .manual-toc a {
    font-size: 0.9rem;
  }
.next-button {
        width: 50%; /* Restrict the width to 80% of the screen */
        max-width: 100px; /* Reduced max width for mobile */
        margin: 0 auto; /* Center the button */
        font-size: 1em; /* Adjust font size for smaller screens */
    }
    .previous-button {
        width: 50%; /* Restrict the width to 80% of the screen */
        max-width: 100px; /* Reduced max width for mobile */
        margin: 0 auto; /* Center the button */
        font-size: 1em; /* Adjust font size for smaller screens */
    }


/* 📳 For small phones */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  article h2 {
    font-size: 1.2rem;
  }

  code, pre {
    font-size: 0.85rem;
  }

  /* Adjust Navbar for Mobile */
  .navbar {
    flex-direction: column;
    padding: 0.5rem 1rem;
    align-items: flex-start;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  /* Adjust Sidebar */
  .main-layout {
    display: block; /* Stack the sidebar and content vertically */
    width: 100%;
  }

  .sidebar {
    width: 100%; /* Sidebar takes full width */
    padding: 1rem;
    position: relative;
    border-right: none;
    box-shadow: none;
    margin-bottom: 1rem; /* Space between sidebar and content */
  }

  /* Adjust Content Area */
  .content-area {
    width: 100%;
    padding: 1rem;
  }

  /* Optional: If you want to hide the sidebar on very small screens */
  /* .sidebar {
    display: none;
  } */

  /* Adjust buttons or other elements for small screens */
  .next-button {
    width: 50%; /* Make the button full-width */
    padding: 12px;
    font-size: 14px;
  }
 .previous-button {
    width: 50%; /* Make the button full-width */
    padding: 12px;
    font-size: 14px;
  }
  /* Make sure the content is responsive and not fixed width */
  .container {
    padding: 1rem;
    width: 100%;
    max-width: 100%;
  }
}

/*button */
.next-button {
    padding: 12px 25px;
    background-color: #1abc9c;
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.next-button:hover {
    background-color: #16a085;
}

/*previous button */

/* Previous Button (Blue) */
.previous-button {
    padding: 12px 25px;
    background-color: #3498db; /* Blue color */
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.previous-button:hover {
    background-color: #2980b9; /* Darker blue on hover */
}
@media (min-width: 769px) {
  .main-layout {
    display: flex;
    flex-direction: row;
  }

  .sidebar {
    width: 250px;
    height: calc(100vh - 3.5rem);
    position: sticky;
    top: 3.5rem;
    border-right: 1px solid #ddd;
    border-bottom: none;
    margin-bottom: 0;
    box-shadow: none;
  }

  .content-area {
    flex: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
  }

  .container {
    max-width: 720px;
    padding: 2rem;
  }
}
   section {
      margin-bottom: 2.5rem;
    }
