h1, h2, h3 {
  font-family: 'Roboto Mono', Monaco, Consolas, Courier, monospace;
  line-height: 2em;
}

header {
  font-weight: bold;
  color: white;
  background: #4caf50;
  margin: 0 -10px;
  padding: 10px;
}

waiting {
  position: fixed;
  top: 25vh;
  width: 50vw;
  text-align: center;
  min-height: 50vh;
  background: wheat;
  z-index: 100000000;
  border: 20px solid #4caf50;
}

#map-container>table td {
  width: 28px;
  height: 28px;
  border: 0 solid rgba(0, 0, 0, 0.3);
  position: relative;
}

#map-container>table.SHOW_GRIDtrue td {
  border-width: 0.5px;
}

#map-container>table td>terrain {
  display: block;
  position: absolute;
  top: 0;
  /* right: 10px; */
  width: 100%;
  height: 28px;
  line-height: 28px;
  opacity: 0.5;
  z-index: 2;
  text-align: center;
  margin: auto;
  opacity: 0.3;
}

#map-container>table td>mark {
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 7px;
  background: #5b5bec;
}

#map-container>table td>mark.airStrike {
  bottom: 0;
  top: auto;
  border-radius: 50%;
  background: purple !important;
}

#map-container>table td>mark.fortified {
  left: 0;
  font-size: 12px;
  width: 12px;
  background: none;
  font-weight: bold;
  height: 14px;
  z-index: 123123123;
}
#map-container>table td>army{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 10px;
  height: 5px;
  border-radius: 0 50% 0 0;
  background: transparent;
  z-index: 123123;
}

td.army {
  width: 5px;
}

#map-container>table td>number {
  /* display: block; */
  position: absolute;
  top: 0;
  right: 11px;
  height: 28px;
  line-height: 30px;
  z-index: 3;
  font-size: 13px;
  font-weight: bold;
}



#map-container>table {
  border-spacing: 0;
  border-collapse: collapse;
  user-select: none;
  transform-origin: top left;
}

#left, #right {
  width: 17.5%;
  height: 100vh;
  min-width: 340px;
  background: wheat;
}

#left .tabs {
  display: flex;
  flex-direction: row;
  flex-flow: row;
  user-select: none;
}

#left .tabs>span:hover {
  opacity: 0.5;
}

#left span, #left strong, #left-content, table.statistic, #right-content, #right {
  user-select: none;
}

#left .tabs>.active {
  background: #4caf50;
  color: white;
  font-weight: bold;
  opacity: 0.8;
}

table.divisions tr>td:first-child:not(.hp) {
  white-space: nowrap;
  overflow-x: hidden;
  width: 258px;
  max-width: 258px;
  min-width: 258px;
  text-overflow: ellipsis;
  line-height: 32px;
}

table.divisions tr>td:first-child:not(.hp) > span {
  font-weight: bold;
  padding-right: 0.5em;
  border-right: 1.6px solid rgba(0,0,0,0.8);
  color: rgba(0,0,0,0.8);
}

table.divisions tr>td:last-child {
  text-align: right;
}

table.divisions tr>td.hp {
  height: 3px;
}

table.divisions tr>td.hp>div {
  height: 100%;
  transform: translateY(-250%);
  image-rendering: pixelated;
}

table.statistic, table.divisions {
  width: 100%;
}

table.statistic tr {
  height: 1.5em;
}

table.statistic td {
  text-align: right;
  vertical-align: top;
}

table.statistic td.small {
  font-size: 13px;
  font-family: sans-serif;
}

a {
  color: inherit;
}

.fraction {
  font-size: 10px;
  font-family: sans-serif;
  display: inline-block;
  height: 32px;
  text-align: center;
}

.fraction > span:first-child {
  display: block;
  height: 15px;
}
.fraction > span:nth-child(2) {
  display: inline-block;
  border-top: 1px solid black;
  height: 16px;
}

table.statistic th {
  text-align: left;
  vertical-align: top;
}

#left .tabs>span {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 55px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: #e2d6c0;
  border: 1px solid gray;
  cursor: pointer;
}


#left-content, #right-content {
  padding: 10px;
}

#left-wrap, #right-content {
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100% - 62px);
}

#controls button {
  width: 32px;
  padding: 0 10px;
}

#playerID {
  font-weight: bold;
  cursor: default !important;
}

#map-container {
  overflow: auto;
  width: 65%;
  height: 100vh;
}

body {
  overflow: auto;
  font-family: Consolas, Courier New, Courier, monospace;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-flow: row;
}

* {
  padding: 0;
  margin: 0;
  /* transition: all .3s ease;
  transition: all .3s ease; */
  -webkit-font-smoothing: none;
  image-rendering: pixelated;
  text-rendering: optimizeSpeed;
}

.auto-collapse {
  display: block;
  position: absolute;
  top: 0;
  height: auto !important;
  z-index: 100;
}

#left.auto-collapse {
  left: 0;
}

#right.auto-collapse {
  right: 0;
}
