.chessgroundMarkdownContainer {
  margin-bottom: 1em;
  display: grid;
  grid-template-columns: max-content;
  row-gap: 7px;
}
.chessgroundMarkdownContainer:focus {
  outline: none;
}

.chessgroundMarkdown {
  width: 280px;
  height: auto;
  object-fit: contain;
  min-width: 150px;
  max-width: 600px;
  aspect-ratio: 1 / 1;
}

.chessgroundMarkdown .chessGame {
  grid-column: 1 / 2;
  grid-row: 1 / 1;
  row-gap: 10px;
}

.chessgroundMarkdown .chessPosition {
  grid-column: 1 / 1;
  grid-row: 1 / 2;
}

.chessgroundInfo {
  grid-column: 2 / 2;
  grid-row: 1 / 1;
  min-width: 100px;
  padding-left: 10px;
  font-size: 0.85em;
  color: var(--vscode-textPreformat-foreground);

  overflow-wrap: break-word;
  word-wrap: break-word;

  display: flex;
  flex-direction: column;
}

.chessgroundInfo button {
  margin-top: 0.5em;
  color: var(--vscode-button-foreground);
  background: var(--vscode-button-background);
  border: 1px solid var(--vscode-button-border, transparent);
  cursor: pointer;
  max-width: 150px;
  user-select: none;
}

.chessgroundInfo button:hover {
  filter: brightness(0.9);
}

.chessgroundMoves {
  grid-column: 1 / 1;
  grid-row: 2 / 2;
  min-width: 100px;
  font-size: 0.9em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.chessgroundMoveButtons {
  display: grid;
  justify-content: center;
  grid-template-columns: auto;
}

.chessgroundMoves button {
  grid-row: 1 / 1;
  padding: 4px;
  min-width: 2em;
  font-size: 1.5em;
  font-family: lichess-minimal;
  text-align: center;
  background-color: transparent;
  background-repeat: no-repeat;
  border: none;
  overflow: hidden;
  outline: hidden;
  color: var(--vscode-editor-foreground);
  cursor: pointer;
  user-select: none;
}

.chessgroundMoves button:disabled {
  opacity: 0.5;
  cursor: default;
}

.chessgroundMoves button:hover:enabled {
  background: #537c23;
  color: #ffffff;
}
