@import url("https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@500&display=swap");
@font-face {
  font-family: "BestTen";
  src: url(img/BestTen-DOT.otf) format("opentype");
}
* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  border-radius: 0;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

html {
  scroll-behavior: smooth;
  overflow: hidden;
}

body {
  display: block;
  width: 100vw;
  min-height: 100dvh;
  background-color: #fff;
}
body::-webkit-scrollbar {
  width: 10px;
}
body::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
body::-webkit-scrollbar-thumb:hover {
  background-color: #222;
}
body::-webkit-scrollbar-track {
  background-color: #fff;
}

section.input {
  display: block;
}
section.input svg.inputlogo {
  display: block;
  height: 56px;
  fill: #fff;
  background-color: #8766a3;
  padding: 8px 24px;
  margin-inline: auto;
  margin-top: 28px;
}
section.input label.fileinput {
  display: grid;
  place-items: center;
  place-content: center;
  width: min(512px, 100vw - 2rem);
  min-height: 256px;
  margin-inline: auto;
  border: 5px dashed #5A3D6F;
  box-sizing: border-box;
  margin-top: 32px;
  padding: 16px;
  cursor: pointer;
}
section.input label.fileinput input {
  display: none;
}
section.input label.fileinput svg {
  display: block;
  width: 72px;
  fill: #8766A3;
}
section.input label.fileinput p {
  font-family: "BestTen", sans-serif;
  font-size: 20px;
  color: #8766A3;
  text-align: center;
  margin-top: 16px;
  line-height: 1.3;
}
section.input #dropzone {
  position: fixed;
  left: 0;
  top: 0;
  display: none;
  place-items: center;
  width: 100vw;
  height: 100lvh;
  z-index: 9999;
  background-color: rgba(135, 102, 163, 0.8666666667);
  font-family: "BestTen", sans-serif;
  font-size: 72px;
  color: #fff;
  font-weight: 400;
}
section.input #dropzone.active {
  display: grid;
}

section.output {
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
}
section.output .output_l {
  display: block;
}
section.output .output_l .dot_type {
  display: block;
  margin-bottom: 20px;
}
section.output .output_l .dot_type label {
  display: block;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 28px;
  color: #000;
  margin-bottom: 4px;
}
section.output .output_l .dot_type #dotPresets {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}
section.output .output_l .dot_type #dotPresets span {
  display: block;
  width: 0.5px;
  height: 56px;
  background-color: #ccc;
}
section.output .output_l .dot_type #dotPresets .dotOption {
  display: grid;
  place-items: center;
  width: 88px;
  height: 56px;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
section.output .output_l .dot_type #dotPresets .dotOption svg {
  display: block;
  width: 24px;
  fill: #000;
}
section.output .output_l .dot_type #dotPresets .dotOption:hover {
  background-color: #eee;
}
section.output .output_l .dot_type #dotPresets .dotOption.active {
  background-color: #ccc;
}
section.output .output_l .gap {
  display: block;
  margin-bottom: 24px;
}
section.output .output_l .gap label {
  display: flex;
  align-items: end;
  margin-bottom: 4px;
}
section.output .output_l .gap label p {
  display: block;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 28px;
  color: #000;
}
section.output .output_l .gap label input {
  display: block;
  width: 72px;
  height: 36px;
  margin-left: 8px;
  padding-inline: 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  outline: none;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 20px;
  color: #000;
  transition: border-color 0.2s ease;
}
section.output .output_l .gap label input:focus {
  border-color: #777;
}
section.output .output_l .gap input#gapRange {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  display: block;
  width: 100%;
  height: 12px;
  border: 1px solid #ccc;
  border-radius: 100px;
  background: linear-gradient(90deg, #ccc 0%, #eee 0%);
  cursor: pointer;
}
section.output .output_l .gap input#gapRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  aspect-ratio: 1;
  border: 2px solid #cccccc;
  border-radius: 100px;
  background: #eeeeee;
  box-shadow: none;
}
section.output .output_l .gap input#gapRange::-moz-range-thumb {
  width: 24px;
  aspect-ratio: 1;
  border: 2px solid #cccccc;
  border-radius: 100px;
  background: #eeeeee;
  box-shadow: none;
}
section.output .output_l .bg_color {
  display: block;
}
section.output .output_l .bg_color label {
  display: block;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 28px;
  color: #000;
  margin-bottom: 4px;
}
section.output .output_l .bg_color label span {
  font-size: 16px;
  margin-left: 4px;
}
section.output .output_l .bg_color #bgPresets {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}
section.output .output_l .bg_color #bgPresets span {
  display: block;
  width: 0.5px;
  height: 56px;
  background-color: #ccc;
}
section.output .output_l .bg_color #bgPresets .bgOption {
  display: grid;
  place-items: center;
  width: 88px;
  height: 56px;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
