form#input {
  text-align: center;
  font-family: sans-serif;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  margin: 1em 1em;
  padding: 1ex 0px; }

div#next_button {
  display: none; }

table#show_table {
  width: 90%;
  margin: 1ex 5%;
  display: none; }

td#log_td {
  /* font-family: comic sans ms, fantasy; */
  font-family: sans-serif;
  font-style: italic;
  font-size: 9pt;
  color: #000080;
  padding: 1ex 2ex;
  background: #ffffc0;
  border-color: #c0c0c0 #404040 #404040 #c0c0c0;
  border-width: 1px 2px 2px 1px;
  border-style: solid;
  vertical-align: top;
  width: 50%; }

td#calc_td {
  vertical-align: top;
  width: 50%;
  text-align: right; }

div#log {
  height: 100%;
  overflow: auto; }

table#calc_table {
  margin: 1em;
  float: right;
  font-family: courier new, courier, monospace;
  font-size: 16pt;
  font-weight: bold;
  empty-cells: show; }

th#operator {
  font-family: comic sans ms, fantasy;
  font-style: italic;
  color: red;
  font-size: 150%; }

tr#carry_add,
tr.carry_mul,
tr#carry {
  color: #808080;
  font-weight: normal;
  font-size: 80%; }

div#log .carry_add, div#log .carry_mul
div#log .carry {
  color: #808080;
  font-weight: bold; }

div#log .op1, div#log .op2,
tr#op1, tr#op2 {
  color: black;
  font-weight: bold; }

div#log .result,
tr#result {
  color: green;
  font-weight: bold; }

div#log .result_mul,
tr.result_mul {
  color: #00c000;
  font-weight: bold; }

tr#carry_add td {
  border-bottom: dotted 1px gray; }

tr#result_mul_0 td,
tr#result td {
  border-top: solid 1px black; }

tr#carry_add td.borderless,
tr#result_mul_0 td.borderless,
tr#result td.borderless {
  border: none; }

tr.i0s, tr.i1s {
  color: #808080;
  font-weight: bold; }

tr.i0s td.taken {
  color: black; }

tr.i1s td {
  border-bottom: solid 1px gray; }

tr.i1s td.borderless {
  border-bottom: none; }

tr#divisor_dividend td.dividend {
  border-top: solid 1px black; }

tr#divisor_dividend td#dividend_first_cell {
  border-left: solid 1px black; }

tr#divisor_dividend td#divisor_last_cell {
  padding-right: 0.3ex; }

tr#divisor_dividend td.current_digit {
  border-right: solid 1px gray; }

td.remainder {
  color: blue; }

div#log .remainder {
  color: green;
  font-weight: bold; }

input#make_up {
  font-weight: bold;
  font-size: 80%;
  float: right;
  cursor: pointer;
  color: maroon;
  height: 3em; }
