#chapterNav {
  position: fixed;
  bottom: 20px;

  /* Center horizontally (strong method) */
  left: 50%;
  transform: translateX(-50%);

  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  font-family: Arial, sans-serif;
  z-index: 2147483647; /* Max safe value */

  box-shadow: 0 3px 12px rgba(0,0,0,0.35);

  /* Prevent container influence */
  width: auto;
  max-width: 90%;
  margin: 0 auto;
}

#chapterNav button {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 50%;
  transition: background 0.2s;
}

#chapterNav button:hover {
  background: rgba(255,255,255,0.2);
}

#chapterNav button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#chapterCounter {
  font-size: 14px;
  min-width: 60px;
  text-align: center;
}

/* Hide chapters by default (JS will show active one) */
.chapter {
  display: none;
  width:100%;
	height:*;
}