/** @define notification */

.notification {
    position: fixed;
    list-style: none;
    margin: 0;
    padding: 0;
    left: 50%;
    transform: translate(-50%);
    text-align: center;
    min-width: 250px;
    z-index: 99;

    &__item {
        background: #fdf3bf;
        opacity: 0;
        animation: added 0.5s linear forwards;
        font-size: 13px;
        box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.4);
        padding: 8px 20px;
        margin-top: 2px;

        &--remove {
            animation: removed 0.5s linear forwards;
        }
    }
}

@keyframes added {
    from {
        opacity: 0;
        transform: translateY(-400px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes removed {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-400px);
    }
}
