html, body{
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: Arial;
}

body{
    padding-bottom: 1em;
}

header{
  background: #242b31;
  vertical-align: middle;
  position: relative;
  display: flex;
  align-items: center;
  flex-grow: 0;
}

header > *{
  flex-shrink: 0;
}

header img{
  filter: invert();
  height: 30px;
  width: 30px;
  margin-right: 0.5em;
  margin-left: 10px;
}

header button{
    border: none;
    background: #92a1a1;
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin-left: 5px;
    margin-right: 5px;
    font-size: 15px;
    border-radius: 0.25em;
}

h1{
  margin: 0;
  color: #fff;
  display: inline-block;
  flex-grow: 1;
  flex-shrink: 1;
}

h3{
    margin-top: 0;
}

#calculator{
    text-align: center;
    margin-top: 30px;
}

#controls{
    display: inline-grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
}

#controls button{
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    border-radius: 5px;
    border-width: 1px;
    padding: 8px;
}

.op{
    background: #92a1a1;
    color: white;
}

#sum{
    font-size: 30px;
    text-align: center;
    width: 90%;
}

#result{
    height: 1em;
    font-size: 25px;
    text-align: right;
    width: 90%;
    margin-top: 5px;
    margin-bottom: 20px;
    margin-left: 5%;
}

#intro{
    padding-left: 20px;
    padding-right: 20px;
}

article{
    padding-left: 20px;
    padding-right: 20px;
}

#customBase{
    display: none;
}

table{
    font-size: 20px;
    border-spacing: 0;
    width: 100%;
    border: 1px solid black;
}

th{
    text-align: right;
    background: #d6cecf;
    border-right: 1px solid black;
    padding: 2px;
}

td{
    min-width: 10ch;
    text-align: right;
    overflow-x: scroll;
    padding-right: 5px;
    border-right: 1px solid black;
}

th:last-child, td:last-child{
    border-right: none;
}

.outColumn{
    width: 100%;
    padding: 2px;
}

.menu{
  display: inline-block;
  position: relative;
}

.menu > a{
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding-left: 6px;
  padding-right: 6px;
}

.menu ul{
  display: none;
  background: #ffffff;
  list-style-type: none;
  padding: 0;
  margin: 0;
  z-index: 100;
}

.menu:hover ul{
  display: block;
  position: absolute;
}

.menu li{
  padding: 5px;
}

.menu li:hover{
  background: #dcdcdc;
}

.menu li a{
  display: block;
  width: 100%;
  text-decoration: none;
  color: #242b31;
}

#base label{
    display: inline-block;
}

#holder{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    width: 90%;
    margin-left: 5%;
    gap: 20px;
}

#holder > :last-child{
    flex-grow: 1;
}

#holder > div{
    flex-shrink: 0;
}