/* TEN PLIK SŁUŻY DO ZDEFINIOWANIA STYLU DLA KOMUNIKATÓW BŁĘDU I SUKCESU */

/* Styl komunikatu błędu - script - wywołanie z sesji komunikatu */
.error-message {
    z-index:999;
    color: var(--status-red-txt);
    opacity: 0;
    box-sizing: border-box;
    min-width: 300px;
    max-width: 500px;
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--status-red-background);
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: 10px;
    position: fixed;
    bottom:50px;
    right: -500px;
    z-index: 70;
    animation-duration: 7s;
    animation-name: noticewrapperslide;
    animation-fill-mode: forwards;
}

.success-message {
    z-index:999;
    color: var(--status-green-txt);
    opacity: 0;
    box-sizing: border-box;
    min-width: 300px;
    max-width: 500px;
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--status-green-background);
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: 10px;
    position: fixed;
    bottom:50px;
    right: -500px;
    z-index: 70;
    animation-duration: 7s;
    animation-name: noticewrapperslide;
    animation-fill-mode: forwards;
}

@keyframes noticewrapperslide {
    0% {
        opacity: 0;
        transform: translateX(0); /* start: poza ekranem (right: -500px) */
    }

    10% {
        opacity: 1;
        transform: translateX(-520px); /* wysunięcie o 500px w lewo (na ekran) */
    }

    80% {
        opacity: 1;
        transform: translateX(-520px); /* utrzymuje się na ekranie */
    }

    100% {
        opacity: 0;
        transform: translateX(0); /* chowa się z powrotem poza ekran */
    }
}
