input, textarea, button, select, a {
  --webkit-tap-highlight-color: rgba(0,0,0,0);
}

html, body {
  margin: 0;
  padding: 0;

  border: 0;
  font: inherit;
  vertical-align: baseline;
}

body {
  font-family: monospace;
  font-size: 1.2em;
}

#content {
  background-color: var(--theme_bg0);
  color: var(--theme_fg0);

  min-width: 100vw;
  min-height: 100vh;

  padding-top: 2em;
  padding-bottom: 2em;

  position: relative;
  display: table;
  box-sizing: border-box;

  padding-left: 5vw;
  padding-right: 5vw;
}

hr {
  color: var(--theme_fgt0_hard);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

header, footer {
  width: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

header nav,
footer nav {
  display: flex;
  justify-content: space-between;

  width: 100%;

  margin-left: auto;
  margin-right: auto;
  /* padding-right: 40px; */
}

.back {
  cursor:pointer;
}

main {
  min-height: 100% ;

  margin-bottom: auto;

  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

p {
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 80vw;
}

img {
  width: 100%;
  height: 100%;
}

pre, code
{
  background-color: var(--theme_bg1);
  color: var(--theme_fg1);
  white-space: pre-wrap;
  white-space: -moz-pre-wrap !important;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
  word-wrap: break-word;
}

pre
{
  padding: 0.5em;
  border-radius: 5px;
  border: 1px solid var(--theme_fg4);
  margin-left:  0.5em;
  margin-right: 0.5em;
}

a {
  color:var(--theme_blue);
  text-decoration: none;
}

table
{
  border-collapse: collapse;
  border-spacing: 0; /* IE 6 */

  border-bottom: 2pt solid var(--theme_bg3);
  border-top: 2pt solid var(--theme_bg3); /* The caption on top will not have a bottom-border */
  background-color: var(--theme_bg1); /* Does this BG print well? */

  /* Center */
  margin-left: auto;
  margin-right: auto;
}

thead /* Entire table header */
{
  border-bottom: 1pt solid var(--theme_bg3);
  background-color: var(--theme_bg2); /* Does this BG print well? */
}

tr.header /* Each header row */
{
}

tbody /* Entire table  body */
{
}

/* Table body rows */

tr  {
}
tr.odd:hover, tr.even:hover /* Use .odd and .even classes to avoid styling rows in other tables */
{
  background-color: var(--theme_bg0);
}

/* Odd and even rows */
tr.odd {}
tr.even {}

td, th /* Table cells and table header cells */
{
  vertical-align: top; /* Word */
  vertical-align: baseline; /* Others */
  padding-left:   0.5em;
  padding-right:  0.5em;
  padding-top:    0.2em;
  padding-bottom: 0.2em;
}


th /* Table header cells */
{
  font-weight: bold;
}

tfoot /* Table footer (what appears here if caption is on top?) */
{
}

caption /* This is for a table caption tag, not the p.caption Pandoc uses in a div.figure */
{
  caption-side: top;
  border: none;
  font-size: 0.9em;
  font-style: italic;
  text-align: center;
  margin-bottom: 0.3em; /* Good for when on top */
  padding-bottom: 0.2em;
}



pre,blockquote{
  page-break-inside:avoid;
}

blockquote{
  padding:10px 20px;
  margin:0 0 1em;
  font-size: 0.9em;
  border-left:5px solid var(--theme_fg4);
}

blockquote p:last-child{
  margin-bottom:0;
}

blockquote:before,
blockquote:after {
  content:"";
}


li
{
  margin-top: 0.5em; /* IE: lack of space above a <li> when the item is inside a <p> */
}

:not(blockquote) > p,
ol,
ul {
  margin-left: 1em;
}

.categories{
  display: flex;
  align-items: baseline;
}

.categories h3{
  display: inline-block;
}

.categories p {
  flex: 1;
  margin: 0.5em;
  display: flex;
  flex-direction: row;
  flex-flow: wrap;

}

.categories a{
  color: var(--theme_orange);
  background-color: var(--theme_bg1);
  display: inline-block;
  padding: 0.2em 0.5em 0.2em 0.5em;
  border-radius: 5px;
  min-width: 2em;
  text-align: center;
  margin: 0.15em;
}

.bottom {
  margin-top: auto;
}

.index {
  padding: 0;
}

.index li {
  display: flex;
}

.index li div:first-child {
  flex-shrink: 0;
  margin-right: 0.5em;
}

.small {
  display: flex;
  align-items: center;
}

.small img {
  width: 20px;
  height: 20px;
  margin: 5px;
}

img {
  width: 10em;
  height: 10em;
  margin: 5px;
}

h1 {
  margin-bottom: 0;
  color: var(--theme_aqua);
}

h2 {
  margin-bottom: 0;
  color: var(--theme_purple);
}

h3 {
  margin-bottom: 0;
  color: var(--theme_orange);
}

h4 {
  margin-bottom: 0;
  color: var(--theme_yellow);
}

h5 {
  margin-bottom: 0;
  color: var(--theme_green);
}

h6 {
  margin-bottom: 0;
  color: var(--theme_gray);
}
