#table {
    overflow: hidden;
}

.table_back {
    background-image: url(../assets/table.jpg);
    position: relative;
    margin: 0 auto;
    background-position: center;
    background-size: cover;
}

body.dark .table_back {
    background-image: url(../assets/marble_dark.png);
}

.table_wrapper {
    max-width: 1610px;
    margin: 0 auto;
    padding: 224px 0;
    position: relative;
}

.table_shadows {
    position: absolute;
}

.topborder {
    background-image: url(../assets/tabletb.png);
    width: 100%;
    height: 38px;
    right: 0;
    top: 0;
    transform: scaleY(-1);
}

.bottomborder {
    background-image: url(../assets/tabletb.png);
    width: 100%;
    height: 38px;
    left: 0;
    bottom: 0;
}

body.dark .topborder {
    background-image: url(../assets/tabletb_b.png);
}

body.dark .bottomborder {
    background-image: url(../assets/tabletb_b.png);
}

.table_text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.table_text h2 {
    max-width: 1006px;
    text-align: center;
    margin: 0 auto;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.30), 0px 1px 3px rgba(0, 0, 0, 0.15);
}

.table_text p {
    max-width: 974px;
    text-align: center;
}

.soc_but {
    padding-left: 18px;
    padding-right: 18px;
    display: grid;
    grid-template-columns: 25px 1fr 25px;
    align-items: center;
    justify-content: space-between;
}

.table_revers {
    display: flex;
    flex-direction: row;
    gap: 24px;
    max-width: fit-content;
    margin: 0 auto;
    padding: 32px 0 0;
}

.soc_telegram:hover {
    color: #269DE7;
}

.soc_telegram:hover svg:nth-child(2) path {
    stroke: #269DE7;
}

.soc_discord:hover {
    color: #5865F2;
}

.soc_discord:hover svg:nth-child(2) path {
    stroke: #5865F2;
}

.soc_forum:hover {
    color: #AA0909;
}

.soc_forum:hover svg:nth-child(2) path {
    stroke: #AA0909;
}

.table_people {
    position: absolute;
    background-position: center;
    background-size: contain;
    z-index: 2;
    pointer-events: none;
    display: block;
}

.table_dwarf {
    background: url(../assets/dwarf.png);
    width: 629px;
    height: 1225px;
    right: -280px;
    top: -150px;
}

.table_th {
    background: url(../assets/th.png);
    width: 811px;
    height: 1209px;
    top: 40px;
    left: -250px;
}

.table_head {
    padding: 0 16px;
}

@media (max-width: 1400px) {
    .table_people {
        display: none;
    }
}

@media (max-width: 845px) {
    .table_revers {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .table_wrapper {
        padding: 112px 0;
    }
}