.dflex.all-center {
    align-items: center;
    justify-content: center;
}
.g_title {
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #1e73c7;
    color: #fff;
    border-radius: 5px 5px 0 0;
    position: relative;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Chevin Pro', sans-serif;
    font-size: 14px;
}
.ta_c {
    text-align: center;
}
.g_table td {
    line-height: 20px;
    padding: 2px 5px;
    border-top: 1px solid #deb887;
}
td {
    border-top: 0;
}
.borderr {
    border-right: 1px solid #deb887;
}

.dflex {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.pl20 {
    padding-left: 20px;
}
tr.pt20 td{padding-top:20px;}

.w50p {
    width: 50%;
}
.mb10 {
    margin-bottom: 10px;
}
.
.player_avatar.my {
    left: -2px;
}

.player_avatar.enemy {
    right: -45px;
}

.player_avatar {
    position: absolute;
    top: -2px;
    transform: scale(0.7);
    transform-origin: 0 0;
}
.player_avatar {
    width: 140px;
    height: 140px;
/*
    position: relative;
*/
}
.player_avatar_wrap {
    margin: 0 auto;
    top: 20px;
    width: 100px;
    height: 100px;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
}
.player_avatar:after {
    content: '';
    width: 140px;
    height: 140px;
    position: absolute;
    background: url(https://eldorado.botva.ru/static/images/interface/img_menu03.png?v=12) no-repeat center;
    left: 0;
    top: 0;
}

.player_avatar img {
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    object-fit:cover;
}
#hero_avatar{
	cursor:pointer;
}

.g_body {
    padding: 10px;
    background-color: #f5e2bc;
    line-height: 140%;
    color: #7d604c;
    border-radius: 5px;
    position: relative;
    border: 2px solid #deb887;
}

.red_color {
    color: #c50000;
}

.green_color {
    color: green;
}

input[type="number"]{
    width:100px;
    text-align:center;
}



.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-image: url(https://eldorado.botva.ru/static/images/ico_20.png?v=12);
    background-repeat: no-repeat;
    vertical-align: middle;
    background-color: transparent;
}

.icon_unit1 {
    background-position: -60px -120px;
}

.icon_unit2 {
    background-position: -40px -120px;
}

.icon_unit3 {
    background-position: -20px -120px;
}

.icon_unit4 {
    background-position: 0 -140px;
}

.icon_unit5 {
    background-position: -100px -120px;
}

.icon_unit6 {
    background-position: -80px -120px;
}

.icon_unit7 {
    background-position: -120px -120px;
}

.icon_unit8 {
    background-position: -140px -120px;
}
.icon_money4 {
    background-position: -40px -40px;
}
.icon_exp {
    background-position: -60px -40px;
}


#main{
    display:flex;
}
#oponent{
    flex-shrink: 0;
}
#oponent div{
    background-color:#eee;
    padding:5px;
    border:1px solid silver;
    border-radius:5px;
    cursor:pointer;
    margin:5px;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 10000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}
#selectHero .content{
	display:flex;
	flex-wrap:wrap;
}
#selectHero .content>div{
	padding:10px;
	cursor:pointer;
}
#selectHero .content>div>img{
	border-radius:100%;
}
#footer{
	position:absolute;
	bottom:0;
	z-index:-100;
	color:rgba(0,0,0,0.5)
}
