.reacket-match {
    margin: 0.5rem 0;
    display: flex;
    flex-direction: row;
    .reacket-match-id {
        display: flex;
        justify-content: center;
        flex-direction: column;
        width: 2rem;
        font-weight:bold;
        color: #999;
    }
    .reacket-players {
        width: 20rem;
    }
}

.reacket-round {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

:root {
    --backgroundColor: #f6f6f6;
    --lightTextColor: #999;
    --darkTextColor: #333;
    --reverseTextColor: white;
    --loserBorder: solid 0.2rem var(--lightTextColor);
    --winnerTextColor: rgb(15, 172, 15);
    --reverseWinnerTextColor: rgb(142, 233, 142);
    --winnerBorder: solid 0.2rem var(--winnerTextColor);
    --winnerBackgroundColor: #ebfaeb;
    --highlightedBackgroundColor: #255d85;
    --highlightedBorder: solid 0.2rem #1d8cd6;
    --playerSeperatorBorder: solid 1px #ccc;;
}

.reacket-round-header {
    width: 20rem;
    margin-right: 8rem;
    padding: 0.2rem 0;
    font-size: 120%;
    font-weight:bold;
    margin-left: 2rem;
    &.reacket-last-round {
        margin-right: 0;
    }
}

.reacket-player {
    padding: 0.5rem 0;
    background: var(--backgroundColor);
    border-left: var(--loserBorder);
    cursor: pointer;
    transition: all 0.4s ease-out;
    display: flex;
    justify-content: space-between;

    .reacket-player-name {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        text-align: left;
        flex:1 1 auto;
        color: var(--lightTextColor);
    }
    .reacket-player-seed, .reacket-player-score {
        flex:0 0 auto;
        padding: 0 1rem;
        color: var(--lightTextColor);
    }

    &.reacket-highlighted {
        background-color: var(--highlightedBackgroundColor);
        color: var(--reverseTextColor);
        border-left: var(--highlightedBorder);
        .reacket-player-seed, .reacket-player-score, .reacket-player-name {
            color: var(--reverseTextColor);
        }
    }
    &:first-child {
        border-bottom: var(--playerSeperatorBorder);
    }
}

.reacket-winner {
    background-color: var(--winnerBackgroundColor);
    border-left: var(--winnerBorder);
    .reacket-player-score {
        font-weight:bold;
        color: var(--winnerTextColor);
    }
    .reacket-player-name {
        color: var(--darkTextColor);
    }
    &.reacket-highlighted {
        .reacket-player-score {
            color: var(--reverseWinnerTextColor);
        }
        .reacket-player-name {
            color: var(--reverseTextColor);
        }
    }
}