.popup_container {
    display: none; /* Hidden by default */
    justify-content: center;
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    overflow: auto;
    
    transition: opacity 0.25s;
}

.popup-content {
    /* position: relative; */
    position: absolute;
    margin: none;
    padding: 0px;
    border: none;
    max-width: 1400px;
    min-width: 1128px;
    width: 100%;
    z-index: 0;
}

.popup_bg {
    display: flex;
    flex-wrap: wrap;
    position: absolute;
    align-content: flex-start;
    flex-direction: column;
    overflow: hidden;
}

.popup-transition {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    flex-wrap: wrap;
    position: absolute;
    align-content: flex-start;
}

.popup_pixel {
    aspect-ratio: 1/1;
    box-sizing: border-box;
    background: var(--bg);
    margin: 0;
    opacity: 1;
    z-index: 5;
    transform-origin: center;
    scale: 0;
    outline: 1px solid var(--bg);
}

@keyframes popupPixelLoop {
    0% {
        scale: 0;
    }

    100% {
        scale: 1;
    }
}

@keyframes popupPixelLoopBack {
    0% {
        scale: 1;
    }

    100% {
        scale: 0;
    }
}

@keyframes popupOpacityLoop {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.dummy_popup {
    display: none;
}   

.popup-close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.popup-close:hover,
.popup-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.x_btn {
    width: 40px;
    height: 40px;
    border: solid 1px var(--white);
    background-repeat: no-repeat;
    background-size: 32px;
    background-position: center;
    background-color: var(--bg);

    position: fixed;
    top: 24px;
    right: 41px;
    z-index: 3;
    opacity: 0;
    cursor: pointer;

    background-image: url("../assets/px_icon_x.svg");
}
