@keyframes msgAlert {
    from { top: -40px; }
    to { top: 40px; }
}

@keyframes msgAlertOpacity {
    from { opacity: 1; }
    to { opacity: 0; }
}

.alertDiv {
    text-align: center;
    position: fixed;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 5px 20px 0 black;
    border: 1px solid black;
    border-radius: 15px;
    background-color: rgb(189, 89, 86);
    color: black;
    animation: 
        msgAlert 0.3s ease-in-out forwards,
        msgAlertOpacity 1s ease-out forwards;
    animation-delay: 0s, 2s;
}

.customMsg {
    padding: 12px 20px;
}