﻿.jusTT-navbar-brand {
    color: white;
    font-weight:normal;
    font-size:larger;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding-right: 10px;
    padding-left: 10px;
}

.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
    padding-left : 10px;
    color : white;
    display : inline;
    font-weight : normal;
}

.jusTT-navbar {
    background-color: #262626;
    color: white;
}

.navbar .navbar-nav .nav-link:hover {
    color: #F15922;
}

.navbar .nav-link.active {
    color: #F15922;
}

.nav-item::deep a {
    color: #d7d7d7;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
}


.color-jusTT-orange {
    color: #F15922;
}

.thead-player-list {
    color: white !important;
    background-color: #002461 !important;
}
.round-container {
    position: relative;
    max-width: 350px;
    min-width: 100px;
    padding: 0 20px 0 10px;
    width: 25%;
}

.round-name-background {
    background-color: #d1d1d1;
    padding: 10px;
    position: relative;
    z-index: 1;
}

.round-name-wrapper {
    position: absolute;
    top: 0;
    left: -20px; /* Match the left padding of the section */
    right: -10px; /* Match the right padding of the section */
    height: 100%;
    background-color: #d1d1d1;
    z-index: -1;
    pointer-events: none; /* Prevent interaction */
    width: calc(100% + 30px); /* Adjust to include padding */
}

.round-name {
    position: relative;
    z-index: 2;
    margin: 0; /* Remove margin */
    background-color: inherit;
    box-sizing: border-box; /* Ensure padding is included in the width/height */
}


.background-color-jusTT-orange {
    background-color: #F15922;
}

.color-jusTT-black {
    color: #262626;
}

.color-jusTT-blue {
    color: #002461;
}

.background-color-jusTT-blue {
    background-color: #002461;
}

.color-jusTT-gray {
    color: #D1D1D1;
}

.background-color-jusTT-gray {
    background-color: #D1D1D1;
}

.btn-icon {
    color: #002461;
    background-color: #D1D1D1;
}
.btn-jusTT-blue {
    color: white;
    background-color: #002461;
    border: 1px solid #002461;
    transition: background-color 0.3s ease;
    margin:2px;
}

.btn-jusTT-orange {
    color: black;
    background-color: #F15922;
    border: 1px solid black;
    transition: background-color 0.3s ease;
    margin:2px;
}

.btn-jusTT-blue:hover {
    color: white;
    background-color: #001c3a; /* Darkened shade of the original color */
    border: 1px solid #001c3a; /* Ensure the border matches the new background color */
}

.btn-jusTT-orange:hover {
    color: black;
    background-color: #D14A1F;
    border: 1px solid black;
    transition: background-color 0.3s ease;
}
.hover-row:hover {
    background-color: #0000ff33;
}

.hover-cursor {
    cursor: pointer;
}

.selected-row {
    background-color: #007FFC;
    cursor: pointer;
}

.underlineHover:hover {
    text-decoration: underline;
}

.top-padded {
    padding-top: 10px
}

.inline {
    display: inline;
}

.low-padding {
    padding: 1px;
}

.swap-player-highlight {
    background-color: #D14A1F !important;
}
.group-summary-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px; /* Adjust the gap between the components */
    margin: 0 auto;
}

.fixed-min-width {
    min-width: 200px; /* Adjust this value as needed */
    white-space: nowrap; /* Prevent text from wrapping */
}

/*Adapted from https://dev.to/yuridevat/can-tournament-brackets-be-accessible-34og*/
:root {
    --border: 1px solid black;
}

.bracket {
    display: flex;
    margin-bottom: 100px;
    overflow: visible;
    width: 100%;
}

section {
    max-width: 350px;
    min-width: 100px;
    padding: 0 20px 0 10px;
    width: 25%;
}


div.bracket-winner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 20px 0;
    position: relative;
    width: 100%;
}

ol.bracket-match-list {
    display: flex;
    flex-flow: row wrap;
    list-style-type: "";
    margin: 0;
    min-height: 100%;
    padding: 0;
}

li.bracket-match {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 20px 0;
    position: relative;
    width: 100%;
}

li.bracket-final-match {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 20px 0;
    position: relative;
    width: 100%;
}

span.bracket-match-winner {
    color: green;
}

span.bracket-match-loser {
    color: red;
}

a, span {
    display: block;
}

.bracket-match-player-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1px 0;
}

section:not(:nth-child(4), :last-child) {
    & li.bracket-match:after, li.bracket-match:before
    {
        content: "";
        display: block;
        position: absolute;

    }

    & li.bracket-match:after {
        right: -15px;
        width: 15px;
    }

    & li.bracket-match:nth-child(even):after {
        border-bottom: var(--border);
        border-bottom-right-radius: 0.3em;
        border-right: var(--border);
        bottom: 50%;
        height: 100%;
    }

    & li.bracket-match:nth-child(odd):after {
        border-right: var(--border);
        border-top: var(--border);
        border-top-right-radius: 0.3em;
        height: 100%;
        top: 50%;
    }

    /*this needs some work*/
    & li.bracket-match:nth-child(odd):before {
        border-top: var(--border);
        bottom: -19px;
        right: -30px;
        width: 15px;
    }
}
