/* Styles généraux pour le corps de la page */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: #fff;
    background-image: url('../img/decors-jeu-combat-119.gif');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 100vh;
    width: 100%;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Section pour la page d'accueil */
.home-body {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.home h1 {
    font-size: 4rem;
    text-align: center;
    color: #fff;
    margin-top: 80px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 4px;
    font-weight: bold;
}

/* Section pour créer un héros */
.create-hero-section {
    margin: 50px auto;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    width: 50%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 69, 0, 0.8);
}

.create-hero-section h2 {
    font-size: 2.5rem;
    color: #ff4500;
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(255, 69, 0, 0.8);
}

.create-hero-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.create-hero-form label {
    font-size: 1.2rem;
    color: #ffa500;
    text-shadow: 1px 1px 4px rgba(255, 165, 0, 0.8);
}

.create-hero-form input {
    padding: 15px;
    font-size: 1.2rem;
    border: 2px solid rgba(255, 69, 0, 0.8);
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.create-hero-form input:focus {
    border-color: #ff6347;
    outline: none;
    box-shadow: 0 0 12px rgba(255, 69, 0, 0.8);
}

.create-button {
    background-color: #ff4500;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.create-button:hover {
    background-color: #e63900;
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(255, 69, 0, 0.8);
}

.create-button:active {
    background-color: #c71f00;
    transform: translateY(0);
}

/* Section avant le combat */
.before-fight-body {
    background-image: url('../img/arene_battle.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.before-fight h1 {
    font-size: 3.5rem;
    text-align: center;
    color: #fff;
    margin-top: 50px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.beforeFight {
    display: flex;
    justify-content: space-between;
}

.fight-button {
    display: block;
    width: 60%;
    margin: 40px auto;
    padding: 15px;
    font-size: 1.5rem;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.fight-button:hover {
    background-color: #218838;
    transform: translateY(-3px);
}

.fight-button:active {
    background-color: #1e7e34;
    transform: translateY(0);
}

/* Style de la confrontation (vs) */
.realfight {
    color: #ff5722;
    font-size: xx-large;
    font-weight: bolder;
}

.fight {
    display: flex;
    justify-content: space-between;
}

/* Section d'actions après le combat */
.actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.actions a {
    background-color: #ff0000;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.5rem;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.actions a:hover {
    background-color: #cf2929;
    transform: translateY(-3px);
}

.actions a:active {
    background-color: #cf2929;
    transform: translateY(0);
}

.hidden{
    display: none;
}

/* Mise en page responsive pour mobile */
@media (max-width: 768px) {

    body {
        background-image: url('../img/decors-jeu-combat-119.gif');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }
    .create-hero-section {
        width: 50%;
        padding: 10px;
        display: flex;
        flex-direction: column;
    }

    .home h1 {
        font-size: 2.5rem;
    }

    .create-hero-form input {
        font-size: 1rem;
    }

    .create-button {
        font-size: 1.2rem;
    }

    .before-fight h1 {
        font-size: 2rem;
    }

    .hero-card {
        width: 80%;
        padding: 20px;
    }

    .hero-stats p {
        font-size: 1rem;
    }

    .fight-button {
        width: 80%;
        font-size: 1.2rem;
    }

    .realfight {
        font-size: 1.8rem;
        text-align: center;
    }

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

    .actions a {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
}