html {
  font-family: sans-serif;
  font-size: 10px;
}

body {
  margin: 0;
}

footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 2.5rem;
}

footer a {
  color: rgba(0, 0, 0, 0.5);
}

footer a.website:hover {
  color: #2a7ae2;
}

h1 {
  font-size: 3rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

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

main > div, form > div {
  margin-top: 1rem;
}

h1, .mime, .lines, .submit {
  text-align: center;
}

.lines {
  font-size: 1.4rem;
}

textarea {
  display: block;
  font-family: monospace;
  resize: none;
}

textarea, .CodeMirror {
  margin: auto;
  width: calc(64ch + 0.4rem);
  height: calc(16 * 1.4rem * 1.25 + 0.05rem);
  font-size: 1.4rem;
  line-height: 125% !important;
  border: 0.1rem solid #eee;
}

.CodeMirror-lines {
  padding: 1px 0;
}

.CodeMirror pre {
  padding: 0 1px;
}

.CodeMirror-cursor {
  border-left: 1px solid #000 !important;
  width: 0 !important;
}

@media (max-width: 768px) {
  html {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 8px;
  }
}

@media (max-width: 414px) {
  html {
    font-size: 7px;
  }
}

@media (max-width: 375px) {
  html {
    font-size: 6.5px;
  }
}

@media (max-width: 320px) {
  html {
    font-size: 6px;
  }
}

/* Card page */

.image {
  display: none;
  text-align: center;
}

.image img {
  width: 48rem;
  max-width: 100%;
}

.magic {
  display: block;
  margin: auto;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
