/* ---------------------POP UP CARD-------------------------- */

.popup_card_wrapper {
    background-color: rgba(255, 255, 255, 0.432);
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    backdrop-filter: blur(10px);
}

.pop_up_card_container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.pokemon_popup_card_bg_glow {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    height: 600px;
    width: 330px;
    filter: blur(20px);
    z-index: -1;
    opacity: 1;
}



.popup_card_upper {
    backdrop-filter: blur(10px);
    position: relative;
    height: 300px;
    width: 300px;
    border-radius: 50%;
    font-family: sans-serif;
    box-sizing: border-box;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popup_card_lower {
    position: relative;
    margin-top: -10rem;
    background-color: #0000004e;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 0;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* ---------------------PROGRESS DIVIDER-------------------------- */

.popup_type_progress_divider {
    width: 85%;
    height: 170px;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

/* ---------------------BUTTONS-------------------------- */

.popup_button_wrapper {
    position: absolute;
    width: 250px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    z-index: 999999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -90%);
}

.popup_button {
    padding: 0;
    font-size: 2rem;
    color: rgba(223, 223, 223, 0.725);
    font-weight: 100;
    line-height: 1;
}

.popup_button:hover {
    cursor: pointer;
    color: white;
}

/* ---------------------IMAGE-------------------------- */

.popup_image_wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -115%);
    height: 200px;
    width: 200px;
    z-index: 99;
    transform: translate(-50%, -120%) scale(0.95);
    transition: transform 0.4s ease-out;
    animation: floatUpDown 2s ease-in-out infinite;
}

@keyframes floatUpDown {
    0% {
        transform: translate(-50%, -110%);
    }

    50% {
        transform: translate(-50%, -115%);
    }

    100% {
        transform: translate(-50%, -110%);
    }
}

.popup_glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 150px;
    width: 150px;
    background: rgba(255, 255, 255, 0.445);
    border-radius: 50%;
    filter: blur(30px);
    z-index: -1;
}

.popup_image_wrapper img {
    width: 100%;
}

.pokemon_popup_card_bg_image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 300px;
    width: auto;
    z-index: 1;
    transition: transform 0.5s ease;
    transform-origin: center center;
    opacity: 0.1;
    pointer-events: none;
    transition: transform 0.5s ease-out;
}

.pokemon_popup_card_bg_image.open {
    transform: translate(-50%, -50%) rotate(720deg);
}

/* ---------------------TEXT-------------------------- */

.popup_upper_text {
    position: relative;
    height: 300px;
    width: 300px;
    border-radius: 50%;
    font-family: sans-serif;
    box-sizing: border-box;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.popup_upper_text_h2 {
    color: #ffffff75;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, 65%);
    text-align: left;
    font-size: 4.5rem;
    font-weight: 900;
    opacity: 0.6;
}

.popup_upper_text_span {
    color: #ffffff;
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: 600;
}

.popup_lower_text {
    position: relative;
    z-index: 2;
    width: 85%;
    height: 4.2rem;
    overflow: auto;
}

.popup_lower_text p {
    font-size: 1rem;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
    white-space: pre-wrap;
}

/* ---------------------TEXT ID BG-------------------------- */

.popup_upper_text_02 {
    position: absolute;
    top: 6%;
    left: 60%;
    transform: translate(-50%, -50%);

    height: 300px;
    width: 300px;
    border-radius: 50%;
    font-family: sans-serif;
    box-sizing: border-box;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* overflow: hidden; */
}

.popup_upper_text_02_h2 {
    color: rgb(128, 128, 128);
    width: 100%;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 50%);

    text-align: left;
    font-size: 4.5rem;
    font-weight: 900;
    opacity: 0.6;
}

/* --------------------- TYPES AND ABILITIES -------------------------- */

.popup_type_container {
    background-color: #4caf50;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.popup_type_images_container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 200%);
    gap: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup_stats {
    background-color: rgba(255, 255, 255, 0.234);
    width: 85%;
    height: 85px;
    padding: 0.5rem;
    border-radius: 0.35rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: black;
    overflow-x: auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stats-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #333;
    font-weight: bold;
}

.abilities-wrapper {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.ability {
    border-radius: 0.25rem;
    background-color: #ffffff;
    padding: 3px 6px;
    font-size: 1rem;
    color: #555;
    text-transform: capitalize;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ---------------------PROGRESS -------------------------- */

.popup_progress_wrapper {
    width: 85%;
    display: flex;
    gap: 1rem;
    flex: 1;
    margin-bottom: 1rem;
}

.popup_progress_text_container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-weight: 400;
    font-size: 1rem;
}

.popup_progress_text_container p {
    color: white;
    margin: 0 0 0.4rem 0;
    line-height: 1;
}

.popup_progress_bar_wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.popup_progress_bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6px;
    background-color: white;
    height: 100%;
    font-size: 1rem;
    font-weight: bold;
    color: rgb(55, 55, 55);
    border-radius: 0.2rem 0 0 0.2rem;
    transition: width 0.6s ease-in-out;
}

.popup_progress_bar_container {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0.2rem;
    height: 16px;
    margin-bottom: 0.4rem;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.popup_progress_bar span {
    z-index: 2;
    font-weight: bold;
}

.stat_value {
    text-align: left;
}

.stat_max {
    color: #ffffff;
    text-align: right;
    margin-right: 0.2rem;
    opacity: 0.5;
    font-weight: normal;
    z-index: 999;
}