body {
  margin: 0;
  background-image: url('assets/background.png');
  background-size: 100px;
  image-rendering: pixelated;
  color: #FFFFFF;
  font-family: sans-serif;
}
nav {
  margin-bottom: 10px;
}
a {
  color: #9999FF;
  &:visited {
    color: #CC99CC;
  }
}
#backgroundDiv {
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0, rgba(0,0,0,0.8) 600px);
  min-height: calc(100vh - 9px);
  padding: 1px 8px 8px 8px;
  &:has(#doubleColumnUI) {
    padding: 1px 1px 1px 8px;
    min-height: calc(100vh - 2px);
    /* TODO: how to get rid of the bottom padding ?? */
  }
  overflow: hidden;
}
#contentDiv {
  line-height: 1.5;
  max-width: 800px;
  margin-left: 10px;
  margin-right: 15px;
  & h4, p {
    margin-left: 5px;
  }
}
#doubleColumnUI {
  display: flex;
  gap: 20px;
  height: calc(100vh - 9px);
  & #columnLeft {
    flex: none;
    display: flex;
    flex-direction: column;
    & #settings {
      overflow-y: auto;
      overflow-x: hidden;
      scrollbar-gutter: stable;
      padding-right: 8px;
    }
  }
  & #columnRight {
    flex: auto;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    padding-right: 8px;
    & #canvasDiv {
      margin-top: 20px;
    }
  }
}
td:first-child {
  text-align: right;
}
#fileInput {
  max-width: 300px;
}
button {
  margin-top: 2px;
}
#canvasDiv {
  display: flex;
  max-width: 100%;
  & canvas {
    border: 2px solid #FFFFFF;
    /*       border: 4px solid #DDDDAA; */
    /*       border-image: url('frame.png') 4 / 20px/ 20px round; */
    /*       background: #884433; */
    /* TODO cool map edge texture */
    image-rendering: pixelated;
    background: #444444;
    width: 100%;
    height: 100%;
  }
  & div {
    margin: 10px;
    width: 100%;
    display: block;
    position: relative;
  }
  & div #pendingIndicator {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 48px;
  }
}
#blockSelection {
  display: grid;
  grid-template-columns: repeat(3, 155px);
  grid-template-rows: repeat(20, auto);
  grid-auto-flow: column;
  column-gap: 5px;
  & select {
    width: 135px;
    margin-top: 2px;
    &:has(> option[value="disabled"]:checked) {
      color: #999999;
    }
    & option {
      color: #000000;
    }
  }
}
.square {
  height: 8px;
  width: 8px;
  border: 1px solid white;
  display: inline-block;
  margin: 0 5px 0 5px;
}
