/* popup window */

/* Semi-tansparent backgorund layer for popup windows*/
.bg-modal {
    display: none;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.248);
    /* rgba(255, 0, 0, 0.381);*/
    position: fixed;
    z-index: 500;
    top: 0;
    align-items: center;
    justify-content: center;

}

.show {
    display: flex;
}

.block-from-scrolling {
    overflow: hidden;
    height: 100%;
}

/* popup block definitions */

.popup-window {
    height: fit-content;
    background: white;
    margin-left: auto;
    margin-right: auto;
    width: 46rem;
    text-align: justify;
    overflow-y: auto;
    overflow-x: hidden;
}


/* fixed content formatting */
.width-of-window {
    padding-top: 2rem;
    position: fixed;
    width: 44rem;
    display: flex;
    justify-content: flex-end;
    padding-right: 2rem;
    z-index: 100;
}

.close-popup-contents-button {
    background: white;
    border: none;
    width: 3rem;
    border-radius: 15px;
    height: 3rem;
}

.close-button-symbol {
    height: 2rem;
    margin-left: auto;
    margin-right: auto;
}

.close-button-symbol:hover {
    filter: invert(15%) sepia(90%) saturate(7466%) hue-rotate(12deg) brightness(106%) contrast(122%);
}

.popup-contents-title {
    font-size: 3rem;
}

/* scrollable content formatting */
.popup-contents {
    padding-top: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
}


@media screen and (max-width: 45rem) {

    /* Mobile */
    .popup-window {
        height: 100%;
    }


    .width-of-window {
        width: 100%;
    }

    .close-popup-contents-button {
        margin-right: 2rem;
    }




}

@media screen and (min-width: 45rem) {

    /* Desktop */
    .popup-window {
        border-radius: 15px;
        height: 75%;
    }

}