root {
  --linkColor: #999; }

.hidden {
  visibility: hidden;
  display: none !important; }

.offscreen {
  position: fixed;
  left: 100vw; }

html {
  font-size: 1.5em; }

ul {
  position: relative;
  list-style: none;
  padding-left: 0;
  margin-left: 0;
  margin-top: 0; }

.breadcrumbs {
  display: flex;
  flex-direction: row;
  margin: 0; }
  .breadcrumbs button {
    background-color: transparent;
    border: none;
    font-size: 1rem;
    color: var(--linkColor);
    text-decoration: underline;
    padding: 1px;
    cursor: pointer; }

a {
  color: var(--linkColor); }

body {
  position: relative;
  width: 100vw;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background-color: #333333;
  color: white; }
  body section aside {
    position: relative;
    max-width: 90vw;
    margin: 10px auto;
    padding: 3px;
    background-color: rgba(255, 255, 0, 0.2);
    display: flex; }
    body section aside img {
      height: 2em; }
    body section aside div {
      padding-left: 3px;
      line-height: 1em; }
  body section > p > a {
    color: var(--linkColor); }
  body section .breadcrumbs {
    margin-bottom: 10px; }
  body section ul:not(.breadcrumbs) {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; }
    body section ul:not(.breadcrumbs) button {
      min-width: 8rem;
      height: 8rem;
      font-size: 1.4rem;
      border-radius: 5px;
      position: relative;
      cursor: pointer;
      background-color: #999;
      color: white;
      margin-bottom: 2px;
      display: grid;
      grid-template-columns: 1fr;
      grid-template-rows: 1fr 2rem;
      grid-template-areas: "img" "text";
      justify-items: center; }
      body section ul:not(.breadcrumbs) button img {
        position: relative;
        height: 100%;
        max-width: 90%;
        grid-area: img; }
      body section ul:not(.breadcrumbs) button span {
        grid-area: text; }
    body section ul:not(.breadcrumbs).subCats button {
      background-color: #3498db; }

svg {
  background-color: #222; }

#pinoutInfo {
  --header-height: 8rem; }
  #pinoutInfo a {
    color: cornflowerblue; }
  #pinoutInfo header {
    height: var(--header-height);
    margin-bottom: 10px;
    display: flex; }
    #pinoutInfo header a:focus > button, #pinoutInfo header a:focus > div.link, #pinoutInfo header a:focus-visible > button, #pinoutInfo header a:focus-visible > div.link, #pinoutInfo header a:hover > button, #pinoutInfo header a:hover > div.link {
      background-color: #444; }
    #pinoutInfo header a, #pinoutInfo header button {
      margin-top: 5px;
      margin-right: 10px; }
    #pinoutInfo header button, #pinoutInfo header div.link {
      height: var(--header-height);
      width: var(--header-height);
      border-radius: 7px;
      position: relative;
      font-size: 1.4rem;
      cursor: pointer;
      background-color: #222222;
      color: white;
      margin-bottom: 2px;
      border: 1px solid white;
      display: grid;
      grid-template-columns: 1fr;
      grid-template-rows: 1fr 2rem;
      justify-items: center; }
      #pinoutInfo header button img, #pinoutInfo header div.link img {
        position: relative;
        height: 100%; }
  #pinoutInfo #infoMarkdown img {
    max-width: 30em; }

#canvasContainer {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: grid;
  grid-template-columns: 10em 1fr;
  grid-template-rows: 2em 1fr;
  grid-template-areas: "header header" "sidebar pinout"; }
  #canvasContainer header {
    grid-area: header; }
    #canvasContainer header button {
      height: 2em; }
  #canvasContainer #sidebar {
    background-color: darkgray;
    overflow-y: auto;
    overflow-x: hidden;
    grid-area: sidebar; }
    #canvasContainer #sidebar ul {
      text-decoration: none;
      list-style: none;
      padding: 0;
      margin: 0; }
    #canvasContainer #sidebar li {
      color: white;
      margin-bottom: 3px;
      padding: 2px;
      height: 1.5em;
      display: flex;
      flex-direction: row;
      justify-content: space-between; }
      #canvasContainer #sidebar li span:focus {
        outline: none; }
      #canvasContainer #sidebar li button {
        height: 100%;
        cursor: pointer; }
        #canvasContainer #sidebar li button img {
          height: 100%; }
  #canvasContainer #pinout {
    position: relative;
    overflow: hidden; }

dialog {
  position: relative;
  width: 80vw;
  max-width: 800px;
  padding: 0;
  background-color: #222222; }
  dialog::backdrop {
    background: rgba(0, 0, 10, 0.5); }
  dialog .header {
    display: flex;
    justify-content: space-between;
    height: 2em; }
    dialog .header input {
      position: relative;
      padding: 3px;
      font-size: 1em;
      flex-grow: 1;
      line-height: 2em; }
      dialog .header input::placeholder {
        text-align: center; }
    dialog .header button {
      font-size: 1.2em;
      height: 2rem;
      padding: 2px;
      border: 1px solid white;
      display: block;
      position: relative;
      background-color: #222222;
      color: white; }
  dialog ul {
    list-style: none;
    margin: 0;
    padding: 0; }
    dialog ul li {
      display: flex; }
      dialog ul li button {
        flex-grow: 1;
        height: 2rem;
        font-size: 1.2rem;
        text-align: left;
        color: white;
        background-color: #333;
        border: 1px solid #666;
        cursor: pointer; }
        dialog ul li button:focus {
          outline: none; }
      dialog ul li kbd {
        padding: 0 10px;
        color: white;
        line-height: 2rem;
        right: 0;
        position: absolute;
        pointer-events: none; }
        dialog ul li kbd span:first-child:not(.unselected) {
          color: yellow; }
        dialog ul li kbd span:nth-child(2) {
          color: gray; }
  dialog footer {
    background-color: #222;
    color: #ddd;
    font-size: 0.8em;
    padding: 3px; }

.modeHelp {
  position: fixed;
  right: 10px;
  bottom: 10px;
  list-style: none;
  background-color: #444;
  padding: 5px; }
  .modeHelp li {
    margin-bottom: 2px; }
  .modeHelp kbd {
    margin-right: 2px; }

kbd {
  background-color: #666666;
  padding: 0 4px;
  border-radius: 2px; }
