.sqrt {
  white-space: nowrap;
}

.sqrt > span {
  border-color: black;
  border-style: solid;
  border-width: 1px 0 0 0;
}

.sqrt::before {
  content: "\221A";
}

div.vector {
  display: inline-table;
  padding: 0 2px 0 2px;
  margin: 0px 1px;
  border-color: black;
  border-style: solid;
  border-width: 0 1px 0 1px;
  border-radius: 5px;
  vertical-align: middle;
  white-space: nowrap;
  text-align: center;
}

.fraction {
  display: inline-block;
  position: relative;
  vertical-align: middle;
  letter-spacing: 0.001em;
  text-align: center;
  white-space: nowrap;
}

.fraction > span {
  display: block;
  padding: 0.1em;
}

.fraction span:last-child {
  border-top: thin solid black;
}

.fraction span.symbol {
  display: none;
}

table#result td {
  vertical-align: text-top;
  text-align: left;
}

span.solutionButton:hover,
p.solutionButton:hover {
  cursor: pointer;
  background: #000;
  color: #ccc;
  white-space: nowrap;
}

.head_button {
  cursor: pointer;
  background: #fff;
  border-width: 1px;
  border-color: #333;
  padding: 3px 20px;
  margin: 3px;
  border-radius: 5px;
}

.head_button:hover {
  background: #000;
  color: #ccc;
}

.head_button:active {
  background: rgb(141, 140, 140);
  color: #ccc;
}

table.chess_board.array td {
  color: rgb(141, 140, 140);
}

section:not(:first-child) {
  background-color: var(--nord-4-snow-storm);
}

table.chess_board {
  margin: 0 auto;
  text-align: center;
  aspect-ratio: 1 / 1;
  table-layout: fixed;
}

span.queen.black {
  color: #000;
  font-size: 4vmin;
  aspect-ratio: 1 / 1;
}

.chess_board td {
  background: #fff;
  max-height: 6vmin;
  min-height: 6vmin;
  height: 6vmin;
  max-width: 6vmin;
  min-width: 6vmin;
  width: 6vmin;
  aspect-ratio: 1 / 1;
  vertical-align: middle;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: #777 !important;
}

.chess_board td span {
  margin-left: -4px !important;
  margin-top: 4px !important;
}

.chess_board tr:nth-child(odd) td:nth-child(odd),
.chess_board tr:nth-child(even) td:nth-child(even) {
  background: #ccc;
}

.chess_board tr td:first-child,
.chess_board tr:last-child td {
  background: #ffcd9b !important;
}

.chess_board tr td:first-child {
  border-right-width: 3px !important;
  border-right-color: #000 !important;
}

.chess_board tr:last-child td {
  border-top-width: 3px !important;
  border-top-color: #000 !important;
}

table.arrayTable th {
  background: #ffcd9b !important;
}

table.arrayTable td:nth-child(even) {
  background: #fff;
}

table.arrayTable td:nth-child(odd) {
  background: #ccc;
}

table.arrayTable {
  border-spacing: 0;
}

table.arrayTable td,
table.arrayTable th {
  max-height: 6vmin;
  min-height: 6vmin;
  height: 6vmin;
  max-width: 6vmin;
  min-width: 6vmin;
  width: 6vmin;
  aspect-ratio: 1 / 1;
  vertical-align: middle;
  text-align: center;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: #777 !important;
  padding: 0;
}

table.arrayTable tr th:first-child {
  border-right-width: 3px !important;
  border-right-style: solid !important;
  border-right-color: #000 !important;
}

table.arrayTable tr:first-child th {
  border-bottom-width: 3px !important;
  border-bottom-style: solid !important;
  border-bottom-color: #000 !important;
}

table.arrayTable {
  margin: 0 auto;
}

.formular {
  /* padding: 10px; */
  /* display: inline; */
  /* margin: 0 auto; */
  padding: 10px;
  font-size: 100%;
  font-family: "Go Mono", "Courier New", Courier, monospace;
  /* text-align: left;
            word-wrap: break-word; */
}

pre.danger-a,
pre.danger-b,
pre.danger-c,
pre.danger-d,
pre.danger {
  padding: 10px;
}

div.danger,
pre.danger,
span.danger,
td.danger {
  background: #ff9696 !important;
}

div.danger-a,
pre.danger-a,
span.danger-a,
td.danger-a {
  background: rgb(233, 195, 255) !important;
}

div.danger-b,
pre.danger-b,
span.danger-b,
td.danger-b {
  background: rgb(177, 239, 255) !important;
}

div.danger-c,
pre.danger-c,
span.danger-c,
td.danger-c {
  background: rgb(192, 255, 179) !important;
}

div.danger-d,
pre.danger-d,
span.danger-d,
td.danger-d {
  background: rgb(253, 214, 188) !important;
}

.complex-a {
  background-color: rgb(177, 118, 189) !important;
}

.complex-b {
  background-color: rgb(74, 219, 255) !important;
}

.complex-c {
  background-color: rgb(104, 255, 74) !important;
}

.complex-d {
  background-color: rgb(248, 159, 87) !important;
}

.mirror-a {
  background-color: rgb(74, 219, 255) !important;
}

.mirror-b {
  background-color: rgb(104, 255, 74) !important;
}

.mirror-c {
  background-color: rgb(177, 118, 189) !important;
}

.mirror-d {
  background-color: rgb(248, 159, 87) !important;
}

.highlight {
  border-color: var(--highlight);
  border-style: solid;
  border-width: 0 0 2px 2px;
}

:root {
  --highlight: #4adbff;
}
