body {
  font-family: sans-serif;
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

:root {
  --bg-pos-left: 0;
  --bg-pos-right: 0;
  --bg-pos-top: 0;
  --bg-pos-bottom: 0;
  --head-color: 355 50% 45%;
  --background-position: 50%;
  --background-mix-blend-mode: normal;
  --background-overlay-color: transparent;
  --display-overlay: none;
  --background: 200 20% 95%;
  --body: 200 20% 5%;
  --white: 0 0% 100%;
}

.left-slanted {
  --head-color-opacity: 0.9;
  --head-backdrop-filter: blur(50rem);
  --head-tag-background: 0 0% 0% / 0.1;
  --head-width: 50%;
  --head-padding: 2rem calc(8.1vw + 2rem) 2rem 2rem;
  --head-position: 0 0 0 0;
  --bg-pos-left: calc(var(--head-width) - 8.1%);
  --clip-path: polygon(0% 0%, 100% 0%, 91.9% 100%, 0% 100%);
}

.right-slanted {
  --head-color-opacity: 1;
  --head-backdrop-filter: none;
  --head-tag-background: 0 0% 0% / 0.05;
  --head-width: 50%;
  --head-padding: 2rem 2rem 2rem 7rem;
  --head-position: 0 0 0 calc(100% - var(--head-width) + 2rem);
  --bg-pos-right: calc(var(--head-width) - 15%);
  --clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 15% 100%);
}

.left-floating {
  --head-color-opacity: 0.35;
  --head-backdrop-filter: blur(5rem);
  --head-tag-background: 0 0% 100% / 0.15;
  --head-width: 30rem;
  --head-padding: 2rem;
  --head-position: 2rem calc(100% - var(--head-width) - 2rem) 2rem 2rem;
  --background-position: center;
  --clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.right-floating {
  --head-color-opacity: 0.35;
  --head-backdrop-filter: blur(5rem);
  --head-tag-background: 0 0% 100% / 0.15;
  --head-width: 30rem;
  --head-padding: 2rem;
  --head-position: 2rem 2rem 2rem calc(100% - var(--head-width) - 2rem);
  --background-position: center;
  --clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

@keyframes dialog-show {
  from {
    opacity: 0;
    transform: translateY(-20%);
  }
  to {
    opacity: 1;
    transform: translateY(0%);
  }
}
@keyframes dialog-backdrop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
dialog {
  border: none;
  border-radius: 0.25rem;
  box-shadow: 0 1rem 1.5rem rgba(0, 0, 0, 0.2);
  color: var(--body);
  min-width: 30rem;
  padding: 1.5rem;
}
dialog[open] {
  animation: dialog-show 0.2s ease normal;
}
dialog[open]::backdrop {
  animation: dialog-backdrop 0.2s ease normal;
}
dialog::backdrop {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
}
dialog .close-dialog {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  padding: 1rem;
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
}
dialog .close-dialog:focus {
  outline: none;
}
dialog .close-dialog .icon {
  height: 1.2rem;
  width: 1.2rem;
}
dialog .dialog-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0;
  padding: 0 4rem 1.5rem 0;
}
dialog .dialog-actions {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}
dialog select {
  width: 100%;
}

* {
  box-sizing: border-box;
}

input[type=color] {
  border: none;
  border-radius: 50%;
  cursor: pointer;
  height: 1.4rem;
  padding: 0;
  width: 1.4rem;
}
input[type=color]::-webkit-color-swatch-wrapper {
  border: none;
  padding: 0;
}
input[type=color]::-webkit-color-swatch {
  border: 3px solid hsl(var(--text-color)/0.5);
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease;
}
input[type=color]:hover::-webkit-color-swatch {
  border-color: hsl(var(--text-color));
}
input[type=color]:disabled {
  display: none;
}

select {
  align-items: center;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' style='fill: hsl(221, 10%, 50%)' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.50039 11.5004L2.50039 9.5004C2.50039 9.1144 2.72339 8.7624 3.07239 8.5964C3.42139 8.4304 3.83439 8.4814 4.13439 8.7264L14.5004 17.2084L24.8674 8.7264C25.1664 8.4814 25.5794 8.4314 25.9294 8.5964C26.2794 8.7614 26.5004 9.1144 26.5004 9.5004L26.5004 11.5004C26.5004 11.8004 26.3654 12.0844 26.1334 12.2744L15.1334 21.2744C14.7644 21.5754 14.2354 21.5754 13.8664 21.2744L2.86639 12.2744C2.63539 12.0844 2.50039 11.8004 2.50039 11.5004Z' /%3E%3C/svg%3E%0A") !important;
  background-position: center right 0.5rem;
  background-repeat: no-repeat;
  background-size: 0.8rem;
  border: none;
  border-radius: 0.2rem;
  box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.3);
  cursor: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  max-width: 100%;
  padding: 0.2rem 2rem 0.2rem 0.5rem;
  width: fit-content;
  width: 100%;
}
select:focus {
  border-color: hsl(var(--royal-blue));
  box-shadow: 0 0 0 1px hsl(var(--royal-blue)) inset;
  outline: none;
}
select:focus {
  background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' style='fill: hsl(221, 100%, 64%)' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.50039 11.5004L2.50039 9.5004C2.50039 9.1144 2.72339 8.7624 3.07239 8.5964C3.42139 8.4304 3.83439 8.4814 4.13439 8.7264L14.5004 17.2084L24.8674 8.7264C25.1664 8.4814 25.5794 8.4314 25.9294 8.5964C26.2794 8.7614 26.5004 9.1144 26.5004 9.5004L26.5004 11.5004C26.5004 11.8004 26.3654 12.0844 26.1334 12.2744L15.1334 21.2744C14.7644 21.5754 14.2354 21.5754 13.8664 21.2744L2.86639 12.2744C2.63539 12.0844 2.50039 11.8004 2.50039 11.5004Z' /%3E%3C/svg%3E%0A") !important;
}
select::-ms-expand {
  display: none;
}

