html {
  height: 100%;
  width: 100%;
  margin: 0;
}

body {
  font-size: 16px;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 1em;
  box-sizing: border-box;
  background-color: #151515;
  color: #bbbbbb;
  font-family: monospaced, sans-serif, serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media only screen and (max-device-width: 480px) {
  body {
    font-size: 30px;
  }
}

input {
  font-family: math, serif;
  margin: 0.2em;
  font-size: 2em;
  width: 8em;
  text-align: center;
  border: 0.1rem #777777 solid;
  border-radius: 0.3rem;
}

img {
  height: 100%;
  object-fit: contain;
}


button {
  padding: 0.2em 1.5em;
  margin: 0.2em;
  width: 6em;
  background-color: #000000;
  color: #dddddd;
  font-weight: bold;
  border: 0.15em solid #dddddd;
  box-shadow: 0.2em 0.2em 0 #777777;
  border-radius: 2em;
  font-size: 1.5em;
}

button:hover {
  background-color: #dddddd;
  color: #000000;
  border-color: #222222;
}

button:active {
  background-color: #dddddd;
  color: #000000;
  box-shadow: 0 0 0 #00000000;
  border-color: #ffffff;
  transform: translateX(0.2em) translateY(0.2em)
}

h1 {
  font-size: 2.5em;
  margin-block-start: 1rem;
  margin-block-end: 1rem;
}

h2 {
  font-size: 2em;
  margin: 0em;
}

.left {
  text-align: left;
}

.border {
  background-color: #222222;
  padding: 0.6em;
  border: 0.4em outset #777777;
  border-radius: 0.2em;
}

.row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
}

.col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 1em;
}

.col1 {
  width: 11em;
}
.col2 {
  width: 12em;
}
.col3 {
  width: 13em;
}

.main {
  justify-content: start;
}

.wide {
  width: 100%;
}

.tall {
  height: 100%;
}

.align-start {
  align-items: start;
}

.item-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  row-gap: 1em;
  column-gap: 1em;
  flex-wrap: wrap;
}

.item {
  font-family: math, serif;
  width: 24em;
  height: 5em;
  padding: 1.1em;
  border: 0.1em #777777 solid;
  border-radius: 0.3em;
  background-color: #000000;
}

.item.input-item {
  background-color: #08231d;
}

.item.input-item.bad-input {
  background-color: #550000;
}

.item-container .item.not-applicable {
  opacity: 0.5;
}

.item h3 {
  font-family: sans-serif;
  font-size: 1.5em;
  line-height: 1em;
  margin: 0em;
  margin-block-start: 0em;
  margin-block-end: 0.3em;
  text-align: left;
}

.item p {
  font-size: 1.2em;
  margin: 0em;
  margin-block-start: 0.4em;
  margin-block-end: 0em;
}

.item b {
  color: #ffffff;
  font-size: 1.1em;
  margin-left: 0.1em;
  margin-right: 0.1em;
}

.item.percent b {
  font-size: 1.3em;
}

.warning {
  padding: 1em;
}

.warning b {
  color: #dd1111;
}

