#alert {
    animation: displayAlert 5s ease-in-out forwards;
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    color: var(--color-3);
    background-color: var(--color-2);
    transition: 0.3s;
}

.time {
    background-color: var(--color-3);
    height: 5px;
    margin-top: 5px;
    animation: time 5s ease-in-out forwards;
    animation-duration: 5s;
}

@keyframes time {
    0% {
      width: 100%;
    }
    100% {
      width: 0%;
    }
}

@keyframes displayAlert {
    100% {
        display: none;
    }
}

@media only screen and (max-width: 1140px) {
    #alert {
        margin-top: 30px;
    }
}