@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(135deg, #1f4037, #99f2c8);
    color: #ffffff;
    text-align: center;
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
header {
    padding: 20px;
    background-color: #222831;
    color: #f9ed69;
    font-size: 2rem;
    text-transform: uppercase;
}
main {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-grow: 1;
    padding: 20px;
    flex-wrap: wrap;
}
#joueur1, #joueur2 {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 20px;
    width: 280px;
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.7);
    transition: transform 0.3s ease-in-out;
}
#joueur1:hover, #joueur2:hover {
    transform: scale(1.1);
}
#nomjoueur1, #nomjoueur2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #f9ed69;
}
#imagej1, #imagej2 {
    margin: 20px 0;
}
#imagej1 img, #imagej2 img {
    border-radius: 50%;
    border: 4px solid #f9ed69;
    width: 150px;
    height: 150px;
}
#classej1, #classej2 {
    margin-bottom: 15px;
    font-style: italic;
    color: #ffcc29;
    /* font-size: 1.2rem; */
}
.vie {
    width: 100%;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 10px;
    margin-bottom: 15px;
}
.vie::-webkit-progress-bar {
    background-color: #222831;
    border-radius: 10px;
}
.vie::-webkit-progress-value {
    background: linear-gradient(90deg, #ff0000, #00ff00);
    border-radius: 10px;
}
.attack, .heal , .special-attack{
    background: #f9ed69;
    color: #222831;
    padding: 12px 20px;
    border: none;
    margin: 10px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.attack:hover, .heal:hover {
    background: #ffc93c;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
#vs {
    font-size: 3rem;
    color: #ff2e63;
    transform: rotate(-10deg);
    margin: 20px;
}
.special-attack {
    border-radius: 10px;
    background-color: #e74c3c; /* Couleur différente pour les attaques spéciales */
    border: none;
    padding: 10px;
    margin: 10px;
/*     font-size: 20px; */
    cursor: pointer;
    transition: 0.3s;
}
        
.special-attack:hover {
    background-color: #ffffff; /* Couleur plus sombre lorsqu'on survole le bouton */
    color: black;
}
/* Désactiver les boutons */

.special-attack.disabled {
    filter: grayscale(100%);
    cursor: not-allowed;
    opacity: 0.5;
}
.heal.disabled {
    filter: grayscale(100%);
    cursor: not-allowed;
    opacity: 0.5;
}

footer {
    padding: 20px;
    background-color: #222831;
    color: #f9ed69;
    width: 100%;
    text-align: center;
}
