@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 {
  /* color-scheme: light dark; */
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

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

html {
  font-family: Times;
}
body {
  padding: .5rem;
}
h1, h2 {
  /* margin-top: 40svh; */
  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;
  /* align-items: center; */
  justify-content: center;
  padding-bottom: 20%;
}
.container6810 div {
  font-size: 1.4rem;
  /* line-height: 1.8rem; */
  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: #424242;
}
a {
  height: fit-content;
  /* font-size: 0; */
}
.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;
  /* gap: 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: calc(100% / 3); */
  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: white;
  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: white;
  background: none;
  cursor: pointer;
  font-family: Tiny5;
}
button:focus {outline:0;}
.desktop {
  display: flex;
}
.mobile {
  display: none !important;
}


/* .wordContainer {
  display: flex;
  width: 100%;
  justify-content: flex-end;
}
.myCount {
  margin-left: 1rem;
}

.myCount, .plus, .ddCount, .equals, .sigma {
  margin-left: 1rem;
} */

dialog {
  padding: 2rem;
}

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

.total {
  border-bottom: 2px white 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;
}
/* table {
  border-collapse: collapse;
  width: 60%;
  min-width: 320px;
  margin: 30px auto;
}
td {
  padding: 0 .5rem;
  text-align: right;
  width: 100%;
}
td.theWord {
  width: 50%;
  text-align: left;
}
td.number {
  width: 10%;
}
td.binary {
  width: 25%;
}
td.symbol {
  width: 2.5%;
} */



@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;
  }
}




/* @media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
} */


.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 rgba(255, 255, 255, 0.15);
}

/* .tocEntry:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
} */
.tocEntry:first-child {
  border-top: none;
}

.tocLink {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  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 {
  /* display: flex; */
  /* justify-content: center; */
  /* align-items: center; */
  /* flex-direction: column; */
  color: white;
  line-height: 1.5rem;
  font-size: 1.5rem;
  /* text-decoration: none; */
}
.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: white;
}

.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 {
  /* position: -webkit-sticky; */
  /* position: sticky; */
  top: 0;
  /* z-index: 1000; */
  padding: 15px 0;
  width: 100%;
  background-color: #242424;
}

.tocMenu a {
  /* color: white; */
  text-decoration: none;
  /* padding: 10px 20px; */
  height: 3rem;
  width: 3rem;
}

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