﻿/* Toast */

.toast-container {
    visibility: hidden;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: black;
    color: white;
    padding: 15px;
    min-width: 250px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-radius: 5px;
    z-index: 900000000;
}

.toast-container > p {
    display: inline-block;
    line-height: unset !important;
}

.toast-container.success {
    background-color: #43a047;
}

.toast-container.danger {
    background-color: #f44336;
}


.toast-container.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s;
    animation: fadein 0.5s;
}

.toast-container.hide {
    visibility: visible;
    -webkit-animation: toastFadeout 0.5s;
    animation: toastFadeout 0.5s;
}

.toast-dismiss {
    margin-left: 20px;
}
/* W3school Rules!!! */
/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;} 
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes toastFadeout {
    from {bottom: 30px; opacity: 1;} 
    to {bottom: 0; opacity: 0;}
}

@keyframes toastFadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}
/* !Toast */