html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    margin: 0;
    padding: 0;
}

/* ======================================================================== */
.combat-container {
    display: flex;
    justify-content: center;
    align-items: end;
    height: 100vh;
    background-image: url('./uploads/img_site/map.jpeg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.battle-container {
    display: flex;
    align-items: center;
    gap: 50px;
    padding-bottom: 50px;
}

.tank-img {
    width: 500px;
    height: 300px;
}

.ennemi {
    transform: scaleX(-1);
    width: 500px;
    height: 300px;
}

.vs h2 {
    font-size: 5rem;
    font-weight: bold;
    color: rgb(255, 255, 255);
    display: flex;
    text-align: center;
    flex-direction: column;
}

.form-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 0px;
}

h1 {
    position: absolute;
    bottom: 75%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 5rem;
}

.form-container button {
    padding: 10px 10px;
    background-color: #f1c40f;
    border: none;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.5s ease;
}

.form-container button:hover {
    transform: scale(1.1);
    background-color: #f39c12;
}

.barre-de-vie {
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 8px;
    margin-top: 10px;
    overflow: hidden;
}

.barre {
    height: 110%;
    background-color: rgb(135, 15, 15);
    border-radius: 8px 0 0 8px;
}

h3 {
    color: white;
    font-weight: bold;
    font-size: 2rem;
    text-align: center;
    text-transform: uppercase;
}
.LogDialogue {
    font-size: 1.5rem;
    text-align: center;
    position: absolute;
    bottom: 70%;
    left: 50%;
    transform: translateX(-50%);
    background-color: black;
    color: white;
    padding: 5px;
    border-radius: 8px;
    font-weight: bold;
}
.Bot {
    bottom: 63%;
    left: 50%;
}
.error {
    color: red;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    position: absolute;
    bottom: 80%;
}
/* ============================= Style deco + WIN ===================================== */
.degatsbot {
    width: 200px;
    height: 200px;
    left: 75%;
    bottom: 14%;
    z-index: 2;
    position: absolute;
}

.degatsjoueur {
    width: 200px;
    height: 200px;
    bottom: 14%;
    left: 15%;
    z-index: 2;
    position: absolute;
}

.joueursoin {
    width: 50px;
    height: 50px;
    bottom: 14%;
    left: 15%;
    z-index: 2;
    position: absolute;
}

.botsoin {
    width: 50px;
    height: 50px;
    left: 75%;
    bottom: 14%;
    z-index: 2;
    position: absolute;
}

.win {
    background-color: rgba(0, 0, 0, 0.9);
    width: 100%;
    height: 100vh;
    position: absolute;
    z-index: 100;
    display: none;
    justify-content: center;
}

.win>h1 {
    color: white;
    font-size: 3rem;
    text-align: center;
    position: absolute;
    top: 30%;
    text-transform: uppercase;
}
.win>p {
    color: red;
    font-size: 3rem;
    text-align: center;
    position: absolute;
    top: 40%;
    font-weight: bold;
}
/* =========================== Style Back-Office ================================================= */
.section-backoffice {
    height: 100vh;
    background-image: url('./uploads/img_site/map.jpeg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;

}

.flipped-image {
    transform: scaleX(-1);
}

h2 {
    color: black;
    text-align: center;
    padding: 20px;
    text-transform: uppercase;
}

/* ============================================== */



input[type="text"],
input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 90%;
}

input[type="submit"] {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

input[type="submit"]:hover {
    transform: scale(1.1);
}

input[type="submit"][value="Supprimer"] {
    background-color: #dc3545;
}

input[type="submit"][value="Supprimer"]:hover {
    transform: scale(1.1);
}

table {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    border-collapse: collapse;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: white;
    overflow: hidden;
    border: 2px solid #007BFF;
}

thead {
    display: table;
    width: 100%;
    table-layout: fixed;
    background-color: #007BFF;
    color: white;
    font-weight: bold;
}

thead th {
    padding: 15px;
    text-transform: uppercase;
    border-bottom: 3px solid #0056b3;
}

tbody {
    display: block;
    max-height: calc(75vh - 50px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #007BFF #f9f9f9;
}

tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
    transition: all 0.3s;
}

tbody tr:hover {
    background-color: #f39c12;
}

td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.erroradmin {
    color: red;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    margin: 0;
    background-color: white;
}

.imglien {
    color: white;
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 1%;
    right: 2%;
    width: 80px;
    height: 80px;
    background-image: url(./uploads/img_site/iconeHome.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
}

.imglien:hover {
    transform: scale(1.1);
}