$primary: #1a1a1a;
$secondary: #242424;
$tertiary: #ffffff;

$button-primary: #ffffff !default;
$button-primary-fg: #ffffff !default;
$button-secondary: #282828 !default;
$button-secondary-fg: #dadada !default;

Scoreboard {
    position: absolute;
    width: 1000px;
    top: 160px;
    padding: 8px;
    gap: 8px;
    border-radius: 10px;
    transition: opacity 0.4s ease-in-out;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    border: 4px solid rgba(61, 129, 63, 0.5);
    box-shadow: 10px 10px 20px 0px rgba(0, 0, 0, 0.75);
    text-shadow: 2px 2px 2px black;
    text-overflow: ellipsis;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    overflow-y: scroll;
    overflow-x: hidden;
    font-size: 24px;
    min-height: 200px;
    max-height: calc(100vh - 200px); // Prevent extending past bottom of screen
    pointer-events: none;

    .team-column {
        width: 49%;
        min-height: 150px;
        align-items: center;
        padding: 8px;
        border-radius: 10px;
        flex-direction: column;
        gap: 8px;
        overflow-x: hidden; 

        .title {
            font-size: 32px;
            height: 60px;
            color: $tertiary;
            width: 100%;
            justify-content: center;
            align-items: center;
            border-radius: 4px;

            .label {
                width: 100%;
                text-align: center;
            }
        }

        .title2 {
            color: $tertiary;
            width: 100%;
            height: 50px;
            align-items: center;
            justify-content: center;
            border-radius: 4px;

            .spacer {
                width: 60%;
                height: 100%;
            }
            
            .kills {
                background-color: rgb(0, 0, 0);
                width: 30%;
                height: 100%;
                font-size: 20px;
                justify-content: center;
                align-items: center;
                border-bottom: 1px rgb(85, 85, 85);
                border-top: 1px rgb(85, 85, 85);
            }
            .deaths {
                background-color: rgb(0, 0, 0);
                width: 20%;
                height: 100%;
                font-size: 20px;
                justify-content: center;
                align-items: center;
                border-bottom: 1px rgb(85, 85, 85);
                border-top: 1px rgb(85, 85, 85);
            }
            .ping {
                background-color: rgb(0, 0, 0);
                width: 20%;
                height: 100%;
                font-size: 20px;
                justify-content: center;
                align-items: center;
                border-bottom: 1px rgb(85, 85, 85);
                border-top: 1px rgb(85, 85, 85);
            }
            .label {
                width: 100%;
                text-align: center;
            }
        }

        > .holder {
            width: 100%;
            flex-direction: column;
            gap: 6px;
            overflow-x: hidden;
            border-radius: 4 0 0 4;
            flex-grow: 1;

            > .player {
                align-items: center;
                justify-content: center;
                min-height: 35px; 

                > .name {
                    border-radius: 4px 0 0 4px;
                    font-weight: bold;
                    width: 50%;
                    height: 100%;
                    align-items: center;
                    justify-content: center;
                    font-size: 20px;
                    background-color: $primary;
                    overflow-x: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    padding-left: 8px;
                    border-bottom: 1px rgb(0, 0, 0);
                    border-top: 1px rgb(0, 0, 0);

                    .label {
                        width: 100%;
                        height: 100%;
                        align-items: center;
                        justify-content: center;
                        flex-shrink: 0;
                    }

                    &.red {
                        background-color: #EB5353;
                        background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, #ff7a7a00 60%);
                    }

                    &.blue {
                        background-color: #187498;
                        background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, #38a5ff00 60%);
                    }

                    &.green {
                        background-color: #36AE7C;
                        background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, #84cf7c00 60%);
                    }

                    &.yellow {
                        background-color: #F9D923;
                        background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, #fff67700 60%);
                    }

                    &.none {
                        background-color: $secondary;
                        background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, #fff67700 60%);
                    }
                }

                > .score {
                    width: 20%;   // was 30%
                    height: 100%;
                    align-items: center;
                    justify-content: center;
                    font-size: 18px;
                    background-color: rgb(0, 0, 0);
                    border-bottom: 1px rgb(85, 85, 85);
                    border-top: 1px rgb(85, 85, 85);

                    .label {
                        width: 50%;
                        text-align: center;
                    }
                }
            }
        }
    }
}