@font-face {
  font-family: Tiny5;
  src: url(/fonts/Tiny5-Regular.ttf) format('truetype')
}
@font-face {
  font-family: Roboto;
  src: url(/fonts/Roboto-Regular.ttf)  format('truetype');
  font-weight: 400;
}
@font-face {
  font-family: Roboto;
  src: url(/fonts/Roboto-ExtraBold.ttf)  format('truetype');
  font-weight: 800;
}
@font-face {
  font-family: Times;
  src: url(/fonts/times.ttf)  format('truetype');
}

#root {
  max-width: 840px;
  margin: 0 auto;
}

:root {
  /* EXP: Theme is Dark by default. */
  --bg: #242424;
  --fg: rgba(255, 255, 255, 0.87);
  --strong: #ffffff;
  --dialog-bg: #424242;
  --rule: rgba(255, 255, 255, 0.15);
  color-scheme: dark;
  color: var(--fg);
  background-color: var(--bg);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-family: Times;
}
body {
  padding: .5rem;
}
h1, h2 {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .5rem;
}

.roboto { font-family: Roboto; }
.bitFont {
  font-family: Tiny5;
  text-transform: uppercase;
}
.bitLower {
  font-family: Tiny5;
}

.h2Container div {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 2rem;
}
.container6810 {
  padding-top: 20%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 20%;
}
.container6810 div {
  font-size: 1.4rem;
  margin-bottom: 1.4rem;
}
h1.roboto {
  font-size: 1.8rem;
  margin-top: 0;
}
h2 {
  font-weight: 400;
}
h1.roboto span {
  font-weight: 800;
}
h2 {
  text-decoration: underline;
}
dialog {
  background-color: var(--dialog-bg);
}
a {
  height: fit-content;
}
.center {
  text-align: center;
}
.underline {
  text-decoration: underline;
}
.table {
  margin: auto;
  width: 24rem;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  margin-bottom: 1.5rem;
}
.algorithm {
  margin: auto;
  width: 10rem;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  margin-bottom: 1.5rem;
}
.algorithm div, .table div {
  display: flex;
}
.space2 {
  width: calc(100% / 2);
  align-items: center;
  justify-content: center;
  
}
.space2:nth-child(5),.space2:nth-child(6) {
  margin-bottom: 0;
}
.space3,.space3:nth-child(4), .space3:nth-child(7) {
  margin: 0;
  width: 20%;
  align-items: end;
  justify-content: end;
}
.space3:nth-child(2),.space3:nth-child(3),.space3:nth-child(5),.space3:nth-child(6),.space3:nth-child(8),.space3:nth-child(9) {
  margin: 0;
  width: calc(80% / 2);
  align-items: end;
  justify-content: end;
}
.space5 {
  margin: 0;
  width: calc(100% / 5);
  align-items: center;
  justify-content: center;
}
.titleContainer {
  margin-top: 20svh;
  margin-bottom: 30svh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.authorContainer, .marusotoContainer, .author6810Container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.author6810Container {
  margin: 3rem auto !important;
}
.author6810Container img {
  height: 4.2rem;
}
.title {
  max-height: 5rem;
}
.author {
  max-height: 5rem;
}
.marusoto {
  max-height: 3rem;
}
.alpha, .omega {
  margin-top: 36rem;
}
.omega {
  margin-bottom: 36rem !important;
}
.modalButton {
  text-decoration: underline;
  cursor: pointer;
}
.characterCount, .wordCount {
  color: var(--strong);
  text-align: center;
  display: flex;
  flex-direction: column;
  width: 100%;
  font-size: 1.4rem;
  /* min-width: 520px; */
}
.characterCount p, .wordCount p {
  margin: .5rem 0;
}
.closeModal {
  float: right;
  padding: .1rem .25rem .1rem .45rem;
  font-size: 1.5rem;
  border: none;
  margin-bottom: 1rem;
  color: var(--strong);
  background: none;
  cursor: pointer;
  font-family: Tiny5;
}
button:focus {outline:0;}
.desktop {
  display: flex;
}
.mobile {
  display: none !important;
}

dialog {
  padding: 2rem;
  border: none;
}

.totalContainer {
  display: flex;
  flex-direction: column;
}
.totalContainer div {
  margin: 0;
}

.total {
  border-bottom: 2px var(--strong) solid;
}
.spacer {
  height: 1rem;
}
.wordContainer {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 420px;
  margin-bottom: 0;
  text-align: left;
}
.theWord {
  width: 35%;
  margin-bottom: 0;
}
.number {
  width: 10%;
  margin-bottom: 0;
  text-align: right;
}
.binary {
  width: 20%;
  margin-bottom: 0;
  text-align: right;
}
.symbol {
  width: 10%;
  margin-bottom: 0;
  text-align: right;
}

@media screen
  and (max-device-width: 700px)
  and (orientation: portrait) {
  .space5 {
    width: calc(85% / 3);
  }
  .desktop {
    display: none !important;
  }
  .mobile {
    display: flex !important;
    width: calc(15% / 2);
  }
  .table {
    max-width: 90%;
  }
  .wordContainer {
    min-width: 100%;
    font-size: .3rem;
  }
  .wordContainer div {
    font-size: 1.2rem;
  }
}

.tocPage {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.nanContainer {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.tocList {
  
  max-width: 640px;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  text-align: center;
}

.tocEntry {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.tocEntry:first-child {
  border-top: none;
}

.tocLink {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: var(--strong);
  line-height: 1.5rem;
  font-size: 1.5rem;
  text-decoration: none;
}

.tocLink:hover {
  text-decoration: underline;
}

.tocBlurb {
  margin-top: 0.4rem;
  opacity: 0.75;
  font-size: 0.9rem;
}

.linkFrom6810 {
  color: var(--strong);
  line-height: 1.5rem;
  font-size: 1.5rem;
}
.container6810 div:last-child {
  margin-bottom: 50%;
}


.footnote {
  font-size: 1rem !important;
}
.footnote {
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: row;
}
.footnote a {
  color: var(--strong);
}

.frogSpin {
  height: 20rem;
  margin: auto;
}

hr {
  margin-top: 2rem;
  width: 80%;
}

sup {
  font-size: 1rem;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
  top: -0.5rem;
}


.tocMenu {
  top: 0;
  padding: 15px 0;
  width: 100%;
  background-color: var(--bg);
}

.tocMenu a {
  text-decoration: none;
  height: 3rem;
  width: 3rem;
}

.menuLink {
  width: 3rem;
  height: 3rem;
  margin-right: 0.5rem;
}