body {
  font-family: 'Roboto Mono', monospace;
  font-weight: 300;
  font-size: calc(max(4vh, 20px));

  background-color: #ccc;
}

button {
  cursor: pointer;

  text-align: center;
  padding-top: -5px;
  border: none;

  font-size: 1.5em;

  margin: 0;
  padding: 0; /* mobile Safari fix */
}

input, textarea {
  margin: 0;
  padding: 0.5em;
  font-family: inherit;
  font-size: inherit;
  border: none;
}

input:focus, textarea:focus {
  outline: none;
}

button span {
  display: inline-block;
}

#eval span {
  transform: translateY(-0.05em);
}

label {
  position: absolute;
  top: 8px;
  left: 10px;

  font-weight: 100;
  text-transform: uppercase;
  color: #aaa;
}

#error {
  position: absolute;
  bottom: 110px;
  left: 12px;
  font-size: 0.5em;
  color: #a00;
}

#wrapper {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  display: flex;
  border-top: 1px solid #ccc;
}

#left {
  flex-grow: 2;
  flex-basis: 66%;

  display: flex;
  flex-direction: column;
}

#input {
  flex-grow: 1;
  height: 100%;

  padding-top: 2.5em;
}

#bottom {
  display: flex;
  max-height: 100px;

  flex-grow: 0;
}

#eval {
  min-width: 100px;
  min-height: 100px;

  font-size: 40px;
}

#output {
  flex-grow: 1;
  width: 100px;
  font-size: 1.5em;

  border-top: 1px solid #ccc;
  padding-left: 30px;
}

#right {
  display: flex;
  flex-direction: column;

  flex-grow: 1;
  flex-basis: 34%;
  background-color: #ddd;
}

#history {
  position: relative;
  flex-basis: 60%;

  padding: 10px;
  padding-top: 2.5em;

  overflow-y: scroll;
}

#variables {
  position: relative;
  flex-basis: 40%;

  overflow-y: scroll;
}

.content {
  padding: 10px;
  padding-top: 2em;
}

.input {
  cursor: pointer;
}

.output {
  cursor: pointer;
  font-weight: 600;
}

.input:hover, .output:hover {
  background-color: white;
}

hr {
  border: none;
  border-bottom: 1px solid gray;
}

@media (orientation: portrait) {
  #right {
    display: none;
  }
}
