
* {
  font-family: sans-serif;
  --marker-background: #cfc;
  --marker-background-darker: #9d9;
  --scroll-background: #ada;
  --highlight-color: #f88;
  --flash-border-color: #fff;
  --separating-border: var(--marker-background-darker);
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

button, .CommonButton {
  background-color: var(--marker-background);
  border-color: var(--marker-background-darker);
  border-style: solid;
}

button {
  font-size: medium;
  border-radius: 3px;
  border-width: 1px;
}

button:hover:not([disabled]) {
  filter: brightness(0.8);
}

.configLoading {
  background-color: var(--marker-background);
  padding: 30px;
}

.TileTools {
  display: grid;
  margin-bottom: 4px;
  line-height: 2;
}

.TileTools label {
  background: var(--marker-background);
  display: block;
  margin: 0 4px 0 0;
}

.TileTools button {
  margin-right: 4px;
}

.gridViewport {
  position: relative; /* allow modal to be positioned on top */
  box-sizing: border-box;
  width: 100%;
  text-align: center;
  overflow-x: scroll;
  background: var(--scroll-background);
  margin-bottom: 20px; /* leave room for horizontal scrollbar */
}

.GridMonger {
  /* better scroll handling inside .gridViewport */
  padding: 20px;
}

.menubar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
  width: 100%;
  gap: 5px;
  padding: 3px;
  border-bottom: 2px solid var(--separating-border);
  background-color: var(--marker-background);
}

.MenuButton > *:first-child {
  border-width: 0px;
  padding: 10px 10px;
  background: var(--marker-background);
}

.MenuButton > div:first-child:hover {
  filter: brightness(0.8);
}

.MenuButton .menu {
  gap: 2px;
  background: var(--marker-background);
  border-width: 1px;
  border-color: var(--marker-background-darker);
  border-radius: 3px;
}

.MenuButton .menu button {
  text-align: left;
  padding: 4px 10px;
  border-width: 0px;
}
