.notice,
.alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f0f0f0;
    padding: 15px 25px;
    border: 1px solid #ccc;
    border-radius: 8px;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);

    /* fade out animation */
    animation: fadeOut 3s forwards;
    /* 3 seconds, stay at final state */
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    80% {
        opacity: 1;
        /* visible most of the time */
    }

    100% {
        opacity: 0;
        /* fully invisible */
    }
}