/* Styles for the pages in pages/code/ only.
   _config.yml loads this file for that folder (see "defaults"). */

/* Smaller page title (the theme uses 3.125rem, and 5rem on wide screens) */
.intro-header .page-heading h1 {
  font-size: 1.75rem;
}

@media (min-width: 1200px) {
  .intro-header .page-heading h1 {
    font-size: 2.5rem;
  }
}

/* Copy button on code blocks (added by /assets/js/copy-code.js) */
.copy-code-button {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #AAAAAA;
  background-color: #222733;
  border: 1px solid #34EB6E55;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.highlighter-rouge:hover .copy-code-button,
figure.highlight:hover .copy-code-button,
.copy-code-button:focus {
  opacity: 1;
}

.copy-code-button:hover {
  color: #34EB6E;
  border-color: #34EB6E;
}

/* Always show the button on touch screens (no hover) */
@media (hover: none) {
  .copy-code-button {
    opacity: 1;
  }
}
