
/*=======toast ======*/

#snackbar {
    visibility: hidden;
    width: 400px;
    margin-left: -200px;  
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 10003;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
}
#snackbar.succ {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
	background-color: #74b574;
}
#snackbar.info {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
	background-color: #57a9c1;
}
#snackbar.warn {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
	background-color: #f7a736;
}
#snackbar.error {
    visibility: visible;
    -webkit-animation: fadein2 0.5s;
    animation: fadein2 0.5s;
	background-color: #c85c57;
	bottom:40%;
}


@-webkit-keyframes fadein2 {
    from { opacity: 0;}
    to { opacity: 1;}
}

@keyframes fadein2 {
    from { opacity: 0;}
    to { opacity: 1;}
}


//====
@-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 fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}	