/*
 * Error pages style
 *
 * Usage of variables is mainly here for documentation, the variables aren't
 * available in the context of the error pages.
 */

html,
body {
  height: 100%;
}

body {
  font-family: sans-serif;
  font-size: var(--font-size-paragraph, 0.875rem);
}

.app-error {
  background-color: #f8f6ff;
}

.app-error__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin-inline: 1rem;
}

.app-error__illustration {
  display: block;
  margin-inline: auto;
  max-width: 100%;
  margin-block-end: 1rem;
}

.app-error__messages {
  display: none;
}

.app-error__title {
  display: block;
  margin-block-end: var(--space-04, 1.5rem);
  font-size: var(--font-size-title-1, 2rem);
  font-weight: var(--font-weight-bold, 700);
  line-height: normal;
  color: var(--color-purple-200, #14101f);
}

.app-error__message {
  display: block;
  margin-block-start: var(--space-01, 0.25rem);
  margin-block-end: var(--space-02, 0.5rem);
  font-size: var(--font-size-title-3, 1rem);
  font-weight: var(--font-weight-bold, 700);
  line-height: normal;
  color: var(--color-purple-200, #14101f);
}

.anchor {
  color: var(--color-purple-100, #864dff);
  text-decoration: underline;
  transition-timing-function: var(
    --transition-timing-function,
    cubic-bezier(0.4, 0, 0.2, 1)
  );
  transition-duration: var(--transition-duration, 150ms);
  transition-property: color;
}

.anchor:hover {
  color: var(--color-purple-120);
}

@media screen and (min-width: 768px) {
  .app-error__body {
    margin-inline: 3rem;
  }

  .app-error__illustration {
    max-width: 60%;
    min-height: 20rem;
    max-height: calc(100% - 16rem);
  }
}
