#inout {
  display: grid;
  grid-template-rows: min-content auto;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: column;
  gap: 2.5px 10px;
}

#inout .CodeMirror {
  height: 160px;
}

#side-problem,
#side-code {
  height: 100%;
  overflow-y: auto;
}

#side-code-form {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  row-gap: 10px;
}

#source-code-edit~.CodeMirror {
  height: -webkit-fill-available;
  min-height: 480px;
}

#code-utilities {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

.inout-label {
  font-size: 0.75em;
  text-transform: uppercase;
  opacity: 0.5;
  letter-spacing: 0.25em;
  text-align: center;
}

#error {
  font-size: 0.75em;
  padding: 0 10px;
  border: solid rgba(var(--black), 0.1) 1.5px;
  text-align: center;
  transition: background-color var(--ani-100) ease;
  max-height: 12.5em;
  overflow-y: auto;
}

#error.green {
  background-color: rgba(var(--oi-green-light), 0.25);
}

#error.red {
  background-color: rgba(255, 0, 0, 0.25);
  text-align: left;
  font-family: var(--code-font);
  white-space: pre-wrap;
}

@keyframes flash {
  from {
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

#output.flash-appear~.CodeMirror:before,
#input.flash-appear~.CodeMirror:before,
#source-code-edit.flash-appear~.CodeMirror:before {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  animation: flash var(--ani-150) ease-out;
  background-color: rgba(var(--oi-green-light), 0.25);
  opacity: 0;
}

.code-saved #save-button {
  display: none;
}

#submit-button {
  display: none;
}

.code-saved #submit-button {
  display: revert;
}