:root {
  --grid-gap: 1px;
  --canvas-bg: lightblue;
  --app-bg: beige;
  --app-gap: 0vh;
  --button-padding: 1vh;
  --border-radius: .5vh;
  --shadow: 0 .2vh .4vh #0000001a;
}

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

body {
  background-color: var(--app-bg);
  width: 100vw;
  height: 100vh;
  font-family: sans-serif;
}

#app {
  gap: var(--app-gap);
  box-sizing: border-box;
  grid-template-rows: 5vh 50vh 40vh 5vh;
  grid-template-columns: 1fr;
  width: 100%;
  height: 100%;
  padding: 0;
  display: grid;
}

#canvas {
  gap: var(--grid-gap);
  background-color: var(--canvas-bg);
  aspect-ratio: 1;
  grid-template-rows: repeat(30, 1fr);
  grid-template-columns: repeat(30, 1fr);
  place-self: center;
  width: 100%;
  max-width: 50vh;
  height: 100%;
  display: grid;
}

.pixel {
  background-color: #0000;
  width: 100%;
  height: 100%;
}

aside {
  align-items: center;
  display: grid;
}

#toolbox {
  grid-template-columns: repeat(3, 1fr);
}

#colorSection {
  flex-direction: column;
  height: 100%;
  display: flex;
}

#activeColor {
  flex-shrink: 0;
  width: 100%;
  height: 4vh;
}

#palette {
  flex: 1;
  grid-template-rows: repeat(auto-fit, 1fr);
  grid-template-columns: repeat(16, 1fr);
  gap: .2vh;
  max-height: 100%;
  display: grid;
  overflow-y: auto;
}

#menu {
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
}

#toolbox .tool {
  padding: var(--button-padding) 1.5vh;
  color: #495057;
  cursor: pointer;
  text-transform: capitalize;
  background: #e8e9ea;
  border: none;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-size: 1.5vh;
  font-weight: 500;
  transition: all .2s;
  display: flex;
}

#toolbox .tool:hover {
  box-shadow: var(--shadow);
  background: #d1d3d4;
  transform: translateY(-.1vh);
}

#toolbox .tool:active {
  transform: translateY(0);
  box-shadow: 0 .1vh .2vh #0000001a;
}

#menu button {
  border-radius: var(--border-radius);
  color: #fff;
  cursor: pointer;
  background: #007bff;
  border: 0 solid #007bff;
  height: 100%;
  padding: 0;
  font-size: 1.6vh;
  font-weight: 500;
  transition: all .2s;
}

#menu button:hover {
  box-shadow: var(--shadow);
  background: #0056b3;
  border-color: #0056b3;
  transform: translateY(-.1vh);
}

#menu button:active {
  transform: translateY(0);
  box-shadow: 0 .1vh .2vh #0000001a;
}

.palette-color {
  aspect-ratio: 1;
  cursor: pointer;
  border-radius: var(--border-radius);
  box-sizing: border-box;
  border: .3vh solid #dee2e6;
  width: 100%;
  height: 100%;
  transition: all .15s;
}

.palette-color:hover {
  transform: scale(1.1);
}

.palette-color.selected {
  box-shadow: 0 0 0 .1vh #fff, var(--shadow);
  border: .4vh solid #000;
  transform: scale(1.05);
}

.modal {
  background: #00000080;
  justify-content: center;
  align-items: center;
  display: none;
  position: fixed;
  inset: 0;
}

#welcomeModal {
  display: flex;
}

#svgPreview {
  aspect-ratio: 1;
  border-radius: var(--border-radius);
  background: #fff;
  border: .1vh solid #dee2e6;
  grid-template-rows: repeat(3, 1fr);
  grid-template-columns: repeat(3, 1fr);
  justify-self: center;
  width: min(30vh, 80%);
  display: grid;
}

#svgPreview svg {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  display: block;
}

#svgText {
  resize: vertical;
  border-radius: var(--border-radius);
  width: 100%;
  min-height: 12vh;
  padding: var(--button-padding);
  border: .1vh solid #dee2e6;
  font-family: monospace;
  font-size: 1.2vh;
}

.modal-content {
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 50vw;
  box-shadow: var(--shadow);
  background: #f8f9fa;
  border: .3vh solid #6c757d;
  gap: 1.6vh;
  padding: 2vh;
  display: grid;
}

.modal-buttons {
  grid-template-columns: 1fr 1fr;
  gap: .6vh;
  display: grid;
}

#welcomeModal .modal-buttons {
  grid-template-columns: 1fr;
}

.modal-content button {
  border-radius: var(--border-radius);
  color: #fff;
  cursor: pointer;
  background: #6c757d;
  border: .3vh solid #6c757d;
  padding: .6vh 1.2vh;
  font-size: 1.3vh;
  font-weight: 500;
  transition: all .2s;
}

.modal-content button:hover {
  box-shadow: var(--shadow);
  background: #5a6268;
  border-color: #5a6268;
  transform: translateY(-.1vh);
}

.modal-content button:active {
  background: #545b62;
  transform: translateY(0);
  box-shadow: 0 .1vh .2vh #0000001a;
}
/*# sourceMappingURL=svg-pixel-editor.93c2e75a.css.map */
