@import url('https://ancillary-proxy.atarimworker.io?url=https%3A%2F%2Ffonts.googleapis.com%2Fcss2%3Ffamily%3DDM%2BSans%3Awght%40300;400;500&family=DM+Serif+Display&display=swap');

:root {
  --padding: 20px;
  --doublePadding: calc(var(--padding) * 2);
  --canvasShadow: 0 0 30px rgb(0 0 0 / 10%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0px;
}

body {
  overflow: hidden;
}

.hidden {
  display: none !important;
}

body.about {
  overflow: auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  gap: 20px;
  padding-top: 100px;
  align-items: center;
  flex-direction: column;
  font-family: "DM Sans", -apple-system, system-ui, sans-serif;
  font-weight: 300;
  color: #444;
}

.about h1 {
  margin-top: 20px;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 2.2em;
}

.about h3 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: 1.4em;
  margin-top: 1.5em;
}

.about p {
  line-height: 1.6;
  color: #444;
}

.about article {
  max-width: 550px;
}

.more {
  font-size: 16px;
}

.tip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: monospace;
  color: black;
  font-style: italic;
  font-size: 19px;
  opacity: 0.4;
  max-width: 250px;
  line-height: 23px;
  pointer-events: none;
}

.about-image {
  width: 100%;
}

.ui {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 5px;
  top: 8px;
  z-index: 2;
}

.top-left {
  left: 8px;
}

.top-right {
  right: 8px;
}

.icon {
  width: 42px;
  height: 42px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  background: white;
  border-radius: 50%;
  box-shadow: var(--canvasShadow);
  cursor: pointer;
}

.icon img {
  width: 100%;
  height: 100%;
  /*  cursor: pointer;*/
}

.icon .smaller {
  width: 75%;
  height: 75%;
}

.primary {
  box-shadow: var(--canvasShadow);
  cursor: crosshair;
  -webkit-user-select: none;
  width: 100%;
  height: 100%;

  object-fit: contain;
  max-height: inherit;
}

.primary path {
  transition: opacity 250ms;
  opacity: 1;
}

.tools {
  position: fixed;
  width: 300px;
  top: calc(100% - 0px);
  height: 200px;
  left: calc(50% + 110px);
  margin-left: -150px;
}

.tool {
  position: absolute;
  filter: drop-shadow(0px 0px 7px rgba(0, 0, 0, 0.2));
  border-radius: 5px 5px 0 0;
  width: 100%;
  height: 100%;
  background: white;
  transition: transform 200ms ease-out;
  transform: translateY(0%);
  z-index: 2;
  cursor: pointer;
}

.text .tool-button-icon-inner {
  font-family: "Cutive Mono", monospace;
  background: white;
  text-align: center;
  vertical-align: top;
  line-height: 16px;
  text-transform: uppercase;
}

.tool.color.open {
  transform: translateY(0%);
}

.tool.open {
  transform: translateY(-100%);
  z-index: 1;
}

.tool-button {
  background: none;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateY(-100%) translateX(-50%);
  width: 56px;
  height: 28px;
  display: flex;
  justify-content: center;
  border-radius: 100%;
}

.tool-button:before,
.tool-button:after {
  content: "";
  position: absolute;

  height: 10px;
  width: 20px;

  bottom: 0;
}

.tool-1 {
  margin-left: -25px;
}

.tool-2 {
  margin-left: 25px;
}

.tool-button:after {
  right: -12px;
  border-radius: 0 0 0 19px;
  box-shadow: -10px 0 0 0 white;
}

.tool-button:before {
  left: -12px;
  border-radius: 0 0 19px 0;
  box-shadow: 12px 0 0 0 white;
}

.tool-button-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
}

.controls {
  z-index: 3;
  padding: 10px;
  position: relative;
  height: 100%;
}

.controls textarea,
.controls input {
  width: 100%;
  height: 100%;
}

.controls textarea {
  border: 3px solid #eee;
  padding: 10px;
}

input {
  border: 0;
  outline: 0;
}
input:focus {
  outline: none !important;
}

.tool-button-icon-inner {
  margin-top: 4px;
  width: 22px;
  height: 22px;
  border: 2px solid #eee;
  background: white;
  border-radius: 100%;
  z-index: 2;
  overflow: hidden;
}

.tool-button-icon-inner input {
  opacity: 0;
}

.paint-app {
  display: flex;
  flex-direction: row-reverse;
}

.mon {
  min-width: 200px;
  display: flex;
  font-family: "DM Sans", -apple-system, system-ui, sans-serif;
  color: #444;
}

.mon-ad {
  max-width: 180px;
  overflow-x: hidden;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mon-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
  box-shadow: var(--canvasShadow);
  box-sizing: border-box;
  height: calc(100vh);
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.painting {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.sidebar-head {
  font-family: "DM Sans", -apple-system, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 4px 12px;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}

.sidebar-head img {
  width: 24px;
  margin: 0 2px;
}

.sidebar-head a {
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1px;
}

.sidebar-head a.more {
  font-size: 13px;
  color: #888;
  margin-top: 6px;
  justify-content: center;
}

.sidebar-footer {
  display: flex;
  font-size: 13px;
  text-align: center;
  justify-content: center;
  padding-top: 12px;
  border-top: 1px solid #eee;
  margin-top: 10px;
  color: #888;
}

.sidebar-footer a {
  color: #666;
}

.canvas-wrapper {
  width: 100%;
  height: 100%;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.paint-app .top-left {
  display: none;
}

.mobile-mon {
  display: none;
}

@media screen and (max-width: 670px) {

  .paint-app {
    flex-direction: column-reverse;
  }

  .mobile-mon {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
  }

  .painting {
    height: calc(100% - 120px);
  }

  .mon {
    display: none;
  }

  .tools {
    left: 50%;
  }

  .paint-app .top-left {
    display: block;
  }
}