﻿@import "/UI/Styles/Theme.scss";

Scoreboard {
    z-index: 100;
    border-radius: $rounding;

    &.visible {
        pointer-events: all;
    }

    table {
        width: 40%;
        flex-direction: column;
        gap: 4px;
        color: white;

        .row {
            background-color: rgba( black, 0.5 );
            width: 100%;
            height: 8%;
            align-items: center;
            cursor: pointer;

            &.dead {
                .avatar {
                    filter: saturate( 0.2 ) brightness(50%);
                }
            }

            &.local {
                background-color: rgba( white, 0.75 );

                text, label {
                    color: black;
                }

                Icon {
                    background-image-tint: black;
                }
            }

            .stat {
                flex-basis: 100px;
                flex-grow: 1;
                align-items: center;
                text-align: left;
            }

            .stat-avatar {
                flex-basis: 64px;
                height: 64px;
                width: 64px;
                background-size: cover;
                background-position: center;
                background-repeat: no-repeat;
            }

            .stat-large {
                flex-basis: 200px;
                flex-grow: 1;
                align-items: center;
                text-align: left;
                padding-left: 32px;
            }

            .stat-little {
                flex-basis: 24px;
                flex-grow: 1;
                align-items: center;
                text-align: left;
            }
        }
    }
}
