@font-face {
  src: url("/css/fonts/Sk-Modernist Regular.otf") format("opentype");
  font-family: "Modernist";
  font-display: swap;
}

@font-face {
  font-weight: bold;
  src: url("/css/fonts/Sk-Modernist Bold.otf") format("opentype");
  font-family: "Modernist";
  font-display: swap;
}

@font-face {
  src: url("/css/fonts/Sk-Modernist Mono.otf") format("opentype");
  font-family: "Modernist Mono";
  font-display: swap;
}

html,
body {
  -webkit-user-select: none;
  width: 100%;
  height: 100%;
  user-select: none;
}

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

a:visited {
  color: blue;
}

a[disabled] {
  color: #aaa;
}

#content {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 20px;
  padding-bottom: 0;
  width: 100%;
  min-width: 320px;
  max-width: 992px;
  height: 100%;
  min-height: 576px;
  max-height: 1200px;
  overflow: hidden;
  touch-action: none;
  font-family: "Modernist Mono", monospace;
}

pre {
  font-family: "Modernist Mono", monospace;
}

#header {
  margin: 0;
  margin-bottom: 2em;
  font-size: 90%;
  font-family: "Modernist Mono", monospace;
}

#header .title {
  color: magenta;
}

#header .header-border {
  color: black;
}

.controls {
  margin-bottom: 1em;
  width: 90%;
  font-size: 70%;
}

.controls #disclaimer {
  margin-bottom: 1em;
}

.controls.controls-bottom {
  margin-top: 1em;
  margin-bottom: 0;
  padding-bottom: 20px;
}

.controls .controls-line {
  /* -ms-overflow-style: none; */
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  max-height: 2em;
  overflow: hidden;
  /* overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-width: none; */
}

/* .controls .controls-line::-webkit-scrollbar {
  width: 0;
  height: 0;
} */

.controls .controls-line:not(:first-child) {
  margin-top: 1em;
}

/* .controls .controls-line > * {
  flex-shrink: 0;
} */

.controls .controls-line > :not(:first-child):not(.separator-container) {
  margin-left: 0.25em;
}

.controls .separator-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 2em;
}

.controls .separator {
  display: inline-flex;
  align-items: center;
  margin-right: 1em;
  margin-left: 1em;
  height: 100%;
  color: magenta;
  font-size: 70%;
}

.controls .control-button {
  display: inline-block;
  cursor: pointer;
  margin: 0;
  outline: 0;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 0px 0px;
  border: 1px solid #000;
  border-radius: 4px;
  background: #ffffff;
  padding: 0.25em 1em;
  height: 2em;
  color: #202223;
  text-align: center;
}

.controls .control-button:hover,
.controls .draw-option:hover {
  background: #f6f6f7;
}

.controls .draw-option,
.controls .draw-option label {
  cursor: pointer;
}

.controls .control-button[data-active] {
  background: black;
  color: white;
}

.controls .control-button[data-active]:hover {
  cursor: default;
  outline: inherit;
  background: black;
  color: white;
}

.controls .control-button:disabled {
  cursor: default;
  border-color: #aaa;
  color: #aaa;
}

.controls .control-button:disabled:hover {
  background: inherit;
}

.controls #character-picker {
  box-sizing: border-box;
  margin: 0;
  outline: 0;
  border: 1px solid #222;
  border-radius: 4px;
  background-color: #eee;
  padding: 0.25em 0;
  width: 3ch;
  height: 2em;
  text-align: center;
}

.controls #color-picker {
  outline: none;
  border: none;
  padding: 0;
  width: 3ch;
  height: 2em;
}

.controls #erase-image {
  width: 0.8em;
}

.controls .clr-field {
  margin-left: 0.25em;
}

.controls .clr-field button {
  border-radius: 4px;
  width: 100%;
}

.controls .draw-option {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  border: 1px solid black;
  border-radius: 4px;
  padding: 0.1em 0.5em;
  height: 2em;
}

.controls .draw-option label {
  margin-left: 0.5em;
}

.controls input[type="checkbox"] {
  font-size: 75%;
}

.controls #reset-canvas {
  color: red;
}

#canvas {
  flex: 1;
  margin-top: 0;
  margin-bottom: 0;
  padding-right: 20px;
  width: calc(100% - 20px);
  line-height: 1;
}

.clr-picker input.clr-color {
  font-family: "Modernist Mono", monospace;
}

#published {
  display: none;
}

.modal {
  display: none;
  font-family: "Modernist Mono", monospace;
}

.modal.is-open {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 320px;
  height: 100%;
}

.modal .modal-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
}

.modal .modal-overlay .modal-content {
  display: flex;
  border-radius: 4px;
  background: white;
}

.modal .modal-overlay .modal-content .controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 2em;
}

#confirm-copy {
  border-color: green;
  color: green;
}
