.dark-mode-toggle {
  position: fixed;
  left: 1rem;
  bottom: 1.5rem; /* Adjust this value to position the dark mode toggle button at the bottom */
  width: 40px; /* Set the width of the button */
  height: 40px; /* Set the height of the button */
  background-color: #0076d6;
  background-image: url('/files/sites/Book/Castlehaven/pictures/icons8-night-mode-96.png'); /* Set the background image */
  background-size: cover;
  border: none;
  border-radius: 50%; /* Make the button round */
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease;
}


.dark-mode-toggle:hover {
  background-color: #005fa3;
}

body.dark-mode .dark-mode-toggle {
  background-color: #222;
    border-color: #007bff;
}

body.dark-mode {
  background-color: #000000;
  color: #ffffff;
}

body.dark-mode nav {
  background-color: rgba(51, 51, 51, 0.9);
}

body.dark-mode nav a {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

body.dark-mode nav a:hover {
  background-color: #0076d6;
}

body.dark-mode .chapter {
  background-color: #444;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .chapter h2 {
  color: #ffffff;
}
body.dark-mode nav h3 {
  color: #0076d6;
}
body.dark-mode #currentChapter{
  background-color: #444;
  color: #ffffff;
}
body.dark-mode button#backToTop{
  background-color: #444;
  color: #0076d6;
}

body.dark-mode footer {
  background-color: #252525;
  color: #ffffff;
}
body.dark-mode footer a {
  color: #ffffffaf;
}
body.dark-mode footer a:hover {
  color: #0076d6;
  text-decoration: underline;
}
body.dark-mode #backToTopContainer{
  color: #0076d6;
}
/* Add more dark mode styles for other elements within the chapter class as needed */

/* Dark mode styles */
body.dark-mode button#backToTop {
  background-color: #444;
  color: #0076d6;
  border: #0076d6;
  border-color: #0076d6;
}

body.dark-mode button#backToTop:hover {
  background-color: #555;
  border: #0076d6;
  color: #000000;
}

body.dark-mode button#backToTop:active {
  background-color: #555;
}

body.dark-mode .slider-container label {
  background-color: #555;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 2px rgba(0,0,0,0.2);
  transition: all 0.2s ease-in-out;
}
body.dark-mode .slider-container label:hover {
  background-color: #0066cc;
  box-shadow: 0 4px 4px rgba(0,0,0,0.4);
}