/* --------------------
   Global Styles
--------------------- */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #0d1117;
  color: #c9d1d9;
  display: flex;
  min-height: 100vh;
}

/* --------------------
   Layout
--------------------- */
.container {
  display: flex;
  width: 100%;
}

/* Sidebar */
.sidebar {
  background-color: #161b22;
  padding: 20px;
  width: 250px;
  min-height: 100vh;
  position: fixed;
  top: 0;
}

.sidebar h2 {
  color: #58a6ff;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin: 12px 0;
}

.sidebar ul li a {
  text-decoration: none;
  color: #c9d1d9;
  display: block;
  transition: 0.3s;
}

.sidebar ul li a:hover {
  color: #58a6ff;
}

.sidebar ul li a.active {
  color: #58a6ff;
  font-weight: bold;
  border-left: 4px solid #58a6ff;
  padding-left: 8px;
}

/* Content */
.content {
  flex: 1;
  padding: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.content h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #58a6ff;
}

.content h2 {
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #f0f6fc;
}

.content p {
  font-size: 1rem;
  line-height: 1.6;
}

/* --------------------
   Buttons (Main Page)
--------------------- */
.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.btn {
  background-color: #1f6feb;
  color: white;
  padding: 15px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  background-color: #043375;
  transform: scale(1.05);
}

/* --------------------
   Topic Groups
--------------------- */
.topic-group {
  margin-bottom: 40px;
}

.topic-group h3 {
  margin-bottom: 15px;
  color: #f0f6fc;
  font-size: 20px;
  border-left: 4px solid #58a6ff;
  padding-left: 10px;
}

/* --------------------
   Image Styling
--------------------- */
section img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Output Gallery */
.output-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

.output-gallery figure {
  flex: 1 1 250px;
  text-align: center;
}

.output-gallery img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.output-gallery figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #8b949e;
}

/* --------------------
   Contributors Section
--------------------- */
#contributors {
  padding: 40px 20px;
  background-color: #0a0a0a;
  color: #fff;
  border-radius: 10px;
  margin-top: 40px;
}

#contributors h2, 
#contributors h3 {
  font-family: 'Poppins', sans-serif;
  color: #58a6ff;
}

#contributors a {
  color: #4caeff;
  margin-right: 15px;
  text-decoration: none;
}

#contributors a:hover {
  text-decoration: underline;
}

/* --------------------
   Footer
--------------------- */
footer {
  text-align: center;
  padding: 20px;
  background: #161b22;
  color: #8b949e;
  margin-top: 30px;
}
.menu-toggle{
  display: none;
}

/* --------------------
   Responsive Design
--------------------- */
@media screen and (max-width: 768px) {
  /* Stack layout */
  .container {
    flex-direction: column;
  }

  /* Sidebar turns into top navbar */
  .sidebar {
    width: 100%;
    min-height: auto;
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  /* When active, sidebar slides in */
  .sidebar.active {
    left: 0;
  }

  /* Add a hamburger button */
.menu-toggle {
  display: block;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 2000;
  background-color: #1f6feb;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
}



  /* Push content down to avoid overlap */
  .content {
    padding: 70px 20px 20px;
    max-width: 100%;
  }

  /* Gallery stacks vertically */
  .output-gallery {
    flex-direction: column;
    align-items: center;
  }
}

