@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/IBMPlexMono-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/IBMPlexMono-Italic.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/IBMPlexMono-Bold.woff2') format('woff2');
}

body {
  font: normal 14px/1.4 'IBM Plex Mono', sans-serif;
  margin: 0;
  padding: 5px 40px 30px;
  background: #f8f8f8;
}

.main {
  padding: 20px 15%;
}

code {
  background: #ddd;
}

input, button, select {
  font: inherit;
}

a {
  color: inherit;
}

h1 {
  text-align: center;
  margin: 10px 0 0;
}

h1 img {
  transform: perspective(400px) rotatex(12deg);
  display: block;
  margin: 0 auto 4px;
}

.abstract {
  width: 613px;
  margin: 30px auto;
}

blockquote {
  border-left: 3px solid #ccc;
  padding-left: 20px;
  margin-left: 0px;
}

input[type="checkbox"] {
  margin: 0;
}

select {
  width: 200px;
}

.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.printer {
  width: 593px;
  margin: 0 auto;
  background: #aaa;
  color: #fff;
  font-weight: bold;
  padding: 10px 20px;
  text-align: right;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

span.connect, span.connected {
  display: inline-block;
  border: 4px solid #ff0;
  border-radius: 5px;
  margin-left: 5px;
}

span.connected {
  border-color: #ddd;
}

.driver-row {
  margin: 8px auto;
  width: fit-content;
}

.loading-indicator {
  margin: 20px 0;
  text-align: center;
  font-style: italic;
}

.loading-indicator button {
  margin-left: 5px;
}

.driver-loading {
  margin-left: 8px;
}

.opt-label {
  text-align: right;
}

.opt-checkbox {
  justify-self: start;
}

.paper-dims {
  margin-left: 8px;
  color: #888;
}

.options-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-items: center;
}

.toggle {
  cursor: pointer;
  user-select: none;
}

.advanced-toggle {
  font-style: italic;
  margin-top: 10px;
  grid-column: 1 / -1;
  text-align: center;
}

.dropzone {
  width: 563px;
  border: 3px dashed #ccc;
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  margin: 20px auto 10px;
  transition: border-color 0.15s;
  background: #fff;
}

.dropzone.dragging {
  border-color: #333;
}

.supplies-outer {
  mix-blend-mode: multiply;
  background: #4ff;
  width: 630px;
  margin: 0 auto;
  transform: rotate(1deg);
}

.supplies {
  display: block;
  position: relative;
  mix-blend-mode: multiply;
  transform: rotate(-2deg);
  margin: 25px auto;
  width: 600px;
  background: #ff4;
  padding: 15px 15px;
  color: #000;
  text-decoration: none;
  text-align: center;
}

.supplies b {
  display: inline-block;
  padding: 0 1ex;
  background: #000;
  color: #fff;
}

.debug-toggle {
  opacity: .25;
  text-align: center;
  margin: 20px 0;
}

#debug {
  text-align: center;
}

.queue-item {
  display: inline-block;
  margin: 8px;
  vertical-align: top;
  text-align: center;
  max-width: 150px;
}

.thumb-container {
  overflow: hidden;
  margin: 0 auto 6px;
  background: #fff;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-icon-wrapper, .image-scale {
  margin-bottom: 6px;
}

.file-icon {
  font-size: 100px;
  line-height: 1;
}

.file-name {
  font-size: 11px;
  word-break: break-all;
}

.file-size {
  font-size: 11px;
  color: #888;
  margin-bottom: 6px;
}

.low-res {
  background: #ff4;
  color: #000;
}

#screen_container {
  background: #000;
  font-family: monospace;
}

.zadig {
  width: 573px;
  margin: 20px auto;
  padding: 4px 20px;
  background: #ff4;
}

.feedback {
  width: 593px;
  text-align: center;
  margin: 20px auto;
}
.thumb {
  text-decoration: none;
  font-size: 28px;
  display: inline-block;
  position: relative;
}
.thumb.down {
  top: 9px;
}

.feedback-form textarea, .feedback-form input {
  display: block;
  width: 100%;
  margin: 10px 0;
}

.footer {
  width: 633px;
  margin: 15px auto;
  padding-top: 15px;
  border-top: 1px solid #ccc;
  text-align: center;
}
