@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "poppins",sans-serif;
}

body {
    background-color: #C5C5C5;
}

.buttons {
    margin: 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}


.buttons button {
    width: 120px;
    padding: 8px 10px;
    margin: 10px 5px;
    border: 0;
    background-color: #2c423f;
    color: #fff;
    border-radius: 5px;
    font-weight: 500;
    font-size: 16px;
    outline: none;
    cursor: pointer;
}

#toast-box {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    padding: 20px;
}

.toast {
    width: 300px;
    height: 80px;
    background-color: #fff;
    font-weight: 500;
    margin: 15px 0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    display: flex;
    font-size: 15px;
    align-items: center;
    position: relative;
    transform: translateX(100%);
    animation: moveleft 0.5s linear forwards;;
}

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

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

.toast.error i {
    color: red;
}

.toast.invalid i {
    color:orange;
}

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

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

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

.toast.invalid::after{
    background-color:orange;
}