body{
    margin:0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg,#1f2937,#111827);
    color:white;
}

header{
    text-align:center;
    padding:40px 20px;
}

h1{
    font-size:40px;
}

main{    
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width:500px;
    margin:auto;
    padding:20px;

    gap: 30px;
}

.card{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80%;


    background:#1f2937;
    padding:20px;
    border-radius:12px;
    margin-bottom:20px;
}

.card h2{
    margin-top:0;
}

input{
    width: 80%;
    padding:12px;
    margin-bottom:10px;
    border:none;
    border-radius:8px;
}

button{
    width: 80%;
    padding:12px;
    border:none;
    border-radius:8px;
    background:#6366f1;
    color:white;
    font-size:16px;
    cursor:pointer;
}

button:hover{
    background:#4f46e5;
}

.player-list{    
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;

    list-style:none;
    padding:0;
}

.player-list li{
    padding:10px;
    background:#374151;
    border-radius:8px;
    margin-bottom:8px;
}

.start-button{
    background:#22c55e;
    font-weight:bold;
}

.start-button:hover{
    background:#16a34a;
}

/* Gestion des boutons dans les cartes des joueurs */
#word{
    font-size: 12px;
}

#remove{
    margin: 5px 0;
    padding: 0;
    width: 30%;
    border-radius: 0px;
    background-color: red;
    color: white;
}

/* Style des cartes des utilisateurs */
.card-player {
    background: #1f2937;
    color: white;
    border-radius: 8px;
    padding: 5px 10px;
    margin-bottom: 5px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-player:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

.card-player .word {
    display: none; /* le mot est caché par défaut */
    margin-left: 10px;
    font-weight: bold;
    color: #facc15; /* jaune pour le mot */
}

.card-word{
    display: none;
    border-radius: 10px;
}

/* ========================= */
/* Responsive Mobile */
/* ========================= */

@media (max-width: 600px){

    header{
        padding:25px 15px;
    }

    h1{
        font-size:28px;
    }

    main{
        max-width:100%;
        padding:15px;
        gap:20px;
        overflow: hidden;
    }

    .card{
        width:100%;
        padding:15px;
    }

    input{
        width:100%;
        font-size:16px;
    }

    button{
        width:100%;
        font-size:16px;
        padding:14px;
    }

    .player-list{
        flex-direction:column;
        align-items:center;
        width:100%;
    }

    .player-list li{
        width:100%;
        text-align:center;
    }

    .card-player{
        width:100%;
        padding:15px;
    }

    input{
    font-size:16px;
}

}