body {
  font-family: Consolas, monospace;
  font-size: 12px;
  margin: 4px;
  padding: 0;
  background-color: #2c3e50; /* Adds a nice dark blue background to the whole page */
}

table {
  border-collapse: collapse;
  border: 1px solid black;
  box-shadow:  0 0 5px 0 rgba(0, 0, 0, 1);
}

#meta-data {
  background: black;
  box-shadow:  0 0 5px 0 rgba(0, 0, 0, 1);
  color: white;
  padding: 5px;
}

#meta-data span {
  padding: 0 5px;
}

#meta-data span:not(:last-child) {
  border-right: 1px solid white;
}

#force-next-wave {
  cursor: pointer;
}

#force-next-wave.disabled {
  cursor: not-allowed;
  color: #aaa;
}

table td {
  padding: 0;
  position: relative;
}

table td, table td:after {
  height: 28px;
  width: 24px;
}

table .inaccessable, table .tower {
  background: url('../images/surfaces/ice.png') !important; 
  background-size: 24px 28px !important;
}

table .path, table .monster {
  background: url('../images/surfaces/path.gif') no-repeat;
}

table .tower:after, table .monster:after {
  content: '';
  display: block;
}

table .monster:after {
  background: url('../images/monsters/mech-heavy.gif') no-repeat 4px 5px;
}

table .beast:after {
  background: url('../images/monsters/beast.gif') no-repeat 4px 9px;
}

table .scout-lite:after {
  background: url('../images/monsters/scout-lite.gif') no-repeat 6px 10px;
}

table .scout-mid:after {
  background: url('../images/monsters/scout-mid.gif') no-repeat 4px 9px;
}

table .scout-heavy:after {
  background: url('../images/monsters/scout-heavy.gif') no-repeat 4px 7px;
}

table .amphibian-lite:after {
  background: url('../images/monsters/amphibian-lite.gif') no-repeat;
}

table .tank-lite:after {
  background: url('../images/monsters/tank-lite.gif') no-repeat 3px 8px;
}

table .tank-lite-2:after {
  background: url('../images/monsters/tank-lite-2.gif') no-repeat 3px 7px;
}

table .tank-mid:after {
  background: url('../images/monsters/tank-mid.gif') no-repeat 3px 7px;
}

table .tank-laser:after {
  background: url('../images/monsters/tank-laser.gif') no-repeat 3px 7px;
}

table .tank-heavy:after {
  background: url('../images/monsters/tank-heavy.gif') no-repeat 4px 6px;
}

table .mech-lite:after {
  background: url('../images/monsters/mech-lite.gif') no-repeat 3px 4px;
}

table .mech-mid:after {
  background: url('../images/monsters/mech-mid.gif') no-repeat 4px 6px;
}

table .turret:after, .menu .turret:before {
  background: transparent url('../images/towers/turret.gif') no-repeat;
}

table .rocket:after, .menu .rocket:before {
  background: transparent url('../images/towers/rocket.gif') no-repeat;
}

table .ultra:after, .menu .ultra:before {
  background: transparent url('../images/towers/ultra.gif') no-repeat;
}

table .level-1:before, table .level-2:before, table .level-3:before {
  content: 'I';
  display: block;
  position: absolute;
  font-weight: bold;
  font-family: Arial;
  font-size: 10px;
  color: yellow;
}
table .level-2:before {
  content: 'II';
}
table .level-3:before {
  content: 'III';
}

table .selected:before {
  content: '';
  height: 24px;
  width: 20px;
  display: block;
  border: 2px solid yellow;
}

.pop-up {
  background-color: rgba(10, 10, 10, 0.8);
  background-size: 16px 16px;
  position: absolute;
  top: 20px;
  left: 20px;
  border-radius: 5px;
  padding: 10px;
  box-shadow:  0 0 10px 0 rgba(0, 0, 0, 1);
  opacity: 0.95;
  color: white;
  font-size: 14px;
  z-index: 10;
}

