body {
}

h2, h3, h4 {
  margin: 0.25rem 0;
}

.version {
  font-size: 1.0rem;
}

.add-ons {
  margin-left: auto;
  margin-right: auto;
  width: calc(min(100vw - 2rem, 60rem));
}

.add-ons :is(label,.label) {
}

.add-ons .developer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  text-align: center;
}

.add-ons .developer-logo > img {
  max-width: 1in;
}

.add-ons .copyright {
  text-align: center;
  font-size: 0.9rem;
  color: var(--soft-blue);
  margin-bottom: 1rem;
}

.add-ons button {
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.add-on-tilesheet-canvas {
  width: 100%;
}

.tile-table {
  display: grid;
  grid-template-columns:
    min-content min-content 1fr
    1rem
    min-content min-content 1fr
    1rem
    min-content min-content 1fr
    0px
    ;
  grid-gap: 1rem;
  align-items: center;
  align-content: center;
  justify-content: center;
  justify-items: center;
}

.tile-table [data-bind-tile-coord] {
  font-family: monospace;
}

.tile-table [data-bind-tile-name] {
  width: 100%;
}

.tile-table input:focus {
  background-color: var(--soft-blue);
}

.marker-table-entry {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.marker-table-entry > * + * {
  margin-left: 1rem;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  border: none;
  margin: 0;
  padding: 0;

  margin-top: 2rem;
}

.tabs input {
  display: none;
}

.tabs > :is(a,label,.label) {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.1rem;

  padding: 0.5rem;
  margin: 0;
  cursor: pointer;

  background-color: var(--sea-blue);
}

.tabs > :is(a,label,.label):hover {
  background-color: var(--pond-blue);
}

.tabs > :has(input:checked) {
  background-color: var(--pond-blue);
  cursor: default;
}

.tabs > :is(label,.label) > img {
  height: 1.5rem;
  margin-right: 0.25rem;
}

.tabs > :first-child {
  border-top-left-radius: 0.25rem;
}

.tabs > :first-child {
  border-top-left-radius: 0.5rem;
}

.tabs > :last-child {
  border-top-right-radius: 0.5rem;
}

.tab-body {
  display: none;
  padding: 0.5rem;
  background-color: var(--pond-blue);
  min-height: 50vh;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  overflow: hidden;
}

.tab-body hr {
  border: thin solid var(--lake-blue);
}

.add-on:has(> fieldset [value="tilesheets"]:checked) > .tab-body.tab-tilesheets { display: flex; }
.add-on:has(> fieldset [value="markers"]:checked) > .tab-body.tab-markers { display: flex; }
.add-on:has(> fieldset [value="symbols"]:checked) > .tab-body.tab-symbols { display: flex; }
.add-on:has(> fieldset [value="terrain"]:checked) > .tab-body.tab-terrain { display: flex; }
.add-on:has(> fieldset [value="trim"]:checked) > .tab-body.tab-trim { display: flex; }


#add-on-name {
  padding: 0.25rem 0.5rem;
  font-size: 1.1rem;
}

.tile-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: white;
  color: black;
  cursor: pointer;
}

.tile-option > * {
  margin: 0.25rem 0.5rem;
}

.tile-option > .icon {
  max-height: 1.5rem;
}

.tile-option:hover, .tile-option[data-bind-selected] {
  background: var(--pond-blue);
  color: white;
  font-weight: bold;
}

.tile-option-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow-y: scroll;
  max-height: 50vh;
  border: thin solid var(--sea-blue);
}

.hstack {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
}

.hstack > * + * {
  margin-left: 1rem;
}

.form > label > :is(input,select) {
  display: block;
  margin-top: 0.25rem;
  width: 100%;
}

.symbol-tiles {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
}

.symbol-tiles > :hover {
  opacity: 0.5;
}

.terrain-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.terrain-entry {
}

:is(.terrain-tile-entry, .beach-filter) {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

:is(.terrain-tile-entry, .beach-filter) > select {
  flex-grow: 1;
}

:is(.terrain-tile-entry, .beach-filter) > * + * {
  margin-left: 0.5rem;
}

.hint {
  opacity: 0.9;
  font-size: 0.95;
}

.tab-trim h3 {
  margin-top: 2rem;
}

.cliff-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 1rem;
  align-items: stretch;
  justify-items: stretch;
  justify-content: stretch;
  align-content: stretch;
  min-width: 0;
  overflow: hidden;
}

.cliff-tiles > label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  min-width: 0;
}

.cliff-tiles > label > input[type="text"] {
  display: block;
}

.trim > .hstack > :first-child {
  flex-grow: 1;
}

.click-delete {
  cursor: pointer;
}

.click-delete:hover {
  opacity: 0.9;
  background-color: var(--btn-alt-mid);
}

.max-row {
}
