:root {
    --color-info: #34b5f0;
    --color-neutral: rgba(255,255,255,0);
    --color-success: #21b928;
    --color-warning: #f0a834;
    --color-danger: #ff3f3f;
    --color-notification: white;
    --color-dark: #131821;
    }

    .off {
        visibility: hidden;
        z-index: -5;
    }
    .on {
        z-index:9999;
        visibility:visible;
    }

    .alert-frame {
        position: fixed;
        top: 0px;
        left: 0px;
        width:100%;
        height:100%;
        background: rgba(0, 0, 0, 0.4);
        color: #333;
        font-family: "Open Sans", Helvetica, sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        transition: visibility 0s 0.3s, opacity 0.3s ease-in-out; 
 }

    .dialog-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index:9999;
    }
    /* .fadeOut {
        transition: visibility 0s 0.3s, opacity 0.3s linear;
    } */
    .notification {
    --padding: 1rem 1rem;
    *--color: var( --color-neutral );
    --bezier: cubic-bezier( .75,.21,.25,.78 );
    position: relative;
    text-align: center;
    max-width: 60rem; 
    background-color: var(--color-notification);
    box-shadow: 0px 10px 10px #666;
    border-radius: 5px;
    transition: transform 0.3s ease 0.4s;
    transform-origin: 50% 0%;
    transform: scaleY(0);
    }
    .notification.-danger {
    --color: var( --color-danger );
    }
    .notification.-info {
    --color: var( --color-info );
    }
    .notification.-success {
    --color: var( --color-success );
    }
    .notification.-warning {
    --color: var( --color-warning );
    }
    .notification.-open {
    transition: all 0.5s ease;
    transform-origin: 50% 50%;
    transform: scaleY(1);
    
    }
    .notification.-open::before {
    transition: all 0.4s var(--bezier) 0.4s ease-in-out;
    transform: scaleY(0);
    }
    .notification.-open .notification__button {
    color: #fff;
    transition: color 0.3s ease 0.8s, background-color 0.3s ease;
    }
    .notification::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform-origin: 0% 100%;
    transition: all 0.3s var(--bezier);
    background: var(--color);
    border-radius: 5px;
    }
    .notification__content {
    box-sizing: border-box;
    padding: var(--padding);
    width: 100%;
    margin: 0 auto;
    }

    .notification__icon {
    font-size: 2rem;
    color: var(--color);
    margin-bottom: 1.5rem;
    float:left;
    transition: color 0.3s ease;
    }
    
    .notification__title, .notification__text, .notification__icon {
    margin-top: 0;
    }
    .notification__title {
    font-weight: 600;
    vertical-align: middle;
    line-height: 2em;
    text-align: left;
    margin-left: 3rem;
    font-size: 0.9rem;
    }
    .notification__text {
    color: var(--color-dark);
    clear:left;
    padding: 0 3rem;
    font-family: Arial;
    font-size: 0.7rem;
    text-align: left;
    }
    .notification__button {
    background: var(--color);
    color: var(--color);
    width: 100%;
    border: none;
    padding: 0.5rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    outline: none;
    position: relative;
    top: 1px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    }
    @-webkit-keyframes fadeIn {
        0% {opacity: 0;}
        100% {opacity: 1;}
     }
     
     @keyframes fadeIn {
        0% {opacity: 0;}
        100% {opacity: 1;}
     }
    @-webkit-keyframes fadeOut {
        0% {opacity: 1;}
        100% {opacity: 0;}
     }
     
     @keyframes fadeOut {
        0% {opacity: 1;}
        100% {opacity: 0;}
     }
     .fadeIn {
        -webkit-animation-name: fadeIn;
        animation-name: fadeIn;
        -webkit-animation-duration: 0.2s;animation-duration: 0.2s;
        -webkit-animation-fill-mode: both;animation-fill-mode: both;
     }     
     .fadeOut {
        -webkit-animation-name: fadeOut;
        animation-name: fadeOut;
        -webkit-animation-duration: 0.2s;animation-duration: 0.2s;
        -webkit-animation-fill-mode: both;animation-fill-mode: both;
     }