.tower-background {
  height: 100%; 
  width: 100%;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
}

.tower * {
  box-sizing: border-box;
}

.tower {
  box-sizing: border-box;
  font-family: Arial,sans-serif;
}

.tower-modal {
  position: absolute; 
  max-height: 96%; 
  height: 96%; 
  width: 100%; 
  background-color: #39404f;
  border-top: 10px solid #39404f;
  z-index: 3; 
  box-sizing: border-box;
  color: #fff; 
  display: none;
  margin: 2% 0;
}

.tower-modal-open {
  display: block;
}

div[data-this="towerLosBack"],
div[data-this="towerPay"],
div[data-this="towerNoMoney"] {
  margin-top: 30%; 
  height: auto;
  border-bottom: 10px solid #39404f;
}

div[data-this*="GFT"] {
  margin-top: 20%; 
  height: auto;
  border-bottom: 10px solid #39404f;
}


div[data-this="towerLosBack"] .tower-modal-content,
div[data-this="towerPay"] .tower-modal-content,
div[data-this="towerNoMoney"] .tower-modal-content {
  padding: 10px;
  text-align: left;
}

.tower-modal-content {
  overflow-y: auto;
  height: 85%; 
  box-sizing: border-box;
  display: none;
}

.tower-modal-content::-webkit-scrollbar {
    width: 6px;
}
 
.tower-modal-content::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
    border-radius: 10px;
}
 
.tower-modal-content::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
}

.tower-modal-title {
  padding: 10px 0;
  font-weight: bold;
}

.tower-modal-content > div,
.tower-modal-content > a {
  display: block;
  position: relative;
}
.tower-modal-content > a:hover {
  background-color: #343a43;
}

.tower-modal-content > div > span,
.tower-modal-content > a > span {
  display: inline-block;
  background-color: #eb4e52; 
  color: #ffffff;
  display: inline-block; 
  padding: 8px; 
  border-radius: 50%; 
  font-weight: bolder;
  font-size: 13px;
  min-width: 30px; 
  min-height: 18px;
}

.towerInfo > div {
  padding: 10px; 
  margin: 5px auto;
  text-align: left;
}

.towerBomb > div > span {
  position: absolute;
  right: 0px; 
  bottom: 0px;
}

.towerBomb > div.tower-box  {
  display: inline-block; 
  margin: 10% auto;
}

.towerLose > div > img,
.towerWin > div > img {
  max-width: 70%; 
}

.towerGift {
  height: auto;
  padding: 30px 0 70px 0;
}


.towerGift > div {
  padding: 20px; 
  font-weight: bolder;
}

.towerGift > div > img {
  display: block;
}

.tower-modal-button,
.tower-modal-close {
  padding: 10px;
  text-align: right;
  position: absolute;
  bottom: 0px;
  width: 100%; 
  box-sizing: border-box;
  border-top: 1px solid #627080; 
}

.tower-modal-button > a,
.tower-modal-close > a {
  display: inline-block;
  padding: 10px 15px; 
  color: #ddf489; 
  font-weight: bolder;
  background-color: #454f5a;
  border-radius: 3px; 
}

.tower-modal-button {
  margin-top: 10px;
  padding: 0px;
  border-top: 0; 
}

div[data-this="towerLosBack"] .tower-modal-close,
div[data-this="towerPay"] .tower-modal-close {
  display: none;
}

div[data-this="towerNoMoney"] .tower-modal-close {
  position: relative;
}

div[data-this="towerLosBack"] .tower-modal-button,
div[data-this="towerPay"] .tower-modal-button,
div[data-this="towerNoMoney"] .tower-modal-button {
  display: block;
}

div[data-this="towerNoMoney"] .tower-modal-button {
  text-align: left;
}

.tower-modal-button > a {
  font-weight: normal;
}
.tower-modal-button > a:hover {
  background-color: #515c6a;
}

.tower-gift {
  box-sizing: border-box;
  padding: 0;
  margin-top: 10px;
  margin-bottom: 20px;
}

.tower-gift > div {
  display: inline-block;
  box-sizing: border-box;
  width: 50%;
  padding: 0; 
  margin: 0;
}

