﻿.snackbar-container {
    display: flex;
    flex-direction: column;
    width: 500px;
    height: 77px;
    border-radius: 5px;
    box-shadow: 0px 8px 16px 0px #0000001A;
    margin-bottom: 15px;
}

.snackbar-items {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: normal;
    align-items: center;
    align-content: normal;
    height: 72px;
    color: #FFFFFF;
    font-size: 16px;
}

.item:nth-of-type(1) {
    margin-left: 10px;
    width: 10%;
}

.item:nth-of-type(2) {
    width: 80%;
}

.item:nth-of-type(3) {
    width: 10%;
    margin-right: 10px;
}

.snackbar-message {
    width: 70%;
}

.snackbar-button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background-color: #FFFFFF;
}

.snackbar-success {
    background: #3EC18E;
}

    .snackbar-success .progress-bar {
        background-color: #82E7BF;
    }

.snackbar-error {
    background: #FC5E5E;
}

    .snackbar-error .progress-bar {
        background-color: #FFC2C2;
    }

.snackbar-info {
    background: #76B5F4;
}

    .snackbar-info .progress-bar {
        background-color: #B0D6FC;
    }

.snackbar-warning {
    background: #F8B300;
}

    .snackbar-warning .progress-bar {
        background-color: #FCE4A6;
    }

.close-button-img {
    width: 24px;
    height: 24px;
}

.progress-bar {
    width: 100%;
    height: 5px;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #FFFFFF;
    width: 100%;
    animation-name: shrink;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes shrink {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.snackbar-container:hover .progress-bar-fill {
    animation-play-state: paused;
}
