ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
  content: '';
  content: none;
}
*, *:after, *:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
/*============DEFINE COLORS============*/
/*============END DEFINE COLORS============*/
/*============ MIXINS ============*/
/*============ END MIXINS ============*/
/*============TEXT STYLING============*/
#calculator p {
  margin-bottom: 1em;
  line-height: 120%;
  text-align: justify;
}
#calculator a {
  color: #A99BC7;
}
#calculator a:hover, #calculator a:focus, #calculator a:active {
  color: orange;
  text-decoration: underline;
}
i, em {
  font-style: italic;
}
strong {
  font-weight: bold;
}
/*============END TEXT STYLING============*/
/* Change this to make calculator bigger or smaller */
/* Don't change these */
/*============CONTENT============*/
#calculator {
  margin: 0 auto;
  width: 380px;
  margin-top: 1rem;
}
#calculator:after {
  content: "";
  display: table;
  clear: both;
}
/*============END CONTENT============*/
/*============ TABLES ============*/
table.calculator {
  position: relative;
  width: 200px;
  border-collapse: separate;
  border-spacing: 0;
}
table.calculator caption {
  position: fixed;
  color: white;
  margin-top: -80px;
  margin-left: 10px;
  font-size: 80%;
}
table.calculator th, table.calculator td {
  width: 40px;
  height: 40px;
  font-size: 100%;
  vertical-align: middle;
}
table.calculator th:not(.result), table.calculator td:not(.result) {
  cursor: pointer;
}
table.calculator th:active, table.calculator td:active {
  background-color: gray;
}
table.calculator td {
  border-bottom: 1px solid gray;
  border-right: 1px solid gray;
  text-align: center;
}
table.calculator td:first-child {
  border-left: 1px solid gray;
}
table.calculator thead {
  background-color: #545252;
  background: linear-gradient(#878585, #545252);
  color: white;
  font-size: 200%;
  text-align: right;
}
table.calculator thead th.result {
  padding: 20px 10px 20px 10px;
}
table.calculator thead th.result:first-child {
  border-top-left-radius: 10px;
}
table.calculator thead th.result:last-child {
  border-top-right-radius: 10px;
}
table.calculator tbody tr.top-row td {
  background-color: #A99BC7;
  color: white;
}
table.calculator tbody tr.top-row td:active {
  background-color: #8d7ab5;
}
table.calculator tbody tr.top-row-2 td {
  background-color: #cdcdcd;
}
table.calculator tbody tr.top-row-2 td:active {
  background-color: gray;
}
table.calculator tbody tr.top-row-2 td:last-child, table.calculator tbody td:last-child {
  background-color: orange;
  color: white;
}
table.calculator tbody tr.top-row-2 td:last-child:active, table.calculator tbody td:last-child:active, table.calculator tbody tr.top-row-2 td:last-child.active, table.calculator tbody td:last-child.active {
  background-color: #cc8400;
}
table.calculator tbody td {
  background-color: whitesmoke;
}
table.calculator tbody tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
  text-align: left;
  padding-left: 19.2307692308px;
}
table.calculator tbody tr:last-child td:last-child {
  width: 80px;
  padding-top: 8px;
  border-bottom-right-radius: 15px;
}
/*============ END TABLES ============*/
