.containerItemGrid {
    display: flex;
    flex-wrap: wrap;
    padding-top: 15px;
    width: calc(100% - 30px); /* Учитываем отступы справа и слева */
    height: calc(100% - 30px); /* Учитываем отступы сверху и снизу */
    margin: 0 15px; /* Внешние отступы слева и справа */
    gap: 15px; /* Отступ между блоками */
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.blockItem {
    background-color: #232324;
    border-radius: 1px;
    text-align: center;
    border: 2px solid #313131;
}

.block-1 {
    flex: 1 1 calc(80% - 15px); /* Базовая ширина 70%, учитывая отступ */
    margin-bottom: 25px;
    padding-bottom: 25px;
}

.block-2 {
    flex: 1 1 calc(20% - 15px); /* Базовая ширина 30%, учитывая отступ */
    margin-bottom: 25px;
    padding-bottom: 25px;
}

.blockHeaderItemData {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    text-align: center;
    line-height: 150px; /* Вертикальное выравнивание текста */
    padding-bottom: 15px;
    background-color: #31373d;
    border-radius: 1px;
}


.textNameItem{
    text-align: center;
    font-size: 1.5rem;
    line-height: normal;
}

.textClassItem{
    text-align: center;
    font-size: 1.25rem;
    line-height: normal;
    color: rgb(192, 192, 192);
}

.descriptionItem{
    display: grid;
}

.cardInfoBox{
    position: relative;
    height: auto;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 5px;
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 5px;
}

.cardInfoBox .cardInfo{
    position: relative;
    background: #33393f;
    width: auto;
    padding: 10px;
    border-radius: 1px;
    display: grid;
    align-content: center;
    justify-content: center;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
}

.cardInfoBox .cardInfo .numbers{
    width: auto;
    display: grid;
    color: white;
    position: relative;
    font-weight: 24px;
    font-size: 1rem;
    text-align: center;
}

.cardInfoBox .cardInfo .cardName{
    color: white;
    font-size: 1rem;
    margin-top: 5px;
    text-align: center;
}

.cardInfoBox .cardInfo .iconBox{
    font-size: 1.5rem;
    text-align: center;
    color: white;
}

.cardInfoBox .cardInfo:hover{
    background: #31363b;
}

.horizontal-blocks {
    display: flex;
    width: calc(100% - 40px);
    gap: 15px; /* Отступ между горизонтальными блоками */
    margin: 0 20px;
}
.containerButtons{
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    margin-bottom: 20px;
}

.buttonSelectTypeAuction{
    width: 100%;
    display: grid;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 1px;
    border: 3px solid #2b2b2c;
    background-color: #212529;
    cursor: pointer;
    transition: 0.1f ease-in-out;
    height: 40px;
}

.buttonSelectTypeAuction:hover{
    border: 3px solid #676768;
}
.buttonSelectTypeAuction.selected{
    border: 2px solid #078803;
}

.buttonSelectTypeAuction.selected:hover{
    border: 2px solid #08f700;
}

.texHeadBoxButton{
    text-align: left;
    font-size: 1rem;
    line-height: normal;
    width: 100%;
    display: inline-block;
    margin-left: 10px;
    margin-right: 10px;
    color: white;
}

.texHeadBoxContent{
    width: 100%;
    display: flex;
    justify-content: center;
    color: white;
}

.half-block {
    flex: 1;
    background: #33393f;
    border-radius: 1px;
    padding: 20px;
    height: auto;
    text-align: center;
}

.half-block-1 {
    flex: 1;
    max-width: 900px;
    background: #33393f;
    border-radius: 1px;
    padding: 20px;
    text-align: center;
}

.blockNotLogin{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
    background-color: #30303b;
    border-radius: 1px;
    margin-top: 5px;
    margin-bottom: 10px;
    padding-top: 5px;
    padding-bottom: 10px;
}
.textNotLogin{
    text-align: center;
    color: white;
    font-size: 1rem;
}
.texBadRequest{
    color: white;
    text-align: center;
    font-size: 1rem;
    line-height: normal;
}

.texHeadBox{
    margin-top: 2.5px;
    text-align: left;
    font-size: 1.2rem;
    line-height: normal;
    width: 100%;
    display: inline-block;
}

.texHeadBoxContentLeft{
    display: flex;
    width: 100%;
    justify-content: right;
    gap: 10px;
}

.contentHalfBlock{
    width: 100%;
    height: auto;
    display: grid;
    margin-top: 15px;
}

.detailsLoots{
    display: flex;
    grid-gap: 5px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    margin-top: 15px;
    padding-top: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    max-height: 450px;
    height: auto; /* Фиксированная высота */
    overflow-y: scroll;
}

.itemLoot{
    display: grid;
    width: 180px;
    
    min-height: 150px;
    border-radius: 2px;
    background: #212529;
}

.itemLootName{
    color: white;
    margin-right: 15px;
    margin-top: 5px;
    width: 100%;
    font-size: 1rem;
    text-align: center;
    line-height: normal;
}

.itemLootCount{
    width: 100%;
    line-height: normal;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.itemLootPrice{
    color: white;
    width: 100%;
    margin-right: 15px;
    text-align: center;
    font-size: 0.8rem;
}

.itemLootByuOut{
    color: white;
    width: 100%;
    margin-right: 15px;
    font-size: 0.8rem;
    text-align: center;
}

.containerItem{
    width: 100%;
    height: auto;
}

.itemLootTime{
    color: white;
    margin-bottom: 5px;
    width: 100%;
    font-size: 0.6rm;
    text-align: center;
}

.topHeader{
    width: 100%;
    display: grid;
    margin-top: 15px;
    align-items: center;
}

.descriptionItemBox{
    display: grid;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.spanDItem{
    margin-top: 20px;
    height: auto;
    width: calc(100% - 50px);
    margin-left: 25px;
    font-size: 0.9rem;
    color: white;
    text-align: center;
}

.tableStats {
    border-collapse: collapse;
    width: calc(100% - 30px);
    margin-left: 15px;
}


.canvasHistory{
    width: 100%;
    max-height: 500px;
    position: relative;
}

.contentSelectTypeHistory{
    display: flex;
    gap: 10px;
    margin-top: 5px;
    padding-top: 5px;
}

.buttonTypeHistory{
    display: grid;
    justify-content: center;
    align-items: center;
    background-color: #212529;
    border-radius: 5px;
    width: 50%;
    min-height: 30px;
    cursor: pointer;
}

.nameButtonText{
    color: white;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    line-height: normal;
}

.buttonSelectedType{
    background-color: #292d31;
    border-color: #314050;
    border-width: 2px;
    border-style: solid;
}

.block_ads_banner{
    width: 100%;
    height: 150px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.itemCraftBox{
    display: flex;
    flex-wrap: wrap;
    width: calc(100% - 20px);
    align-items: center;
    justify-content: center;
    background-color: #3c444d;
    height: 45px;
    border-radius: 5px;
    margin-left: 10px;
    margin-right: 10px;
    cursor: pointer;
}

.itemIngredients{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-items: center;
    justify-content: center;
}

.boxItemIngredients {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    height: auto;
    grid-gap: 10px; /* Расстояние между ячейками */
}

.itemIngredientsCell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    position: relative;
    background-color: #577694;
    border-radius: 1px;
    border-left: 2px solid #000; /* Левая граница шириной 2 пикселя */
    border-bottom: 1px solid #000; /* Нижняя граница высотой 1 пиксель */
    cursor: pointer;
}

.progressIndicator {
    width: 100%;
    height: 2px;
    margin-bottom: 10px;
    background-color: #078803;
}

.iconItemIng {
    display: grid;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 60px;
}

.external-link-img {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;   /* Задаем ширину */
    height: 20px;  /* Задаем высоту */
    color: white;
    opacity: 0.4; /* Прозрачность 50% */
}

@media (max-width: 1350px) {
    .blockItem {
        flex: 1 1 100%; /* Блоки занимают 100% ширины на маленьких экранах */
    }

    .cardInfoBox .cardInfo .numbers{
        font-size: 1rem;
    }

    .cardInfoBox .cardInfo .cardName{
        font-size: 0.8rem;
    }

    .cardInfoBox .cardInfo .iconBox{
        font-size: 0.9rem;
    }
    .half-block-1 {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 1350px) {
    .horizontal-blocks {
        flex-direction: column; /* Изменяем расположение на вертикальное */
        gap: 10px; /* Уменьшаем отступ между блоками */
    }

    .half-block {
        width: 100%;
    }
}

@media (max-width: 800px) {
    .detailsLoots{
        grid-gap: 5px;
    }

    .itemLoot{
        width: 150px;
    }
    .itemLootName{
        font-size: 1rem;
    }

    .itemLoot{
        width: calc(100% - 30px);
        height: 150px;
        min-height: 150px;
        margin-left: 15px;
     }

     .itemLootCount{
        font-size: 0.6rem;
     }

     .containerItemGrid {
        width: 100%; 
        height: auto;
        margin: 0 0;
    }

    .cardInfoBox .cardInfo .numbers{
        font-size: 0.8rem;
    }

    .cardInfoBox .cardInfo .cardName{
        font-size: 0.6rem;
    }

    .cardInfoBox .cardInfo .iconBox{
        font-size: 0.7rem;
    }
}

