﻿.notif {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    width: 320px;
    padding: 12px;
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    border-radius: 8px;
    box-shadow: 0px 0px 5px -3px #111;
    position: absolute;
    top: -100px;
    left: 50%;
    animation: bounce 0.6s forwards;
}

    .notif.show {
        display: flex;
    }

    .notif.hide {
        animation: bounceOut 0.4s forwards;
    }

.error {
    background: #EF665B;
}
.warning {
    background: #e19012;
}
.success {
    background: #5ebd47;
}

.notif__icon {
    margin-right: 8px;
}

    .notif__icon path {
        fill: #fff;
    }

.notif__title {
    font-weight: 500;
    font-size: 14px;
    color: #fff;
}

.notif__close {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-left: auto;
    display: flex;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
}

    .notif__close path {
        fill: #fff;
    }


.progress-bar {
    background-color: #fafafa00;
    height: 4px;
    width: 91%;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    position: absolute;
    bottom: 3px;
}

    .progress-bar span {
        display: block;
        float: right;
        height: 100%;
        background-color: #777;
        -moz-border-radius: 3px;
        -webkit-border-radius: 3px;
        border-radius: 3px;
        -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
        -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
        box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
    }


.blue span {
    background-color: #ffffff8f;
}

@keyframes bounce {
    0% {
        top: -100px;
    }

    70% {
        top: 30px;
    }

    100% {
        top: 15px;
    }
}

@keyframes bounceOut {
    0% {
        top: 15px;
    }

    30% {
        top: 30px;
    }

    100% {
        top: -100px;
    }
}

