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

/* Styl komunikatu błędu - script - wywołanie z sesji zjeżdżającej belki */
#error-message {
    color: white;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    box-sizing: border-box;
    width: calc(100% - 40px);
    height: 50px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--status-red);
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: 25px;
    position: fixed;
    top: 0;
    z-index: 39;
    margin-top: 0px;
    margin-left: 20px;
    margin-right: 20px;
    color: white !important;
    animation-duration: 7s;
    animation-name: noticewrapperslide;
    display:none;
}

#error-message.hide {
    opacity: 0;
}

.error-message {
    color: white;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    box-sizing: border-box;
    width: calc(100% - 40px);
    height: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--status-red);
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: 25px;
    position: fixed;
    top: 0;
    z-index: 39;
    margin-top: 0px;
    margin-left: 20px;
    margin-right: 20px;
    color: white !important;
    animation-duration: 7s;
    animation-name: noticewrapperslide;
}

/* Styl komunikatu sukcesu - script */
#success-message {
    color: white;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    box-sizing: border-box;
    width: calc(100% - 40px);
    height: 50px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--status-green);
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: 25px;
    position: fixed;
    top: 0;
    z-index: 39;
    margin-top: 0px;
    margin-left: 20px;
    margin-right: 20px;
    color: white !important;
    animation-duration: 7s;
    animation-name: noticewrapperslide;
    display:none;
}

#success-message.hide {
    opacity: 0;
}

.success-message {
    color: white;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    box-sizing: border-box;
    width: calc(100% - 40px);
    height: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--status-green);
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: 25px;
    position: fixed;
    top: 0;
    z-index: 39;
    margin-top: 0px;
    margin-left: 20px;
    margin-right: 20px;
    color: white !important;
    animation-duration: 5s;
    animation-name: noticewrapperslide;
}

/* Styl komunikatu błędu / sukcesu przy wlidacji pól formularza */
.validation-message-error {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    color: var(--status-red);
    font-size: 0.625rem;
    line-height: 0.625rem;
    margin-top: 5px;
    text-align: left;
}

.validation-message-success {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    color: var(--status-green);
    font-size: 0.625rem;
    line-height: 0.625rem;
    margin-top: 5px;
    text-align: left;
}

@keyframes noticewrapperslide {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    20% {
        opacity: 1;
        transform: translateY(95px);
    }

    80% {
        opacity: 1;
        transform: translateY(95px);
    }

    100% {
        opacity: 0;
        transform: translateY(0);
    }
}
@media only screen and (max-width: 768px){
    @keyframes noticewrapperslide {
        0% {
            opacity: 0;
            transform: translateY(0);
        }
    
        20% {
            opacity: 1;
            transform: translateY(50px);
        }
    
        80% {
            opacity: 1;
            transform: translateY(50px);
        }
    
        100% {
            opacity: 0;
            transform: translateY(0);
        }
    }
}