body {
  background: #f5f5f5;
  padding: 1em;
  padding-bottom: 2em;
  margin: auto;
  font-size: 14px;
  line-height: 1.4;
}
.container {
  margin: 1em auto;
  max-width: 40em;
}
.container:first-child {
  margin-top: 0;
}
.note {
  background: #ffee77;
  font-size: 0.8em;
  text-align: center;
  padding: 0.5em;
}
h1,
h2 {
  display: block;
  margin: 0 auto 0.5em;
}
h2 {
  font-size: 1.4em;
  color: #f05555;
}
h2 svg {
  height: 21px;
  width: auto;
  margin: 0;
}
h2 svg path {
  stroke: currentColor;
}
p {
  margin: 0 auto 1em;
}
a {
  color: #f05555;
  transition: color 250ms ease-in-out;
}
a:hover,
a:focus {
  color: #FF7777;
}
img {
  vertical-align: middle;
}
button {
  background: #ddd;
  border: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  cursor: pointer;
}
button,
.file {
  padding: 0.75em;
}
svg,
label,
input[type=file] {
  display: block;
  margin: auto;
  text-align: center;
}
label small {
  display: block;
}
svg {
  max-width: 100%;
}
.choices {
  background: #eaeaea;
  display: flex;
  align-items: stretch;
}
.choices button {
  background: transparent;
  font-size: 0.8em;
  border-left: solid 3px #aaa;
}
.choices > * {
  flex: 1 1 auto;
}
.file {
  overflow: hidden;
  flex-basis: 40%;
}
#output {
  margin: auto auto 2em;
  text-align: center;
}
.output {
  display: flex;
  width: 100%;
  margin: 0;
  justify-content: space-between;
  align-items: stretch;
  padding: 1em 0;
  border-bottom: solid 3px #ddd;
}
.output > a {
  display: block;
  width: 50%;
}
.output svg {
  width: 100%;
  height: auto;
  margin: 1em auto;
}
.output__details {
  width: 50%;
  display: flex;
  flex-direction: column;
}
.output__raw {
  display: block;
  background: #eaeaea;
  white-space: pre-wrap;
  padding: 0.5em;
  font-size: 0.75em;
  max-height: 20em;
  overflow: auto;
  text-align: left;
}
.download,
.output__size {
  display: inline-block;
  text-align: center;
  margin: 1em auto 0;
  padding: 0.25em 0.5em;
  font-size: 0.8em;
}
.download {
  background-color: #f05555;
  color: #FFF;
}
#filedrag {
  display: none;
}
#filedrag.dragenter {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  background: #ff5555;
  background: rgba(255, 200, 200, 0.8);
  text-align: center;
  display: block;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  z-index: 999;
}
