#toast {
    visibility: hidden;
    width: 250px;
    max-width: 250px;
    position: fixed;
    left: 0;
    top: 0px;
    z-index: 5;
    border-radius: 4px;
    cursor: pointer;
}

#toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s ease-in;
    animation: fadein 0.5s ease-in;
}

#toast.hide {
    -webkit-animation: fadeout 0.5s ease-out;
    animation: fadeout 0.5s ease-out;
}

/* Animations to fade the toast in and out */
@-webkit-keyframes fadein {
    from {left: -300px; opacity: 0;}
    to {left: 0; opacity: 1;}
}

@keyframes fadein {
    from {left: -300px; opacity: 0;}
    to {left: 0; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {left: 0; opacity: 1;}
    to {left: -300px; opacity: 0;}
}

@keyframes fadeout {
    from {left: 0; opacity: 1;}
    to {left: -300px; opacity: 0;}
}
