:root {
  --system-ui: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --system-mono: ui-monospace, "SF Mono", SFMono-Regular, "DejaVu Sans Mono", Menlo, Consolas, monospace;
  --white: rgb(255,255,255);
  --black: rgb(0,0,0);
  --font-size: 0.7rem;
}

body {
  font-family: var(--system-ui);
  font-size: var(--font-size);
  line-height: calc(var(--font-size) * 1.26);
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  font-family: var(--system-ui);
  overflow: hidden;
}

em {
  font-style: italic;
}

p > semibold {
  font-weight: 600;
}

.monospaced {
  font-family: var(--system-mono);
}

#index_link > a {
  font-weight: 600;
  color: var(--black);
}

#index_link > a:link {
  text-decoration: none;
}

#index_link {
  margin-bottom: 28px;
}

#fullScreen {
  float: right;
  margin-left: auto;
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 10000;
}

.buttons-container {
  margin-left: 139px;
}

#fullScreen button,
#font-info-toggle,
#glyph-info-toggle,
#metrics-toggle,
#background-toggle,
#randomize-button,
#font-opentype-features,
.feature-button {
  font-size: 0.7rem;
  cursor: pointer;
  font-style: roman;
  -webkit-appearance: none;
  height: 23px;
  padding-left: 8px;
  padding-right: 8px;
  margin-bottom: 6px;
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
  opacity: 1;
  border-radius: 5px;
  -webkit-transition: .2s;
  transition: .2s;
}

.buttons-container button {
  margin-right: 5px;
}

#fullScreen button {
  width: 100%;
}

#fullScreen button > span {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1em;
}

#drop-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  color: var(--black);
  pointer-events: none;
}

.display-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.display-container #word {
  position: relative;
  width: 100%;
  height: 100%;
  color: var(--black);
}

.glyph-buffer {
  color: var(--black);
  font-size: 600px;
  text-align: center;
  position: relative;
}

#font-info {
  top: 0px;
  left: 0px;
  height: auto;
  width: 300px;
  margin: 0px;
  padding: 14px;
  background: var(--white);
  position: fixed;
  z-index: 10000;
}

#font-info-content {
  float: left;
  margin-right: auto;
  width: 300px;
  color: var(--black);
  top: 14px;
  left: 14px;
}

#font-info-content > p {
  margin-block-start: 0px;
  padding-top: 0px;
  margin-top: 0px;
}

#glyph-info {
  position: fixed;
  top: 14px;
  right: 70px;
  color: var(--black);
}

#glyph-info-content > p {
  margin-top: 0px;
}

.glyph-info-container {
  display: flex;
  gap: 14px;
}

.info-column {
  width: 140px;
  padding: 0px;
}

.info-column > p {
  margin: 0px;
}

#controls {
  position: fixed;
  bottom: 0px;
  opacity: 0;
  transition: opacity 0.2s;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 7px;
  z-index: 20;
}

#controls:hover {
  opacity: 1;
  transition: opacity 0.2s;
}

.metrics-container,
#font-metrics-overlay {
  width: 100%;
  position: fixed;
}

#font-metrics-overlay > .metric-line,
#font-metrics-overlay > .side-bearing-line {
  position: fixed;
  background: var(--black);
  opacity: 20%;
}

#font-metrics-overlay > .metric-line {
  height: 1px;
  width: 100%;
}

#font-metrics-overlay > .side-bearing-line {
  width: 1px;
  height: 100%;
  top: 0;
}

#font-metrics-overlay > .legend {
  position: fixed;
  padding-left: 14px;
  color: var(--black);
}

.slider-container {
  margin-top: 7px;
  margin-bottom: 7px;
  padding-left: 7px;
  padding-right: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-container label {
  color: var(--black);
  font-size: 0.7rem;
  min-width: 120px;
}

.slider-container input[type="range"] {
  flex: 1;
}

.slider-container .value {
  color: var(--black);
  font-size: 0.7rem;
  min-width: 60px;
  text-align: right;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1px;
  background: var(--black);
  border-radius: none;
  outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background: var(--black);
  border-radius: none;
}

input[type="range"]::-moz-range-track {
  height: 1px;
  background: var(--black);
  border-radius: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  background: var(--black);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -7px;
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--black);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]:focus::-webkit-slider-thumb {
  box-shadow: none;
}

input[type="range"]:focus::-moz-range-thumb {
  box-shadow: none;
}