body, html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
}

.gameplay-map-column {
  display: inline-block;
  max-width: 40px;
  min-width: 40px;
}

.gameplay-map-square {
  position: relative;
  max-height: 40px;
  min-height: 40px;
}

#gameplay-map-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background-color: black;
  background-image: url("/images/loading.gif");
  background-position: center;
  background-repeat: no-repeat;
}

#gameplay-commands {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100000;
}
#gameplay-battle-informations {
  position: absolute;
  top: 0;
  left: 35px;
  z-index: 100000;
}

#gameplay-connection {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 15px;
  height: 15px;
  z-index: 100000;
  background-color: #ff2929;
}
#gameplay-connection.connected {
  background-color: #3cff29;
}

#gameplay-infos {
  display: none;
  position: absolute;
  z-index: 150;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.5);
  font-family: monospace;
  font-weight: bold;
  color: #FFFFFF;
  bottom: 0;
  left: 0;
  padding: 0 10px;
  width: 100vw;
  text-align: center;
}
@media (max-width: 750px) {
  #gameplay-infos {
    font-size: 10px;
    line-height: 20px;
  }
  #gameplay-infos img {
    width: 10px;
    margin-bottom: 1px;
  }
  #gameplay-infos img.action {
    width: 40px;
    margin-bottom: 0 !important;
  }
}
@media (min-width: 751px) {
  #gameplay-infos {
    font-size: 18px;
    line-height: 40px;
  }
  #gameplay-infos img {
    width: 20px;
    margin-bottom: 4px;
  }
  #gameplay-infos img.action {
    width: 60px;
    margin-bottom: 0 !important;
  }
}

#gameplay-map-content {
  z-index: 50;
}

#gameplay-alert-messages {
  position: absolute;
  z-index: 100000;
  top: 5px;
  right: 5px;
  max-width: 300px;
  min-width: 150px;
}
#gameplay-alert-messages .alert {
  margin-bottom: 5px !important;
}

#gameplay-short-alert-messages {
  position: fixed;
  z-index: 110000;
  text-align: center;
  width: 100vw;
  bottom: 70%;
}
#gameplay-short-alert-messages .alert {
  margin: 0px auto 5px auto !important;
  max-width: 500px;
}

.img {
  max-width: 100%;
}

.type {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
}

.elevation {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 102;
}

.modifier {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 103;
}

.modifier-under-elevation {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 101;
}

.unit {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 110;
}

.digin {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 109;
}

.state {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 110;
}

.square-tag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 104;
}

.objective {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 104;
}

.tag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 114;
}

.cohesion-state {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 118;
}

.arrow {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 105;
}

.selector {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 107;
}

.squad {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 106;
}

.shoot, .heal, .supply {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 120;
}

.hp {
  position: absolute;
  z-index: 115;
  font-family: Arial;
  font-weight: bold;
  color: #FFFFFF;
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
  bottom: 1px;
  left: 2px;
  font-size: 11px;
  padding: 0;
}

.ap {
  position: absolute;
  z-index: 115;
  font-family: Arial;
  font-weight: bold;
  color: #FF5555;
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
  bottom: 1px;
  right: 2px;
  font-size: 11px;
  padding: 0;
}

.modal-body.no-padding-top, .modal-body .tab-pane.no-padding-top {
  padding-top: 0 !important;
}
.modal-body.no-padding-bottom, .modal-body .tab-pane.no-padding-bottom {
  padding-bottom: 0 !important;
}

.message {
  padding-top: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid #aaaaaa;
}
.message-author {
  font-weight: bold;
  padding-right: 10px;
}
.message-hour {
  font-size: 0.7em;
}
#form-send-message {
  margin-top: 3px;
}

#side-modal.modal, #messages-modal.modal {
  position: absolute;
  max-width: 95vw;
  top: 0;
  left: 40px;
  bottom: auto;
  right: auto;
  overflow: hidden;
  padding: 0;
  z-index: 1000;
}
#side-modal.modal .modal-dialog, #messages-modal.modal .modal-dialog {
  margin: 0;
}
#side-modal.modal .modal-header, #messages-modal.modal .modal-header {
  text-align: center;
  cursor: move;
}

.modal-body.tab-content {
  padding: 0;
}
.modal-body .tab-pane {
  padding: 15px;
}
.maxheight60 {
  max-height: 60vh;
}
.maxheight50 {
  max-height: 50vh;
}
.maxheight40 {
  max-height: 40vh;
}
.overflow {
  overflow-y: auto;
  overflow-x: hidden;
}

#actions-content {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 70vh;
}