.tower-gift > div > a {
  display: block;
  padding: 5px;
  background-image: url(../img/prize_active@2x.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.tower-gift > div.prize_active > a {
  background-image: url(../img/prize_active@2x.png);
}

.tower-gift > div > a > img {
  width: 80%;
}

.tower-gift > .tower-gift-title {
  width: 100%; 
  padding: 10px 0;
  font-weight: bold;
  text-shadow: 0 0 5px #a1a1a1;
  color: #f3f3f3; 
}

.tower_scene_sky {
  background-position: bottom;
}

.tower-level1 .tower_scene_bg { background-image: url(../img/scene1_bg_web@2x.png); }
.tower-level2 .tower_scene_bg { background-image: url(../img/scene2_bg_web@2x.png); }
.tower-level3 .tower_scene_bg { background-image: url(../img/scene3_bg_web@2x.png); }
.tower-level4 .tower_scene_bg { background-image: url(../img/scene4_bg_web@2x.png); }
.tower-level5 .tower_scene_bg { background-image: url(../img/scene5_bg_web@2x.png); }
.tower-level9 .tower_scene_bg { background-image: url(../img/scene9_bg@2x.png); }

.tower-level1 .tower_scene_sky { background-image: url(../img/scene1_sky_web@2x.png); }
.tower-level2 .tower_scene_sky { background-image: url(../img/scene2_sky_web@2x.png); }
.tower-level3 .tower_scene_sky { background-image: url(../img/scene3_sky_web@2x.png); }
.tower-level4 .tower_scene_sky { background-image: url(../img/scene4_sky_web@2x.png); }
.tower-level5 .tower_scene_sky { background-image: url(../img/scene5_sky_web@2x.png); }
.tower-level6 .tower_scene_sky { background-image: url(../img/scene6_sky_web@2x.png); }
.tower-level7 .tower_scene_sky { background-image: url(../img/scene7_sky_web@2x.png); }
.tower-level8 .tower_scene_sky { background-image: url(../img/scene8_sky_web@2x.png); }
.tower-level9 .tower_scene_sky { background-image: url(../img/scene9_sky_web@2x.png); }

.tower_scene_clouds {
  background-position: 0 250%;
  background-size: contain;
  background-repeat: repeat-x;
}

.tower-level1 .tower_scene_clouds { background-image: url(../img/scene1_clouds@2x.png); }
.tower-level2 .tower_scene_clouds { background-image: url(../img/scene2_clouds@2x.png); }
.tower-level3 .tower_scene_clouds { background-image: url(../img/scene3_clouds@2x.png); }
.tower-level4 .tower_scene_clouds { background-image: url(../img/scene4_clouds@2x.png); }
.tower-level5 .tower_scene_clouds { background-image: url(../img/scene5_clouds@2x.png); background-size: 30%; background-position: bottom;}
.tower-level6 .tower_scene_clouds { background-image: url(../img/scene6_clouds@2x.png); background-size: 40%; background-position: bottom;}
.tower-level7 .tower_scene_clouds { background-image: url(../img/scene7_clouds@2x.png); background-size: 30%; background-position: bottom; }

.tower_scene_front {
  bottom: 0px;
  height: 8%; 
  background-repeat: repeat-x;
  background-size: contain;
  background-position: bottom;
}

.tower-level1 .tower_scene_front { background-image: url(../img/scene1_front_web@2x.png); }
.tower-level3 .tower_scene_front { background-image: url(../img/scene3_front_web@2x.png); }

.tower-top {
  box-sizing: border-box;
  background-size: 100%;
  position: relative;
  z-index: 2;
  height: 90px;
}

.tower-top-info {
  box-sizing: border-box;
  text-align: center;
  position: absolute;
  top: 10%; 
  width: 100%; 
  padding: 5px;
  color: #ffffff; 
  text-shadow: 0 0 5px #ffffff;
  font-size: 24px;
}

.tower-top > img {
  width: 100%; 
  max-width: 300px;
  margin-top: -4px;
}

.tower-z {
  box-sizing: border-box;
  height: 20%; 
  position: absolute;
  bottom: 0px;
  overflow: hidden;
  width: 100%;
}

.tower-z-1 { height: 15%; }
.tower-z-2 { height: 20%; }
.tower-z-3 { height: 25%; }
.tower-z-4 { height: 30%; }
.tower-z-5 { height: 35%; }
.tower-z-6 { height: 40%; }
.tower-z-7 { height: 45%; }
.tower-z-8 { height: 50%; }
.tower-z-9 { height: 55%; }

.tower-z img {
  width: 90%; 
  max-width: 240px;
}

.tower-fraction {
  display: inline-block; 
  height: 36px; 
  width: 36px;
  line-height: 10px;
  background-size: contain;
  vertical-align: middle;
  margin-top: -5px; 
  margin-left: -10px;
}

.tower-top-2 .tower-top-info {
  color: #356ab3; 
  text-shadow: 0 0 5px #356ab3;
}
.tower-top-1 .tower-fraction-1 { background-image: url(../img/13_fraction_2@2x.png); }
.tower-top-1 .tower-fraction-2 { background-image: url(../img/23_fraction_2@2x.png); }

.tower-top-2 .tower-fraction-1 { background-image: url(../img/13_fraction_3@2x.png); }
.tower-top-2 .tower-fraction-2 { background-image: url(../img/23_fraction_3@2x.png); }

.tower-top-3 .tower-fraction-1 { background-image: url(../img/13_fraction_2@2x.png); }
.tower-top-3 .tower-fraction-2 { background-image: url(../img/23_fraction_2@2x.png); }

.galaxy-star {
  overflow-y: hidden;
  height: 30px;
  width: 100%;
  display: block;
}

.galaxy-star img {
  margin-left: -1%;
}

.tower-top-star-3 .galaxy-star img,
.tower-top-star-4 .galaxy-star img { 
  margin-left: -2%;
}  

@media screen and (max-width: 480px) {
  .tower-top-star-5 .galaxy-star,
  .tower-top-star-6 .galaxy-star,
  .tower-top-star-7 .galaxy-star,
  .tower-top-star-8 .galaxy-star,
  .tower-top-star-9 .galaxy-star {
    position: absolute;
    display: inline-block; 
    line-height: 10px;
    top: 80px; 
    left: -10px;
    width: 40px;
    height: auto;
    text-align: center;
    padding: 5px 2px;
  }

  .tower-top-star-5 .galaxy-star img,
  .tower-top-star-6 .galaxy-star img,
  .tower-top-star-7 .galaxy-star img,
  .tower-top-star-8 .galaxy-star img,
  .tower-top-star-9 .galaxy-star img { 
    display: block;
    margin: 0 auto;
    margin-top: -6%;
  }
}





.tower-shield {
  color: #ffffff; 
  font-weight: bolder;
}

.tower-action-2 .tower-shield {
  color: #3c67c1; 
}

.tower-top-2 .tower-shield { color: #ffffff; }

.tower-action {
  margin: 0 auto; 
  margin-top: -30px; 
  padding-top: 30px; 
  padding-bottom: 10px; 
  width: 70%; 
  max-width: 220px; 
  position: relative; 
  border-radius: 5px; 
  overflow: hidden;
}

.tower-action > div {
  position: relative;
}

.tower-action > .tower-bg-opacity {
  height: 100%; 
  width: 100%; 
  background-color: #ffffff; 
  opacity: 0.3;
  position: absolute;
  top: 0px; 
  left: 0px;
}


.tower-action div > a {
  margin: 10px;
}

.tower {
  box-sizing: border-box;
  position: relative;
}

.tower-row {
  position: relative;
  text-align: center;
  width: 95%; 
  max-width: 480px; 
  margin: 0 auto;
  display: table;
  min-height: 550px;  
  box-sizing: border-box;
}

.tower-row-item {
  display: table-cell; 
  vertical-align: top; 
  position: relative;
}

.tower-row-item-left {
  
}

.tower-row-item-right {
  width: 90px; 
  padding-top: 10px;
}

.tower-rating {
  height: auto;
  min-height: auto;
  text-align: left;
  margin: 0 auto;
  border-left: 1px solid #1d1821; 
  border-right: 1px solid #1d1821; 
  border-bottom: 1px solid #1d1821; 
  background-color: #29222f;
}

.tower-rating .tower-row-item:hover {
  background-color: #3f3346;
}
.tower-rating .tower-row-item a {
  display: block;
  color: #ddf489; 
  padding: 4px 4px 4px 4px;
}

.tower-rating .galaxy-star img {
  margin-left: 0;
}

.tower-rating .tower-row-item {
  height: auto;
}

.tower-rating-num {
  line-height: 60px; 
  font-size: 13px; 
  width: 40px;
  color: #ffffff; 
  text-align: center;
}

.tower-rating-avatar {
  width: 50px;
}

.tower-bg {
  background-color: #312837; 
}

a.tower-btn {
  display: block; 
  max-width: 90px;
  box-sizing: border-box;
  position: relative;
}

a.tower-btn:hover {
  opacity: 0.9;
}

a.tower-btn img {
  width: 100%; 
}

span.tower-btn-count {
  background-color: #eb4e52; 
  color: #ffffff;
  display: inline-block; 
  padding: 8px; 
  border-radius: 50%; 
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 2;
  font-weight: bolder;
  font-size: 10px;
  min-width: 30px; 
  min-height: 18px;
  
}

span.tower-btn-title {
  position: absolute;
  bottom: 0px;
  right: 0px;
  display: block;
  box-sizing: border-box;
  width: 93%; 
  text-align: center;
  padding: 0 0 15px 0;
  color: #ffffff; 
  font-weight: bolder;
  font-size: 12px;
}

span.tower-btn-title i {
  font-weight: lighter;
  font-style: normal;
  font-size: 11px; 
  color: #426238; 
  display: block;
}

a.tower-link,
.tower-link {
  display: block; 
  padding: 10px; 
  color: #ffffff; 
  margin: 10px auto;
  max-width: 240px;
  border-radius: 2px;
  background-color: #f8f8f8; 
  color: #7f7f7f; 
}

a.bg-white {
  background-color: #f5fcf3;
  color: green; 
}

a.bg-white:hover {
  background-color: #effbec;
}

a.bg-red {
  background-color: #f83f5f;
  color: #ffffff; 
}

a.bg-red:hover {
  background-color: #f8294e;
}

a.bg-green {
  background-color: #2db930;
  color: #ffffff; 
}

a.bg-green:hover {
  background-color: #269d29;
}

a.bg-gray,
.bg-gray {
  background-color: #7f7f7f;
  color: #ffffff; 
}

a.bg-gray:hover {
  background-color: #7f7f7f;
}