/** Primary Colors */
/** Text Colors */
/** Links */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Libre Baskerville", Garamond, Times, serif;
  font-size: 1rem;
  color: #000;
}

/* General */
a {
  text-decoration: none;
}
a:link {
  color: #091f97;
}
a:visited {
  color: #091f97;
}
a[href]:hover {
  color: #00bede;
}
a[href]:active {
  color: #F44336;
}

h1 {
  font-size: 2.25rem;
  font-weight: bold;
  margin: 36px 0 5px;
}
h1:first-child {
  margin-top: 0;
}

h2 {
  font-size: 1.75rem;
  font-weight: bold;
  margin: 28px 0 5px;
}

h3 {
  font-size: 1.375rem;
  font-weight: bold;
  margin: 22px 0 5px;
}

h4 {
  font-size: 1.125rem;
  font-weight: bold;
  margin: 18px 0 5px;
}

h4 {
  font-size: 1rem;
  font-weight: bold;
  margin: 16px 0 5px;
}

p {
  font-size: 1rem;
  margin: 0 0 16px;
  overflow-wrap: break-word;
}
p:last-child {
  margin-bottom: 0;
}

code {
  background: #e6e9ee;
  padding: 2px;
  border-radius: 4px;
  font-size: inherit;
}

button {
  background-color: #233f6a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.125rem;
  font-family: "Noto Sans", sans-serif;
  box-sizing: border-box;
  padding: 8px 12px;
  width: 150px;
  max-width: 100%;
  min-height: 40px;
}
button:hover {
  background-color: #314f7d;
}
button:active {
  background-color: #6f829f;
}

.Content {
  width: 100%;
  box-sizing: border-box;
  padding: 30px 10px;
  display: flex;
  flex-flow: row nowrap;
  align-items: start;
  justify-content: center;
}
@media (max-width: 700px) {
  .Content {
    padding: 10px 10px;
  }
}
.Content main {
  flex: 0 1 1400px;
  min-width: 0;
}

.Sidebar {
  min-width: 300px;
  width: 300px;
  box-sizing: border-box;
  padding: 20px;
  background-color: #e6e9ee;
}
@media (max-width: 700px) {
  .Sidebar {
    min-width: 0;
    width: auto;
  }
}

.Markdown {
  min-width: 0;
}
.Markdown .toc ul {
  margin: 0;
  list-style: none;
  padding: 0 0 0 16px;
}
.Markdown .toc ul li {
  margin-top: 4px;
}
.Markdown .center-img {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  margin: 16px 0;
}
.Markdown .center-img:last-child {
  margin-bottom: 0;
}
.Markdown .center-img {
  gap: 10px;
}
.Markdown .center-img a {
  display: block;
}
.Markdown .center-img img {
  display: block;
  width: 100%;
}
.Markdown .center-img .img-256 {
  flex: 0 1 256px;
}
.Markdown .center-img .img-512 {
  flex: 0 1 512px;
}
.Markdown .center-img .img-768 {
  flex: 0 1 768px;
}
.Markdown .center-video {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  margin: 16px 0;
}
.Markdown .center-video:last-child {
  margin-bottom: 0;
}
.Markdown .center-video {
  gap: 10px;
}
.Markdown .center-video .r560-315 {
  aspect-ratio: 560/315;
}
.Markdown .center-video .halfsize {
  flex: 0 1 530px;
}
.Markdown .center-video .fullsize {
  flex: 0 1 1000px;
}
.Markdown .center-table {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  margin: 16px 0;
}
.Markdown .center-table:last-child {
  margin-bottom: 0;
}
.Markdown .tborder table {
  border-collapse: collapse;
  border: 1px solid black;
}
.Markdown .tborder table td, .Markdown .tborder table th {
  border: 1px solid black;
  padding: 6px;
}

.Title {
  width: 100%;
  height: 138px;
  background-color: #233f6a;
  box-sizing: border-box;
  padding: 5px 10px;
  color: #fff;
  font-size: 84px;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
}
@media (max-width: 700px) {
  .Title {
    height: 48px;
  }
}
.Title header {
  height: 100%;
  max-width: 1400px;
  display: flex;
  flex-grow: 1;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: start;
}
.Title header a.homelink {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 30px;
  color: inherit;
}
.Title header a.homelink img {
  height: 128px;
}
.Title header a.homelink span {
  margin: -8px 0 0 0;
}
@media (max-width: 700px) {
  .Title header {
    justify-content: center;
  }
  .Title header a.homelink {
    font-size: 28px;
    gap: 10px;
  }
  .Title header a.homelink img {
    height: 38px;
  }
  .Title header a.homelink span {
    margin: -2px 0 0 0;
  }
}

