* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.buttons {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.buttons button {
    padding: 6px;
    border-radius: 5px;
    background-color: rgba(98, 110, 121, 0.753);
    color: rgba(0, 0, 0, 0.849);
    letter-spacing: 0.9px;
    cursor: pointer;
    margin-left: 5px;
    border-color: transparent;
    font-size: 20px;
}

.buttons button:hover {
    background-color: rgba(2, 23, 37, 0.856);
    color: rgb(255, 255, 255);
    border-color: transparent;
}

#toastBox {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
}

.toast {
    width: 400px;
    height: 80px;
    background: white;
    font-weight: 500;
    margin: 15px 0;
    box-shadow: 0 0 20px rgb(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    position: relative;
    transform: translate(100%);
    animation: moveleft 0.5s linear forwards;


}

@keyframes moveleft {
    100% {
        transform: translate(0);
    }
}

.toast i {
    margin: 0 20px;
    font-size: 35px;
    color: green;
}

.toast .error i,
.toast.error i {
    color: red;
}

.toast .invalid i,
.toast.invalid i {
    color: rgb(230, 230, 13);
}

.toast::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: green;
    animation: anim 3s linear forwards;

}

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

}

.toast.error::after {
    background: red;
}

.toast.invalid::after {
    background: rgb(230, 230, 13);
}