* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  padding-bottom: 1em;
  width: 95%;
  max-width: 768px;
  font-family: "Open Sans", "Segoe UI", Avenir, Ubuntu, Tahoma, Verdana,
    Helvetica, sans-serif;
  font-size: 16pt;
}

a {
  color: blue;
  text-decoration: none;
}

h1,
h2,
footer {
  text-align: center;
  font-weight: 100;
}

h2 {
  font-size: 16pt;
}

#outputContainer {
  display: flex;
  margin: 1rem;
  position: relative;
}

#outputEl {
  margin: 0;
  flex-grow: 1;
  background-color: #eee;
  padding: 2rem;
  font-family: Inconsolata, Monaco, Consolas, monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
}

#copyButtonEl {
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
  width: 2rem;
  height: 2rem;
  padding: 3px;
  display: flex;
}

#copyButtonEl:before {
  width: 100%;
  height: 100%;
  content: "";
  display: block;
  background-position: center center;
  background-size: cover;
}

#copyButtonEl.waiting:before {
  background-image: url(vendor/copy.svg);
}

#copyButtonEl.copied:before {
  background-image: url(vendor/check.svg);
}

#copyButtonEl.failed:before {
  background-image: url(vendor/error.svg);
}
