* {
  font-family: math;
}


body {
  background-color: #d4d4d4;
  background-size: cover;
  padding-top: 0px;
  margin-top: 0px;
  padding-bottom: 0px;
  margin-bottom: 0px;
  height: 100vh;
}

.calculator {
  background-color:#fafafa;
  padding-bottom: 0px; 
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 0px;
  border: 2px solid rgb(33, 33, 33);
  border-top: 0px;
  border-bottom: 0px;
  min-height: 100%;
  height: fit-content;
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}

.infobox {
  border: 2px solid rgb(121, 121, 121);
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 0px;
  margin-right: 0px;
  padding: 8px;
  font-size: 0.9rem;
  background-color:#eeeeee;
}

header {
  padding-top: 2px;
}

table {
  border: 0px solid;  
  border-collapse: collapse;
  padding: 2px;
  margin: 5px;
}

#onematrixoutputs, #twomatrixoutputs {
  display: flex;
  flex-wrap: wrap;
}

.output {
  padding: 10px;

  table {
    margin-bottom: 6px;
    min-width:140px;
    max-width:100%;
  }
}

td {
  text-align: center;
  border: 0px solid;
  padding: 2px;
  min-width: 40px;
}

input {
  text-align: center;
  border: 1px solid #909090;
  width: 38px;
}

input:focus {
  outline: 1px solid black;
}

button {
  margin-top: 3px;
  margin-bottom: 3px;
}

button:focus {
  outline: none;
}

button:hover {
  background-color: #00000034;
  border: 2px solid #515050;
  border-radius: 3px;
}

.matrix {
  position: relative;
}

.matrix:before, .matrix:after {
  content: "";
  position: absolute;
  top: -2px;
  border: 2px solid #000;
  width: 6px;
  height: 100%;
}

.matrix:before {
  left: -6px;
  border-right: 0;
}

.matrix:after {
  right: -6px;
  border-left: 0;
}

p {
  margin-bottom: 2px;
}

a  {
  color:black;
}

a:link {
  color: black;
  text-decoration: underline;
}

a:visited {
  color: black;
}

.astext {
  background:none;
  border:none;
  margin:0;
  padding:0;
  cursor: pointer;
  text-decoration: underline;
  font-size: 16px;
}

.astext:hover {
  background:none;
  border:none;
  margin:0;
  padding:0;
  cursor: pointer;
  text-decoration: underline;
  font-size: 16px;
}

.copypaste {
  margin-bottom: 8px;
}
