.players {
    display: flex;
    flex-direction: column;
    align-items: center;
}

li {
    cursor: pointer;
    margin: 5px 0;
    padding: 5px;
    border: 1px solid #ddd;
}

li:hover {
    background-color: #f0f0f0;
}

.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 300px;
    text-align: center;
}

.modal-content button {
    margin-top: 10px;
    padding: 5px 15px;
    border: none;
    background-color: #2196F3;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}

.modal-content button:hover {
    background-color: #0d8ad2;
}

.container {
    display: flex;
    justify-content: space-between;
    gap: 20px;  /* Espacement entre les éléments */
}

.players, #statsDisplay {
    flex: 1;  /* Chaque élément prend la même largeur */
}

.player-selected {
    background-color: red !important;
}

.player-possible-opponent {
    background-color: #ff7f7f; /* c'est une teinte plus claire de rouge */
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.table thead {
    background-color: #1E90FF; /* Couleur de fond bleue pour les en-têtes */
    color: white; /* Texte blanc pour les en-têtes */
}

.table th, .table td {
    padding: 10px 20px;
    border: 1px solid #1E90FF; /* Bordure bleue pour les cellules */
}

.table tbody tr:nth-child(odd) {
    background-color: #ADD8E6; /* Couleur de fond bleue claire pour les lignes impaires */
}

.table tbody tr:nth-child(even) {
    background-color: #B0E0E6; /* Couleur de fond bleue plus claire pour les lignes paires */
}

.table tbody tr:hover {
    background-color: #87CEFA; /* Couleur de fond bleue lorsqu'on survole une ligne */
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

.centered-title {
    text-align: center;
}

.centered-image {
    display: block;
    margin: 0 auto;
}

.icon {
    width: 50px;
    height: 50px;
}

body {
    position: relative;
  }
  
  body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('fond.png') center/50% no-repeat;
    opacity: 0.1;
    z-index: -1;
  }

  .btn-export {
    margin-bottom: 50px;
}

  footer {
    text-align: center;
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
  }
  
  footer a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
  }

  .list-group-item {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.list-group-item.swipe-left {
    transform: translateX(-100%);
    opacity: 0;
}

.swipe-left {
    animation: slideOutLeft 0.3s forwards;
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.list-group-item {
    cursor: grab;
    transition: transform 0.2s ease, background-color 0.2s ease; /* Animation fluide */
}

.list-group-item:active {
    cursor: grabbing;
}

.dragging {
    background-color: #f8d7da; /* Couleur pour l'élément en cours de déplacement */
    z-index: 10; /* Met en avant l'élément déplacé */
    position: relative;
}

.drag-over-above {
    transform: translateY(-40px); /* Décale vers le haut */
}

.drag-over-below {
    transform: translateY(40px); /* Décale vers le bas */
}

.dragging,
.drag-over-above,
.drag-over-below {
    transition: transform 0.2s ease-in-out; /* Transition douce pour les animations */
}
