/* Override default styles */
.container,
.post-content,
.content-wrapper {
  width: auto;
  text-align: center;
}

html,
body,
table,
tbody,
tr,
td,
td div {
  height: 100%;
}

table {
  border: 0px solid transparent;
  table-layout: fixed;
  width: 100%;
  height: auto;
}

td {
  width: 33.3333%;
  padding: 4px 4px;
  border: 0px solid transparent;
}

textarea {
  width: 100%;
  height: 100%;
  resize: vertical;
  box-sizing: border-box;
  min-height: 500px;
}

td div {
  overflow: auto;
  font: 1em;
  text-align: left;
  white-space: pre-wrap;
}

h2 {
  display: inline;
  font-size: 100%;
}

del {
  text-decoration: line-through;
  color: #de350b;
  background: #ffebe6;
}

ins {
  background: #e3fcef;
  color: #006644;
  text-decoration: none;
}

.chunk-header {
  color: #8a008b;
  text-decoration: none;
}

#result {
  white-space: pre-wrap;
  min-height: 450px;
}

#settings {
  user-select: none;
  text-align: center;
}

#settings h2 {
  margin-bottom: 0.5em;
}

#settings label {
  display: inline-block;
  margin-left: 1em;
  cursor: pointer;
  line-height: 2em;
}

#settings label input {
  position: relative;
  top: 1px;
  margin-right: 6px;
}

/* stack vertiacally at container-width */
@media (max-width: 600px) {
  #settings {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1em;
  }

  #settings label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.25em 0;
  }
}

.source {
  position: absolute;
  left: 10px;
  bottom: 10px;

  color: darkgray;
  text-decoration: none;
  left: 20px;
  bottom: 13px;
  font-size: 10px;
  user-select: none;
}

.source hover {
  color: cornflowerblue;
  text-decoration: underline;
}

[contentEditable] {
  background: #f9f9f9;
  border-color: #bbb #d9d9d9 #ddd;
  border-radius: 4px;
  -webkit-user-modify: read-write-plaintext-only;
  outline: none;
}

[contentEditable]:focus {
  background: #fff;
  border-color: #6699cc;
  box-shadow: 0 0 4px #2175c9;
}

@-moz-document url-prefix() {
  body {
    height: 99%;
    /* Hide scroll bar in Firefox */
  }
}

#a,
#b {
  padding: 10px;
}
