:root {
    --col: 1;
    --row: 1;
    --elem-width: 58px;
    --elem-height: 58px;
}

.chemical-elem {
    grid-column: var(--col);
    grid-row: var(--row);
    position: relative;
}

.chemical-elem__info {
    position: absolute;
    width: var(--elem-width);
    height: var(--elem-height);
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
}

.chemical-elem--active:hover {
    cursor: pointer;
}

.chemical-elem--selected svg,
.chemical-elem--active:hover svg {
    background: url('../img/elem-background-hover.svg') center no-repeat;
}

.chemical-elem--selected .chemical-elem__facets,
.chemical-elem--active:hover .chemical-elem__facets {
    color: #FFFFFF;
}

.chemical-elem__name {
    padding: 17px 17px 3px;
    font-family: Arial, sans-serif;
    font-weight: 700;
    line-height: 16px;
    font-size: 21px;
    user-select: none;
}

.chemical-elem__facets {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: #0F0037;
    user-select: none;
}

.periodic-table__description {
    margin: 0 auto;
    padding-bottom: 20px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    line-height: 21px;
    color: #0F0037CC;
    display: list-item;
    list-style: disc;
    width: fit-content;

}




.periodic-table--first-part {
    display: grid;
    grid-template-columns: repeat(17, var(--elem-width));
    grid-template-rows: repeat(7, var(--elem-height));
    grid-gap: 1px;
}

.periodic-table--second-part {
    display: grid;
    grid-template-columns: repeat(17, var(--elem-width));
    grid-template-rows: repeat(2, var(--elem-height));
    grid-gap: 1px;
    padding-top: 26px;
}

.filter_view.filter_view--periodic-table {
    padding: 20px 40px 35px;
}

/* sorting section */

.sort-arrow {
    width: 20px;
    height: 20px;
}

.sort-direction {
    display: flex;
    gap: 10px;
}

.sort-section__tab {
    display: flex;
    gap: 20px;
    width: fit-content;
    cursor: pointer;
    user-select: none;
}

.sort-section__title {
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 21px;
    color: #0F003780;
}

.sort-section {
    padding: 0 0 10px;
    display: grid;
    grid-template-columns: 1fr 295px 107px;
}


.sort-section__tab:first-child {
    padding: 0 0 0 36px;
}

.sort-section__title--active {
    color: #F7941E;
}

.periodic-table--first-part .chemical-elem:first-child .chemical-elem__facets {
    display: none;
}

