@import 'colors.css';
@import 'fonts.css';
@import 'typography.css';

/* VIEW FORMATING */
/* Intial design courtesy @t0mstone, typst discord */
flex-align {
  /* Horizontal: simple text-align to respects <br>, paragraphs, all inline flow */
  &[axis=x] {
    display: block;
    width: 100%;
  }
  &[axis=x][align=left], &[axis=x][align=top] {
    text-align: left;
  }
  &[axis=x][align=center], &[axis=x][align=horizon] {
    text-align: center;
  }
  &[axis=x][align=right], &[axis=x][align=bottom] {
    text-align: right;
  }

  /* Vertical: flex column still works fine (vertical centering needs flex) */
  &[axis=y] {
    display: flex;
    flex-direction: column;
  }
  &[axis=y][align=left], &[axis=y][align=top] {
    justify-content: start;
  }
  &[axis=y][align=center], &[axis=y][align=horizon] {
    justify-content: center;
  }
  &[axis=y][align=right], &[axis=y][align=bottom] {
    justify-content: end;
  }
}

/* FIGURES FORMATTING */
figure {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

figure svg {
    width: 80% !important;
    max-width: 100%;
    height: auto !important;
    display: block;
}

/* BREADCRUMB NAVIGATION */
nav.crumbs {
    font-size: 1.5em;
    margin-bottom: 0;
}
nav.crumbs a {
    text-decoration: none;
}
nav.crumbs + hr {
    margin-top: 0;
}
