:root {
  /* Kleuren */
  --primary-color: hsl(166, 71%, 21%);
  --primary-color-hover: hsl(165, 88%, 20%);
  --color-text-primary: hsl(188, 80%, 12%);
  --color-border: hsl(208, 6%, 57%);
  --color-background-color: hsl(208, 0%, 73%);
  --color-danger: hsl(0, 47%, 38%);
  --secondary-background-color: hsl(0, 0%, 96%);

  /* Typografie */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;

  /* --- Spacing Styleguide --- */
  --space-xs: 0.5rem; /* 8px */
  --space-s: 1rem; /* 16px */
  --space-m: 1.5rem; /* 24px */
  --space-xm: 1.875rem; /* 30px */
  --space-l: 2.5rem; /* 40px */
  --space-xl: 4rem; /* 64px */
}

/* GLOBAL */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
}
body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-background-white);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  padding-bottom: var(--space-l);
  flex: 1;
}
ul {
  list-style: none;
  &:focus {
    outline: 3px solid var(--color-border);
    border-radius: 20px;
  }
}

a {
  text-decoration: none;
  color: inherit;
  --font-body: "Open Sans", sans-serif;
  &:focus {
    outline: 3px solid var(--color-border);
    border-radius: 20px;
  }
}

img {
  max-width: 100%;
  display: block;
}

nav {
  margin-bottom: var(--space-s);
}

/* TYPOGRAFIE */
h1,
h2,
h3,
h4,
.logo,
legend {
  font-family: var(--font-heading);
  color: var(--color-text-primary);
}

p,
label,
button {
  font-family: var(--font-body);
}
h1 {
  font-size: 1.5rem; /* 24px */
  margin-bottom: var(--space-xs);
}

h2,
h3,
legend {
  font-size: 1, 125; /* 18px */
  font-weight: 700;
  margin-bottom: var(--space-s);
}

p {
  color: var(--color-text-primary);
  font-size: 0, 875rem; /* 14px */
  font-family: var(--font-body);
}

.column.text {
  display: flex;
  flex-direction: column;
}

/* card */

.container {
  border: 1px solid var(--color-border);
  display: block;

  border-radius: 12px;
  margin-bottom: var(--space-l);
  @media (min-width: 570px) {
    min-width: 500px !important;

    justify-content: center;
  }
}

/* einde card */

/* Inputs */

input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--color-border);
  outline-offset: 3px;
}
input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1.375rem;
  height: 1.375rem;
  background-color: white;
  border-radius: 50%;
  transition: left 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input[type="checkbox"]:checked {
  background-color: grey;
}

input[type="checkbox"]:checked::after {
  left: 25px;
}

input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 3.125rem; /* 50px */
  height: 1.75rem; /* 28px */
  background-color: #399859;
  border-radius: 3.125rem;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s;
  rotate: 180deg;
}

input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1.375rem;
  height: 1.375rem;
  background-color: white;
  border-radius: 50%;
  transition: left 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input[type="checkbox"]:checked {
  background-color: grey;
}

input[type="checkbox"]:checked::after {
  left: 25px;
}

input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 1;
  background-color: var(--primary-color-hover);
}

input[type="checkbox"]:checked:disabled {
  background-color: var(--primary-color-hover);
}

input[type="checkbox"]:checked:disabled::after {
  left: 25px;
}

input[type="checkbox"]:checked:disabled {
  background-color: grey;
}

/* De form */

h2,
.summary-text {
  text-decoration: underline;
  text-transform: uppercase;
  padding-left: var(--space-m);
}
label {
  font-weight: 100;
}

form {
  @media (min-width: 570px) {
    align-items: center;
    margin: 0 auto;
    justify-content: center;
  }
}

/* Button */

button {
  &:focus {
    outline: 3px solid var(--color-border);
    border-radius: 20px;
  }
}
