@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;
}

/* cap the width of the wrapping container */
.markdown-editor {
  max-width: 600px;
  width: 90vw;
  line-height: 2.25;
  padding: 1rem;
}

/* 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(271, 92%, 45%);
}
nav button:focus {
  outline-color: hsl(253, 100%, 50%);
}

/* stretch the textarea to cover the available width and a fixed portion of the height */
input {
  padding: 1rem;
  line-height: 1.5;
  width: 100%;
  height: 7vh;
  font-family: 'Overpass', sans-serif;
  font-size: 1rem;
  resize: none;
}
input:focus {
  outline: 2px solid hsl(100, 90%, 35%);
}
.input-description {
  padding: 1rem;
  line-height: 1.5;
  width: 100%;
  height: 20vh;
  font-family: 'Overpass', sans-serif;
  font-size: 1rem;
  resize: none;
}
.input-description:focus {
  outline: 2px solid hsl(100, 90%, 35%);
}
.input-editor {
  padding: 1rem;
  line-height: 1.5;
  width: 100%;
  height: 80vh;
  font-family: 'Overpass', sans-serif;
  font-size: 1rem;
  resize: none;
}
.input-editor:focus {
  outline: 2px solid hsl(100, 90%, 35%);
}
/* styles for the preview */
a {
  color: hsl(100, 90%, 35%);
  font-weight: 700;
}
h1 {
  font-weight: 700;
  font-size: 1.75rem;
}
h2 {
  font-weight: 700;
  font-size: 1.5rem;
}
/* style the pre and code elements in case syntax highlighting is not provided through a class (higher specificity) */
pre {
  overflow-x: auto;
  background: rgb(40, 40, 40);
  color: hsl(0, 0%, 100%);
  border-radius: 5px;
  margin: 0.5rem 0;
  padding: 0.5rem 1rem;
}
pre code {
  background: none;
  border-radius: initial;
  padding-left: initial;
}
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;
}

ul {
  list-style-position: inside;
}
.btn {
  padding: 1em 2.1em 1.1em;
  border-radius: 3px;
  border: none;
  margin: 8px 8px 8px 8px;
  color: #fbdedb;
  background-color: #fbdedb;
  display: inline-block;
  background: #e74c3c;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  font-family: sans-serif;
  font-weight: 800;
  font-size: .85em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  -webkit-box-shadow: 0em -0.3rem 0em rgba(0, 0, 0, 0.1) inset;
  -moz-box-shadow: 0em -0.3rem 0em rgba(0, 0, 0, 0.1) inset;
  box-shadow: 0em -0.3rem 0em rgba(0, 0, 0, 0.1) inset;
  cursor:pointer;
}
.text-center {
  text-align: center;
}
.btn:hover, .btn:focus {
  opacity: 0.8;
}
.btn:active {
  -webkit-transform: scale(0.80);
  -moz-transform: scale(0.80);
  -ms-transform: scale(0.80);
  -o-transform: scale(0.80);
  transform: scale(0.80);
}
.btn.block {
  display: block !important;
}
.btn.circular {
border-radius: 50em !important;
}
.red {
  background-color: #d55050;
}
.teal {
  background-color: #50d5a1;
}
.sky {
  background-color: #6698cb;
}
.black {
  background-color: #5c6166;
}
.gray {
  color: black;
  background-color: #d2d2d2;
}
.orange {
  color: rgb(230, 255, 8);
  background-color: #e96633;
}
.pink {
  background-color: #cb99c5;
}
.green {
  background-color: #5bbd72;
}
.blue {
  background-color: #7abedf;
}
.yellow {
  background-color: #ecc92b;
}
.purple {
  background-color: #564f8a;
}