﻿
.leaderboard-item .item-popup {
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease-in-out;
    display: flex;
    text-align: left;
}

.leaderboard-item:hover .item-popup {
    visibility: visible;
    opacity: 1;
}

.item-popup {
    position: absolute;
    max-width: 240px;
    left: 35%;
    z-index: 1;
    border: 1px solid #000;
    padding: 10px 0 10px 10px;
    background: #fff;
    width: calc(calc(100vw / 1920) * 333);
    filter: drop-shadow(3px 2px 3px #987);
    -webkit-filter: none;
}

.tab-pane-content .leaderboard-item:nth-of-type(1) .item-popup {
    top: 0px;
}

    .tab-pane-content .leaderboard-item:nth-of-type(1) .item-popup:before,
    .tab-pane-content .leaderboard-item:nth-of-type(1) .item-popup:after{
        top: 25px
    }

@media screen and (max-width: 768px) {
    .item-popup {
        width: 300px;
    }
}

@media screen and (max-width: 414px) {
    .item-popup {
        width: 100%;
        max-width: 100%;
        position: absolute;
        left: 0;
        bottom: -90px;
    }
}

.item-popup .item-img img {
    max-width: 60px;
    transform: none;
}


.leaderboard-item img {
    transition: all 0.2s ease-in-out;
}

.leaderboard-item:hover .ranking-position {
    display: block;
}

.item-popup .item-img {
    margin-right: 10px;
    position: relative;
    max-height: 60px;
}

    .item-popup .item-img .active-pos {
        right: 0;
    }

.item-popup .popup-item-name {
    font-size: 15px;
    line-height: normal;
    word-break: break-word;
    color: #589FEF;
}

.item-popup .item-info {
    width: calc(100% - 80px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.leaderboard-overal .leaderboard-item:nth-child(-n+3) .item-popup .item-info {
    width: calc(100% - 100px);
}

#LeaderboardPopup .tab-pane .leaderboard-item:nth-child(-n+3) .item-popup .item-info {
    width: calc(100% - 80px);
}

    @media screen and (max-width: 1600px) {
        .item-popup .item-info {
            width: calc(100% - 95px);
        }
    }

    @media screen and (max-width: 1440px) {
        .item-popup .item-info {
            width: calc(100% - 95px);
        }
    }

    @media screen and (max-width: 1366px) {
        .item-popup .item-info {
            width: calc(100% - 88px);
        }
    }

    @media screen and (max-width: 768px) {
        .item-popup .item-info {
            width: calc(100% - 85px);
        }
    }

    @media screen and (max-width: 414px) {
        .item-popup .item-info {
            width: calc(100% - 80px)
        }
    }

    .item-popup .item-info .item-points {
    display: flex;
    font-size: 14px
}

@media screen and (max-width: 1366px) {
    .item-popup .item-info .item-points {
        font-size: medium
    }
}

.item-popup .item-info .item-point {
    /*font-size: large;
            transform: scale(0.9);*/
    color: #333
}

.item-popup .item-info .item-point-unit {
    /*font-size: large;
            transform: scale(0.8);*/
    margin-left: 5px;
    color: #555;
}

.item-popup .item-line-break {
    width: 100%;
    border-bottom: 1px solid #000;
}


.item-popup .item-followers {
    display: flex;
    padding: 5px 0 0;
    width: max-content;
    align-items: flex-end;
    justify-content: flex-end;
    font-size: calc(calc(100vw / 1440) * 12.2222222);
    color: #333
}

.item-popup .item-follower {
    padding-right: 5px;
    margin-right: 5px;
    border-right: 1px solid #000;
}

.item-popup:after {
    content: "";
    background: transparent;
    position: absolute;
    left: -14px;
    top: calc(45% - 5px);
    border-right: 15px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.item-popup:before {
    content: "";
    border-right: 15px solid #000;
    position: absolute;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    left: -15px;
    top: calc(45% - 5px);
}

@media screen and (max-width: 414px) {

    .tab-pane-content .leaderboard-item:nth-of-type(1) .item-popup {
        top: 50px;
        bottom: auto;
    }

        .tab-pane-content .leaderboard-item:nth-of-type(1) .item-popup:before {
            top: -15px;
        }

        .tab-pane-content .leaderboard-item:nth-of-type(1) .item-popup:after {
            top: -14px;
        }

        .item-popup:before {
            content: "";
            border-right: 10px solid transparent;
            position: absolute;
            border-left: 10px solid transparent;
            border-bottom: 15px solid #000;
            left: calc(50%);
            border-top: none;
            top: -15px;
        }

    .item-popup:after {
        content: "";
        background: transparent;
        position: absolute;
        left: calc(50%);
        border-right: 10px solid transparent;
        border-left: 10px solid transparent;
        border-bottom: 15px solid #fff;
        border-top: none;
        top: -14px;
    }
}

.tab-content .leaderboard-content .sub-heading {
    line-height: unset;
}
