/*
  GLOBAL
*/
* {
  box-sizing: border-box;
}

body {
  font-family: verdana;
  font-size: 12px;
  margin: 0;
  padding: 0;
}

/*
  PANEL
*/

.panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 300px;
  background-color: rgb(233, 233, 233);
  border: 1px solid grey;
}

.panel-header {
  background-color: rgb(22, 83, 102);
  color: white;
  padding: 5px;
}

.panel-content {
  padding: 5px;
  overflow: scroll;
  height: 100%;
  bottom: 0;
}
/*
  WORLD
*/

.world {
  white-space: nowrap;
  width: calc(100% - 300px);
  height: 100vh;
  overscroll-behavior: none;
  overflow: scroll;
  position: relative;
}

.row {

}

.cell:hover {
  box-shadow: inset 0 0 3px 2px #ff0000;
  color: black;
}

.has-health:after {
  content: '';
  width: calc(30px * var(--data-health));
  height: 5px;
  display: block;
  border: 1px solid #6f6f6f;
  background-color: lime;
  position: absolute;
  margin-top: -8px;
}

.cell {
  user-select: none;
  display: inline-block;
  text-align: center;

  vertical-align: middle;
  width: 32px;
  height: 32px;
  overflow: hidden;

  box-shadow: 0 0 3px -1px #dedede;
}

.cell-wood {
  background-color: rgb(121, 73, 29);
  color: white;
}

.cell-stone {
  background-color: rgb(41, 41, 41);
  color: white;
}

.cell-tower {
  background-color: rgb(12, 99, 114);
  background: url(dynamyte.jpg);
  background-size: cover;
  color: white;
}

.cell-blank {
  color: rgb(228, 228, 228);
}

.cell-selected {
  background-color: rgb(218, 218, 8);
  box-shadow: inset 0 0 0px 2px #ff0000;
  color: black;
  z-index: 10000;
}

/*
  ACTION BAR
*/

.actionBar {
  position: fixed;
  bottom: 0;
}