:root {
  --color-highlight: #00B295;
  --color-highlight-darker: #00806A;
  --color-target-highlight: #FFFFB3;
  --color-light-gray: #F8F8F8;
  --color-dark-gray: #DDDDDD;
  --content-width: 45rem;
  --grid-gutter: calc(100vw - var(--content-width) / 2);
}

html {
  scroll-behavior: smooth;

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial;
  line-height: 1.4;
}

body {
  display: grid;
  padding-bottom: 2rem;
  grid-template-columns:
    [left] minmax(1px, var(--grid-gutter))
    [content] clamp(1px, var(--content-width), calc(100vw - 2rem))
    [right] minmax(1px, var(--grid-gutter));
  grid-column-gap: 1rem;
  > * {
    grid-column: content;
    max-width: 100%;
  }
}

*:target {
  background: var(--color-target-highlight);
}

header > h1 {
  margin: 1rem 0;
}

table {
  counter-reset: position;
  border-collapse: collapse;
  thead {
    th {
      position: relative;
      counter-increment: position;
      padding-top: 1.2em;
      &::before {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        content: counter(position) "."
      }
    }
  }
  tbody tr:not(:last-of-type) {
    &:not(:nth-last-of-type(2)) {
      border-bottom: 1px solid var(--color-dark-gray);
    }
    th {
      text-align: right;
    }
    td {
      &:nth-of-type(odd) {
        background-color: var(--color-light-gray);
      }
    }
  }
  tr:nth-last-of-type(2), thead > tr {
    border-bottom: 1px solid var(--color-highlight);
  }
  td, th {
    padding: .5rem 1rem;
  }
}

small {
  font-size: .75em
}

.best {
  font-weight: bold;
  color: var(--color-highlight-darker);
}

.left {
  text-align: left;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

.block {
  display: block;
}

.table_container {
  max-width: 100%;
  overflow-x: auto;
}

ul {
  &.info {
   list-style-type: "ℹ︎   ";
 }
 li {
  margin-top: .4em;
 }
}

.flags {
  display: block;
  width: 72px;
}

.small {
  font-size: 0.75em;
}

.float-left {
  float: left;
}

.code {
  display: inline-block;
  padding: 0.2em 0.4em;
  border-radius: 2px;
  border: 1px solid var(--color-highlight);
  background-color: var(--color-light-gray);
  color: var(--color-highlight-darker);
  font-family: monospace;
  font-weight: normal;
  letter-spacing: 2px;
  line-height: 1;
}
