* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  width: 100vw;
  height: 100vh;
  background: #f7f7f2;
  font-family: 'DM Mono', monospace;
}

#canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#empty {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  pointer-events: none;
}

#empty.hidden { 
    opacity: 0; }

.empty-image {
  max-width: 400px;
  max-height: 400px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

#ui {
  position: fixed;
  display: flex;
  padding: 20px;
  pointer-events: none;
}

.btn-ui {
  pointer-events: all;
  color: rgba(255, 0, 0, 0.75);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  display: flex;
  align-items: center;
  background: whitesmoke;
  border: 0;
  padding: 20px;
  cursor: pointer;
  text-decoration: none;
}

#file-input { display: none; }