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

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  background-color: var(--bg-color);
}

.error-page {
    text-align: center;
    color: var(--primary-color);
    font-size: var(--font-size-XXL);
    line-height: 90%;
    justify-content: center;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
}

.error-content {
  width: 100%;
  max-width: 210px;
  margin-inline: auto;
  text-align: center;
}

.error-title {
  width: 100%;
  max-width: 8ch;
  margin-inline: auto;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.error-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 3;

  margin-top: 24px;

  font-family: var(--secondary-font);
  font-size: var(--font-size-S);
  font-weight: var(--weight-medium);
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0px;
  transition:
    gap 0.2s ease,
    opacity 0.2s ease;
}

.error-back .material-symbols-outlined {
  font-size: 18px;
}

.error-back:hover {
  gap: 10px;
  opacity: 0.6;
}

.error-back:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}