body {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: auto;
}

header,
nav {
  text-align: center;
  margin-bottom: 2em;
}

ul {
  list-style-type: none;
}

h2,
h3 {
  color: #333;
}

/* general styling for all code blocks */
code {
  display: inline-block;
  padding: 0.2em 0.4em;
  font-family: monospace;
  background-color: #f5f5f5;
  color: #333;
  border-radius: 4px;
}

/* container around code blocks */
.pre-container {
  position: relative;
  margin: 1em 0;
  border-radius: 6px;
  overflow: hidden;
}

/* label at the top left of the code block */
.pre-container .code-header {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.3em 0.6em;
  background-color: #333;
  color: #f5f5f5;
  font-size: 0.8em;
  text-transform: uppercase;
  font-family: sans-serif;
  border-bottom-right-radius: 4px;
}

/* copy icon at the top right of the code block */
.pre-container .copy-icon {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.3em 0.6em;
  cursor: pointer;
  background-color: #333;
  color: #f5f5f5;
  font-size: 0.8em;
  border-bottom-left-radius: 4px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

/* basic styling for pre and code blocks */
pre {
  padding: 1em;
  background-color: #2d2d2d;
  color: #f8f8f2;
  margin: 0;
  border-radius: 6px;
  position: relative;
}

/* language-specific styling */
code.language-yaml {
  background-color: #fdf6e3;
  color: #657b83;
}

code.language-crystal {
  background-color: #2e3440;
  color: #88c0d0;
}
