@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@400&display=swap');

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: auto;
  font-family: "Bitter",Arial,serif;
  font-size: 1.25rem;
  line-height: 1.5;
  padding-top: 4rem;
}

header {
  position: fixed;
  display: flex;
  justify-content: center;
  flex-wrap: no-wrap;
  background: transparent;
  top: 0;
  height: 3rem;
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem;
  gap: 1rem;
  background: #333;
}
.nub {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 0;
  background: transparent;
  border-radius: 0.25rem;
  padding: 0 2rem;
  border: none;
  outline: 0;
  font-family: "Bitter",Arial,serif;
  font-size: 1rem;
  color: white;
}
button.nub:hover,
button.nub:focus {
  border-color: white;
  outline: 1px solid white;
  cursor: pointer;
}

#editor {
  height: auto;
  flex-grow: grow;
  width: 100%;
  max-width: 50ch;
  min-height: calc(100vh - 4rem);
  margin: 0 auto;
  resize: none;
  padding: 2rem 2rem 11rem 2rem;
  border-radius: 0.25rem;
  border: none;
  outline: none;
  color: #333;
  background-color: white;
  font-family: "Bitter",Arial,serif;
  font-size: 1.25rem;
  line-height: 1.5;
}

@media screen and (max-width: 700px) {
  #editor {
    font-size: 1.5rem;
  }
}
