/* Dark Mode Toggle Button */
.dark-mode-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

/* Switch Container */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

/* Hide Default Checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #adadad;
  transition: 0.4s;
  border-radius: 24px;
}

/* Circle */
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* Dark Mode Active */
input:checked + .slider {
  background-color: #0e315d;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.switch-icon {
  position: relative;
  left: 28px;
  right: auto;
}

/* Change icon to moon when dark mode is active */
input:checked + .slider .switch-icon {
  position: relative;    
  left: auto;
  right: -3px;
}