
*, *:before, *:after {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}
/*
@import url('https://fonts.googleapis.com/css2?family=Teko:wght@300;400;700&display=swap');
*/
body{
    min-height: 100vh;
    background: #7F7D7C;
    
    /*font: 12px/18px "Lato", Arial, sans-serif;
    font-family: Open Sans;*/
    font-family: 'Aldrich';
    font-weight: 300;
    /*
    background-image: url('img/blurbg.jpg');
    background-size: cover;
    background-repeat: repeat;
    */
    
	  background: -webkit-linear-gradient(to top, #28232B, #818F97);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to top, #28232B, #818F97); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    
      -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

a{
    text-decoration: none;
}

img{
    pointer-events: none;
}

label{
    font-weight: 300;
    font-size: 16px;
}

input{
    
    display: inline-block;
    margin: 0 auto;
    padding:  5px;
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 10px;
    border-radius: 3px;
    border: 1px solid black;
    box-shadow: inset 0px 4px 30px -12px black;
    /*text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;*/
}


.error {
  width: 100%;
  max-width: 500px;
  margin: 0px auto; 
  padding: 3px; 
  border: 1px solid #474747; 
  color: #363636; 
  background: #E8175D; 
  /*border-radius: 5px;*/ 
  text-align: left;
  font-size: 12px;
  font-weight: 600;
}
.success {
  color: #FED201; 
  background: #ffce0c; 
  border: none;
  border-top: 2px solid rgb(250,185,0);
  border-bottom: 4px solid rgb(250,185,0);
  margin-bottom: 20px;
  /*border-radius: 0px 0px 5px 5px;*/
  color: black;
}
.success a{
    display: inline-block;
    padding: 3px 4px 3px 4px;
    background: white;
    color: black;
    border: 1px solid black;
}
.waitevent {
    color: #14213D; 
    background: #4B8FB7; 
    border: 1px solid #437DAC;
    margin-bottom: 20px;
    border-radius: 0px 0px 5px 5px;
}




.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}




/* PAGINATION */
.disabled {
    display: none;
}
/* PAGINATION */

.bg_combat {
    background: -webkit-linear-gradient(to top, #28232B, #80807D);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to top, #28232B, #80807D); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.contw {
    
    width: 100%;
    max-width: 500px;
    min-height: 100vh;
	  margin: 0 auto;
	  border-radius: 5px;
	  box-shadow: 0px 4px 30px -12px black;
	  display: box;
	  color: white;
	  
   /* background: #31312c;*/
    
    padding-top: 20px; /* because top menu */
}
.text_n {
    color: white;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    font-size: 0.8em;
    display: inline-block;
    max-width: 96%;
    margin: 0 auto;
    background: rgba(0,0,0,0.2);
    padding: 5px;
    
}



.gametip{
    display: block;
    width: 96%;
    margin: 0 auto;
    text-align: justify;
    padding: 3px;
    font-size: 0.8em;
    /*border-radius: 5px;
    /*border: 1px solid rgba(114,245,232,0.779);*/
    border-left: 5px solid black;
    
    color: black;
    background: rgba(255,255,255,1);
    
}
.gameinfo {
    display: block;
    max-width: 96%;
    margin: 0 auto;
    text-align: center;
    padding: 3px;
    font-size: 0.8em;
    /*border-radius: 5px;
    /*border: 1px solid rgba(114,245,232,0.779);*/
    
    color: white;
    background: rgba(134,116,96,0.5);
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}
.credit{color: gold;font-weight:400;}


.clearboth{
    clear: both;
}



/* NAVIGATION TOP */
.navbg {
    display: block;
    position: fixed;
    top: 0px;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    height: 20px;
    z-index: 10;
    
    background: black;
    
}
.navname {
    position: absolute;
    top: 0px;
    left: 10px;
    color: white;
}
.navlogout {
    position: absolute;
    top: 5px;
    right: 10px;
    
    background: #F03C2D;
    font-size: 0.9em;
    line-height: 0.9em;
    color: white;
    text-align: center;
    vertical-align: middle;
    padding: 5px 15px 5px 15px;
    border: 1px solid #BA0513;
    border-bottom: 3px solid #BA0513;
    border-radius: 2px;
    box-shadow: 0px 4px 30px -12px black;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}
/* NAVIGATION TOP */








/* STAT */
.stat {
    display: block;
    
    margin: 0 auto;
    text-align: center;
    
}
.stat span {
    font-size: 10px;
}
.stat_rank {
    font-size: 48px;
    font-weight: 600;
    color: white;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    margin-bottom: -10px;
}
/* STAT */
















/* BUTTONS */
.btn_n {
    font-size: 0.9em;
    color: white;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    text-align: center;
    vertical-align: middle;
    box-shadow: 0px 4px 30px -12px black;
    padding: 5px 15px 5px 15px;
    border-radius: 2px;
    background: #639264;
    border: 1px solid #49684A;
    border-bottom: 3px solid #49684A;
}
.btn_txt {
    padding: 3px;
    color: white;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    box-shadow: 0px 4px 30px -12px black;
    border-radius: 2px;
    
    background: #639264;
    border: 1px solid #49684A;
    border-bottom: 3px solid #49684A;
}
.btn_b {
    font-size: 1.1em;
    font-weight: 600;
    color: white;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    text-align: center;
    vertical-align: middle;
    box-shadow: 0px 4px 30px -12px black;
    padding: 5px 15px 5px 15px;
    border-radius: 2px;
    background: #639264;
    border: 1px solid #49684A;
    border-bottom: 3px solid #49684A;
}
.btn_b:disabled{
    background: #D3D7DA;
    border: 1px solid #A0A2B2;
    border-bottom: 3px solid #A0A2B2;
}
.btn_findmatch {
    display: block;
    width: 300px;
    height: 70px;
    margin: 0 auto;
    background: #2CD9F5;
    font-size: 1.9em;
    line-height: 70px;
    color: white;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #1570BC;
    border-bottom: 3px solid #1570BC;
    box-shadow: 0px 4px 30px -12px black;
    padding: 3px;
    padding: 0px 2px 0px 2px;
    border-radius: 2px;
}
.filterbuttons {
    display: block;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}
.btn_filter {
    display: inline-block;
    font-size: 14px;
    color: white;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    text-align: center;
    vertical-align: middle;
    box-shadow: 0px 4px 30px -12px black;
    padding: 10px 15px 10px 15px;
    border-radius: 2px;
    background: #6A5641;
    border: 1px solid #564735;
    border-bottom: 3px solid #564735;
}
.btn_menu {
    display: block;
    width: 200px;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 8px 15px 8px 15px;
    font-size: 18px;
    color: white;
    text-align: center;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    box-shadow: 0px 4px 30px -12px black;
    border-radius: 2px;
    
    background: #639264;
    border: 1px solid #49684A;
    border-bottom: 3px solid #49684A;
}
.btn_back {
    display: block;
    width: 60px;
    background: #639264;
    border: 1px solid #49684A;
    border-bottom: 3px solid #49684A;
    color: white;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    vertical-align: middle;
    box-shadow: 0px 4px 30px -12px black;
    padding: 5px;
    border-radius: 2px;
    text-align: right;
    
    animation: btn_back 2s ease forwards;
    animation-delay: 1s;
}
@keyframes btn_back {
    0% { width: 60px; }
    100% { width: 45px; }
}
/* BUTTONS */









/* UNIT TABLE */
.unittable{
    width: 96%;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid black;
}
.unittable th{
    background: black;
    color: white;
}
.unittable tr:nth-child(even) {background: rgb(255,255,255,0.1);box-shadow: 0px 4px 20px -12px black inset;}
.unittable tr:nth-child(odd) {background: rgb(56,72,78,0.2);box-shadow: 0px 4px 20px -12px black inset;}
.unittable tr td:nth-child(1){}
.unittablebtn {
    display: block;
    width: 100px;
    margin: 0 auto;
    background: #2CD9F5;
    font-size: 0.9em;
    color: white;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #1570BC;
    border-bottom: 3px solid #1570BC;
    box-shadow: 0px 4px 30px -12px black;
    padding: 3px;
    padding: 0px 2px 0px 2px;
    border-radius: 2px;
}
.unittablebtni{
    background: #717171;
    border-color: #46494E;
}
/* UNIT TABLE */











/* UNIT LIST INFO */
.unitsingame {
    width: 96%;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid black;       
}
.unitsingame th {
    background: black;
    color: white;
}
.unitsingame tr:nth-child(even) {background: rgb(255,255,255,0.1);box-shadow: 0px 4px 20px -12px black inset;}
.unitsingame tr:nth-child(odd) {background: rgb(56,72,78,0.2);box-shadow: 0px 4px 20px -12px black inset;}
.unitsingame tr td:nth-child(1) div{
    display: inline-block;
    width: 100px;
    height: 100px;
    background-size: cover;
    padding: 3px;
}
.unitsdivider {
    display: inline-block;
    height: 100%;
    width: 5px;
    background: black;
}
/* UNIT LIST INFO */








/* DIALOG BTN */
#dialogbtn {
    display: none;
}
#dialogbtn:checked + label {
    display: none;
}
#dialogbox {
    display: block;
    position: fixed;
    bottom: -150px;
    left: 0px;
    width: 100%;
    height: 150px;
    
    background: rgba(0,0,0,0.5);
    opacity: 0;
    
    padding-left: 100px;
    padding-top:30px;
    
    animation: dialogbox 7s ease forwards;
    animation-delay: 3s;
}
@keyframes dialogbox {
    0% { opacity:0; }
    3% { bottom: 0px; }
    5% { opacity:1; bottom: -10px;}
    90% { opacity: 1; bottom: -10px;}
    97% { opacity: 1; bottom: 0px;}
    99% { opacity: 0; bottom: -150px; }
    100% { display: none; }
}
.dialogclosebtn {
    display: block;
    position: absolute;
    top: -20px;
    left: 50%;
    width: 80px;
    height: 40px;
    margin-left: -40px;
    
    background: #F03C2D;
    font-size: 0.9em;
    line-height: 0.9em;
    color: white;
    text-align: center;
    vertical-align: middle;
    padding: 5px 15px 5px 15px;
    border: 1px solid #BA0513;
    border-bottom: 3px solid #BA0513;
    border-radius: 2px;
    box-shadow: 0px 4px 30px -12px black;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}   
