@import '/UI/Style.scss';

ScoreboardTeam {
    width: 100%;
    flex-grow: 1;
    flex-direction: column;

    >.header {
        height: 40px;
        color: $white-dark;
        background-color: $gray-darker;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
        gap: 10px;
        padding: 6px 40px;

        >div {
            justify-content: space-evenly;
            width: 200px;
            gap: 10px;
        }
    }


    >.scroll {
        flex-direction: column;
        width: 100%;
        overflow: scroll;

        >.player {
            height: 52px;
            width: 100%;
            flex-shrink: 0;
            background-color: $gray;
            padding: 6px 40px;
            justify-content: space-between;

            &:nth-child(odd) {
                background-color: $gray-darkerer;
            }

            &:nth-child(even) {
                background-color: $gray-darker;
            }

            >.avatar {
                align-items: center;
                height: 100%;
                font-size: 24px;
                gap: 15px;
                max-width: 250px;
                text-overflow: ellipsis;

                >img {
                    height: 100%;
                    aspect-ratio: 1;
                }

                >.icon {
                    height: 75%;
                    aspect-ratio: 1;
                    image-rendering: pixelated;
                }
            }

            >.stats {
                justify-content: space-evenly;
                width: 200px;
                gap: 10px;
                align-items: center;

                >p {
                    width: 100%;
                    flex-shrink: 1;
                    flex-grow: 1;
                    justify-content: center;
                }

                >.kills {
                    color: $white;
                }

                >.deaths {
                    color: $red;
                }

                >.score {
                    color: $score;
                }
            }
        }
    }
}