
@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');

:root{
    --primary: #0b5ed7;
    --secondary: #53636a;
    --success: #3be13b;
    --warning: #ffae1a;
    --danger: #ff2a2a;
    --info: #87ceeb;
    --dark: #424649;
    --light: #fff;
    --light-primary: #cfe2ff;
    --light-secondary: #e9ecef;
    --light-success: #d1e7dd;
    --light-warning: #fff2cd;
    --light-danger: #f8d7da;
    --light-info: #dff4fc;

}

.toastify.toastBox{
    position: absolute;
    top: 5px;
    right: 0px;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    overflow: hidden;
    padding: 20px;
    padding-right: 30px;
    font-family: 'Poppins', sans-serif;
}

.toastify.toastBox .toast{
    width: 400px;
    height: fit-content;
    min-height: 55px;
    padding: 10px 0;
    background: var(--light);
    font-weight: 500;
    margin: 10px 0;
    box-shadow:  0 0 10px #0000004d;
    display: flex;
    align-items: center;
    position: relative;
    transform: translateX(100%);
    animation: bounceShow 0.5s linear forwards;
    cursor: default;
    transition: all 0.5s ease, height 0.5s ease, opacity 0.5s ease;
}
.toastify.toastBox .toast:hover.toast::after{
    animation-play-state: paused;
}

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

    }
    40%{
        transform: translateX(0%);

    }
    80%{
        transform: translateX(5%);
    }
    100%{
        transform: translateX(0%);

    }
}
.toastify.toastBox .toast.hide{
    animation: bounceHide 0.5s linear forwards;
}
@keyframes bounceHide{
    0%{
        transform: translateX(0%);
        opacity: 1;
    }
    30%{
        transform: translateX(10%);
    }
    60%{
        transform: translateX(0%);
        opacity: 0.5;
    }
    100%{
        transform: translateX(110%);
        opacity: 0;
    }
}

.toastify.toastBox .toast.shrink{
    transform: translateX(-120%);
    animation: shrink 0.2s linear forwards;
}

@keyframes shrink{
    100%{
        max-height: 0;
        padding: 0;
        margin: 0;
        min-height: 0;
        overflow: hidden;
    }
}

.toastify.toastBox .toast i{
    margin: 0 20px;
    font-size: 30px;
    color: var(--success);
}
.toastify.toastBox .toast.error i{
    color: var(--danger);
}
.toastify.toastBox .toast.warning i{
    color: var(--warning);
}
.toastify.toastBox .toast.info i{
    color: var(--info);
}
.toastify.toastBox .toast.primary i{
    color: var(--primary);
}
.toastify.toastBox .toast.secondary i{
    color: var(--secondary);
}
.toastify.toastBox .toast.dark i{
    color: var(--dark);
}

.toastify.toastBox .toast::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: var(--success);
    animation: progress 5s linear forwards;
}

.toastify.toastBox .toast.error::after{
    background: var(--danger);
}
.toastify.toastBox .toast.warning::after{
    background: var(--warning);
}
.toastify.toastBox .toast.info::after{
    background: var(--info);
}
.toastify.toastBox .toast.primary::after{
    background: var(--primary);
}
.toastify.toastBox .toast.secondary::after{
    background: var(--secondary);
}
.toastify.toastBox .toast.dark::after{
    background: var(--dark);
}

@keyframes progress{
    100%{
        width: 0;
    }
}
.toastify.toastBox .toast .closeBtn{
    margin-left: auto;
    color: darkslategrey !important;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.toastify.toastBox .toast .closeBtn:hover{
    transform: scale(120%);
    font-weight: 700;
}


@media(max-width: 700px){
    .toastify.toastBox{
        padding-top: 2px;
        padding-right: 18px;
    }
}

@media(max-width: 520px){
    .toastify.toastBox{
        padding: 5px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
    .toastify.toastBox .toast{
        max-width: 95vw;
    }

}
