.flashMessageMain {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 2050;
    /*text-align: center;*/
    background-color: rgba(250,250,250,0.0);
    pointer-events: none;
}
.flashMessageContainer {
    width: 100%;
    position: fixed;
    /*width: calc(100% - 100px);*/
    align-self: center;
    z-index: 0;
    align-items: center;
    pointer-events: none;
    text-align: center;
    margin-top: 90px;
}
.flashMessage {
    color: #e5e5e5;
    position: relative;
    padding: 10px;
    font-size: 20px;
    font-weight: bold;
    font-family: "Nunito", sans-serif;
    /*height: 50px;*/
    min-width: 100px;
    border-radius: 10px;
    background-color: rgba(186,12,47, 0.9);
    display:inline-block;
    margin-top: 5px;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
    pointer-events: none;
    -webkit-animation : scrollBanner 3s ;
    -moz-animation    : scrollBanner 3s ;
    -o-animation      : scrollBanner 3s ;
    animation         : scrollBanner 3s ;
    opacity: 0;
    animation-fill-mode: forwards; /* Makes element stay in position after animation */
}
@keyframes scrollBanner {
    0% { transform : translatey(-20px) }
    40% { opacity: 1; }
    60% { opacity: 1; }
    70% { transform : translatey(10px) }
    100% { transform : translatey(10px) }
}

/* Persistent success alert — Arges-style inline banner */
.flashMessage.flashMessage--success {
    background-color: rgba(16, 122, 87, 0.95);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 48px 12px 16px;
    min-width: 320px;
    border-radius: 8px;
    pointer-events: auto;
    cursor: default;
    position: relative;
    animation: flashSuccessIn 0.3s ease-out;
    opacity: 1;
    animation-fill-mode: forwards;
    -webkit-user-select: auto;
    user-select: auto;
}
.flashMessage--success-icon {
    flex-shrink: 0;
}
.flashMessage--success-dismiss {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    border-radius: 4px;
}
.flashMessage--success-dismiss:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}
@keyframes flashSuccessIn {
    0% { transform: translateY(-20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