.Nav {
  height: 48px;
  background-color: #162645;
  box-sizing: border-box;
  padding: 0 10px;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
}
@media (max-width: 700px) {
  .Nav {
    height: auto;
    padding: 0;
    align-items: stretch;
  }
}
.Nav nav {
  max-width: 1400px;
  display: flex;
  flex-grow: 1;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
}
.Nav nav section {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: start;
}
.Nav nav section.buttons {
  gap: 5px;
}
.Nav nav section.socials {
  gap: 10px;
}
@media (max-width: 700px) {
  .Nav nav {
    flex-flow: column nowrap;
    max-width: unset;
    align-items: stretch;
  }
  .Nav nav section.buttons {
    flex-flow: column nowrap;
    gap: 0;
    align-items: stretch;
  }
  .Nav nav section.socials {
    justify-content: center;
    height: 48px;
  }
}
.Nav a.social {
  display: block;
}
.Nav a.social img {
  display: block;
}

.NavButton {
  display: block;
  height: 48px;
  line-height: 48px;
  box-sizing: border-box;
  min-width: 120px;
  border-bottom: 3px solid #fff;
  text-align: center;
  font-size: 20px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}
.NavButton:visited, .NavButton:link, .NavButton:active, .NavButton[href]:visited, .NavButton[href]:link, .NavButton[href]:active {
  color: #fff;
}
.NavButton {
  background-color: #1d365d;
}
.NavButton.current {
  background-color: #233f6a;
  border-color: #F44336;
}
.NavButton:hover {
  background-color: #2b4875;
  color: #fff;
}
.NavButton:active {
  background-color: #314f7d;
}
@media (max-width: 700px) {
  .NavButton {
    border-bottom: none;
    border-left: 3px solid #fff;
  }
}

.Header {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-flow: column nowrap;
  justify-content: start;
  align-items: stretch;
}

.Home {
  display: flex;
  flex-flow: row wrap;
  justify-content: start;
  align-items: flex-start;
  gap: 20px;
}
.Home section {
  flex-basis: 360px;
  flex-grow: 1;
}
.Home h1 {
  font-size: 1.375rem;
}

.ProjectsOverview ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}
.ProjectsOverview ul li:first-child {
  margin-top: 0;
}
.ProjectsOverview ul li .li-continuation {
  padding-left: 10px;
}
.ProjectsOverview ul li {
  margin: 0;
  margin-top: 10px;
}
.ProjectsOverview ul li h4,
.ProjectsOverview ul li p {
  margin: 0;
}
.ProjectsOverview ul li h4 {
  margin-bottom: 5px;
}

.Projects {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
}
@media (max-width: 700px) {
  .Projects {
    flex-flow: column-reverse nowrap;
    align-items: stretch;
  }
}

.ProjectsSidebar h1 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: normal;
}
.ProjectsSidebar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  padding-left: 8px;
}
.ProjectsSidebar ul li {
  margin-top: 6px;
  font-size: 1rem;
}
.ProjectsSidebar .current {
  font-weight: bold;
  color: #000;
}

.ProjectSummaries h1, .ProjectSummaries p {
  margin: 0;
}
.ProjectSummaries h2 {
  margin-top: 0;
}
.ProjectSummaries .project-url {
  margin-bottom: 10px;
}
.ProjectSummaries section {
  margin-top: 18px;
}

