@font-face {
    font-family: 'Hakim';
    src: url('/data/fonts/hakim.ttf');
}

@font-face {
    font-family: 'CodenameCoderFree4F';
    src: url('/data/fonts/CodenameCoderFree4F-Bold.ttf');
}

.font_ccf {
    font-family: CCF;
}

span.stat_inv_rebalance {
    font-weight: bold;
}

span.stat_inv_rebalance.replus {
    color: #005b00;
}

span.stat_inv_rebalance.reminus {
    color: #cd0a0a;
}

#inv {
    display: flex;         /* Используем flexbox для расположения элементов */
    flex-wrap: wrap;      /* Переносим элементы на новую строку при необходимости */
}

.cell {
    cursor: pointer;
    width: 48px;
    height: 48px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    background: url(/data/design/inv/tile_0000.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin: 4px;
    position: relative;
}

.cell_counter {
    padding-top: 0px!important;
    position: absolute!important;
    background: #0000006b!important;
    bottom: 1px!important;
    width: 100%!important;
    color: #fff!important;
    text-align: center!important;
    font-size: smaller!important;
}

.cell_lock {
    background: url(/data/design/inv/tile_0001.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}


.cell_eq {
    background: url(/data/design/inv/tile_0007.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}



/* Вы можете добавить дополнительные стили для выделения отдельных ячеек*/
.cell.selected {
    background-color: #f0f0f0;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Убедитесь, что модальное окно сверху */
    justify-content: center;
    align-items: center;
}

.modal-content {
    padding: 14px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    max-height: 100%;
    overflow: auto;
    position: relative;
    color: #665e49;
    font-size: 8pt;
    text-decoration: none !important;
    margin: 2px;
    border: 2px solid #ffde93;
    border-radius: 4px;
    background: #fff;
    max-width: 480px;
}

.close-button {
    position: absolute;
    top: -4px;
    right: 2px;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.modal-overlay.show {
    display: flex;
}

.btn_modal {
    background: #ffffff;
    color: #b47b41;
    padding: 8px;
    margin: 4px;
    border: 2px solid #b47b41;
    text-decoration: none;
    align-content: center;
}

.btn_modal:hover {
    color: #a3703a;
    background: #fff1da;
}

.btns_modal {
    display: inline-flex;
    width: 100%;
    justify-content: center;
}

.mess_modal {
    margin: 8px 0;
}

#silver, #gold, #copper, #ether {
    transition: color 0.3s ease-in-out; /* Анимация цвета */
}

.green-change {
    color: green; /* Цвет во время изменения */
}

.red-change {
    color: red; /* Цвет во время изменения */
}


img.cell_ico {
    position: relative;
    width: 32px;
    height: 32px;
    justify-self: center;
}

span.cell_info {
    top: -2px;
    position: relative;
    font-size: xx-small;
    justify-self: center;
}


.cell_reward {
    background: url(/data/design/inv/tile_0026.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.w100 {
    width: 100%;
}

.w97 {
    width: 97%;
}


.pr {
    position: relative;
}

.blocks-l {
    display: table;
    text-align: left;
}

.blocks-l-t {
    display: table-cell;
    vertical-align: top;
    text-align: left;
}

.blocks-m-c {
    display: table-cell;
    text-align: center;
}

.w64 {
    width: 64px;
}

.hero-item {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 54px;
    border: 1px solid #5C5C22;
    border-radius: 10px;
    margin-top: 2px;
    opacity: .9;
}

.blocks-r-t {
    display: table-cell;
    vertical-align: top;
    text-align: right;
}

.long {
    background: #ffde93;
    color: #444;
    padding: 10px;
}

.long_desk {
    padding: 8px;
    text-align: left;
}

.resitem {
    margin: 2px 0px;
}

span.pay_sk {
    font-weight: bold;
    color: #008000;
}

span.pay_sk.pay_dsk {
    font-weight: unset;
    text-decoration: line-through;
    font-size: x-small;
}

tr.pve_menu {
    background: url(/data/bg/pve/default.png);
    background-position: top !important;
    background-size: cover !important;
    color: #fff;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 1);
    min-height: 90px;
}

tr.pve_disabled {
    filter: grayscale(1);
}

a.pve_menu {
    color: #fff;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 1);
}

canvas#gameCanvas {
    width: 100%;
}


.gs {
    filter: grayscale(1);
    cursor: no-drop;
}
.cs_loader {
    background: #fff;
    padding: 8px;
}

div#csl_text {
    color: #a1a1a1;
    font-size: xx-small;
}

div#dialog {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: block;
}

img#dialog_img {
    width: 94px;
    height: 94px;
    position: relative;
    top: 25px;
    z-index: 20;
}

div#dialog_name {
    font-size: large;
    z-index: 30;
    position: relative;
    padding-left: 16px;
    color: #fff;
    text-shadow: 2px 2px 2px #000000;
}

