﻿/* The snackbar - position it at the bottom and in the middle of the screen */
#success {
    visibility: hidden; /* Hidden by default. Visible on click */
    width: fit-content; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: #59bd47; /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 1249; /* Add a z-index if needed */
    right: 6%; /* Center the snackbar */
    top: 70px; /* 30px from the bottom */
}

    /* Show the snackbar when clicking on a button (class added with JavaScript) */
    #success.show {
        visibility: visible; /* Show the snackbar */
        /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  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;
    }

/* The snackbar - position it at the bottom and in the middle of the screen */
#info {
    visibility: hidden; /* Hidden by default. Visible on click */
    width: fit-content; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: #44c3ff; /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 1249; /* Add a z-index if needed */
    right: 6%; /* Center the snackbar */
    top: 70px; /* 30px from the bottom */
}

    /* Show the snackbar when clicking on a button (class added with JavaScript) */
    #info.show {
        visibility: visible; /* Show the snackbar */
        /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  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;
    }

/* The snackbar - position it at the bottom and in the middle of the screen */
#danger {
    visibility: hidden; /* Hidden by default. Visible on click */
    width: fit-content; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: #e55757; /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 1249; /* Add a z-index if needed */
    right: 6%; /* Center the snackbar */
    top: 70px; /* 30px from the bottom */
}

    /* Show the snackbar when clicking on a button (class added with JavaScript) */
    #danger.show {
        visibility: visible; /* Show the snackbar */
        /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  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;
    }


/* The snackbar - position it at the bottom and in the middle of the screen */
#warning {
    visibility: hidden; /* Hidden by default. Visible on click */
    width: fit-content; /* Set a default minimum width */
    /* Divide value of min-width by 2 */
    background-color: #f5bb37; /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 1249; /* Add a z-index if needed */
    right: 6%; /* Center the snackbar */
    top: 70px; /* 30px from the bottom */
}

    /* Show the snackbar when clicking on a button (class added with JavaScript) */
    #warning.show {
        visibility: visible; /* Show the snackbar */
        /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  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;
    }

#isHoliday {
    background-color: #e55757; /* Black background color */
    color: #fff; /* White text color */
    width: fit-content;
    visibility: hidden; /* Hidden by default. Visible on click */
    width: fit-content; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 1249; /* Add a z-index if needed */
    right: 5%;
    top: 165px;
}

    #isHoliday.show {
        visibility: visible; /* Show the snackbar */
        /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
        -webkit-animation: fadeinIsHoliday 0.5s;
        animation: fadeinIsHoliday 0.5s;
    }

    #isHoliday.hide {
        -webkit-animation: fadeoutIsHoliday 0.5s;
        animation: fadeoutIsHoliday 0.5s;
    }
/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {
        right: 0;
        opacity: 0;
    }

    to {
        right: 100px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        right: 0;
        opacity: 0;
    }

    to {
        right: 100px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        right: 100px;
        opacity: 1;
    }

    to {
        right: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        right: 100px;
        opacity: 1;
    }

    to {
        right: 0;
        opacity: 0;
    }
}


@-webkit-keyframes fadeinIsHoliday {
    from {
        right: 0;
        opacity: 0;
    }

    to {
        right: 40px;
        opacity: 1;
    }
}

@keyframes fadeinIsHoliday {
    from {
        right: 0;
        opacity: 0;
    }

    to {
        right: 40px;
        opacity: 1;
    }
}
@-webkit-keyframes fadeoutIsHoliday {
    from {
        right: 100px;
        opacity: 1;
    }

    to {
        right: 0;
        opacity: 0;
    }
}

@keyframes fadeoutIsHoliday {
    from {
        right: 100px;
        opacity: 1;
    }

    to {
        right: 0;
        opacity: 0;
    }
}