/**
 * Author: Jan Sedláček
 */


/* The toast - position it at the bottom of the screen */
#toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -150px; /* min-width / 2 - margin-right */
    margin-right: 25px;
    background-color: #333; /* doesn't matter */
    color: #ffffff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px;
    position: fixed;
    z-index: 1; /* Increase if needed */
    left: 75%;
    bottom: 30px;
    text-wrap: wrap;
}

/* Show the toast when clicking on a button (class added with JavaScript) */
#toast.show {
    visibility: visible;
    /* Show the toast */
    /* Add animation: Take 0.5 seconds to fade in and out the toast.
    However, delay the fade out process for 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the toast 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 fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}