body {
  color: rgba(0,0,0,0.8);
  font-family: 'Open Sans',-apple-system,BlinkMacSystemFont,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,verdana,arial,sans-serif;
  font-size: 1.1em;
}

@media (prefers-color-scheme: dark) {
  body {
    color: rgba(255,255,255,0.8);
    background-color: #333;
  }
}

a {
  padding: 0 0.5rem;
  white-space: nowrap;
}

a[href] {
  background-color: rgba(0,0,0,0.05);
  color: #000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.25rem;
  border-bottom: 2px solid rgba(0,0,0,0.05);
  margin-bottom: 2px;

  display: inline-block;
}

a.clean {
  background-color: transparent;
  border: none;
  padding: 0;
}

a:not(.clean)[href]:hover, a:not(.clean)[href]:focus {
  color: white;
  background: #333;
  background-color: #666;
  border-bottom: 4px solid rgba(0,0,0,0.1);
  margin-bottom: 0;

  transform: translateY(-1.5px) scale(1.025);
  -webkit-transition: transform 0.3s cubic-bezier(0, 0, 0.2, 1);
  -moz-transition: transform 0.3s cubic-bezier(0, 0, 0.2, 1);
  -o-transition: transform 0.3s cubic-bezier(0, 0, 0.2, 1);
  transition: transform 0.3s cubic-bezier(0, 0, 0.2, 1);
}

a.clean {
  font-weight: normal;
}
a.clean:hover, a.clean:focus {
  color: #5155EE;
}

@media (prefers-color-scheme: dark) {
  a[href] {
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    border-color: rgba(0,0,0,1);
  }

  a:not(.clean)[href]:hover, a:not(.clean)[href]:focus {
    color: #000;
    background-color: #efefef;
  }

  a.clean:hover, a.clean:focus {
    color: #9199EE;
  }
}

#langpicker {
  position: absolute;
  top: 0;
  right: 0.5rem;
}

#langpicker ul {
  display: flex;
}

#langpicker a[href] {
  background: none;
  border: none;
}

#langpicker a:hover, #langpicker a:focus {
  color: #5155EE;
}

#langpicker a.active {
  opacity: 0.5;
}

#container {
  margin-left: auto;
  margin-right: auto;
  max-width: 768px;
}

#content {
  padding: 1em;
  line-height: 1.75em;
}

.row {
  margin-top: 1rem;
}

ul.row {
  display: table-row;
}
ul.row > li {
  display: table-cell;
}
ul.row > li > a[href] {
  margin: 8px;
}
ul.row > li:first-child > a[href] {
  margin-left: 0;
}

ul.surnames {
  list-style: none;
  padding: 0;
  font-size: 0.9em;
  opacity: 0.8;

  columns: 2;
  -webkit-columns: 2;
  -moz-columns: 2;
}

@media (min-width: 640px) {
  ul.surnames {
    columns: 3;
    -webkit-columns: 3;
    -moz-columns: 3;
  }
}

.highlight {
  white-space: nowrap;
}

.emoji {
  font-size: 2rem;
  vertical-align: middle;
}

sup {
  font-size: 0.8em;
  opacity: 0.75;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
