

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}


.bg-electric {
    background-color: #F8D030;
}

.bg-water {
    background-color: #6890F0;
}

.bg-fire {
    background-color: #F08030;
}

.bg-grass {
    background-color: #78C850;
}

.bg-poison {
    background-color: #A040A0;
}

.bg-ground {
    background-color: #E0C068;
}

.bg-rock {
    background-color: #B8A038;
}

.bg-steel {
    background-color: #B8B8D0;
}

.bg-dark {
    background-color: #735949;
}

.bg-fighting {
    background-color: #a55239;
}

.bg-psychic {
    background-color: #ff73a5;
}

.bg-bug {
    background-color: #a5b723;
}

.bg-normal {
    background-color: #ada594;
}

.bg-flying {
    background-color: #9cadf7;
}

.bg-ice {
    background-color: #5acee7;
}

.bg-ghost {
    background-color: #6363b5;
}

.bg-dragon {
    background-color: #7b63e7;
}

.bg-fairy {
    background-color: #e6a5e6;
}


.pokemon-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.pokemon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}


.type-badge {
    @apply inline-block px-3 py-1 rounded-full text-xs font-semibold text-white;
}


.stat-bar {
    @apply h-2 rounded-full;
    background: linear-gradient(90deg, #4F46E5, #06B6D4);
}


.pokemon-card-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: pulse 1.5s ease-in-out infinite;
}


#pokemonModal {
    transition: opacity 0.3s ease;
    opacity: 0;
}

#pokemonModal.active {
    opacity: 1;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #ff1c1c 50%, white 50%);
    border: 4px solid black;
    position: relative;
    overflow: hidden;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

.loading-spinner::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    background: white;
    border: 4px solid black;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    z-index: 60;
}

.modal-nav-btn.left {
    left: 12px;
}

.modal-nav-btn.right {
    right: 12px;
}

.modal-nav-btn svg {
    width: 20px;
    height: 20px;
    fill: #111;
}

.modal-nav-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

#pokemonModal .bg-white {
   
    max-height: 98vh;
}




.pokeball {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #ff1c1c 50%, white 50%);
    border: 0,5px solid black;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 3px black inset;
    animation: pokeball-pulse 2.5s infinite ease-in-out;
}

.pokeball::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    background: white;
    border: 2px solid black;
    border-radius: 50%;
    z-index: 2;
}

.pokeball:hover {
    animation: pokeball-spin 1s linear infinite;
}

.pokeball-large {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #ff1c1c 50%, white 50%);
    border: 6px solid rgba(0, 0, 0, 0.6);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    animation: pokeball-spin 1s linear infinite;
}

.page-loader {
    display: none;
}

.page-loader.flex {
    display: flex;
}

@keyframes pokeball-pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes pokeball-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}