.popUp-general {
    position:fixed;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    overflow-x: hidden;
    z-index: 9;
}

.alert {
    position: relative;
    padding: 10px 15px;
    max-width: 300px;
    color: white;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    opacity: 1;
    transform: translateX(0);
    animation-fill-mode: forwards;
}

.alert::after {
    content: "";
    position: absolute;
    height: 5px;
    bottom: 0;
    left: 0;
    width: 100%;
    
}

/* SUCCESS */
.alert-success {
    background-color: #28a745;
    animation: hide-alert 5s forwards;
}
.alert-success::after {
    background-color: #b7f0a1;
    animation: shrink-alert 5s linear forwards;
}

.alert-theme1 {
    background-color: #ab20fd;
    animation: hide-alert 5s forwards;
    font-weight: bold;
}
.alert-theme1::after {
    background-color: #e6bdfe;
    animation: shrink-alert 5s linear forwards;
}

.alert-theme2 {
    background-color: #1acf8d;
    animation: hide-alert 5s forwards;
    font-weight: bold;
}
.alert-theme2::after {
    background-color: #c9eee0;
    animation: shrink-alert 5s linear forwards;
}

/* ERROR */
.alert-error {
    background-color: #e74c3c;
    animation: hide-alert 7s forwards;
}
.alert-error::after {
    background-color: #f5a6a0;
    animation: shrink-alert 7s linear forwards;
}

/* INFO */
.alert-info {
    background-color: #3867d6;
    animation: hide-alert 4s forwards;
}
.alert-info::after {
    background-color: #85b0f9;
    animation: shrink-alert 4s linear forwards;
}

@keyframes shrink-alert {
    0% { width: 100%; opacity: 1; transform: translateX(0); }
    100% { width: 0%; opacity: 0; transform: translateX(120%); }
}

@keyframes hide-alert {
    0%   { opacity: 1; transform: translateX(0); max-height: 200px; margin-bottom: 10px; padding: 10px 15px; }
    80%  { opacity: 1; transform: translateX(0); max-height: 200px; margin-bottom: 10px; padding: 10px 15px;}
    90% { transform: translateX(120%); max-height: 0; max-height: 200px; margin-bottom: 10px; padding: 10px 15px;}
    100% { opacity: 0; transform: translateX(120%); max-height: 0; margin-bottom: 0; padding: 0; }
}