:root{
    --primary-color: #00ffd5;
    --secondary-color: #00c9a7;
    --primary-color-admin: #ee82ee;
    --secondary-color-admin: #d11dc8;
}

.bracket{
    border-radius: 10px;
    border:black solid 2.8px;
    width: 80%;
    display: flex;
    margin: 0 0 15vh 0;
    flex-direction: row;
    overflow-x: scroll;
    white-space: nowrap;
    scroll-snap-type: x mandatory;

    /* Disable the print of scrollbar */
    -ms-overflow-style: none;  /* IE et Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Disable the print of scrollbar for Chrome and Safari */
.bracket::-webkit-scrollbar{
    display: None;
}

.bracket-container{
    width: 100%;
    border:red solid 1px;
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow-y: hidden;
}

.bracket-container h3{
    margin: 2vh;
}

.round{
    width: 40%;
    height: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    transition: margin 0.3s ease;
    justify-content: center;
}

.match{
    margin-left: 2px;
    margin-right: 2px;
    height: 40px;
    padding: 5px;
    transition: margin 0.3s ease-out;
    border:violet solid 1px;
}

.match a {
    display: block;
    text-decoration: none;
    color: black;
    width: 100%;
    height: 100%;
}

.match.played{
    color: green;
    background-color: rgb(65, 204, 65);
    
}

.match.playable{
    color: orange;
    background-color: orange;
}

.match.unplayable{
    color: red;
    background-color: rgb(249, 90, 90);
}

.match.nobody{
    color: gray;
    background-color: gray;
}

.match.no{
    border: #f4f4f4 solid 1px;
    height: 40px;
}

.round.a .match{
    
    border-radius: 5px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.round.b .match{
    border-radius: 5px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.round.c .match{
    border-radius: 5px;
    margin-top: 68px;
    margin-bottom: 68px;
}

.round.d .match{
    border-radius: 5px;
    margin-top: 156px;
    margin-bottom: 156px;
}

.round.e .match{
    border-radius: 5px;
    margin-top: 156px;
    margin-bottom: 156px;
}

.round.f .match{
    border-radius: 5px;
    margin-top: 156px;
    margin-bottom: 156px;
}

.round.g .match{
    border-radius: 5px;
    margin-top: 156px;
    margin-bottom: 156px;
}

@media(max-width:400px){
    .bracket{
        width: 95%;
    }

    .round{
        width: 70%;
        height: 100%;
        flex-shrink: 0;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        transition: margin 0.3s ease;
    }
}