:root{
    --display-description: none;
    --y-description: 15%;

    --new-recruit-width: 0%;
    --new-recruit-height: 10%;
    --new-recruit-top: 40%;

    --police-strength-width: 100%;
    --police-strength-height: 100%;
    --police-strength-top: 0%;

    --show-attack-menu: none;
    --soldier-tab-height: 80%;
    --attack-btn-color: darkslateblue;
    --attack-btn-hover: rgb(159, 144, 252);

    --show-ammo-multi: none;
    --show-attack-stats: none;

    --display-ammo-count: flex;

    --screen-dispaly: none;
    --display-game-screen: none;
}


html{
    background-color:rgb(170, 170, 170);
    user-select:none;
    overflow: hidden;
}

h1{
    font-weight: bolder;
    font-size: 300%;
    color: rgb(230, 230, 230);
}

.heading{
    position: absolute;
    top: 0;
    left: 0;
    height: 10%;
    width: 100%;
    background: fixed;
    background-color: rgb(24, 24, 24);
    text-align: center;
    vertical-align: middle;
    line-height: 100%;
}

.upgradeTab{
    position:absolute;
    top: 18%;
    left: 3%;
    width: 20%;
    height: 80%;
    background:grey;
    border: 2px solid black ;
    border-radius: 4px;
    justify-content: center;
    overflow: auto;
    direction: rtl;
}

.upgrade{
    width: 100%;
    height: 60px;
    margin: 8px;
    display: flex;
    background-color: rgb(151, 177, 180);
    border: 2px solid black;
    border-radius: 18px;
    direction: ltr;
    padding: 1px;
}

.upgrade:hover {background-color: rgb(82, 172, 182);}
.upgrade:active {background-color: rgb(231, 253, 255);}

.upgradeDescription {
    display: var(--display-description);
    position: absolute;
    top: var(--y-description);
    left: 22%;
    width: 22%;
    height: 15%;
    background-color: rgb(73, 73, 73);
    border: 2px solid black;
    border-radius: 16px;
    opacity: .8;
    z-index: +10;
}

.upgradeDescriptionText{
    color: white;
    padding: 8px;
    clear: right;
}

.upgradeDescriptionEffect{
    color: rgb(47, 185, 47);
}

::-webkit-scrollbar {
    width: 12px;              
}
  
::-webkit-scrollbar-track {
    background: rgb(68, 68, 68);       
}
  
::-webkit-scrollbar-thumb {
    background-color: rgb(190, 190, 190);   
    border-radius: 20px;    
    border: 3px solid rgb(68, 68, 68); 
}

table{
    position: relative;
    left:1%;
    justify-content: left;
    width: 95%;
}

.upgradeTitle{
    font-weight: bolder;
    font-size: large;
    position: relative;
    left: -7%;
    font-size: 24px;
}

.displayBand{
    position: absolute;
    top: 10%;
    left:0%;
    height:6%;
    width: 100%;
    background-color: rgb(95, 95, 95);
    z-index: -1;
}

.recruitCounter{
    display: inline-block;
    position: absolute;
    top: 12%;
    left: 83%;
    width: 12%;
    height: 70%;
    background-color: none;
    border: 2px solid black;
    border-radius: 18px;
    text-align: center;
    vertical-align: middle;
    line-height: 200%;
}

.recruitCounterComplete{
    width: var(--new-recruit-width);
    height: var(--new-recruit-height);
    background-color: rgb(118, 177, 116);
    border-radius: 18px;
    opacity: .6;
    z-index: -2;
    position: inherit;  
    top: var(--new-recruit-top);
}

.upgrade-bought {
    align-self: center;
    font-size: 24px;
    position: absolute;
    right: 15%;  
}
  
.upgrade-text {
    flex-grow: 1;
    margin: 0 10px;
}
  
.upgrade-title {
    display: flex;
    margin-bottom: 5px;
}
  
.upgrade-title-text {
    font-weight: bold;
    position: relative;
    left: 5%
}

