body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    background-image: url("../images/bg6.webp");
    background-size: cover;
    /* L'image occupe toute la page sans déformation */
    background-repeat: no-repeat;
    /* Pas de répétition de l'image */
    background-position: center;
    /* Centre l'image */

}

header {
    padding: 20px;
    text-align: center;
    color: #000000;
}

main {
    display: flex;
    justify-content: center;

}

.hero-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;

}

.logo {
    width: 150px;
}


/* Section générale */
.character-selection,
.character-creation {
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;

}

.character-selection h2 {
    font-size: 28px;
    font-weight: bold;
    color: #000000;
}

/* Conteneur des cartes */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.create-hero-form div {
    margin-bottom: 1rem;
    font-size: 1.5rem;

}

.create-hero-form button {
    font-size: 1.5rem;
    cursor: pointer;

}

.create-hero-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* Style des cartes */
.character-card-form {
    display: flex;
    justify-content: center;
}

.create-hero-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;

}

.create-hero-form input,
.create-hero-form button {
    width: 100%;
    padding: 0.5rem;
    font-size: 1.2rem;
}
.avatar-dropdown {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-top: 10px;
}

#avatar-preview {
    margin-top: 15px;
    text-align: center;
}

#avatar-image-preview {
    min-width: 150px;
    min-height: 150px;
    max-width: 150px;
    max-height: 150px;
    border: 2px solid #ccc;
    border-radius: 8px;
    margin-top: 10px;
    display: block;
}

.character-card {
    background-color: #fdfdfd;
    border-radius: 15px;
    width: 280px;
    height: 450px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    overflow: hidden;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.character-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.character-card img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 15px;

}



.character-details {
    flex-grow: 1;
    /* S'ajuste en fonction de l'espace disponible */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.character-details h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #000000;
}

.character-stats {
    display: flex;
    justify-content: space-around;
    font-size: 16px;
    color: #000000;
    gap: 8px;
}









.monster {
    display: inline-block;
    margin-top: 50px;
}

.monster img {
    width: 200px;
    height: auto;
}


#fight {
    display: flex;
    flex-direction: column;
    text-align: center;
    border-radius: 15px;
    background-color: #ffffff34;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 1200px;
}

#fight-screen {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 30px;
}

article {
    background-color: #ffffff7a;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    width: 30%;
}


article img {
    max-width: 350px;
    height: auto;
    border-radius: 10px;
}

h2 {
    font-size: 1.8em;
    margin: 15px 0;
}

p {

    font-size: 1.3em;
    margin: 5px 0;
}

#attacks {
    text-align: center;
    margin-top: 20px;
}

#attacks button {
    background-color: #ff0000;
    border: none;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 10px;
    font-size: 1.2em;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

#attacks button:hover {
    background-color: #ca0202;
}

#attacks button:focus {
    outline: none;
}

#hero-health,
#monster-health {
    font-weight: bold;
}

#fight h2 {
    margin-top: 30px;
    font-size: 2em;
    text-transform: uppercase;
    color: #030000;
}

.hidden {
    display: none;
}

#combat-details {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #ccc;
    background-color: #f9f9f988;
    height: 200px;
    overflow-y: auto;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    color: #000000;
}

#endFight input {
    background-color: #ff0000;
    border: none;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 10px;
    font-size: 1.2em;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

#endFight input:hover {
    background-color: #ca0202;
}