:root {
    --color-info: #2C3DF4;
    --color-success: #2C3DF4;
    --color-warning: #F5E42C;
    --color-danger: #F5E42C;
    --color-notification: white;
}

.notify__open {
    overflow: hidden;
}

.notify__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(1, 1, 1, 0.8);
    opacity: 0;
    visibility: hidden;
    /*transition: opacity .8s ease*/
    cursor: pointer;
}

.notify__overlay.notify__visible {
    opacity: 1;
    visibility: visible;
}

.notify {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: 99999;
    display: none;
}

.notify.-open {
    display: block;
}

.notify__notification {
    --padding: 3rem 4rem 1rem 4rem;
    --color: var(--color-info);
    --bezier: cubic-bezier(.75, .21, .25, .78);
    position: relative;
    text-align: center;
    width: 30rem;
    background-color: var(--color-notification);
    box-shadow: 0px 10px 10px black;
    border-radius: 5px;
    /*transition: transform .5s ease .4s;*/
    transform-origin: 50% 0;
    transform: scaleY(0);
}

.notify__notification.-danger {
    --color: var(--color-danger);
}

.notify__notification.-info {
    --color: var(--color-info);
}

.notify__notification.-success {
    --color: var(--color-success);
}

.notify__notification.-warning {
    --color: var(--color-warning);
}

.notify__notification.-open {
    /*transition: all .5s ease;*/
    transform-origin: 50% 50%;
    transform: scale(1);
}

.notify__notification.-open::before {
    /*transition: all 0.4s var(--bezier) 0.4s;*/
    transform: scaleY(0);
}

.notify__notification.-open .notify__notification__button {
    color: #fff;
    /*transition: color .3s ease .8s, background-color .3s ease;*/
}

.notify__notification::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform-origin: 0 100%;
    /*transition: all 0.5s var(--bezier);*/
    background: var(--color);
    border-radius: 5px;
}

.notify__notification__content {
    box-sizing: border-box;
    padding: var(--padding);
    width: 100%;
    margin: 0 auto;
}

.notify__notification__icon {
    font-size: 5.2rem;
    color: var(--color);
    margin-bottom: 2rem;
    /*transition: color .3s ease;*/
}

.notify__notification__title, .notify__notification__text, .notify__notification__icon {
    margin-top: 0;
}

.notify__notification__title {
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.notify__notification__text {
    font-size: 1.4rem;
}

.notify__notification__button {
    background: var(--color);
    color: var(--color);
    width: 100%;
    border: none;
    padding: 1.4rem 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    /*transition: color .3s ease, background-color .3s ease;*/
    cursor: pointer;
    outline: none;
    position: relative;
    top: 1px;
    height: inherit;
    line-height: inherit;
    border-radius: 0 0 5px 5px;
    margin-bottom: 0;
}

.notify__notification__buttons .notify__notification__button:not(:only-child) {
    width: 50%;
}

.notify__notification__buttons .notify__notification__button:not(:only-child):first-child {
    border-bottom-right-radius: 0;
    background-color: white;
    color: var(--color-notification);
}

.notify__notification__buttons .notify__notification__button:not(:only-child):last-child {
    border-bottom-left-radius: 0;
}

.notify__notification.-danger .notify__notification__buttons .notify__notification__button:not(:only-child) {
    border-top: 1px solid var(--color-danger);
}

.notify__notification.-info .notify__notification__buttons .notify__notification__button:not(:only-child) {
    border-top: 1px solid var(--color-info);
}

.notify__notification.-success .notify__notification__buttons .notify__notification__button:not(:only-child) {
    border-top: 1px solid var(--color-success);
}

.notify__notification.-warning .notify__notification__buttons .notify__notification__button:not(:only-child) {
    border-top: 1px solid var(--color-warning);
}

.notify__notification.-danger .notify__notification__buttons .notify__notification__button:not(:only-child):first-child {
    color: var(--color-danger);
}

.notify__notification.-info .notify__notification__buttons .notify__notification__button:not(:only-child):first-child {
    color: var(--color-info);
}

.notify__notification.-success .notify__notification__buttons .notify__notification__button:not(:only-child):first-child {
    color: var(--color-success);
}

.notify__notification.-warning .notify__notification__buttons .notify__notification__button:not(:only-child):first-child {
    color: var(--color-warning);
}