.upgrade-cost {
    position: relative;
    top: 20%;
}
  
.cashOut{
    position: absolute;
    top: 25%;
    left: 5%;
    background-color: none;
    font-size: 22px;
    font-style: italic ;
    font-weight: bolder
}

.followersOut{
    position: absolute;
    top: 25%;
    left: 25%;
    background-color: none;
    font-size: 22px;
    font-style: italic ;
    font-weight: bolder
}

.populationOut{
    position: absolute;
    top: 25%;
    left: 45%;
    background-color: none;
    font-size: 22px;
    font-style: italic ;
    font-weight: bolder
}

.housingOut{
    position: absolute;
    top: 25%;
    left: 65%;
    background-color: none;
    font-size: 22px;
    font-style: italic ;
    font-weight: bolder
}

.policeStrengthBar{
    position: absolute;
    top: 20%;
    left: 37.5%;
    width: 25%; 
    height: 5%;
    background-color: none;
    border: 2px solid black;
    border-radius: 18px;
    text-align: center;
    vertical-align: middle;
    line-height: 240%;
    font-weight: bolder;
}

.policeStrength{
    width: var(--police-strength-width);
    height: var(--police-strength-height);
    background-color: rgb(24, 148, 185);
    border-radius: 16px;
    opacity: .6;
    z-index: -2;
    position: inherit;  
    top: var(--police-strength-top);
}

