body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #111111;
  color: white;
  text-align: center;
}

#app {
  margin: 20px auto;
  display: inline-block;
  text-align: left;

  /*display: -webkit-inline-flex;
  -webkit-flex-direction: column;
  -webkit-justify-content: flex-start;
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-start;*/
}

#game {
  position: relative;

  display: -webkit-flex;
  -webkit-flex-direction: row;
  -webkit-justify-content: flex-start;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;

  border: 1px solid #337890;
}

#canvas_set {
  position: relative;
  width: 640px;
  height: 480px;
}
.game_canvas {
  position: absolute;
  top: 0;
  left: 0;
}


/* title */

#title h1 {
  margin: 0 0 10px 0;
  color: #3398b0;
}
#title h1 small {
  font-weight: normal;
  font-size: 24px;
  float: right;
  color: #a0a0a0;
  margin-top: 10px;
}

/* buttons */
button {
  font-size: 14px;
  background: #202020;
  color: white;
  border: 1px solid #505050;
  border-radius: 4px;
  padding: 3px 7px;
  text-align: center;
  cursor: pointer;
}
button:hover {
  background: #303030;
}
button:focus {
  outline: none;
  border-color: #507070;
}
button[disabled] {
  background: #303030;
  color: #c0c0c0;
  cursor: default;
}

/* menu */

#menu {
  background: #181818;
  border-left: 1px solid #337890;
  width: 180px;

  display: -webkit-flex;
  -webkit-flex-direction: column;
  -webkit-justify-content: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#current_wave {
  font-size: 20px;
  color: #00c0e0;
  padding: 10px 10px 0 10px;
}
#lives {
  color: #ff7040;
  padding: 0 10px;
}
#cash {
  color: #00ff90;
  padding: 0 10px 0 10px;
}

#towers {
  margin: 10px 0 0 0;
  border-top: 1px solid #303030;
  padding: 5px 0 5px 0;
}
.tower {
  padding: 8px 0 7px 2px;
  clear: both;
  cursor: pointer;
}
.tower:hover {
  background: #202020;
}
.tower.selected {
  background: #18292F;
}

#current_tower {
  flex-grow: 1;
  border-top: 1px solid #303030;
  border-bottom: 1px solid #303030;
  padding: 5px 10px;
  line-height: 12px;
}
#current_tower_header {
  margin-top: 5px;
  margin-bottom: 10px;
  line-height: initial;
}
.tower_icon {
  float: left;
  margin-right: 3px;
  margin-top: -10px;
  margin-left: -10px;
}
.tower_type {
  font-size: 14px;
  line-height: 10px;
}
#current_tower > .tower_type {
  margin-bottom: 5px;
}
.tower_cost, .tower_dps, .tower_level, .tower_range,
.tower_upgrade, .tower_sell {
  display: inline-block;
  margin-right: 5px;
  font-size: 11px;
  color: #a0a0a0;
}
#tower_control_buttons {
  clear: both;
  text-align: center;
  margin-top: 7px;
}

.control_button.tower_upgrade_btn, .control_button.tower_sell_btn {
  display: inline-block;
  margin-right: 5px;
  margin-top: 0;
  width: 40%;
  font-size: 12px;
}

.control_button.start_button {
  background: #036128;
}
.control_button.start_button:hover {
  background: #208040;
}

#controls {
  padding: 10px;
}
.control_button {
  margin-top: 5px;
  display: block;
  width: 100%;
}


/* display */

#display {
  position: absolute;
  top: 0; left: 0;
  bottom: 0; right: 0;
  pointer-events: none;
}
#display > #fps,
#display > #display_overlay {
  position: absolute;
  bottom: 5px;
  font-size: 12px;
  padding: 3px 5px;
  background: rgba(0,0,0,0.4);
  border-radius: 4px;
}
#display > #fps {
  left: 5px;
  width: 37px;
  height: 12px;
}
#display > #display_overlay {
  right: 208px;
}

/* overlay */

#overlay_outer {
  position: absolute;
  top: 0; left: 0;
  bottom: 0; right: 0;
  display: table-cell;
  pointer-events: none;
}
#overlay_middle {
  display: table;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#overlay {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  padding-bottom: 20px;
  pointer-events: initial;
}
#map_select_title {
  margin-top: 0;
}
.map_button {
  font-size: 16px;
  padding: 0;
  margin: 0 15px;
}
.map_button > .map_name {
  padding: 5px;
  margin-bottom: 3px;
}
.map_button > canvas {
  display: block;
  border-radius: 0 0 5px 5px;
}
.map_button:hover > canvas {
  opacity: 0.5;
}
.high_score {
  font-size: 14px;
  padding: 2px;
}

/* end game prompt */
.overlay_modal {
  display: inline-block;
  background: rgba(10,10,10,0.8);
  padding: 40px;
  border-radius: 15px;
}
#end_game_button {
  margin-right: 10px;
}
#end_game_button, #end_game_cancel_button, #game_ended_button {
  margin-top: 15px;
  padding: 5px 9px;
}
