﻿@import "/UI/Styles/Theme.scss";

Scoreboard {
    z-index: 100;

    &.visible {
        pointer-events: all;
    }

    separator {
        flex-grow: 1;
        height: 1px;
        background-color: red;
        margin: 0 4px;
    }

    table {
        overflow: hidden;
        background-color: $widget-color-dark;
        backdrop-filter: $widget-backdrop-filter;
        width: 960px;
        flex-direction: column; 
        color: white;

        .title {
            background-color: $widget-color-dark;
            padding: 24px;
            justify-content: space-between;
            text-shadow: 0 0 4px rgba( black, 0.5 );
        }

        .header {
            position: absolute;
            height: 48px;
        }

        .state {
            height: 48px;
        }

        .row:nth-child(even) {
            background-color: $widget-color-dark;
        }

        .row {
            width: 100%;
            align-items: center;

            .avatar {
                width: 24px;
                height: 24px;
                aspect-ratio: 1;
                border-radius: 100px;
            }

            &.local {
                background-color: rgba( white, 0.75 );

                text, label {
                    color: black;
                }

                Icon {
                    background-image-tint: black;
                }
            }

            &.dead {
                opacity: 0.5;
                filter: saturate( 0.2 );
            }

            .col {
                align-items: center;
            }

            .playername {
                flex-basis: 500px;
            }

            .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;
            }
        }
    }
}