body {
  font-family: 'Roboto', sans-serif;
  font-size: 12pt;
}

h2, h3, h4, h5, h6 {
  margin-top: 4rem;
  margin-bottom: 1rem;
}

.small {
  font-size: 0.8em;
}

footer {
  font-size: 1.0rem;
  margin-top: 8rem;
}

h1.codepage, h2.codepage {
  font-family: 'IBM Plex Mono', monospace;
  text-align: center;
}

h1.codepage a {
  color: inherit;
}

.codepage nav {
  display: flex;
  justify-content: center;
}

.codepage nav>a {
  border-right: solid 1px #eff0f1;
  display: inline-block;
  padding: 0 12px;
}

.codepage nav > a:last-of-type {
  border-right: none;
}

a {
  color: #008F8C;
}

.codepage-link-name {
  display: inline-block;
  margin-right: 20px;
  word-wrap: break-word;
}

.rendered-codepage .codepage-images-container {
  background: #222222;
  padding: 8px;
  display: inline-block;
  max-width: 95%;
}

.rendered-codepage .codepage-images-container img {
  display: block;
}

td, th {
  padding-right: 4px;
  font-weight: normal;
}

thead th {
  font-weight: bold;
}

table.utf8-codepoints-table td {
  padding: 4px;
}

div.character-table-container {
  max-width: 100%;
  overflow-x: auto;
}

table.character-table th, table.character-table td
{
  text-align: center;
  padding: 4px;
  font-weight: normal;
}

table.character-table tr>th.row-header {
  position: sticky;
  left: 0;
}

table.character-overview-table a {
  text-decoration: none;
}

table.character-codepage-table td.codepage-name {
  white-space: nowrap;
  width: 1%;
  padding-right: 3rem;
}

td.char-cell.unknown {
  color: #666 !important;
}

span.unknown {
  font-style: italic;
}

@media (min-width: 550px) {
  .site-name {
    font-size: 2.0rem;
  }

  .navbar-search {
    margin-bottom: 14px;
  }
}

@media (prefers-color-scheme: dark) {
  td.char-cell.unknown {
    color: #bbb !important;
  }

  a {
    color: #00DFDC;
  }

  .btn-outline-success {
    --bs-btn-color: #00DFDC;
    --bs-btn-border-color: #00DFDC;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #006F6C;
    --bs-btn-hover-border-color: #006F6C;
    --bs-btn-focus-shadow-rgb: 25,135,84;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #198754;
    --bs-btn-active-border-color: #198754;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #198754;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #198754;
    --bs-gradient: none;
  }
}

.modal-header, .modal-body, .modal-footer {
  border: none;
}

.modal-header h1 {
  text-decoration: underline;
  text-decoration-color: #00DFDC;
}

.character-box {
  background: #ccc;
  border: 1px solid #888;
  color: black;
  padding: 4px 16px;
}

@font-face {
  font-display: swap;
  font-family: 'DM Serif Text';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/dm-serif-text-v12-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/ibm-plex-mono-v19-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/roboto-v32-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/roboto-v32-latin-700.woff2') format('woff2');
}