body {
  display: flex;
  flex-direction: column;
  max-height: 100vh;
}

.relative {
  position: relative;
}
.relative .ui-tools {
  right: 0;
  top: -2rem;
}

.ui-tools {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  position: absolute;
  right: 1rem;
  top: 1rem;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  z-index: 9;
}
.ui-tools:hover {
  opacity: 1 !important;
}
.ui-tools .ui-tool {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 0.85rem;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
  width: 100%;
}
.ui-tools .ui-tool label {
  align-items: center;
  display: flex;
  gap: 0.4rem;
}
.ui-tools .ui-tool label input {
  margin: 0;
  position: relative;
  top: -1px;
}
.ui-tools button {
  align-items: center;
  background: hsl(var(--white)/0.9);
  border-radius: 0.3rem;
  color: black;
  display: flex;
  font-size: 14px;
  font-weight: normal;
  gap: 0.5rem;
  justify-content: center;
  transition: color 0.3s ease;
  width: 100%;
}
.ui-tools button:hover {
  background: hsl(var(--white));
}

*:hover > .ui-tools {
  opacity: 0.5;
}

.head {
  display: flex;
  flex: 1 1 90vh;
  font-weight: 100;
  line-height: 1.6;
  position: relative;
}
.head h1 {
  font-size: 3rem;
}
.head h2 {
  font-size: 2rem;
}
.head h3 {
  font-size: 1.5rem;
}
.head h1, .head h2, .head h3, .head h4, .head h5, .head h6 {
  color: hsl(var(--head-color));
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.3rem;
}
.head-content {
  align-items: center;
  backdrop-filter: var(--head-backdrop-filter);
  background: hsl(var(--background-color)/var(--head-color-opacity));
  clip-path: var(--clip-path);
  color: hsl(var(--text-color));
  display: flex;
  height: auto;
  justify-content: center;
  margin: var(--head-position);
  padding: var(--head-padding);
  position: relative;
  transition: color 0.3s ease, backdrop-filter 0.3s ease, background 0.3s ease, clip-path 0.3s ease, margin 0.3s ease, padding 0.3s ease, width 0.3s ease;
  width: var(--head-width);
}
.head-content [contenteditable] {
  border: 1px dashed hsl(var(--text-color)/0);
  transition: border-color 0.3s ease;
}
.head-content [contenteditable]:not(.tag) {
  border-radius: 0.3rem;
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.head-content:hover [contenteditable] {
  border-color: hsl(var(--text-color)/0.3);
}
.head-content:hover [contenteditable]:hover {
  border-color: hsl(var(--text-color));
}
.head-background {
  background-position: var(--poi);
  background-size: cover;
  bottom: var(--bg-pos-bottom);
  left: var(--bg-pos-left);
  position: absolute;
  right: var(--bg-pos-right);
  top: var(--bg-pos-top);
  transition: background-position 0.3s ease, bottom 0.3s ease, left 0.3s ease, right 0.3s ease, top 0.3s ease;
  z-index: 0;
}
.head-background::after {
  background: hsl(var(--background-overlay-color));
  bottom: 0;
  content: "";
  display: var(--display-overlay);
  left: 0;
  mix-blend-mode: var(--background-mix-blend-mode);
  position: absolute;
  right: 0;
  top: 0;
  transition: background 0.3s ease, mix-blend-mode 0.3s ease;
}

.tags {
  color: hsl(var(--text-color)/0.8);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
  transition: color 0.3s ease;
}
.tags .tag {
  backdrop-filter: blur(0.5rem);
  background: hsl(var(--head-tag-background));
  border-radius: 10rem;
  padding: 0.4rem 1rem;
  transition: background 0.3s ease;
}

.tools {
  display: flex;
  font-size: 0.8rem;
  gap: 1rem;
  justify-content: space-between;
  padding: 2rem;
}

.tool {
  min-width: 20rem;
}
.tool-section {
  align-items: center;
  display: flex;
  gap: 1rem;
  margin: 0 0 0.5rem;
  min-height: 1.4rem;
}
.tool .current {
  margin: 0 0 0.5rem;
}
.tool-label {
  border-bottom: 1px solid #f0f0f0;
  margin: 0 0 1rem;
  padding: 0 0 1rem;
}
.tool .buttons {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

button {
  background: rgb(60, 58, 191);
  border: none;
  border-radius: 0.2rem;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
}
button:disabled {
  background: rgb(202, 202, 205);
  cursor: default;
}
button.active {
  background: rgb(66, 63, 230);
}

.presets {
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: 1rem;
}
.presets-section {
  display: flex;
  gap: 0.5rem;
}
.presets strong {
  align-items: center;
  display: flex;
}

.workbench {
  background-color: white;
}

#set-poi {
  display: none;
  left: 50%;
  max-height: 80vh;
  max-width: 80vw;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
}
#set-poi .image-container {
  cursor: crosshair;
  margin: 0 auto 1rem;
  position: relative;
  width: fit-content;
}
#set-poi .image-container::after {
  bottom: 0;
  content: "";
  display: block;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}
#set-poi .poi {
  background: lime;
  border-radius: 50%;
  height: 6px;
  left: 50%;
  margin: -3px;
  position: absolute;
  top: 50%;
  width: 6px;
}
#set-poi img {
  display: block;
  height: auto;
  max-height: 60vh;
  max-width: 100%;
  width: auto;
}

.image-demos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  width: 50vw;
}
.image-demos .image-demo {
  background: hsl(var(--background));
  background-position: center;
  background-size: cover;
  cursor: pointer;
  flex: 1 1 10rem;
  height: 10rem;
  line-height: 10rem;
  position: relative;
  text-align: center;
}
.image-demos .image-demo.selected {
  box-shadow: 0 0 0 2px rgb(60, 58, 191);
}
.image-demos .image-demo .overlay {
  background: hsl(var(--background-overlay-color));
  bottom: 0;
  left: 0;
  mix-blend-mode: var(--mix-blend-mode);
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

/*# sourceMappingURL=main.css.map */
