:root {
  --clr-dark-text: hsla(0, 0%, 100%, 0.92);
  --clr-dark-bg: hsl(0, 0%, 7%);
}

body,
h1 {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

article img {
  max-width: 100%;
  height: auto;
}

/* Dark Theme */

body.dark {
  background-color: var(--clr-dark-bg);
} /* #9b59b6 */

body.dark .title,
body.dark .article__name {
  color: var(--clr-dark-text);
}

body.dark .ais-Highlight-highlighted,
body.dark .ais-Snippet-highlighted {
  background-color: #636363;
}

body.dark .checkbox-label .ball {
  background-color: #00517d;
}

body.dark .checkbox-label {
  background-color: var(--clr-dark-text);
}

body.dark .article__image {
  background-color: #313131;
}

body.dark article:hover .article__image {
  background-color: #454545;
}

/* End Dark Theme */

.checkbox {
  opacity: 0;
  position: absolute;
}

.checkbox-label {
  background-color: #00517d;
  width: 50px;
  height: 26px;
  border-radius: 50px;
  position: relative;
  padding: 5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fa-moon {
  color: white;
  padding-right: 2px;
}

.fa-sun {
  color: #00517d;
}
.checkbox-label .ball {
  background-color: white;
  width: 18px;
  height: 18px;
  position: absolute;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  transition: transform 0.2s linear;
}

.checkbox:checked + .checkbox-label .ball {
  transform: translateX(24px);
}

.hide-tooltip {
  display: none;
  font-size: 0.75rem;
}

.btn-tooltip {
  position: relative;
}

.button-wrapper {
  position: relative;
}

.btn-tooltip:hover + .hide-tooltip {
  display: block;
  position: absolute;
  left: 10.5rem;
  /* top: 1.25em; */
  z-index: 2;
  text-align: center;
  background-color: lightgray;
  border-radius: 5px;
}
/* kan beter */
.btn-tooltip:hover + .hide-tooltip {
  top: 4px;
  width: max-content;
  padding: 0.25em 0.5em;
  left: 40px;
}
