.snackbar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    text-align: center;
}

/* The snackbar - position it at the bottom and in the middle of the screen */
.snackbar {
    text-align: left; /* Reset text-align */
    background-color: #333; /* Black background color */
    color: #fff; /* White text color */
    border-radius: 4px; /* Rounded borders */
    padding: 10px 16px; /* Padding */
    margin: 0 auto; /* Center horizontally */
    width: fit-content;

    /* transition */
    transition: transform 500ms, opacity 500ms, box-shadow 500ms;
    transform: translateY(0);
    opacity: 0;
    box-shadow: none;

    display: flex;
    align-items: center;
}
@media only screen and (max-width: 767px) {
    .snackbar {
        max-width: 300px;
    }
}
@media only screen and (min-width: 768px) {
    .snackbar {
        max-width: 430px;
    }
}

.snackbar__icon {
    margin-right: 10px;
}

.snackbar--success .snackbar__icon {
    color: #14CC47;
}
.snackbar--error .snackbar__icon {
    color: #FC5D38;
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
.snackbar.show {
    transform: translateY(-62px);
    opacity: 1;
    box-shadow: 0 2px 8px 1px rgba(0,0,0,0.3);
}

.snackbar.show:hover {
    transform: translateY(-67px);
    box-shadow: 0 5px 10px 1px rgba(0,0,0,0.3);
}