body {
  padding: 8px;
  width: 100%;
}

#header-bar {
  padding: 1rem;
  background-color: transparent;
}

#permalink-btn {
  margin-right: 1rem;
}

#logo {
  color: inherit;
}

main {
  display: flex;
  flex-direction: column;
}

#linter {
  width: 100%;
  display: flex;
  flex-direction: row;
}

#controls {
  display: flex;
  flex-wrap: wrap;
  row-gap: 8px;
  margin-top: 8px;
}

#url-input {
  margin-bottom: 0;
}

#invalid-input {
  display: none;
  word-break: break-all;
}

.split-pane {
  box-sizing: border-box;
  padding: 8px;
  width: 50%;
  display: flex;
  flex-direction: column;
}

#error-msg,
#success-msg {
  display: none;
}

.CodeMirror {
  height: auto;
  border: solid 1px #ccc;
  border-radius: 4px;
}

.error-marker {
  width: 1em;
}

#lint-result {
  --bulma-table-background-color: #efeff8;

  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 0;
}

#res-icon {
  margin-right: 0.3em;
}

.sticky {
  position: sticky;
  top: 0;
}

footer {
  margin-top: 32px;
}

@media (width <= 1200px) {
  #linter {
    flex-direction: column;
  }

  .split-pane {
    width: 100%;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }

  .CodeMirror {
    border: solid 1px #555;
  }

  #lint-result {
    --bulma-table-background-color: #222;
  }

  /* Similar to `.has-text-link-light`, but use a light color only in dark mode */
  .has-text-link-my-light {
    --bulma-color-l: var(--bulma-link-light-l);
  }
}
