@import url('https://fonts.googleapis.com/css?family=Roboto');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

toaster {
    top: 0;
    width: 100%;
    z-index: 1;
    display: flex;
    position: absolute;
    font-size: 14px;
    align-items: center;
    font-family: 'Roboto';
    flex-direction: column;
}

toast {
    color: white;
    margin: 20px 20px 0;
    padding: 14px;
    display: flex;
    max-width: 400px;
    min-width: 220px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    align-items: center;
    border-radius: 4px;
    background-color: black;
    transition-property: transform, opacity, height, background;
    transition-duration: 0.5s;
    transition-timing-function: ease;
}

toast,
toast * {
    user-select: none;
    pointer-events: none;
}

/* Show/hide animations */

toast:not(.show) {
    transform: translateY(-40px);
    opacity: 0;
}

toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Background colors */

toast.info,
toast.progress
 {
    background-color: #607D8B;
}

toast.success {
    background-color: #4CAF50;
}

toast.error {
    background-color: #F44336;
}

/* Icons */

toast::before {
    width: 24px;
    height: 24px;
    display: flex;
    font-size: 22px;
    font-family: 'Material Icons';
    align-items: center;
    margin-right: 8px;
    justify-content: center;
}

@-moz-keyframes spin {
    100% { -moz-transform: rotate(360deg); }
}

@-webkit-keyframes spin {
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); }
}


toast.progress::before {
    content: "settings_backup_restore";
    animation: spin 1s linear infinite;
    animation-direction: reverse;
}

toast.info::before {
    content: "info_outline";
}

toast.success::before {
    content: "done";
}

toast.error::before {
    content: "error_outline";
}