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

body{
    background: #f7edff;
}

.buttons{
    margin: 50px;
}

.buttons button{
    background: #333;
    color: #fff;
    border: 0;
    width: 120px;
    height: 40px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
}

#toastbox{
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
}

.toast{
    width: 350px;
    height: 70px;
    background: #fff;
    margin: 10px 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-weight: 500;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    border-left: 6px solid;
    animation: slideIn 0.5s ease;
}

.toast.success{ border-color: #4CAF50; }
.toast.error{ border-color: #f44336; }
.toast.invalid{ border-color: #ff9800; }

@keyframes slideIn{
    from{
        transform: translateX(100%);
        opacity: 0;
    }
    to{
        transform: translateX(0);
        opacity: 1;
    }
}
.toast{
    position: relative;
    overflow: hidden;
}


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

.toast.success{ color: #4CAF50; }
.toast.error{ color: #f44336; }
.toast.invalid{ color: #ff9800; }

@keyframes progress{
    from{ width: 100%; }
    to{ width: 0%; }
}
