html,
body,
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Courier New", Courier, monospace;
  color: #0f0;
}
body {
  background-color: #111;
}
button {
  padding: 10px;
  background: #111;
  border: 1px solid #0f0;
  border-radius: 5px;
  box-shadow: 0 0 5px #0f0;
  cursor: pointer;
}

button:hover {
  background: #0a0;
  box-shadow: 0 0 10px #0f0;
}

input {
  margin: 2px;
  padding: 10px;
  background: #111;
  border: 1px solid #0f0;
  border-radius: 5px;
  box-shadow: 0 0 5px #0f0 inset;
  outline: none;
}

input:focus {
  box-shadow: 1px 1px 8px #0f0;
}
.controls {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: end;
  gap: 5px;
  padding: 5px;
}
.divider {
  height: 20px;
}
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  width: 100%;
  height: 100vh;
  gap: 5px;
}
.input-info {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 5px;
}
.span {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  &:nth-child(2n + 1) {
    flex: 0.3;
    input {
      width: 100%;
    }
  }
  input {
    width: 100%;
  }
}
.row {
  flex-direction: row;
}
.column {
  flex-direction: column;
}
.main {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}
.input,
.output {
  background: rgb(21, 21, 21);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  flex: 1;
  gap: 10px;
}
.output {
  align-items: flex-start;
}
.console {
  padding: 5px;
  border: none;
  border-right: rgb(132, 132, 132) 1px dotted;
  border-left: rgb(137, 137, 137) 1px dotted;
  background-color: rgb(0, 0, 0);
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  flex: 1;
  button {
    margin: 5px 5px 0 auto;
    font-size: x-small;
  }
  ul {
    background-color: rgb(0, 0, 0);
    scroll-behavior: smooth;
    overflow-y: auto;
    padding: 10px;
    width: 100%;
    list-style: none;
    flex-direction: column-reverse;
    li {
      background-color: rgb(0, 0, 0);
      text-wrap: balance;
      word-break: break-all;
      margin: 5px;
      font-weight: bolder;
    }
    &::-webkit-scrollbar {
      width: 8px;
      background-color: rgb(33, 33, 33);
    }
    &::-webkit-scrollbar-thumb {
      border-radius: 10px;
      background-color: #0f0;
    }
  }
}
.dividerSmall {
  height: 5px;
}
.credits {
  margin-top: auto;
  text-align: right;
  align-self: flex-end;
  padding-bottom: 10px;
}
@media (max-width: 600px) {
  .controls {
    width: 100%;
  }
  button,
  input {
    width: 100%;
  }
  .controls {
    input {
      width: auto;
    }
  }
  .main {
    overflow-y: auto;
    flex-direction: column;
    height: 150vh;
    .input {
      max-height: 40vh;
    }

    .console {
      border: none;
      border-top: rgb(79, 79, 79) 2px dotted;
      border-bottom: rgb(79, 79, 79) 2px dotted;
      max-height: 50vh;
    }
  }
}