.menu {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.menu li {
  color: white;
  line-height: 32px;
  height: 32px;
  vertical-align: top;
  cursor: pointer;
  white-space: nowrap;
}

.menu .nested {
  height: auto;
  line-height: 0;
  border-top: 1px dashed #888;
}

.menu > li {
  padding: 0 5px 0 10px;
}

.menu li ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.menu > li:not(.nested):hover {
  background: #151515;
  border-radius: 5px;
}

.menu li:not(.nested):before {
  content: '';
  display: inline-block;
  height: 32px;
  width: 24px;
  margin-left: 4px;
  position: relative;
  left: -10px;
  float: left;
}

.menu .upgrade:before {
  background: transparent url('../images/menu/upgrade.gif') center right no-repeat;
}
.menu .sell:before {
  background: transparent url('../images/menu/sell.gif') center right no-repeat;
}
.menu .stats-range:before {
  background: transparent url('../images/interface/range.gif') center right no-repeat;
  left: -12px !important;
}
.menu .stats-damage:before {
  background: transparent url('../images/interface/damage.gif') center right no-repeat;
  left: -18px !important;
}
.menu .stats-frequency:before {
  background: transparent url('../images/interface/frequency.gif') center right no-repeat;
  left: -20px !important;
}


.range {
  position: absolute;
  background: orange;
  border-radius: 50%;
  opacity: 0.5;
  border: 2px solid yellow;
}

.bullet {
  transition: all 0.25s linear;
  position: absolute;
  height: 5px;
  width: 5px;
  background: black;
  opacity: 0.9;
  border-radius: 50%;
}

.explosion {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 21px;
  animation-timing-function: step-start;
  background: transparent url('../images/effects/explosion.gif');

}

.explosion.small {
  width: 10px;
  height: 11px;
  background-position: -80px 0;
  background-size: 90px;
  animation-duration: 200ms;
  animation-name: explosion-small;
}

.explosion.mid {
  background-position: -160px 0;
  animation-name: explosion-mid;
  animation-duration: 400ms;
}

.explosion.big {
  height: 40px;
  width: 40px;
  background-position: -320px 0;
  background-size: 362px;
  animation-name: explosion-big;
  animation-duration: 1000ms;
}

@keyframes explosion-small {
  0%     { background-position:   0    0; }
  12.5%  { background-position: -10px  0; }
  25%    { background-position: -20px  0; }
  37.5%  { background-position: -30px  0; }
  50%    { background-position: -40px  0; }
  62.5%  { background-position: -50px 0; }
  75%    { background-position: -60px 0; }
  87.5%  { background-position: -70px 0; }
  100%   { background-position: -80px 0; }
}

@keyframes explosion-mid {
  0%     { background-position:   0    0; }
  12.5%  { background-position: -20px  0; }
  25%    { background-position: -40px  0; }
  37.5%  { background-position: -60px  0; }
  50%    { background-position: -80px  0; }
  62.5%  { background-position: -100px 0; }
  75%    { background-position: -120px 0; }
  87.5%  { background-position: -140px 0; }
  100%   { background-position: -160px 0; }
}

@keyframes explosion-big {
  0%     { background-position:   0    0; }
  12.5%  { background-position: -40px  0; }
  25%    { background-position: -80px  0; }
  37.5%  { background-position: -120px  0; }
  50%    { background-position: -160px  0; }
  62.5%  { background-position: -200px 0; }
  75%    { background-position: -240px 0; }
  87.5%  { background-position: -280px 0; }
  100%   { background-position: -320px 0; }
}

ul.game-over {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

ul.game-over li:first-child {
  font-size: 18px;
  border-bottom: 1px dashed #888;
}

ul.game-over li {
  line-height: 28px;
}

ul.game-over li:last-child {
  border-top: 1px dashed #888;
}

ul.game-over a {
  color: white;
  margin-top: 5px;
  display: block;
}
/* 1. The Buildable Ground (White squares with black border and P logo) */
/* 1. The Buildable Ground (White background) */
table .inaccessable, table .tower {
  background-color: #ffffff !important; 
  background-image: url('../images/surfaces/ice.png') !important;
  background-size: 20px 24px !important; 
  background-repeat: no-repeat !important;
  background-position: center !important;
  border: 1px solid #000000 !important; 
}

/* 2. The Monster Path (Solid Dark Red background, no logo) */
table .path, table .monster {
  background-color: #8B0000 !important; /* Dark Red */
  background-image: none !important;    /* Removes the P logo */
  border: 1px solid #000000 !important;
}