:root {
    --primary-color: #1f2328;
    --secondary-color: #36393F  ;
    --text-color: #F2F3F5;
    --button-color: #22A560;
    --input-color: #23272A;
    --card-accent-color: #2C6E49;
}

/* Redefinição de estilos padrão */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

html {
    height: 100%;
}

/* Corpo da página */
body {
    /* background-image: url("https://i.pinimg.com/originals/35/64/76/3564767abfcd563267964523de03f571.jpg"); */
    background-color: var(--primary-color);
    color: var(--text-color);
    height: 100%;
    width: 100%;
}

/* Container principal */
.container {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: 0 0;
    padding: 1.25rem;
    padding-bottom: 0rem;
    height: 96%;
    gap: 1rem;
}

footer {
    height: 4%;
    padding: 0 1.25rem;
    display: flex;
}

footer p {
    width: 100%;
    margin: auto 0;
    font-size: 0.8rem;
    text-align: right;
}

footer a {
    width: 5%;
    margin: auto 0;
    font-size: 0.8rem;
    text-align: left;
    text-decoration: none;
    color: var(--text-color);
}

footer a:hover {
    color: var(--button-color);
}


/* Conteúdo principal */
#main-content {
    max-width: 70%;
    flex: 1;
    justify-content: space-between;
    display: flex;
    flex-direction: column;
}

#background-section {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#action-buttons button {
    padding: 1rem 1.25rem;
    margin: 0 1rem;
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--button-color);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#action-buttons button:hover {
    background-color: #2ecc71;
}

#side-content {
    max-width: 30%;
    flex: 1;
    justify-content: space-between;
    display: flex;
    flex-direction: column;
}

.utility-card {
    height: 32%;
    text-align: center;
    display: flex;
    border-radius: 0.75rem;
    background-color: var(--secondary-color);
}

.utility-card p {
    margin: auto;
    font-size: 1.5rem;
    color: var(--primary-color);
}


/* Listas de inimigos e jogadores */
#enemy-list,
#player-list {
    display: flex;
    max-width: 100%;
    gap: 2rem;
    justify-content: space-around;
    align-items: center;
    overflow-x: auto;

    height: 40vh;
    padding: 20px;
    border-radius: 0.75rem;
    background-color: var(--secondary-color);
}

/* Estilos para os cards de criatura */
.creature-card {
    margin: 0 auto;
    display: flex;
    min-width: 12vw;
    min-height: 16vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem; /* Adiciona espaço entre os elementos do card */
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    background-color: var(--card-accent-color);
    position: relative; /* Para posicionar o botão de remover */
}

.creature-name {
    font-weight: bold;
    font-size: 1.1em;
}

.creature-hp {
    width: 80px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.creature-ac {
    width: 60px;
    text-align: center;
}

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #ED4245;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    padding: 0;
}

.remove-btn:hover {
    background-color: #cc000090;
}

/* Estilos dos Modals */
.modal {
    display: none; /* Escondido por padrão */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* Fundo preto semi-transparente */
}

.modal-content {
    background-color: var(--secondary-color);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    margin: 0 0 20px 0;
    color: var(--text-color);
}

.modal-content form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.modal-content label {
    margin-bottom: 5px;
    display: block;
}

.modal-content input,
.modal-content button {
    padding: 10px;
    margin-bottom: 10px;
    color: var(--text-color);
    border-radius: 5px;
}

.modal-content input {
    background-color: var(--input-color);
    border: none;
}

.modal-content input:focus {
    outline: none;
    box-shadow: 0 0 8px var(--button-color);
}

.modal-content button {
    background-color: var(--button-color);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-content button:hover {
    background-color: var(--input-color);
}


/* Estilos responsivos */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .main-content {
        flex: none;
    }

    .player-list, .enemy-list {
        max-width: 100%;
    }
}