/* DIALOG BTN */





/* ZOOM CLASS FOR SMALLER UNIT ICONS */
.zoom {
  transition: transform .2s; /* Animation */
}
.zoom:hover {
  transform: scale(1.9); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}
/* ZOOM CLASS FOR SMALLER UNIT ICONS */












.infobox{
    width: 96%;
    margin: 0 auto;
    text-align: justify;
    text-decoration: italic;
}















.loginbox{
    background: #EEEDED;
    box-shadow: inset 0px 4px 30px -12px #756359;
    color: black;
    border: 2px solid white;
    width: 70%;
}
.loginbox:focus {
    outline: none;
    border: 2px solid #FDD565;
}
.loginbutton{
    display: inline-block;
    background: #F03C2D;
    font-size: 0.9em;
    line-height: 0.9em;
    color: white;
    text-align: center;
    vertical-align: middle;
    padding: 5px 15px 5px 15px;
    border: 1px solid #BA0513;
    border-bottom: 3px solid #BA0513;
    border-radius: 2px;
    box-shadow: 0px 4px 30px -12px black;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    
}








/* PLAYER LIST */
.rowcolors {
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}
.rowcolors tr:nth-child(even) {background: rgb(255,255,255,0.1);}
.rowcolors tr:nth-child(odd) {background: rgb(56,72,78,0.2);}
.rowcolors tr td:nth-child(1){color: #ffb700;font-size:16px;font-weight:600;text-align:right;}

/* PLAYER LIST */






/* WAREHOUSE */
.warehouse_soldier {
    display: block;
    width: 96%;
    height: 150px;
    margin: 0 auto;
    background-image: url('img/soldierroom.png');
    background-position: top center;
    position: relative;
    
    border: 1px solid black;
    box-shadow: 0px 4px 20px -10px black;
}
.soldier {
    position: absolute;
    width: 100px;
    top: 0px;
}
.soldier_text {
    position: absolute;
    top: 110px;
    left: 10px;
    font-size: 18px;
}
.soldier_btn {
    position: absolute;
    top: 110px;
    right: 10px;
}
.warehouse_fuel {
    display: block;
    width: 96%;
    height: 150px;
    margin: 0 auto;
    background-image: url('img/soldierroom.png');
    background-position: top center;
    position: relative;
    
    border: 1px solid black;
    box-shadow: 0px 4px 20px -10px black;
    margin-top: 20px;
}
.fuelstock {
    margin-top: 50px;
}
/* WAREHOUSE */









/* GAME COMMANDER */
.alert_missing {
    display: block;
    width: 96%;
    margin: 0 auto;
    text-align: justify;
    padding: 3px;
  font-size: 12px;
  font-weight: 600;
    color: #FED201; 
  background: #ffce0c; 
  border: none;
  border-top: 2px solid rgb(250,185,0);
  border-bottom: 4px solid rgb(250,185,0);
  margin-bottom: 10px;
  /*border-radius: 0px 0px 5px 5px;*/
  color: black;
  display: none;
}

.nextenemy {
    display: block;
    width: 100%;
    height: 85px;
    position: relative;
    text-align: center;
    overflow: hidden;
    margin-bottom: 10px;
    border-bottom: 2px solid #C8C8C6;
    
}
.enemycard {
    display: inline-block;
    width:26%;
    height: 90px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 120% auto;
    font-size: 9px;
    position: absolute;
    top: 0px;
    right: 5px;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}
.nextimg {
    display: block;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    /*background-size: 110% auto;*/
    background-size: contain;
    
}
.enemycard span {
    display: block;
    width: 100%;
    position: absolute;
    bottom: 10px;
    background: #F03C2D;
}
.enemybuttons {
    display: inline-block;
    width: 70%;
    height: 100px;
    position: absolute;
    top: 0px;
    left: 5px;
    text-align: left;
}
.unitdeck {
    display: block;
    width: 100%;
    text-align: center;
    
}
.unitcard {
    display: inline-block;
    width: 18%;
    height: 86px;
    overflow: hidden;
    background-color: grey;
    background-repeat: no-repeat;
    background-position: center center;
    /*background-size: 120% auto;*/
    background-size: contain;
    font-size: 9px;
    font-weight: 400;
    color: white;
    position: relative;
    
    box-shadow: inset 0px 4px 30px -12px #564735;
    border-top: 1px solid #C8C8C6;
    border-left: 1px solid #939492;
    border-right: 1px solid #939492;
    border-bottom: 1px solid #555452;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}
.unitcard:disabled {
    border: 1px solid red;
    filter: grayscale(1);
    box-shadow: inset 0px 4px 30px -12px black;
}
.unitcard span{
    display: block;
    width: 100%;
    position: absolute;
    bottom: 0px;
    background: #6A5641;
    border: 1px solid #564735;
    border-bottom: 3px solid #564735;
    
}
.udp {
    position: absolute;
    bottom: 20px;
    left: 10px;
    font-size: 12px;
    color: #ffce0c;
}
.uap {
    position: absolute;
    bottom: 20px;
    right: 10px;
    font-size: 12px;
}
.cantaim {
    color: red;
    content: "cant aim";
}
.u_category {
    display: block;
    text-align: center;
    background: grey;
    color: #4D4B4E;
    /*text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;*/
}
/* GAME COMMANDER */










/* VIEW UNIT */
.view_bg {
    display: block;
    width: 100%;
    height: 140px;
    position: relative;
    overflow: hidden;
    background-position: top center;
    
    border: 1px solid black;
    background: grey;
}
.view_unit {
    display: block;
    width: 140px;
    height: 140px;
    position: absolute;
    top:30px;
    left: 0%;
    margin-left: -140px;
    background-size: cover;
    
    animation: view_unit 1s ease forwards;
    animation-delay: 0.5s;
}
@keyframes view_unit {
    0% { left:0%;}
    100% { left:50%;}
}
.view_info {
    display: block;
    width: 50%;
    position: absolute;
    top: 10px;
    right: 10px;
    text-align: right;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
    
}
.view_info span {
    color: #2CD9F5;
    font-style: bold;
}
/* VIEW UNIT */









/* ANIMATIONS */
.anim_blink{
    animation: blink 1s infinite;
}
@keyframes blink {
    from {
        opacity: 1;
    }
    
    to {
        opacity: 0;
    }
}




.indexA0{
    display: block;
    position: absolute;
    width: 700px;
    height: 700px;
    top: -70px;
    left: -150px;
    z-index: -5;
    background-image: url('img/combatbg_2.png');
    background-size: cover;
    filter: blur(2px);
    opacity: 0.5;
    transform: rotate(-25deg);
}
.indexA1{
    display: block;
    position: absolute;
    width: 250px;
    height: 250px;
    top: 300px;
    left: -250px;
    z-index: -4;
    background-image: url('units/31.png');
    background-size: contain;
    filter: blur(3px);
    
    transform: rotate(-25deg);
    animation: indexA1 4s ease forwards;
}
@keyframes indexA1 {
    0% {top:300px;left:-250px;}
    100% {top:50px;left:300px;}
}

.indexA2{
    display: block;
    position: absolute;
    width: 300px;
    height: 300px;
    top: 300px;
    left: -300px;
    z-index: -3;
    background-image: url('units/31.png');
    background-size: contain;
    filter: blur(2px);
    
    transform: rotate(-25deg);
    animation: indexA2 3s ease forwards;
}
@keyframes indexA2 {
    0% {top:300px;left:-300px;}
    100% {top:130px;left:100px;}
}
.indexA3{
    display: block;
    position: absolute;
    width: 500px;
    height: 500px;
    top: 400px;
    left: -500px;
    z-index: -2;
    background-image: url('units/32.png');
    background-size: contain;
    filter: blur(1px);
    
    transform: rotate(-25deg);
    animation: indexA3 6s ease forwards;
    animation-delay: 1s;
}
@keyframes indexA3 {
    0% {top:400px;left:-500px;}
    100% {top:150px;left:-50px;}
}
.indexbtn1{
    display: block;
    position: relative;
    width: 200px;
    
    z-index: 0;
    opacity: 0;
    filter: blur(4px);
    
    transform: rotate(-25deg);
    
    animation: indexbtn1 2s ease forwards;
}
@keyframes indexbtn1 {
    0% {top:150px;left:-250px;opacity:0;}
    90% {top:0px;left: 0px;filter: blur(0px);opacity:1;}
    95% {top:0px;left: 0px;filter: blur(0px);opacity:1;width:220px;}
    100% {filter: blur(0px);transform: rotate(0deg);opacity:1;}
}
.indexbtn2{
    display: block;
    position: relative;
    width: 200px;
    
    z-index: 0;
    opacity: 0;
    filter: blur(4px);
    
    transform: rotate(-25deg);
    
    animation: indexbtn2 1s ease forwards;
}
@keyframes indexbtn2 {
    0% {top:150px;left:-250px;opacity:0;}
    90% {top:0px;left: 0px;filter: blur(0px);opacity:1;}
    100% {filter: blur(0px);transform: rotate(0deg);opacity:1;}
}







/* SHINE BUTTON */
.shine {
  position: absolute;
  top: 0;
  left: -70px;
  height: 98px;
  width: 50px;
  background: rgba(255, 255, 255, 0.2);
  transition: all .4s linear;
  transform: skewX(20deg) translateX(0);
  
  animation: shine 2s ease forwards;
    animation-delay: 1s;
    animation-iteration-count: infinite;
    
}
@keyframes shine {
    0% {transform: skewX(20deg) translateX(0px);}
    20% {transform: skewX(20deg) translateX(360px);}
    100% {transform: skewX(20deg) translateX(360px);}
  
}
/* SHINE BUTTON */

.hidden {
    display: none;
}