@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');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    outline: none;
}
body{
    background: #3c3c3c;
}
.wrapper{
    position: absolute;
    top: 50px;
    left: 15px;
    animation: show_toast 1s ease forwards;
}
@keyframes show_toast{
    0%{
        transform: translateX(-100%);
    }
    40%{
        transform: translateX(10%);
    }
    80%, 100%{
        transform: translateX(20px);
    }
}
.wrapper.hide{
    animation: hide_toast 1s ease forwards;
}
@keyframes hide_toast{
    0%{
        transform: translateX(20px);
    }
    40%{
        transform: translateX(-10%);
    }
    80%, 100%{
        opacity: 0;
        pointer-events: none;
        transform: translateX(-100%);   
    }
}
.wrapper .toast{
    background: #fff;
    padding: 20px 15px 20px 20px;
    border-radius: 10px;
    width: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 1px 7px 14px -5px rgba(0, 0, 0, 0.15);
    border-left: 5px solid #2ecc71;
}
.wrapper .toast.offline{
    border-color: #ccc;
}
.toast .content{
    display: flex;
    align-items: center;
}
.toast .content .icon{
    font-size: 25px;
    background: #2ecc71;
    height: 50px;
    width: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    color: #fff;
}
.toast.offline .content .icon{
    background: #ccc;
}
.toast .content .details{
    margin-left: 15px;
}
.content .details span{
    font-size: 1.1rem;
    font-weight: 500;
}
.content .details p{
    color: #878787;
}
.toast .close-icon{
    background: #f2f2f2;
    height: 35px;
    width: 35px;
    text-align: center;
    line-height: 35px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 50%;
    color: #878787;
}