h1 {
  margin-block-start: 0;
}

#main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-block-start: 16px;
  gap: 32px;
}

aside {
  position: sticky;
  top: 86px;
  align-self: start;
}

#description {
  max-width: 80ch;

  pre {
    max-width: 100%;
    border: 1px dashed;
    padding: 8px;

    code {
      max-width: 100%;
      white-space: break-spaces;
    }
  }
}

#editor {
  resize: vertical;
  min-height: 250px;
  /*  KEEP THIS COLOR */
  background-color: #212034 !important;
  border: 1px solid var(--foreground);
  padding: 16px;
}

.code-actions {
  display: flex;
  justify-content: flex-end;
  margin-block: 8px;
  gap: 8px;
}

ul {
  list-style: none;
  display: grid;
  gap: 8px;
  max-width: 100%;

  li {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 64px;
    overflow: hidden;
    white-space: nowrap;

    &::after {
      content: '..................................................................................................................';
      position: absolute;
      z-index: -1;
      user-select: none;
    }

    button {
      border-radius: 0 !important;
    }

  }
}

li span {
  background-color: var(--background);
}

.status {
  width: fit-content;
  white-space: nowrap;
  background-color: var(--background);
  border-radius: 4px;
  padding-inline: 4px;

  &.correct {
    background-color: var(--foreground);
    color: var(--background);
  }

  &.incorrect {
    background-color: var(--background-lighter);
  }
}

td span {
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  max-width: 50ch;
}

@media (max-width: 768px) {
  #main {
    grid-template-columns: 1fr;
  }

  aside {
    position: static;
    top: auto;
  }

  td span {
    max-width: 30ch;
  }
}