@keyframes toast-show {
    from {
        top: calc(50% + 200px);
        opacity: 0;
    }

    to {
        top: calc(50% - 20px);
        opacity: 1;
    }
}

@-moz-keyframes toast-show {
    from {
        top: calc(50% + 200px);
        opacity: 0;
    }

    to {
        top: calc(50% - 20px);
        opacity: 1;
    }
}

@-webkit-keyframes toast-show {
    from {
        top: calc(50% + 200px);
        opacity: 0;
    }

    to {
        top: calc(50% - 20px);
        opacity: 1;
    }
}

@-o-keyframes toast-show {
    from {
        top: calc(50% + 200px);
        opacity: 0;
    }

    to {
        top: calc(50% - 20px);
        opacity: 1;
    }
}

@keyframes toast-hide {
    from {
        top: calc(50% - 20px);
        opacity: 1;
    }

    to {
        top: calc(50% + 200px);
        opacity: 0;
    }
}

@-moz-keyframes toast-hide {
    from {
        top: calc(50% - 20px);
        opacity: 1;
    }

    to {
        top: calc(50% + 200px);
        opacity: 0;
    }
}

@-webkit-keyframes toast-hide {
    from {
        top: calc(50% - 20px);
        opacity: 1;
    }

    to {
        top: calc(50% + 200px);
        opacity: 0;
    }
}

@-o-keyframes toast-hide {
    from {
        top: calc(50% - 20px);
        opacity: 1;
    }

    to {
        top: calc(50% + 200px);
        opacity: 0;
    }
}

#toast {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: 100;
    text-align: center;
    pointer-events: none;
}

#toast .msg {
    text-align: center;
    height: 40px;
    line-height: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: inline-block;
    padding: 0px 15px;
    border-radius: 5px;
    position: relative;
    top: -100px;
}

#toast .msg-show {
    /*animation: toast-show 0.5s forwards;*/
    opacity: 1;
    top: 50%;
}

#toast .msg-hide {
    /*animation: toast-hide 0.5s forwards;*/
    opacity: 0;
    top: -100px;
}