@import url('https://fonts.googleapis.com/css?family=IBM+Plex+Mono|Overpass:400,600&display=swap');

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
body {
  font-family: 'Overpass', sans-serif;
  /* display the content in a horizontally centered column */
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* display the controls in a row, pushing the last control to the very right end */
nav {
  display: flex;
  align-items: center;
}
nav button:last-of-type {
  margin-left: auto;
}
nav button {
  width: 45px;
  height: 45px;
  padding: 12px;
  background: none;
  color: inherit;
  border: none;
}
nav button svg {
  width: 100%;
  height: 100%;
  display: block;
}
nav button:hover {
  color: hsl(100, 90%, 30%);
}
nav button:focus {
  outline-color: hsl(100, 90%, 30%);
}

/* include a few values to style the preview
modify the properties of the elements in the .preview class to tailor the appearance of the preview
*/
.preview {
  line-height: 2;
  max-width: 550px;
  width: 90vw;
  padding: 0 1.5rem;
}
.preview a {
  color: hsl(100, 90%, 30%);
  font-weight: 700;
}
.preview h1 {
  font-weight: 700;
  font-size: 1.75rem;
}
.preview h2 {
  font-weight: 700;
  font-size: 1.5rem;
}
/* style the pre and code elements in case prism.js is not present */
.preview pre {
  overflow-x: auto;
  background: rgb(40, 40, 40);
  color: hsl(0, 0%, 100%);
  border-radius: 5px;
  margin: 0.5rem 0;
  padding: 0 1rem;
}
.preview pre code {
  background: none;
  border-radius: initial;
  padding-left: initial;
}
.preview code {
  color: hsl(0, 0%, 100%);
  background: rgb(40, 40, 40);
  padding: 0.25rem;
  border-radius: 3px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
}
