.map-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    width: 100%;
    height: 100%;
    gap: 0;
}

.grid-cell {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background-color: #333333;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
    box-sizing: border-box;
    line-height: 0;
}

.grid-cell img {
    filter: drop-shadow(0 0 5px rgb(255, 255, 255));
}

.grid-cell:hover {
    transform: scale(1.04); /* Apply zoom effect on mouse hover */
}

.enemy-level {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
}

.enemy-avatar {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.event-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    filter: drop-shadow(0 0 5px white);
}

.player-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.enemy-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 10px;
}

.enemy-item {
    text-align: center;
    margin: 10px;
    width: 80px;
}

.enemy-item .enemy-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #c8aa6e;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    position: static;  /* Anula la posición absoluta */
}

.enemy-name {
    margin-top: 5px;
    font-size: 12px;
    text-align: center;
}

#cell-info {
    position: absolute;
    top: 0;
    width: 100%;
    height: 90px;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 1000;
    padding: 10px;
}

.cell-info-content {
    display: flex;
    flex-direction: column;
}

.cell-info-name {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.cell-info-name .map-enemy-level {
    font-size: 0.8rem;
}

.cell-info-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cell-info-enemies {
    display: flex;
    gap: 5px;
}

.cell-info-enemies img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #c8aa6e;
}

.action-button {
    background-color: #1e2328;
    color: hsl(44, 5%, 45%);
    border: 2px solid #c8aa6e;
    padding: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    text-decoration: none;
}

.action-button:hover {
    background-color: #cdbe91;
    color: #1e2328;
}

.map-grid {
    cursor: grab;
    user-select: none;
}

.map-grid:active {
    cursor: grabbing;
}

.map-cell {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.navigation-controls {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.navigation-controls button {
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
}

#map-container {
    display: grid;
    grid-template-columns: repeat(20, 30px);
    grid-gap: 1px;
}

.map-cell {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    cursor: pointer;
}

.current-position {
    background-color: yellow !important;
}

.enemies-list {
    list-style-type: none;
    padding: 0;
}

.enemy-item {
    display: inline-block;
    margin-right: 10px;
}

.enemy-item img {
    width: 32px;
    height: 32px;
}

/* Agrega más clases para los diferentes tipos de terreno */
.terrain-1 { background-color: #7CFC00; } /* Grass */
.terrain-2 { background-color: #8B4513; } /* Forest */
.terrain-3 { background-color: #A0522D; } /* Mountain */
/* ... Agrega más según sea necesario ... */

.stat-bar {
    width: 100%;
    height: 8px; /* Ajusta esto al alto actual de tus barras */
    background-color: white;
    position: relative;
    border-radius: 5px; /* Ajusta este valor al border-radius actual de tus barras */
    overflow: hidden; /* Esto asegura que la barra interna no sobresalga */
}

.health-bar, .energy-bar {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 5px; /* Mismo valor que el contenedor */
}

.health-bar {
    background-color: #ff0000; /* O el color que estés usando para la salud */
}

.energy-bar {
    background-color: #0000ff; /* O el color que estés usando para la energía */
}