:root {
    --dark: #34495E;
    --light: #ffffff;
    --success: #0ABF30;
    --error: #E24D4C;
    --warning: #E9BD0C;
    --info: #3498DB;
    --purple: #712BD1;
    --blue: #172CCB;
    --rose: #E895E5;

}

body {
    /* display: flex; */
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    /*background: var(--dark);*/
}

.notifications {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 1051;
}

.notifications :where(.toast2, .column) {
    display: flex;
    align-items: center;
}

body.dark .notifications .toast2 {
    background: var(--light);
    color: var(--dark);
}
.notifications .toast2 {
    width: 400px;
    position: relative;
    overflow: hidden;
    list-style: none;
    border-radius: 4px;
    padding: 16px 17px;
    margin-bottom: 10px;
    background: var(--dark);
    color: var(--light);
    justify-content: space-between;
    animation: show_toast2 0.3s ease forwards;
}

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

    40% {
        transform: translateX(-5%);
    }

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

    100% {
        transform: translateX(-10px);
    }
}

.notifications .toast2.hide {
    animation: hide_toast2 0.3s ease forwards;
}

@keyframes hide_toast2 {
    0% {
        transform: translateX(-10px);
    }

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

    80% {
        transform: translateX(-5%);
    }

    100% {
        transform: translateX(calc(100% + 20px));
    }
}

.toast2::before {
    position: absolute;
    content: "";
    height: 3px;
    width: 100%;
    bottom: 0px;
    left: 0px;
    animation: progress 10s linear forwards;
}

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

.toast2.success::before,
.btn#success {
    background: var(--success);
}

.toast2.error::before,
.btn#error {
    background: var(--error);
}

.toast2.warning::before,
.btn#warning {
    background: var(--warning);
}

.toast2.info::before,
.btn#info {
    background: var(--info);
}

.toast2.dark::before,
.btn#dark {
    background: var(--dark);
}

.toast2.purple::before,
.btn#purple {
    background: var(--purple);
}

.toast2.rose::before,
.btn#rose {
    background: var(--rose);
}

.toast2.blue::before,
.btn#blue {
    background: var(--blue);
}

.toast2 .column i {
    font-size: 1.5rem;
}

.toast2.success .column i {
    color: var(--success);
}

.toast2.error .column i {
    color: var(--error);
}

.toast2.warning .column i {
    color: var(--warning);
}

.toast2.info .column i {
    color: var(--info);
}

.toast2.dark .column i {
    color: var(--dark);
}

.toast2.purple .column i {
    color: var(--purple);
}

.toast2.rose .column i {
    color: var(--rose);
}

.toast2.blue .column i {
    color: var(--blue);
}

.toast2 .column span {
    font-size: 1.07rem;
    margin-left: 12px;
}

.toast2 i:last-child {
    color: #aeb0d7;
    cursor: pointer;
}

.toast2 i:last-child:hover {
    color: var(--dark);
}

.buttons .btn {
    border: none;
    outline: none;
    cursor: pointer;
    margin: 0 5px;
    color: var(--light);
    font-size: 1.2rem;
    padding: 10px 20px;
    border-radius: 4px;
}

@media screen and (max-width: 530px) {
    .notifications {
        width: 95%;
    }

    .notifications .toast2 {
        width: 100%;
        font-size: 1rem;
        margin-left: 20px;
    }

    .buttons .btn {
        margin: 0 1px;
        font-size: 1.1rem;
        padding: 8px 15px;
    }
}