﻿@import "../base/index.css";
@import "../components/card.css";
@import "../components/switch.css";

.infor-box {
    border: 0.5px solid var(--d-card-border-color);
    border-radius: 10px;
    background-color: var(--d-white);
    padding: 0;
    max-height: 540px;
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .infor-box .items {
        display: flex;
        flex-direction: column;
    }

        .infor-box .items .item:not(.hidden-tx) {
            display: flex;
            padding: 16px;
            gap: 20px;
            width: 100%;
            justify-content: space-between;
            /*border-radius: 6px;*/
            /*border: 1px solid var(--d-card-border-color);*/
        }

        .infor-box .items .item:first-child {
            border-top-left-radius: 10px;
            border-top-right-radius: 10px;
        }

        .infor-box .items .item:last-child {
            border-bottom-left-radius: 10px;
            border-bottom-right-radius: 10px;
        }

.blks-list {
    height: 545px;
}

    .blks-list .d-card {
        height: 100% !important;
    }
    
.ibc-txs-list {
    height: 380px;
}

.item + .item {
    border-top: 1px solid var(--d-card-border-color);
}

.item .item--left,
.item .item--right {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.item .item--mid {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

    .item .item--mid .iNext {
        width: 16px;
        height: 16px;
        object-fit: contain;
        object-position: center;
        mask: url('../../images/next.svg');
        -webkit-mask: url('../../images/next.svg');
        background-color: var(--d-primary);
    }

.iNext.text-success {
    background-color: rgba(var(--bs-success-rgb), 1) !important;
}

.iNext.text-primary {
    background-color: rgba(var(--bs-primary-rgb), 1) !important;
}


.items .item .block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.block.block-metric {
    width: 35%;
}

.block.block-value {
    width: 25%;
}

.block.block-desc {
    width: 40%;
}

.block.block-rounder {
    width: 40px;
    height: 40px;
    background-color: var(--d-white1);
    border-radius: 8px;
}

.d-card .btn-view-all {
    background: var(--d-black);
    height: 51px;
    text-align: center;
    width: 100%;
    color: var(--d-white2);
    font-weight: 600;
    line-height: 19.36px;
    border-radius: 8px;
    padding: 16px 20px 16px 20px;
}

.market-overview .market-overview-icon {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 64px;
    height: 64px;
}

.market-overview .dym-price-icon {
    background-image: url('../../images/dym-price.png');
}

.market-overview .transaction-icon {
    background-image: url('../../images/transaction.png');
}

.market-overview .market-cap-icon {
    background-image: url('../../images/market-cap.png');
}

.market-overview .block-time-icon {
    background-image: url('../../images/block-time.png');
}

@media (max-width: 768px) {
    .blks-list {
        margin-top: 1rem;
        height: 540px;
    }

    .item .item--mid .iNext {
        transform: rotate(90deg);
    }

    .item.item-flex {
        flex-direction: column;
        gap: 0 !important;
    }

    .transaction-switches {
        width: 100px;
    }

    .market-overview .market-overview-icon {
        width: 42px;
        height: 42px;
    }
}

.dark-theme .infor-box {
    background-color: rgba(36, 32, 31, 1);
    border: 0.5px solid rgba(255, 255, 255, 0.15)
}

    .dark-theme .infor-box .items .item {
        border: 0.5px solid rgba(255, 255, 255, 0.15)
    }

.dark-theme .d-card .btn-view-all {
    color: var(--d-white1--dark);
    background: linear-gradient(90deg, #1B36A6 0%, #BD6F9B 100%);
}

.dark-theme .market-overview .market-overview-metric .market-overview-metric__key {
    color: var(--d-black2--dark);
}

.dark-theme .market-overview .market-overview-metric .market-overview-metric__value {
    color: var(--d-black1--dark);
}
