*{
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    background-color: #141414;
}

button{
    font-size: 1.2vmax;
    padding: 0.5vmax 1.5vmax;
    margin: 1vmax;
    border: 1px solid rgb(127, 127, 126);
    border-radius: 10px;
    cursor: pointer;
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    box-shadow: 2px 3px 10px white;
}

.toastbox{
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    overflow: hidden;
    padding: 20px;
    width: 100%;
}

.toastnoti {
    background: #91fd6d;
    height: 4vmax;
    width: 20%;
    min-width: 300px;
    margin: 1vmax;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5vmax;
    position: relative;
    font-size: 1vmax;
    padding-left: 1vmax;
    box-shadow: 1px 1px 20px white;
    transform: translateX(100%);
    animation: moving 0.5s linear forwards;
}

@keyframes moving{
    100%{
        transform: translateX(0);
    }
}

.toastnoti img{
    background-color: transparent;
    height: 1.5vmax;
}

.error{
    background-color: #fa4242;
}

.Invalid{
    background-color: #fff700;
}

.toastnoti::after{
    content: "";
    width: 100%;
    position: absolute;
    background-color: #D96DFD;
    left: 0;
    bottom: 0;
    height: 5px;
    animation: slide 5s linear forwards;
}

@keyframes slide {
    100%{
        width: 0;
    }
    
}

.toastnoti.error::after{
    background-color: #42FAFA;
}
.toastnoti.Invalid::after{
    background-color: #0008FF;
}



