@import "/UI/Core/Styles/Theme.scss";

$scoreboard-row-height: 36px;

ScoreboardRow {
    width: 100%;
    height: $scoreboard-row-height;
    //align-items: center;
    border: 1px solid transparent;

    &.with-py {
        padding-top: 0;
        padding-bottom: 0;
    }

    &:nth-child(even) {
        background-color: $scoreboard-row-stripe;
        border: 1px solid $scoreboard-row-stripe;
    }

    &.team-row-traitor {
        background-color: $team-ui-row-traitor;
        border: 1px solid $team-ui-row-traitor;
    }

    &.team-row-detective {
        background-color: $team-ui-row-detective;
        border: 1px solid $team-ui-row-detective;
    }

    &.local {
        //background-color: rgba( white, 0.12 );
        //border: 1px solid white;
    }

    &.dead {
        opacity: 0.5;
        filter: saturate( 0.2 );
    }

    &.dead.team-row-traitor,
    &.dead.team-row-detective {
        opacity: 0.65;
        filter: saturate( 1 );
    }

    .avatar {
        width: $scoreboard-row-height;
        height: $scoreboard-row-height;
        //box-sizing: border-box;
        object-fit: cover;
        flex-shrink: 0;
        border: 1px solid rgba( white, 0.24 );
        border-radius: 2px;
    }

    .col {
        align-items: center;
    }

    .playername {
        flex-basis: 500px;
        height: 100%;
        align-items: center;

        > * {
            margin-right: 20px;
            margin-top: 0;
        }
    }

    .playername label {
        letter-spacing: 0.4px;
    }

    .dev-badge {
        font-size: 30px;
        color: rgba( 255, 199, 109, 0.95 );
        opacity: 0.95;
    }

    .host-badge {
        font-size: 30px;
        color: rgba( 255, 255, 255, 0.95 );
        opacity: 0.95;
    }

    .scoreboard-icon-hint {
        align-items: center;
        justify-content: center;
    }

    .stat {
        flex-basis: 75px;
        flex-grow: 1;
        text-align: right;
    }

    .stat-large {
        flex-basis: 100px;
        align-items: center;
        text-align: right;
    }

    .stat-small {
        flex-basis: 50px;
        align-items: center;
    }
}
