html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    background-color: rgb(14, 8, 37);
    font-family: "Kalam", cursive;
}


header {
    background: linear-gradient(135deg, rgba(40, 40, 41, 0) 0%, rgb(48,44,88) 50%);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}


.header-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}


.header-logo img {
    width: 80px;
}


.header-logo h1 {
    color: hsla(0, 0%, 100%, 0.8);;
}


#searchPokemon {
    background-color: hsla(0, 0%, 100%, 0.1);
    color: hsla(0, 0%, 100%, 0.8);
    font-size: 16px;
    padding: 10px;
    font-weight: bold;
    border-radius: 20px;
}


#searchPokemon:focus {
    outline: none;
}


main {
    display: flex;
    flex-direction: column;
    align-items: center;
}


#content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 64px 32px;
    margin: 32px;
}


.pokemon-card {
    background: linear-gradient(135deg, rgba(28, 11, 105, 0) 0%, rgb(52, 40, 95) 35%, rgb(74, 109, 129) 100%);
    color: hsla(0, 0%, 100%, 0.8);
    width: 250px;
    height: 270px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    border-radius: 40px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0.8;
    cursor: pointer;
}


.pokemon-card:hover {
    height: 300px;
    transition: 0.3s ease-in-out;
    margin: -15px 0;
    opacity: 1;
}


.pokemon-card:hover .single-type {
    visibility: visible;
    margin: 0;
    opacity: 1;
    animation: fadeIn 0.5s forwards;
}


@keyframes fadeIn {
    0% {
        visibility: hidden;
        opacity: 0;
    }

    50% {
        visibility: hidden;
        opacity: 0.5;
    }

    100% {
        visibility: visible;
        opacity: 1;
    }
}


.pokemon-card img {
    width: 200px;
}


.pokemon-card b {
    font-size: 26px;
}


.pokemon-types {
    display: flex;
    gap: 64px;
}


.single-type {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid hsla(0, 0%, 100%, 0.8);
    padding: 8px;
    border-radius: 20px;
    margin: 8px 0;
    visibility: hidden;
    transition: 0.15s ease-in-out;
}


#statsContainer {
    display: none;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}


.stats-container {
    background: linear-gradient(135deg, rgba(28, 11, 105, 0) 0%, rgb(52, 40, 95) 35%, rgb(74, 109, 129) 100%);
    color: hsla(0, 0%, 100%, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 400px;
    height: 70vh;
    flex-shrink: 1;
    margin: 32px;
    border-radius: 40px;
    animation: grow 1s;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}


.stats-container h1 {
    font-size: 32px;
    cursor: pointer;
    z-index: 1000;
}


.stats-container h1:hover {
    animation: hover 0.5s;
}


@keyframes hover {
    0% {
        transform: translateY(0);
    }

    33% {
        transform: translateY(10px);
    }

    66% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}


.stats-container-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    padding-bottom: 32px;
    width: 80%;
}


@keyframes grow {
    0% {
        height: 0;
        width: 0;
        opacity: 0;
    }

    50% {
        width: 200px;
        height: 35vh;
        opacity: 0.5;
        transform: rotate(45deg);
    }

    65% {
        transform: rotate(-45deg);
    }

    75% {
        transform: rotate(45deg);
    }

    80% {
        transform: rotate(360deg);
    }

    100% {
        width: 400px;
        height: 70vh;
        opacity: 1;
    }
}


.stats-container b {
    font-size: 26px;
}


.stats-container img {
    width: 222px;
    position: relative;
    top: -14px;
}


.all-stats {
    width: 80%;
    display: flex;
    align-items: center;
    flex-direction: column;
}


.stat-item {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
}


.progress {
    width: 80%;
}


.progress-bar {
    border-radius: 10px 10px 10px 10px;
    animation: progressAnimationStrike 3s;
}


@keyframes progressAnimationStrike {
    from {
        width: 0
    }

    to {
        max-width: 100%
    }
}


#loadMorePokemon {
    width: 20vw;
    height: 48px;
    margin: 32px 0;
    cursor: pointer;
    background: linear-gradient(135deg, rgb(52, 40, 95) 35%, rgb(74, 109, 129) 100%);
    color: hsla(0, 0%, 100%, 0.8);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 28px;
    font-size: 32px;
}


#loadMorePokemon:hover {
    background: linear-gradient(135deg, rgb(52, 40, 95) 5%, rgb(74, 109, 129) 100%);
    width: 23vw;
    transition: 0.3s ease-in-out;
}


@media (max-width: 900px) {
    #loadMorePokemon {
        width: 23vw;
        font-size: 24px;
    }
}

@media (max-width: 650px) {
    #loadMorePokemon {
        width: 23vw;
        font-size: 16px;
    }
}


@media (max-width: 650px) {
    .stats-container-content {
        width: 80%;
        height: 80%;
        transform: translateY(-30px);
        font-size: 10px;
    }

    .stats-container img {
        width: 150px;
        height: 500px;
    }
}


@media (max-width: 550px) {
    .header-logo h1 {
        display: none;
    }
}


@media (max-width: 400px) {
    .header-logo {
        display: none;
    }
    
    #searchPokemon {
        margin: 28px 0;
    }

    header {
        justify-content: center;
    }
}