:root {
  --color-bg: #eeeeee;
  --color-text-main: #e0f8cf;
  --color-primary: #e0f8cf;
  --wrapper-height: 85vh;
  --image-max-width: 320px;
  --canvas-border-radius: 6px
}

@font-face {
  font-family: "Small Pixel";
  src: url("https://cdn.glitch.global/a32089fa-641e-449e-9474-2b95d6924af9/Small-Pixel.woff?v=1691533718380");
  font-weight:400;
  font-style:normal
}

*,
*:before,
*:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  outline: none;
}

* {
  font-family: "Small Pixel", monospace;
  font-size: 1em;
}

html,
body {
  padding: 0;
  margin: 0;
  border: 0;
  background-color: var(--color-bg);
}

#content {
  display: flex;
  gap: 20px;
  margin: 40px auto 0px auto;
  padding: 0 20px;
  width: fit-content;
  height: fit-content;
  align-self: center;
}

#toolbar {
  background-color: black;
  width: 100%;
  height: 50px;
  position: fixed;
  top: 0;
  padding-left: 10px;
}
#toolbar .navigation {
  color: white;
  font-size: 13px;
  margin: 15px;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
}
#toolbar .navigation span {
  padding: 0 5px;
}
#toolbar a {
  color: white;
  text-decoration: none;
  font-weight: bolder;
  transition-property: all;
  transition-duration: 0.2s;
}
#toolbar a:hover {
  color: grey;
}

#container {
  padding: 50px 65px 50px 60px;
  background-color: grey;
  border-radius: 6px 6px 60px 5px;
  transform-origin: top;
  box-sizing: content-box;
}
#container.share {
  width: 512px;
  height: 512px;
}
#container.tweet.portrait-ratio {
  width: 828px;
  height: 1012px;
}

#container.tweet.landscape-ratio {
  width: 1012px;
  height: 828px;
}

#container.tweet.square-ratio {
  width: 828px;
  height: 828px;
}

#canvas {
  background-color: white;
  position: relative;
}
.square {
  position: relative;
  overflow: hidden;
  background-repeat: no-repeat;
}
.square[data-img-url] {
  cursor: pointer;
}
.square canvas {
  width: 512px;
  height: 512px;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
canvas#grid {
  position: absolute;
  top: 0;
  left: 0;
}
canvas#heatmap {
  position: absolute;
  top: 0;
  left: 0;
  /*   opacity: 0.5; */
}
.red {
  background: url("https://cdn.glitch.com/a32089fa-641e-449e-9474-2b95d6924af9%2Fdrop-image.png?v=1602269942978");
  background-size: cover;
  background-color: #e0f8cf;
  top: 0;
  left: 0;
  width: 512px;
  height: 512px;
  overflow: scroll;
}
.square::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  box-shadow: none;
  transition-property: all;
  transition-duration: 0.2s;
}
.hover::after {
  box-shadow: inset 0px 0px 20px 4px #306850;
}

#sidebar {
  display: flex;
  max-width: 160px;
  flex-direction: column;
  gap: 10px;
}

#info {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background-color: #aaaaaa;
  font-size: 0.8em;
  border-radius: 6px;
}
#info label {
  margin-bottom: 2  px;
}
#info input {
  margin-bottom: 6px;
}

#tiles-container {
  background-color: #aaaaaa;
  margin: 0px 0px;
  font-size: 0.8em;
  border-radius: 6px;
}
#tiles {
  position: relative;
  min-height: 500px;
  max-height: 500px;
  overflow: scroll;
  background-color: grey;
}
#tiles span {
  pointer-events: none;
  position: relative;
  display: inline-block;
}
#tiles span[data-selected="true"]::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  box-shadow: inset 2px 2px 2px blue, inset -2px -2px 2px blue;
  border: 1px solid blue;
}
#tiles canvas {
  pointer-events: auto;
  height: 32;
  width: 32;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  border: 1px solid grey;
}
.modal {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-container {
  margin: 30px auto;
  padding: 10px;
  background-color: white;
  border-radius: 5px;
  width: 600px;
  height: 500px;
  box-sizing: content-box;
}
.modal-content {
  height: 450px;
}
.modal-toolbar {
  float: right;
}
.hidden {
  visibility: hidden;
}

.title-input {
  border: 0;
  background: transparent;
  font-size: 20px;
  color: white;
  font-weight: bolder;
  padding: 5px;
}
.title-input:focus {
  color: black;
  background-color: white;
}
#live-reload-container {
  padding: 6px;
  display: none;
}

input {
  margin: 0;
}
.form-container {
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#download-tileset {
  cursor: pointer;
  margin: auto;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.1s ease-out;
}

#download-tileset:hover {
  background-color: #781a20;
  color: white;
}

#heatmap-style-selector {
  user-select: none;
  cursor: arrow;
}
