/* ====== DARK MODE SWITCH ====== */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  border-radius: 24px;
  transition: 0.4s;
}

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

input:checked + .slider {
  background-color: #15730d;
}

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


/* ====== DARK MODE ====== */
body.dark {
  background-color: #1c1c1c;
  color: #f0f0f0;
}

body.dark header {
  background: #242424;
  box-shadow: none;
}

body.dark a {
  color: #9be79b;
}

body.dark .button.large {
  background-color: #1e8a16;
}

body.dark .card {
  background-color: #2b2b2b;
  color: #f0f0f0;
  box-shadow: none;
}

body.dark footer {
  background-color: #15730d;
}

body.dark p {
    color: #ffffff !important;
}
