@font-face {
  font-family: "Pink Blue";
  src: url("../assets/fonts/Pink Blue.ttf") format("truetype");
  font-weight: normal;
}
@font-face {
  font-family: "Readex Pro";
  src: url("../assets/fonts/ReadexPro.ttf") format("truetype");
}
@font-face {
  font-family: "Intruding Cat";
  src: url("../assets/fonts/IntrudingCat.ttf") format("truetype");
  font-weight: normal;
}
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Readex Pro", sans-serif;
  overflow: hidden;
}

.popup {
  position: fixed;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
  background-color: #3f5be3;
  color: #fff;
  text-align: center;
  font-size: 24px;
}
.popup.hidden {
  display: none;
}
.popup p {
  max-width: 600px;
}
.popup button {
  margin-top: 24px;
  outline: none;
  border: none;
  background-color: #fff;
  color: #3f5be3;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 8px;
  min-width: 200px;
  font-family: "Readex Pro", sans-serif;
  font-size: 16px;
  font-weight: 500;
}

@media screen and (min-width: 800px) {
  .size-warning {
    display: none;
  }
}
body {
  display: flex;
  background-color: #3f5be3;
}

nav.sidebar {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 32px 48px 64px 48px;
  height: 100%;
  width: clamp(300px, 30vw, 400px);
  gap: 32px;
}
nav.sidebar a {
  margin-bottom: auto;
}
nav.sidebar a > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
nav.sidebar .gallery-link {
  font-family: "Readex Pro";
  font-size: 24px;
  color: #3f5be3;
  text-decoration: underline;
  text-align: center;
  margin-bottom: 0;
  cursor: pointer;
}
nav.sidebar .gallery-link.hidden {
  display: none;
}
nav.sidebar .colorselector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 2fr));
  gap: 12px;
}
nav.sidebar .colorselector .color-option {
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  border: 4px solid transparent;
  transition: border-color 0.2s ease;
}
nav.sidebar .colorselector .color-option.selected {
  border-color: #3f5be3;
}
nav.sidebar .colorselector .color-option#color-red {
  background-color: #ff675f;
}
nav.sidebar .colorselector .color-option#color-orange {
  background-color: #ff8939;
}
nav.sidebar .colorselector .color-option#color-green {
  background-color: #64bf28;
}
nav.sidebar .colorselector .color-option#color-purple {
  background-color: #6d51f4;
}
nav.sidebar .colorselector .color-option#color-pink {
  background-color: #ee8aff;
}
nav.sidebar .colorselector .color-option#color-black {
  background-color: #414042;
}
nav.sidebar .colorselector .color-option#color-brown {
  background-color: #a97c50;
}
nav.sidebar .colorselector .color-option#color-yellow {
  background-color: #f9ed32;
}
nav.sidebar .colorselector .color-option#color-light-blue {
  background-color: #30d8d8;
}
nav.sidebar .colorselector .color-option#color-dark-blue {
  background-color: #27aae1;
}
nav.sidebar .button {
  width: 100%;
  mask-image: url("../assets/images/buttonbackground.png");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask: url("../assets/images/buttonbackground.png") no-repeat center/100% 100%;
  background-color: #3f5be3;
  aspect-ratio: 365/79;
  outline: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Readex Pro";
  font-size: 24px;
  padding-right: 4rem;
  color: white;
}
nav.sidebar .button:disabled {
  background-color: grey;
}

a.button {
  text-decoration: none;
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

.drawing-area {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  overflow: hidden;
  container-type: size;
}
.drawing-area .canvas-wrapper {
  width: min(80vmin, 900px);
  width: min(85cqmin, 900px);
  height: min(80vmin, 900px);
  height: min(85cqmin, 900px);
  aspect-ratio: 1;
  position: relative;
  filter: drop-shadow(0px 0px 12px rgba(0, 0, 0, 0.5));
}
.drawing-area .canvas-wrapper .canvas-container {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  mask: url("../assets/images/paper.svg") no-repeat center/100% 100%;
}
.drawing-area .canvas-wrapper .canvas-container .grid {
  flex-shrink: 0;
  z-index: 1;
  width: 175%;
  height: 175%;
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}
.drawing-area .canvas-wrapper .canvas-container .grid img,
.drawing-area .canvas-wrapper .canvas-container .grid canvas {
  width: 100%;
  height: 100%;
  background-color: white;
}
.drawing-area .canvas-wrapper .canvas-container .grid canvas {
  touch-action: none;
}
.drawing-area .canvas-wrapper .canvas-container .grid img {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

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