@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    box-sizing: border-box;
    padding: 1rem;
    margin: 0;
    font-family: 'Press Start 2P', cursive;
    color: #0d1b2a;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    background-color: #f8f9fa;
}

h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.container {
    margin: auto;
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

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

label {
    font-size: 0.8rem;
    margin-top: 1rem;
    display: block;
    margin-bottom: 0.5rem;
}

select {
    font-family: 'Press Start 2P', cursive;
    padding: 0.5rem;
    width: 80%;
    text-align: center;
    border: 2px solid #2b2d42;
    border-radius: 5px;
    background: #edf2f4;
    cursor: pointer;
}

.radio-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.radio-group label {
    font-size: 0.7rem;
}

/* Boutons stylisés */
.button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #282c34;
    font-family: 'Press Start 2P', cursive;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background-color: #404652;
}


.button:disabled {
    background-color: #999;
    cursor: not-allowed;
}

.combat-result {
    margin-top: 1.5rem;
    background: #edf2f4;
    padding: 1rem;
    border-radius: 10px;
    height: 250px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.combat-message {
    color: #d90429;
    font-size: 0.8rem;
    margin-top: 1rem;
}

.combat-end {
    font-size: 1rem;
    color: #ef233c;
    margin-top: 1.5rem;
    font-weight: bold;
}



/* Titre */
h1 {
    font-family: 'Press Start 2P', cursive; /* Optionnel, à changer si non voulu */
    font-size: 22px;
    margin-bottom: 20px;
}

/* Tableau amélioré */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

th {
    background-color: #f4f4f4;
}


/* Alignement des boutons */
.play, .add {
    margin-top: 15px;
    margin-bottom: 15px;
}


/* Liens d'actions */
.actions {
    display: flex;
    gap: 5px; /* Ajoute un petit espace entre les boutons */
    justify-content: center;
}

.actions a {
    padding: 6px 12px; /* Ajuste l'espacement interne */
    font-size: 14px; /* Ajuste la taille du texte */
    text-align: center;
}

.edit-btn {
    background-color: #3498db;
    color: white;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
}

.edit-btn:hover {
    background-color: #2980b9;
}

.delete-btn:hover {
    background-color: #c0392b;
}

/* Bouton Ajouter */
.add-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    font-size: 16px;
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.add-btn:hover {
    background-color: #219150;
}

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