

*{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;
    outline: 0;
    width: 120px;
    height: 40px;
    margin: 5px;
    cursor: pointer;

}

#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: #fff;
    font-weight: 500;
    margin: 15px 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 24%;
    transform: translateX(100%);
    animation: moveleft 0.5s linear forwards;

}

@keyframes moveleft {
    100%{
        transform: translateX(0);
    }
}
.toast i{
    margin: 0 20px;
    font-size: 35px;
    color: orange;

}

.toast::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: orange;
    animation: anim 5s linear forwards;

}

@keyframes anim{
    100%{
        width: 0;
    }
}

/* Media query for screens */
@media screen and (max-width: 600px) {
    .buttons {
        margin: 20px;
    }

    .buttons button {
        width: 15px;
        height: 30px;
        margin: 3px;
    }

    #toastBox {
        bottom: 10px;
        right: 10px;
        padding: 10px;
    }

    .toast {
        width: 275px;
        height: 60px;
        margin: 10px 0;
        left: 15%;
    }
}