section.output .output_l .bg_color #bgPresets .bgOption div {
  display: block;
  width: 28px;
  aspect-ratio: 1;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
section.output .output_l .bg_color #bgPresets .bgOption:nth-of-type(1) div {
  background-color: #fff;
}
section.output .output_l .bg_color #bgPresets .bgOption:nth-of-type(2) div {
  background-color: #808080;
}
section.output .output_l .bg_color #bgPresets .bgOption:nth-of-type(3) div {
  background-color: #000;
}
section.output .output_l .bg_color #bgPresets .bgOption:hover {
  background-color: #eee;
}
section.output .output_l .bg_color #bgPresets .bgOption.active {
  background-color: #ccc;
}
section.output .output_l .bg_color label.bgPickerBg {
  position: relative;
  display: block;
  position: relative;
  width: 100%;
  height: 36px;
  margin-top: 8px;
  background-color: #fff;
  border-radius: 4px;
  border: 1px solid #ccc;
  cursor: pointer;
}
section.output .output_l .bg_color label.bgPickerBg input#bgPicker {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  opacity: 0;
  width: 100%;
  height: 36px;
  margin-top: 8px;
  padding-inline: 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  outline: none;
  cursor: pointer;
}
section.output .output_l .bg_color label.bgPickerBg #bgPickerBg {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #fff;
  border-radius: 4px;
  box-sizing: border-box;
  border: 1px solid #ccc;
}
section.output .output_l .bg_color label.bgPickerBg #bgPickerBg svg {
  display: flex;
  align-items: center;
  width: 28px;
  fill: #8766A3;
  margin-left: 4px;
  margin-top: 3px;
}
section.output .output_l button {
  display: grid;
  place-items: center;
  padding-inline: 32px;
  height: 48px;
  background-color: #8766A3;
  border: none;
  outline: none;
  margin-left: auto;
  margin-top: 56px;
  padding-bottom: 4px;
  border-radius: 4px;
  font-family: "BestTen", sans-serif;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
section.output .output_l button:hover {
  background-color: #6f4d8a;
}
section.output .output_r {
  display: block;
}
section.output .output_r #preview {
  display: block;
  width: min(480px, 100vw - 2rem);
  aspect-ratio: 1;
  padding: 16px;
  overflow: auto;
  border: 2px solid #aaa;
}
section.output .output_r #preview::-webkit-scrollbar {
  width: 8px;
}
section.output .output_r #preview::-webkit-scrollbar-thumb {
  background-color: #777;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
section.output .output_r #preview::-webkit-scrollbar-thumb:hover {
  background-color: #959595;
}
section.output .output_r #preview::-webkit-scrollbar-track {
  background-color: #fff;
}

a.copyright {
  display: block;
  position: fixed;
  left: 50%;
  translate: -50%;
  bottom: 0;
  text-align: center;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 16px;
  color: #27a;
  padding: 8px 16px;
  z-index: 9999;
}