body {
  margin: 0;
  display: flex;
  height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #111;
  color: #eee;
  overflow: hidden;
}

#sidebar {
  width: 320px;
  background-color: #1a1a1a;
  border-right: 1px solid #333;
  display: flex;
  flex-direction: column; /* Stacks items vertically */
  padding: 20px;
  box-sizing: border-box;
  height: 100vh;
}

#lesson-area {
  flex: 1 1 auto; /* take remaining space and allow shrink */
  display: flex;
  flex-direction: column;
  min-height: 0; /* allow the flex child to shrink so overflow works */
  overflow: auto; /* enable scrolling when content overflows */
}

#attribution {
  font-size: 10px;
  color: #666;
  border-top: 1px solid #333;
  padding-top: 15px;
  margin-top: auto; /* Pushes the attribution to the absolute bottom of the sidebar */
  line-height: 1.4;
}

/* Ensure no stray list styles are appearing */
#sidebar * {
  list-style: none;
}


#terminal-container {
  flex-grow: 1;
  background: #000;
  height: 100vh; /* Ensure it spans the full viewport height */
  display: flex;
  flex-direction: column;
}

#terminal {
  flex-grow: 1;
  width: 100%;
  height: 100%; /* Force the terminal div to match the container */
  padding: 10px; /* Optional: gives the text some breathing room */
}



button {
  background-color: #32d74b;
  color: black;
  border: none;
  padding: 12px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  width: auto;
  transition: background-color 350ms ease-in-out, color 350ms ease-in-out, transform 120ms ease;
}
.boot-btn{
  width: 100%;
}
button:hover {
  background-color: #28b53f;
}

button:active { transform: translateY(1px); }

/* Controls row: place prev/next on same line with 5px gap and 1:2 sizing */
#controls {
  display: flex;
  gap: 10px; /* 5px margin between buttons */
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
  align-items: center;
}

#sidebar-toolbar {
  border-top: 1px solid #333;
  padding-top: 12px;
}

#controls button {
  width: auto; /* allow flex to size */
  white-space: nowrap;
}

/* Quick jump controls */
#quick-jump select {
  background: #222;
  color: #eee;
  border: 1px solid #333;
  padding: 8px;
  border-radius: 6px;
  margin-top: 10px;
  margin-bottom: 10px;
}
#jump-btn {
  background-color: #2fa84f;
  padding: 8px 10px;
  border-radius: 6px;
  color: #000;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 10px;
}
#jump-btn:hover { background-color: #28b53f; }

#prev-btn {
  flex: 0 0 auto; /* 1/3 of the row (relative to next) */
  background-color: transparent; /* transparent/dark grey */
  color: #fff;
  border: none;
  padding: 12px 10px;
}

#prev-btn:hover { background-color: rgba(20,20,20,0.8); }
#next-btn {
  flex: 1;
  text-align: center;
}

/* Home button style (small, subtle) */
.home-btn {
  background: transparent;
  color: #eee;
  border: 1px solid transparent;
  padding: 6px 10px;
  border-radius: 6px;
  margin: 6px 0 12px 0;
  cursor: pointer;
}
.home-btn:hover { background: rgba(255,255,255,0.03); border-color: #333; }