.switchUpBtn{
    position: absolute;
    left: 20%;
    top: 20%;
    background: none;
    z-index: +5;

    border: solid black;
    border-width: 0 4px 4px 0;
    padding: 4px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.switchUpBtn:hover {
    border: solid rgb(112, 112, 112);
    border-width: 0 4px 4px 0;
    padding: 4px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.switchUpBtn:active {
    border: solid rgb(219, 219, 219);
    border-width: 0 4px 4px 0;
    padding: 4px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.militaryTab{
    position: absolute;
    top: 73%;
    left: 25%;
    border: 1px solid black;
    border-radius: 16px;
    width: 50%;
    height: 24%;
    justify-content: space-between;
    
}

.militaryTitle{
    display: flex;
    padding: 8px;
    font-size: 16px;
    font-weight: bolder;
}

.military{
    margin: 2%;
    display: inline;
}

.soldierTab {
    position:absolute;
    top: 18%;
    left: 77%;
    width: 20%;
    height: 80%;
    background:grey;
    border: 2px solid black ;
    border-radius: 4px;
    justify-content: center;
}

.soldierPurchase {
    position: relative;
    top: 2%;
    left: 4.2%;
    width: 90%;
    height: var(--soldier-tab-height);
    background:grey;
    border: 2px solid black ;
    border-radius: 4px;
    justify-content: center;
    overflow: auto;
    direction: rtl;
}

.soldier{
    width: 100%;
    height: 60px;
    margin: 8px;
    display: flex;
    background-color: rgb(173, 103, 103);
    border: 2px solid black;
    direction: ltr;
    padding: 1px;
}

.soldier:hover {background-color: rgb(156, 39, 39);}
.soldier:active {background-color: rgb(255, 231, 231);}

.soldierTitle{
    font-weight: bolder;
    font-size: large;
    position: relative;
    top: 1%;
    left: 30%;
    font-size: 24px;
}

.attackBtn{
    position: relative;
    left: 15%;
    top: 4%;
    background-color: var(--attack-btn-color);
    color:floralwhite;
    width: 70%;
    height: 6%;
    border: 2px solid black;
    border-radius: 8px;
    z-index: +3;
}

.attackBtn:hover {background-color: var(--attack-btn-hover);}
.attackBtn:active {background-color: rgb(155, 155, 155);}

.attackMenu{
    display: var(--show-attack-menu);
    height: 60%;
    width: 96%;
    position: relative;
    left: 1.5%;
    background-color: rgb(141, 141, 141);
    border: 2px solid black;
    border-radius: 4px;
    overflow: auto;
}

.soldierInput {
    display: inline-block;
    z-index: +1;
    background: #ff8c8c;
    border: 2px solid black;
    border-radius: 4px;
    color: black;
    font-size: 15px;
    height: 4%;
    width: 25%;

    position: relative;
    top: 10%;
    margin: 3%;
    opacity: .8;
}

.soldierInputText {
    position: relative; 
    top: 10%;
    margin: 3%;
}

.closeAttack {
    font-size: 30px;
    font-weight:900;
    color: rgb(173, 0, 0);
    position: absolute;
    top: -2%;
    height: 2%;
    width: 5%;
}

.closeAttack:hover {color: rgb(238, 132, 132);}
.closeAttack:active {color: rgb(255, 224, 224);}

.bulk-buy-soldier {
    font-size: 18px;
    font-weight:600;
    color: black;
    position: relative;
    top: 2%;
    left: 42%;
    height: 2%;
    width: 5%;
}

.bulk-buy-soldier:hover {color: rgb(88, 88, 88);}
.bulk-buy-soldier:active {color: black;}

.bulk-buy-ammo {
    display: var(--show-ammo-multi);
    font-size: 18px;
    font-weight:600;
    color: black;
    position: absolute;
    top: 4%;
    left: 14%;
    height: 2%;
    width: 5%;
    z-index: +5;
}

.bulk-buy-ammo:hover {color: rgb(88, 88, 88);}
.bulk-buy-ammo:active {color: black;}
  

.attack-stats {
    display: var(--show-attack-stats);
    position: absolute;
    left:25%;
    top: 25%;
    width: 50%;
    height: 60%;
    background-color: grey;
    border: 6px solid black;
    border-radius: 16px;
    justify-content: center;
    z-index: +5;
}

.attack-stats-title {
    position: absolute;
    margin: 3%;
    text-decoration: underline;
}

.attack-confirm {
    position: absolute;
    top: 108%;
    left: 34%;
    width: 22%;
    height: 5%;
    background: rgb(94, 0, 0);
    border: 2px solid black;
    color: rgb(206, 206, 206);
    margin: 6px;  
}

.attack-confirm:hover {background: rgb(161, 52, 52);}
.attack-confirm:active {background:rgb(223, 143, 143);}

.attack-stats-out {
    position: relative;
    left: -30%;
    top: 15%;
}

.soldierRequire {
    margin-left: 15%;
    white-space: nowrap;
}

.closeAttackStats {
    font-size: 40px;
    font-weight:900;
    color: rgb(173, 0, 0);
    position: absolute;
    top: 0%;
    left: 95%;
    height: 2%;
    width: 5%;
}

.closeAttackStats:hover {color: rgb(238, 132, 132);}
.closeAttackStats:active {color: rgb(255, 224, 224);}

.attack-stats-btn {
    position: absolute;
    top: 75%;
    left: 150%;
    width: 40%;
    height: 5%;
    background: rgb(16, 56, 0);
    border: 2px solid black;
    border-radius: 8px;
    color: rgb(206, 206, 206);
    margin: 6px;  
    text-align: center;
    line-height: 150%;
}

.attack-stats-btn:hover {background: rgb(110, 172, 85); }
.attack-stats-btn:active {background: rgb(221, 235, 216); }

.ammoCount {
    font-size: 22px;
    display: var(--display-ammo-count);
    position: absolute;
    left: 68%;
    top: 31%;
    color: yellow; 
    z-index: +1;
}

.playerHealth {
    font-size: 22px;
    display: flex;
    position: absolute;
    left: 32%;
    top: 31%;
    color: rgb(255, 0, 0); 
    z-index: +1;
}

.screen {
    display: var(--screen-dispaly);
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
    background-color: rgb(105, 99, 99); 
    z-index: +10;
}

.gameScreen{
    display: var(--display-game-screen);
    position: absolute;
    top: 1.5%;
    left: 1%;
    border: 3px solid black;
    border-radius: 16px;
    overflow: hidden;
    z-index: +15;
}