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

a {
  span {
    text-decoration: underline;
  }
}

address {
  font-style: normal;
}

body {
  background-color: #fff;
  font-family: sans-serif;
  margin: 0;
}

details {
  summary {
    color: #00e;
    cursor: pointer;
    text-decoration: underline;
  }

  form {
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    margin: 1rem;
    padding: 1rem;
    width: 24rem;

    label {
      display: block;
      margin-top: 0.5rem;

      span {
        display: block;
      }
    }

    input, textarea {
      border: 0.1rem solid #999;
      border-radius: 0.3rem;
      font-size: inherit;
      padding: 0.5rem;
      width: 22rem;
    }

    textarea {
      height: 6rem;
    }

    input[type="submit"] {
      margin-top: 1rem;
    }
  }
}

header {
  font-size: 12vw;
  font-weight: bold;
  margin: 1rem;
  text-align: center;
}

h1 {
  background-color: #ccc;
  font-size: 2rem;
  margin: 1rem 0;
  padding: 1rem 0;
  text-align: center;
}

h2 {
  padding: 0.5rem 0;
}

main {
  margin: 0 1rem;
}

ol, ul {
  list-style-type: none;

  & > li {
    white-space: nowrap;
  }
}

p {
  margin: 0 0 1rem 0;
}

span {
  display: inline-block;
}

.aangetrouwd_familielid_met_dezelfde_achternaam {
  margin-right: 0.5rem;
}

.achternaam {
  width: 8rem;
}

.bewoners {
  margin-left: 1.5rem;
}

.datum {
  &.overlijdensdatum {
    font-style: italic;

    &:before {
      content: '(overleden ';
    }

    &:after {
      content: ')';
    }
  }

  .dag {
    margin-right: 0.5rem;
    text-align: right;
    width: 1.5rem;
  }

  .maand {
    width: 2rem;
  }

  .jaar {
    width: 3rem;

    &.overlijdensjaar {
      width: auto;
    }
  }
}

.definitie {
  list-style-type: disc;
  margin: 0 0 1rem 2rem;
}

.direct_familielid {
  margin-right: 0.5rem;
}

.ex {
  margin-left: 0.5rem;
}

.familienummer {
  width: 3.5rem;
}

.generatie_nummer {
  &:before {
    content: 'generatie ';
  }
}

.generatie_persoon {
  list-style-type: decimal;
  margin-left: 2rem;
}

.gescheiden {
  font-style: italic;

  &:before {
    content: "(gescheiden)";
  }
}

.jubileumreden {
  text-align: right;
  width: 9rem;
}

.kind {
  &:before {
    content: ',';
    margin-right: 0.5rem;
  }
}

.land {
  margin-left: 1rem;
}

.login {
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  margin: auto;
  max-width: 100%;
  padding: 1rem;
  text-align: center;
  width: 22rem;

  input {
    border: 0.1rem solid #999;
    border-radius: 0.3rem;
    display: inline-block;
    font-size: inherit;
    margin: 0.5rem 0;
    max-width: 100%;
    padding: 0.5rem;
    width: 20rem;

    &[type="submit"] {
      background-color: #ccc;
      box-shadow: 0.2rem 0.2rem 0.2rem #ccc;
    }
  }
}

.postcode {
  margin-right: 1rem;
}

.relatie {
  &:before {
    content: '&';
    margin-right: 0.5rem;
  }
}

.straat {
  margin-right: 1rem;
}

.telefoon {
    margin-left: 1rem;
}

.telefoonmobiel {
  width: 7rem;
}

.volledige_achternaam {
  width: 14rem;
}

.voornaam {
  width: 5.5rem;
}

.woning {
  display: flex;
  padding-bottom: 1rem;
}

.woningnummer {
  width: 3rem;
}
