.popup.modal {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.popup.modal .modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 0;
    padding: 0;
    width: 80%;
    border: 1px solid #888;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.popup.modal.full .modal-content{
    width: 98%;
    height: 98%;
}

.popup.modal .modal-header {
    padding: 2px 16px;
}

.popup.modal label {
    width: 100%;
    height: 30px;
    padding: 2px 5px;
    display: flex !important;
    justify-content: end;
    cursor: pointer;
    transition: 0.3s ease;
}

.popup.modal label:hover > i {
    -webkit-animation: anim-chiudipopup 0.3s forwards;
    animation: anim-chiudipopup 0.3s forwards;
}

.popup.modal label i{
    font-size: 1.8em;
}

.popup.modal .modal-body {padding: 10px 16px;}

.popup.modal .modal-footer {
  padding: 2px 16px;
}

.popup.modal.show-modal {
    opacity: 1;
    visibility: visible;
    transition: visibility 0s linear 0s, opacity 0.25s 0s;
}

@keyframes anim-chiudipopup {
    60% {
        -webkit-transform: scale3d(0.8, 0.8, 1);
        transform: scale3d(0.8, 0.8, 1);
    }
    85% {
        -webkit-transform: scale3d(1.1, 1.1, 1);
        transform: scale3d(1.1, 1.1, 1);
    }
    100% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}