.Sudoku h1 {
  text-align: center;
}
.Sudoku .main-io {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
  gap: 40px;
}
.Sudoku h2 {
  margin: 0;
}
.Sudoku .input,
.Sudoku .output {
  display: flex;
  min-width: 0;
  flex: 0 1 320px;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.Sudoku .SolutionOutput .output-cell {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}
.Sudoku .SolutionOutput .output-cell.no-solution {
  background-color: #f88;
}
.Sudoku .SolutionOutput .output-cell.from-puzzle {
  background-color: #6cf;
}
.Sudoku .SolutionOutput .output-cell.from-puzzle.no-solution {
  background-color: #fc9;
}
.Sudoku .SolutionOutput .output-cell .value {
  margin: auto;
  font-size: 64cqw;
}
.Sudoku .SolutionOutput .grey-sector .output-cell.no-solution {
  background-color: #f55;
}
.Sudoku .SolutionOutput .grey-sector .output-cell.from-puzzle {
  background-color: #0af;
}
.Sudoku .SolutionOutput .grey-sector .output-cell.from-puzzle.no-solution {
  background-color: #ffb366;
}
.Sudoku .steps-area {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.Sudoku .steps {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 0 1 700px;
}
.Sudoku .StepsControls {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-self: stretch;
  align-items: center;
  gap: 10px;
}
.Sudoku .StepsControls .slider {
  align-self: stretch;
}
.Sudoku .StepsControls .directional-buttons {
  align-self: stretch;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
}
.Sudoku .StepsControls .directional-buttons button {
  flex: 0 1 60px;
  width: unset;
  display: flex;
}
.Sudoku .StepsControls .directional-buttons button span {
  margin: auto;
}
.Sudoku .ShowReasoning {
  align-self: stretch;
}
.Sudoku .ShowReasoning h3 {
  text-align: center;
}
.Sudoku .ShowReasoning .reasoning {
  min-height: 3lh;
}
@media (max-width: 700px) {
  .Sudoku .ShowReasoning .reasoning {
    min-height: 5lh;
  }
}
.Sudoku .AvailSetDisplay {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  container-type: inline-size;
}
.Sudoku .AvailSetDisplay.unsolveable-cause {
  background-color: #f88;
}
.Sudoku .AvailSetDisplay.from-input {
  background-color: #6cf;
}
.Sudoku .AvailSetDisplay.from-input.unsolveable-cause {
  background-color: #fc9;
}
.Sudoku .AvailSetDisplay.unsolveable-cause {
  background-color: #f88;
}
.Sudoku .AvailSetDisplay.unsolveable-cause.from-input {
  background-color: #f88;
}
.Sudoku .AvailSetDisplay.cause {
  background-color: #afa;
}
.Sudoku .AvailSetDisplay span {
  text-align: center;
  box-sizing: border-box;
}
.Sudoku .AvailSetDisplay span.only {
  font-size: 72cqw;
}
.Sudoku .AvailSetDisplay span.num {
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1/1;
  flex: 1 1 26cqw;
  font-size: 28cqw;
  overflow: hidden;
}
.Sudoku .AvailSetDisplay span.num.disproven {
  color: #a00;
  text-decoration: line-through 2px;
  border: 2px dashed #a00;
}
.Sudoku .AvailSetDisplay span.num.proven {
  color: #0a0;
  border: 2px dashed #0a0;
}
.Sudoku .AvailSetDisplay span.num .inner {
  display: block;
  height: 0;
  line-height: 0;
}
.Sudoku .grey-sector .AvailSetDisplay.unsolveable-cause {
  background-color: #f55;
}
.Sudoku .grey-sector .AvailSetDisplay.from-input {
  background-color: #0af;
}
.Sudoku .grey-sector .AvailSetDisplay.from-input.unsolveable-cause {
  background-color: #ffb366;
}
.Sudoku .grey-sector .AvailSetDisplay.cause {
  background-color: #7f7;
}
.Sudoku .Grid {
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
.Sudoku .Grid .row {
  display: flex;
  flex-direction: row;
  flex: 1 1;
}
.Sudoku .Grid .cell {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1;
  aspect-ratio: 1/1;
  container-type: inline-size;
  border: 1px solid black;
  border-bottom: none;
  border-right: none;
}
.Sudoku .Grid .cell.last-row {
  border-bottom: 1px solid black;
}
.Sudoku .Grid .cell.last-col {
  border-right: 1px solid black;
}
.Sudoku .Grid .cell.row-divider {
  border-top-width: 4px;
}
.Sudoku .Grid .cell.col-divider {
  border-left-width: 4px;
}
.Sudoku .Grid .cell.grey-sector {
  background-color: #ccc;
}
.Sudoku .NumInput {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.Sudoku .NumInput.selected {
  border: 2px solid #08f;
  background-color: #6cf;
}
.Sudoku .NumInput .hide-input {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
}
.Sudoku .NumInput .current-value {
  margin: auto;
  font-size: 64cqw;
  display: block;
  height: 0;
  line-height: 0;
}

.App {
  display: flex;
  flex-flow: column nowrap;
  justify-content: start;
  align-items: stretch;
}
