/* Algemeen kleurenschema */
:root {
  --bg: #f9fafb;
  --fg: #111827;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --font: 'Segoe UI', Roboto, sans-serif;
}

/* Basisstijl */
body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.6;
  margin: 0;
  padding: 2rem;
  max-width: 800px;
  margin-inline: auto;
}

h1, h2, h3 {
  color: var(--accent);
  margin-top: 2rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent-hover);
}

a:hover {
  border-bottom: 1px solid var(--accent-hover);
}

/* Secties */
section {
  margin-bottom: 3rem;
  padding: 1rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.section-content {
  padding-left: 1rem;
}

/* Code & pre */
code, pre {
  background: #eee;
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
  font-family: monospace;
}

/* Logo */
.logo {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto 1rem auto;
}


/* Emoji styling */
body :not(pre) > *:not(code) {
  font-family: var(--font);
}
body {
  font-size: 100%;
}
body emoji, body img.emoji {
  font-size: 0.95em;
  vertical-align: middle;
  line-height: 1;
}

/* Font-control knoppen */
.font-controls {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin: 1.5rem auto 2rem auto;
  flex-wrap: wrap;
}

.font-controls button {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 0.3rem;
  cursor: pointer;
  transition: background 0.2s ease-in-out, transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.font-controls button:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* Fade-in animatie */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn ease-out 0.6s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .font-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .font-controls button {
    width: 100%;
    font-size: 1rem;
  }

  section {
    padding: 1rem 0.8rem;
  }
}

/* Contrastmodus */
.contrast-mode {
  --bg: #000000;
  --fg: #ffffff;
  --accent: #ffcc00;
  --accent-hover: #ffaa00;
  background-color: var(--bg);
  color: var(--fg);
}

.contrast-mode body {
  background-color: var(--bg);
  color: var(--fg);
}

.contrast-mode a {
  color: var(--accent);
  border-bottom: 2px dotted var(--accent);
}

.contrast-mode a:hover {
  border-bottom: 2px solid var(--accent-hover);
}

.contrast-mode section {
  background: #111;
  box-shadow: none;
  border: 1px solid #444;
}

.contrast-mode .font-controls button {
  background: var(--accent);
  color: black;
}

.contrast-mode .font-controls button:hover {
  background: var(--accent-hover);
}

.contrast-mode .logo {
  filter: brightness(1.2) contrast(1.2);
}

.toggle-wrapper {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

.toggle {
  position: relative;
  width: 60px;
  height: 30px;
  background: var(--accent);
  border-radius: 15px;        /* exact half de hoogte */
  overflow: hidden;           /* alles netjes binnen de bocht */
  cursor: pointer;
  transition: background 0.3s;
  display: flex;              /* voor iconen netjes plaatsen */
  align-items: center;
  justify-content: space-between;
}

.toggle .icon {
  width: 24px;
  text-align: center;
  line-height: 30px;          /* center de emoji verticaal */
  z-index: 1;
}

.toggle .switch {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  z-index: 2;
}

/* checkbox verborgen */
#contrastToggle {
  display: none;
}

/* schuif naar rechts als aangevinkt */
#contrastToggle:checked + .toggle .switch {
  transform: translateX(30px);
}


