* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.game-container {
    width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: bold;
}

.pokemon-selection {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

@keyframes powerup {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.2);
        filter: brightness(1.5);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

@keyframes burst {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.pokemon-button {
    overflow: hidden;
    /* Para la barra de progreso */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 2px solid #3498db;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.pokemon-button:hover {
    transform: scale(1.1);
}

.pokemon-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pokemon-button img {
    width: 80px;
    height: 80px;
}

.game-field {
    width: 100%;
    height: 300px;
    /* Altura del mapa verde*/
    background: #90EE90;
    position: relative;
    border: 2px solid #2ecc71;
    border-radius: 10px;
    overflow: hidden;
}

/* .path {
    position: absolute;
    height: 60px;
    background: #b97a57;
    width: 100%;
    bottom: 150px;
} */

.base {
    width: 100px;
    height: 100px;
    background: url('src/img/Gym.webp') no-repeat;
    background-size: contain;
    position: absolute;
    right: 0px;
    bottom: 100px;
}

.path {
    position: absolute;
    height: 60px;
    background: #b97a57;
    width: 100%;
    bottom: 116px;
}

.defender {
    position: absolute;
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
    /* border: 2px solid #00ff00; Borde verde para los defensores */
}

.enemy {
    position: absolute;
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
    /* border: 2px solid #ff0000; Borde rojo para los enemigos */
}

.projectile {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    z-index: 3;
    border: 1px solid #ffffff;
    /* Borde blanco para los proyectiles */
}

.projectile.fire {
    background: #ff4422;
    box-shadow: 0 0 10px #ff4422;
}

.projectile.water {
    background: #2299ff;
    box-shadow: 0 0 10px #2299ff;
}

.projectile.leaf {
    background: #22cc22;
    box-shadow: 0 0 10px #22cc22;
}

#pokemon-field {
    position: absolute;
    width: 100%;
    height: 100%;
}

.pokemon {
    position: absolute;
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
}

.game-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.game-controls button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
}

.game-controls button:hover {
    background: #45a049;
}

.game-controls button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.projectile.enemy-projectile {
    background: #b700ff;
    box-shadow: 0 0 10px #b700ff;
    border: 2px solid #d452ff;
}

.health-bar {
    border-radius: 2px;
    overflow: hidden;
    /* Para la barra de progreso */
}

.health-fill {
    border-radius: 2px;
}

@keyframes evolve {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.5);
        filter: brightness(2);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.defender {
    transition: all 0.3s ease;
}

/* Debug Inspector Styles */
#debug-inspector {
    animation: fadeIn 0.3s ease-in-out;
    font-family: 'Courier New', monospace;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#debug-inspector h3 {
    border-bottom: 1px solid #3498db;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

#debug-inspector details summary:hover {
    color: #3498db !important;
}

#debug-inspector pre {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 3px;
}

@keyframes snorlax-heal-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes feraligatr-wave {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 0;
    }
}

@keyframes typhlosion-fire {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

@keyframes meganium-heal-aura {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}