html,
body {
  height: 100%;
  font-family: monospace;
}

body {
  overflow: hidden;
  padding: 0;
  margin: 0;
  background: conic-gradient(
    #ffffff 90deg,
    #F5F5F5 90deg 180deg,
    #ffffff 180deg 270deg,
    #F5F5F5 270deg
  );
  background-size: 20px 20px;
}

#p5_loading {
  display: none;
}

#controls {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  position: fixed;
  width: 200px;
  top: 10px;
  left: 10px;
  bottom: 10px;
  background: #0A140A;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  color: #F0F0EC;
  gap: 0;
  border-radius: 5px;
  margin: 0;
}

#appTitle {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ABE082;
  margin: 0 0 5px 0;
}

p {
  margin: 15px 0 5px 0;
}

button,
input,
select {
  margin: 0 0 5px 0;
  font-family: monospace;
  accent-color: #4790DD;
}

input[type="text"] {
  padding: 8px 5px;
}

span {
  padding-left: 5px;
  text-transform: uppercase;
  letter-spacing: 10%;
}

#duotoneName {
  color: #ABAD6C;
}

#prepStatus {
  margin: 0 0 5px 0;
  color: #ABE082;
  font-size: 11px;
  min-height: 13px;
}

img {
  border-radius: 5px;
  max-width: 100%;
}

button {
  text-transform: uppercase;
  letter-spacing: 10%;
  border-radius: 5px;
  border: none;
  padding: 10px 0;
}

#duotoneList,
.brandGrid {
  margin: 0;
  padding: 0;
  border: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

#duotoneList .duotoneSwatch,
.brandGrid .brandSwatch {
  aspect-ratio: 1;
  width: 100%;
  padding: 0;
  border-radius: 3px;
  border: 1px solid #3C483C;
  cursor: pointer;
}

#duotoneList .duotoneSwatch.selected,
.brandGrid .brandSwatch.selected {
  outline: 2px solid #4790DD;
  outline-offset: 1px;
}

#sizeRow,
#densityRow {
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  gap: 5px;
}

.sizeBtn {
  flex: 1;
  background: #192319;
  color: #C8C8BE;
  border: 1px solid #3C483C;
  padding: 8px 0;
  font-size: 11px;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.sizeBtn.selected {
  background: #2D372D;
  color: #F0F0EC;
  border-color: #4790DD;
}

#goButton {
  margin-top: 15px;
  color: #0A140A;
  font-weight: bold;
  cursor: pointer;
}

#stage {
  position: fixed;
  left: calc(50% + 120px);
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  cursor: grab;
  z-index: 5;
  box-shadow: 0 0 0 1px #3C483C;
}

#stage:active {
  cursor: grabbing;
}

#stageImg {
  position: absolute;
  max-width: none;
  border-radius: 0;
  user-select: none;
  pointer-events: none;
}

#stageHint {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 20, 10, 0.75);
  color: #F0F0EC;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  pointer-events: none;
}
