.match-display{
    --border-width: 1.5px;
    --total-height: 200px;
    --time-animation: 0.5s;
    color: red;
    width: 300px;
    height: var(--total-height);
    background-color: transparent;
    perspective: 1000px;

    transition: height var(--time-animation);
}

.verso > a {
  display: inline-block; /* Permet de gérer la largeur et la hauteur */
  text-decoration: none; /* Supprime le soulignement du lien */
  color: inherit; /* Hérite de la couleur du texte */
  width: 100%;
  height: 100%; /* Prend toute la largeur disponible */
}


.match-display-inner{
    position: relative;
    width: 100%;
    height: var(--total-height);
    text-align: center;
    transition: transform var(--time-animation);
    transform-style: preserve-3d;
}

.match-display:hover .match-display-inner {
    transform: rotateX(180deg);
}

.recto, .verso{
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: black var(--border-width) solid;
    border-radius: 5px;
    box-sizing: border-box;
    
    
}

.recto{
    background-color: #bbb;
    color: black;
}

.verso {
    background-color: dodgerblue;
    color: white;
    transform: rotateX(180deg);
}

.team-up, .team-down{
    position: absolute;
    height: 40px;
    width: 100%;
    background-color: rgb(249, 90, 90);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.playable{
    background-color: orange;
}

.unassigned{
    background-color: lightgray;
}

.unassigned-match{
    visibility: hidden;
}

.unplayed{
    background-color: rgb(249, 90, 90);
}

.team-up{
    top: 0;
    border-bottom: black var(--border-width) solid;
    border-radius: 5px 5px 0 0;
}

.team-down{
    bottom: 0;
    border-top: black var(--border-width) solid;
    border-radius: 0 0 5px 5px;
}

.bracket-shape{
    position: absolute;
    width: 30px;
    height: calc(100% - 40px);
    border-right: var(--border-width) solid black;
    border-top: var(--border-width) solid black;
    border-bottom: var(--border-width) solid black;
    margin-left: 20px;
    left: 100%;
    top: 20px;
    z-index: 1000;
    border-radius: 0 12px 12px 0;
}

.arrow-line {
    position: absolute;
    width: 40px;
    height: 4px;
    border-top: var(--border-width) solid black;
    left: calc(100% + 50px);
    top: 50%;
    
}

.arrow-line::after {
    content: "";
    position: absolute;
    right: 0;
    top: -10px;
    width: 16px;
    height: 16px;
    border-top: var(--border-width) solid black;
    border-right: var(--border-width) solid black;
    transform: rotate(45deg);
    z-index: 1001;
}