.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    
    display: flex;
    justify-content: center;
    align-items: center;
}


.popup__background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(rgba(0 ,0, 0, 0.0), rgba(0 ,0, 0, 0.6));

    transform: scale(8);
    transition:  0.3s ease-out;
}


.popup_window {
    min-width: 300px;
    min-height: 100px;
    width: fit-content;
    height: fit-content;

    background-color: hsl(0 0% 14%);
    border-width: 4px;
    border-color: rgba(0 ,0, 0, 0.2);
    box-shadow: 0 0 300px 100px rgb(0, 0, 0, 0.7);
    transform: scale(0);
    transition: transform 0.3s;
}
.popup_window::backdrop {
    background: red;
}
.popup__header {
    width: 100%;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
    background-color: hsl(0 0% 26%);
    box-shadow: inset 0 0 20px rgb(0, 0, 0, 0.5);
}


.close_btn {
    top: 0;
    right: 0;
    padding: 20px 40px;
    
    background-color: darkred;
    box-shadow: inset 0 0 20px rgb(40, 0, 0);
    transition: background-color 0.2s;
}
.close_btn:hover {
    background-color: hsl(0, 100%, 14%);
}



.popup.active {
    visibility: visible;
}
.popup.active .popup_window {
    transform: scale(1);
}
.popup.active .popup__background {
    transform: scale(1);
}