#squad-content {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 70vh;
}
#squad-myunits .myunit, .unittype .unit, #gameplay-units-list .myunit, .squad-list-units-list .myunit {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 0;
  border: 1px solid #000000;
  position: relative;
  background-color: #b28957;
}
#squad-myunits .myunit .ap, #gameplay-units-list .myunit .ap {
  position: absolute;
  z-index: 115;
  font-family: Arial;
  font-weight: bold;
  color: #FF5555;
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
  bottom: 0;
  right: 5px;
  font-size: 20px;
  padding: 0;
}
#squad-myunits .myunit .hp, #gameplay-units-list .myunit .hp, .squad-list-units-list .myunit .hp {
  position: absolute;
  z-index: 115;
  font-family: Arial;
  font-weight: bold;
  color: #FFFFFF;
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
  bottom: 0;
  left: 5px;
  font-size: 20px;
  padding: 0;
}
.myunit-container {
  display: inline-block;
  text-align: center;
  margin: 0 10px 10px 0;
}
.myunit-container .myunit {
  margin: 0 0 3px 0 !important;
}
.unittype .unit .lock {
  position: absolute;
  top: 0;
  left: 0;
}
.unittype .unit {
  width: 80px;
  height: 80px;
}
.resources {
  line-height: 25px;
  font-size: 16px;
  font-weight: bold;
}
.resources img {
  position: relative;
  bottom: 2px;
}
.unittype {
  cursor: pointer;
}
.unittype .unit .rp, .unittype .unit .gold, .unittype .unit .diamond {
  position: absolute;
  z-index: 115;
  left: 0;
  padding: 0;
}
.unittype .unit .rp p, .unittype .unit .gold p, .unittype .unit .diamond p {
  position: absolute;
  bottom: 0;
  left: 25px;
  display: inline;
  font-family: Arial;
  font-weight: bold;
  color: #FFFFFF;
  text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
  font-size: 18px;
  line-height: 18px;
  padding: 0;
  margin: 0;
}
.unittype .unit .rp, .unittype .unit .gold {
  bottom: 0;
}
.unittype .unit .diamond {
  bottom: 22px;
}
.unittype .unit .rp img, .unittype .unit .gold img, .unittype .unit .diamond img {
  width: 20px;
}
.unittype .unit .unittype-info {
  cursor: pointer;
  position: absolute;
  top: 1px;
  right: 1px;
  font-size: 16px;
  color: #2e6da4;
  text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
  z-index: 200;
}
.unittype-details {
  display: none;
}

@media (max-width: 600px) {
  #gameplay-units-list {
    position: absolute;
    top: 32px;
    left: 35px;
    z-index: 101;
    display: none;
  }
  #gameplay-units-list .list {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 4px 2px;
    z-index: 200;
  }
  #gameplay-units-list .myunit {
    margin: 0 2px 0 2px !important;
    cursor: pointer;
  }
  #gameplay-units-list .list img, .squad-list-units-list.list img {
    width: 40px;
  }
  #gameplay-units-list .myunit .hp, #gameplay-units-list .myunit .ap, .squad-list-units-list .myunit .hp {
    font-size: 11px !important;
    bottom: 0 !important;
  }
  #gameplay-units-list .myunit .hp, .squad-list-units-list .myunit .hp {
    left: 2px !important;
  }
  #gameplay-units-list .myunit .ap {
    right: 2px !important;
  }
}
@media (min-width: 601px) {
  #gameplay-units-list {
    position: absolute;
    top: 32px;;
    left: 35px;
    z-index: 101;
    display: none;
  }
  #gameplay-units-list .list {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 5px;
    z-index: 200;
  }
  #gameplay-units-list .myunit {
    margin: 0 5px 0 5px !important;
    cursor: pointer;
  }
  #gameplay-units-list .list img, .squad-list-units-list.list img {
    width: 60px;
  }
  #gameplay-units-list .myunit .hp, #gameplay-units-list .myunit .ap, .squad-list-units-list .myunit .hp {
    font-size: 16px !important;
    bottom: 0 !important;
  }
  #gameplay-units-list .myunit .hp, .squad-list-units-list .myunit .hp {
    left: 3px !important;
  }
  #gameplay-units-list .myunit .ap {
    right: 3px !important;
  }
}

#actions-content img.unit-image {
  width: 60px;
}
#actions-content img.action-image {
  width: 40px;
}
p.action-content {
  margin: 0 !important;
}
#actions-content hr {
  margin-top: 3px;
  margin-bottom: 3px;
}

select#deploymentZone {
  margin-bottom: 5px;
}

.squad-list-units-list.list {
  margin-top: 5px;
}

#counterattack {
  display: inline;
}

#counterattack select.form-control {
  max-width: 130px;
  display: inline;
}