/* Adapted from https://github.com/tarampampam/error-pages (MIT).  */
.spaceError {
  --space-bg: #fff;
  --space-text: #0e0620;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1140px;
  min-height: 100vh;
  margin: auto;
  background: var(--space-bg);
  color: var(--space-text);
  font-family: sans-serif;
  font-size: 16px;
  word-break: keep-all;
}

.spaceError .picture,
.spaceError .content {
  box-sizing: border-box;
  width: 50%;
}

.spaceError .picture img {
  display: block;
  width: 100%;
  height: auto;
}

.spaceError .content {
  padding: 0 40px;
}

.spaceError h1 {
  margin: 0.1em 0;
  font-size: 9em;
  font-weight: bold;
  line-height: normal;
}

.spaceError h2 {
  margin: 0.83em 0;
  font-size: 2em;
  font-weight: bold;
  line-height: normal;
}

.spaceError p {
  margin: 1em 0;
  line-height: normal;
}

.spaceError nav {
  margin: 1em 0;
}

.spaceError a {
  color: var(--space-text);
  font-size: 0.9em;
  opacity: 0.75;
  text-decoration: none;
}

.spaceError a:hover {
  text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
  body:has(.spaceError) {
    background: #212121;
  }

  .spaceError {
    --space-bg: #212121;
    --space-text: #fafafa;
  }
}

@media (min-width: 2000px) {
  .spaceError {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .spaceError {
    flex-direction: column;
    justify-content: center;
  }

  .spaceError .picture,
  .spaceError .content {
    width: 100%;
    text-align: center;
  }

  .spaceError .picture img {
    max-width: 60%;
    margin: auto;
  }

  .spaceError .content {
    padding: 0 20px 28px;
  }
}
