h1 {
  text-align: center;
}

#posts {
  color: black;
}

#posts article,
#comments article,
#reactieformulier {
  padding: 1em;
  margin: 1em 0;
  background-color: var(--accent-color);
  color: white;
}

#posts h1 {
  text-align: left;
}

#posts > a,
#advertisements a {
  color: inherit;
  text-decoration: none;
}

#posts > a:hover,
#advertisements a:hover {
  text-decoration: underline white;
}

.post-summary {
  display: flex;
  flex-wrap: wrap;
}

.post-summary .post-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-summary img {
  height: auto;
  border-radius: 5px;
}

@media (min-width: 1024px) {
  .post-summary {
    flex-wrap: nowrap;
  }

  .post-summary img {
    width: 300px;
  }

  .post-summary > div {
    padding-right: 1em;
  }
}

/*  */

#share-icons {
  text-align: center;
}

#share-icons svg {
  vertical-align: bottom;
}

#advertisements {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

#advertisements a::after {
  display: none;
}

#advertisements div {
  max-width: 300px;
  padding: 12px;
}

.with-subtitle {
  margin-bottom: 0;
}

.center {
  display: block;
  text-align: center;
}

img {
  width: 100%;
  height: auto;
}

img.smaller {
  width: 100%;
  max-width: 512px;
  height: auto;
}

#form {
  display: flex;
  margin: 1em 0;
}

#form summary:hover {
  cursor: pointer;
  text-decoration: underline;
}

#reactieformulier {
  display: flex;
  flex-direction: column;
  max-width: 484px;
}

#reactieformulier input:disabled {
  cursor: not-allowed;
}

#reactieformulier input,
#reactieformulier textarea,
#smileys,
.h-captcha {
  margin: 0.4em 0;
}

.input-two {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

#reactieformulier textarea {
  box-sizing: border-box;
  width: 100%;
}

#reactieformulier #submit {
  align-self: flex-end;
}

#smileys img {
  padding: 3px;
  height: 15px;
  width: 15px;
}

#comments article {
  overflow-wrap: anywhere;
}

#comments h1 {
  font-size: 1.4em;
  margin: 1rem 0;
}

#comments img {
  width: 15px;
  height: 15px;
  vertical-align: middle;
}

.comment-upper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-upper h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  text-align: left;
}

.comment-upper small {
  margin-left: 0.5em;
}

#comments a[href] {
  color: inherit;
}

#comments a[href]::after {
  background-color: black;
}

/*  */
@media print {
  nav *,
  footer *,
  .no-print *,
  hr {
    display: none;
  }
}

@media (prefers-color-scheme: dark) {
  #posts article,
  #comments article,
  #reactieformulier {
    color: black;
  }

  #posts > a:hover,
  #advertisements a:hover {
    text-decoration: underline black;
  }
}
