html {
  margin: 0;
}

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

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

@media only screen and (max-device-width: 800px) {
  div .main {
    flex-direction: column;
    align-items: center;
  }
}

.main {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: start;
  padding-left: 1em;
  padding-right: 1em;
  gap: 1em;
}


input {
  padding: 0.4em 0.6em;
  font-size: 1em;
  line-height: 1.2em;
  width: 18em;
  border: 1px solid;
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 0.4rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: rgb(250, 250, 250);
  transition-duration: 0.15s;
  transition-property: color, box-shadow;
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px;
  margin-block-start: 0.5em;
  margin-block-end: 0px;
}

input:focus {
  border-color: rgb(118, 118, 118);
  box-shadow: rgba(118, 118, 118, 0.5) 0px 0px 0px 3px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
}

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: 2em;
  text-align: center;
  line-height: 1em;
  margin-block-start: 0.25em;
  margin-block-end: 0.25em;
  color: #fafafa;
  font-weight: 600;
}

h2 {
  font-size: 1.1em;
  line-height: 1em;
  margin: 0em;
  margin-block-start: 0em;
  margin-block-end: 0em;
  color: #fafafa;
  font-weight: 600;
}

h3 {
  font-size: 1.1em;
  line-height: 1.2em;
  font-weight: 600;
  color: #fafafa;
  margin: 0px;
}

.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;
}

.wide {
  width: 100%;
}

.tall {
  height: 100%;
}

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

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

.item {
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding: 1.5em;
  border: 1px solid;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.9em;
  background-color: #171717;
}

.item.input-item {
  max-width: 20em;
  gap: 0.7em;
}

.item.output-item {
  max-width: 20em;
}

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


.error {
  max-width: 18em;
  color: #ac2847;
}

.item.input-item input.error-red {
  background-color: #440000;
}

.item.input-item .title {
  font-weight: 600;
  font-size: 1.5em;
  color: #fafafa;
  margin: 0em;
}

.item.input-item .label {
  font-size: 1em;
  font-weight: 500;
  color: #fafafa
}

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

.item.output-item p.title {
  font-size: 1.1em;
  line-height: 1.5em;
  margin: 0em;
  margin-block-start: 0em;
  margin-block-end: 0em;
  color: #fafafa;
  font-weight: 600;
}

.item.output-item .subtitle {
  text-transform: uppercase;
  font-size: 1em;
  line-height: 1em;
  margin: 0em;
  margin-block-start: 0.5em;
}

.item .big-num {
  color: #fafafa;
  font-size: 2em;
  line-height: 1em;
  margin-block-start: 0.25em;
  font-weight: 600;
}

.item .explainer {
  color: #fafafa;
  font-size: 1em;
}

.item exact {
  font-size: 1em;
  line-height: 1.1em;
}

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

.item b {
  color: #fafafa;
  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;
}

