:root {
  /* default theme color */
  /* can be overrided by uses `themeConfig` option */
  --slidev-theme-primary: #5d8392;
}

.slidev-layout.cover,
.slidev-layout.intro {
  @apply h-full grid;

  h1 {
    @apply text-6xl leading-20;
  }

  h1 + p {
    @apply -mt-2 opacity-50 mb-4;
  }

  p + h2,
  ul + h2,
  table + h2 {
    @apply mt-10;
  }
}
.slidev-page {
  h2 {
    @apply mt-4;
  }
  h3,
  h4,
  h5 {
    @apply mt-4;
  }
}

/* Custom: Do not add p-margins to markdown text converted to <p> in custom
 * components */
.no-p-margin {
  p {
    @apply mt-0;
    @apply mb-0;
  }
  p + p {
    @apply mt-2;
  }
}

blockquote {
  @apply mt-4;
  @apply mb-4;

  p {
  @apply text-lg;
}
}

.slidev-layout {
  td,
  th {
    @apply p-2;
    @apply pl-1;
    @apply pr-1;
    /* @apply pt-0; */
    /* @apply pb-0; */
    /* @apply pl-0; */
  }
}

// Stack multiple elements on top of each other
.r-stack {
	display: grid;
}

.r-stack > * {
	grid-area: 1/1;
	margin: auto;
}
