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

body {
  overflow: hidden;
}

#sprite-editor {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;

  display: flex;
  flex-wrap: nowrap;
}

#sprite-editor > * {
  flex: 0 1 auto;
}

#sprite-editor > * {
  background-color: #fff;
  overflow: auto;
}

#sprite-editor > *:nth-child(2) {
  background-color: transparent;
  flex: 1 1 auto;
}

#sprite-editor fieldset > p {
  white-space: nowrap;
}

#sprite-editor .undefined {
  color: #ccc;
}

#sprite-editor .dialog {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  background-color: transparent;
}

#sprite-editor .dialog > .dialog-overlay {
    background-color: rgba(0, 0, 0, 0.75);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

#sprite-editor .dialog > form {
  position: relative;
  border-radius: 5px;
  background-color: #fff;
  align-self: center;
}

#sprite-editor .hidden {
  visibility: hidden;
}

#select-dialog-select-texture {
  max-height: 256px;
  overflow: auto;
}

.thumbnail {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
}

.thumbnail canvas {
  align-self: center;
  max-width: 128px;
  max-height: 128px;
  min-width: 64px;
  max-height: 64px;
}