* {
  box-sizing: border-box;
}

/* set by theme provider */
/*:root {
  font-family: var(--font-family-title);
  color: var(--color-text);
  !*line-height: ${props => props.theme.lineHeight};*!
}*/
body {
  color: var(--color-text);
  font-family: var(--font-family);
  line-height: var(--line-height);
}

code, pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New", Courier, monospace;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-title);
  color: var(--color-text-title);
}

b {
  font-weight: bold;
}

h1 {
  font-size: 2rem;
  margin: 2.2rem 0 1.4rem 0;
}

h2 {
  font-size: 1.6rem;
  margin: 1.8rem 0 1rem 0;
}

h3 {
  font-size: 1.2rem;
  margin: 1.4rem 0 0.8rem 0;
}

h4 {
  font-size: 1rem;
  margin: 1rem 0 0.6rem 0;
}

h5 {
  font-size: 0.8rem;
  margin: 0.8rem 0 0.4rem 0;
}

h6 {
  font-size: 0.7rem;
  margin: 0.6rem 0 0.2rem 0;
}

small {
  font-size: 0.8rem;
}

section {
  margin-bottom: calc(4 * var(--spacing-unit));
}
section:last-of-type {
  margin-bottom: 0;
}

/* TextField Size */
.text-small {
  font-size: var(--font-size-small);
}

.text-medium {
  font-size: var(--font-size-medium);
}

.text-large {
  font-size: var(--font-size-large);
}

/* TextField Color */
.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-neutral {
  color: var(--color-neutral);
}

.text-danger {
  color: var(--color-danger);
}

.text-warning {
  color: var(--color-warning);
}

.text-background-primary {
  color: var(--color-background-primary);
}

.text-background-secondary {
  color: var(--color-background-secondary);
}

.text-white {
  color: #ffffff;
}

.text-centered {
  text-align: center;
}

a {
  color: var(--color-link) !important;
  /* important is needed when using the components under a different web page */
  text-decoration: none;
  outline: none;
}

a:hover {
  color: var(--color-link-hover);
}

hr {
  display: block;
  height: 1px;
  border: 0;
  background: var(--color-background-primary);
  margin: 1em 0;
  padding: 0;
}

hr.leaned-vertically {
  margin: 0;
}