div#dialog_text {
    padding: 8px;
    background: rgb(0 0 0 / 50%);
    height: 48px;
    overflow-wrap: break-word;
    color: #fff;
    text-shadow: 2px 2px 2px #000000;
}
div#dialog_next {
    text-align: center;
    position: relative;
    top: 24px;
    font-size: smaller;
    color: #696969;
}

img.loader {
    animation: 1s linear 0s normal none infinite running rot;
    -webkit-animation: 1s linear 0s normal none infinite running rot;
    width: 24px;
  }
  @keyframes rot {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  @-webkit-keyframes rot {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }

  input.xywh {
    width: 20.6%;
    min-width: auto;
}

.cs_ed_data {
    display: inline-block;
    background: url(/data/design/ws/toplink.png) repeat-x #d98d0d;
    border-bottom: 1px solid #c07423;
    padding: 4px;
    text-decoration: none;
    color: #793300;
    text-shadow: #f6c50a 0px 1px 0px;
    margin: auto;
    font-size: x-small;
    border-radius: 4px;
    cursor: pointer;
}

.target_block {
    margin: 4px 0;
    cursor: pointer;
}

.target_title {
    background: #9f9f9f;
    color: #fff;
    padding: 2px;
}

.target_desk {
    border: 1px solid #DDD;
    padding: 2px;
}

.qblock {
    padding: 4px;
    margin: 4px;
    border: 1px solid #444444;
    cursor: pointer;
}

.qblock.qbsc {
    text-decoration: line-through;
    color: #9b9b9b;
}

.qbmg {
    margin-top: -5px;
    border: 1px dotted #444;
    cursor: auto;
}

.quote {
    border: 1px dotted #ddd;
    padding: 4px;
    margin: 4px 0px;
}

.bb_delete {
    color: #ddd;
    text-decoration: line-through;
}

.bb_url, .bb_user {
    text-decoration: none;
    color: #ed143d;
}

.body.centerfoot {
    background: #fff;
    padding: 4px;
    margin: 4px 0px;
    border-radius: 4px;
    border: 1px solid #ffde93;
}

a.nav_sel {
    text-decoration: none;
    color: #adadad;
    padding: 4px;
    border: 1px solid #fff;
    border-radius: 4px;
    display: inline-block;
}

a.nav_unsel {
    text-decoration: none;
    color: #ed143d;
    padding: 4px;
    border: 1px solid;
    border-radius: 4px;
    display: inline-block;
}

a.nav_unsel:hover, a.bb_btn:hover, .bb_sel {
    background: #ed143d !important;
    color: #fff !important;
    border: 1px solid #ed143d !important;
}

a.bb_btn {
    text-decoration: none;
    color: #ed143d;
    padding: 4px;
    border: 1px solid;
    border-radius: 4px;
    display: inline-block;
    margin: 2px;
    font-size: xx-small;
}

.bbcodes {
    margin: 2px;
}


img.bb_icon {
    height: 16px;
    vertical-align: middle;
}

.logger {
    font-family: CodenameCoderFree4F;
    font-size: 15px;
}

span.ifs_on {
    color: green;
}

span.ifs_off {
    color: #e14f4f;
}