body {
  font-size: 1.5rem;
  flex-direction: column;

  @media (max-width: 1024px) {
    font-size: 0.85rem;
    justify-content: space-between;
    height: calc(100svh - 2rem);
  }
}

aside {
  font-size: 1rem;
  position: absolute;

  @media (max-width: 1024px) {
    position: relative;
    line-height: 0.4rem;

    button {
      margin-top: 0.4rem;
    }
  }
}

main pre {
  margin: 0.4rem 0;
}

p {
  margin: 0.25rem;
}

span {
  word-wrap: break-word;
}

pre, button {
  font-size: smaller;
  background-color: #4d4d4d;
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  color: #ffcb6b;
  white-space: pre;
  border: 1px solid #898989;
  cursor: pointer;
  margin: 0.3rem 0.4rem;

  &:hover {
    color: #1d99f3;
  }

  @media (max-width: 1024px) {
    font-size: small;
    padding: 0.4rem 0.5rem;
  }
}

button {
  background-color: #0c0c0c;
  border: 1px solid #2d2d2d;
  color: #1abc9c;
}

.terminal {
  display: flex;
  align-items: center;
}

.path {
  color: #1d99f3;
}

#typing {
  caret-color: #ffcb6b;
}

#cursor {
  display: inline-block;
  width: 10px;
  height: 1.2rem;
  animation: blink 1s steps(1, start) infinite;

  @media (max-width: 1024px) {
    width: 5px;
    height: 0.75rem;
  }
}

.desktop {
  display: block;

  @media (max-width: 1024px) {
    display: none;
  }
}

.mobile {
  display: none;

  @media (max-width: 1024px) {
    display: block;
  }
}

.result {
  color: #ffcb6b;
}

.err {
  color: #ff6b6b;
}

.ext-link {
  color: #ffcb6b;
  text-decoration: none;
  margin-right: 0.5rem;

  &:hover {
    color: #1d99f3;
  }
}

@keyframes blink {
  0%,
  100% {
    background-color: #ffcb6b;
  }

  50% {
    background-color: transparent;
  }
}
