/* google 字体在线 */
/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap'); */

/* google 字体本地 */
/* @import './google-font.css'; */


:root {
    --main: #ffffffab;
    --main: #333;
    --success: #3ccc96;
    --error: #e24d4c;
    --error2: #fd6767;
    --warning: #fc7e57;
    --info: #3498db;
    /* --text: #111; */
    --text: #f8f8f9;
    --toast-border: none;
}

@media (prefers-color-scheme: dark) {
    :root {
        --error: rgb(143, 37, 57);
        --success: #00ad4a;
        --main: #28282c8e;
        /* --warning: #b12c20; */
        /* --main: #25252cbb; */
        /* --toast-border: 1.2px solid #ffffff1B; */
    }

}

* {
    padding: 0;
    margin: 0;
    /* box-sizing: border-box; */
}


/* body{
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--dark);
} */
.notifications :where(.toast, .column) {
    display: flex;
    align-items: center;
}

.notifications {
    position: fixed;
    top: 30px;
    right: 20px;
    z-index: 99;
}

.notifications .toast {
    width: 320px;
    list-style: none;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 17px 18px;
    margin-bottom: 10px;
    background-color: var(--main);
    border: var(--toast-border);
    color: var(--text);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: space-between;
    animation: show_toast 0.3s forwards;
    /* box-shadow: 0 6px 24px #0002; */
    zoom: .8;
}


@media (max-width: 720px) {
    .notifications .toast {
        width: fit-content !important;
        max-width: 480px;
        position: fixed;
        right: 0;
    }
}

@keyframes show_toast {
    0% {
        transform: translateX(100%);
    }

    40% {
        transform: translateX(-5%);
    }

    80% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-10px);
    }
}

.toast .column i {
    font-size: 1.75rem;
}

.toast.hide {
    animation: hide_toast 0.3s forwards;
}

@keyframes hide_toast {
    0% {
        transform: translateX(-10%);
    }

    40% {
        transform: translateX(0%);
    }

    80% {
        transform: translateX(-5%);
    }

    100% {
        transform: translateX(calc(100% + 20px));
    }
}

.toast .column span {
    font-size: 1.07rem;
    line-height: 1.6rem;
    margin-left: 12px;
    color: var(--text);
}

.toast i:last-child {
    color: #aeb0d7;
    cursor: pointer;
}

.toast i:last-child:hover {
    color: var(--dark);
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    animation: progress 5s linear forwards;
}

@keyframes progress {
    100% {
        width: 0;
    }
}

.toast.success::before {
    background-color: var(--success);
    /* box-shadow: 0 1px 8px var(--success); */
}

.toast.error::before {
    background-color: var(--error);
    /* box-shadow: 0 1px 8px var(--error); */
}

.toast.error2::before {
    background-color: var(--error2);
    /* box-shadow: 0 1px 8px var(--error2); */
}

.toast.warning::before {
    background-color: var(--warning);
    /* box-shadow: 0 1px 8px var(--warning); */
}

.toast.warning2::before {
    background-color: var(--warning);
    /* box-shadow: 0 1px 8px var(--warning); */
}

.toast.info::before {
    background-color: var(--info);
    /* box-shadow: 0 1px 8px var(--info); */
}

.toast.success .column i {
    color: var(--success);
}

.toast.error .column i {
    color: var(--error);
}

.toast.error2 .column i {
    color: var(--error2);
}

.toast.warning .column i {
    color: var(--warning);
}

.toast.warning2 .column i {
    color: var(--warning);
}

.toast.info .column i {
    color: var(--info);
}

.buttons .btn {
    border: none;
    outline: none;
    color: var(--main);
    cursor: pointer;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 4px;
}

@media screen and (max-width: 530px) {
    .notifications {
        width: 95%;
    }

    .notifications .toast {
        width: 100%;
        font-size: 1rem;
        margin-left: 20px;
    }

    .buttons .btn {
        margin: 0 1px;
        font-size: 1.1rem;
        padding: 8px 15px;
    }

}

.toast>i {
    margin-left: 0.8rem;
}





@media (max-width: 540px) {
    @keyframes show_toast {
        0% {
            transform: translateY(-100%);
            filter: blur(18px);
        }

        100% {
            transform: translateY(0);
            filter: blur(0);
        }
    }

    @keyframes hide_toast {
        0% {
            transform: translateY(0%);
        }

        100% {
            transform: translateY(-100%));
        }
    }

    .toast {
        zoom: .6 !important;
        margin: 0 auto;
        right: initial !important;
        border-radius: 10rem !important;
        background: #2f2f2f !important;
        animation: show_toast 3s cubic-bezier(.53, .46, .38, .96);
        margin-left: 0 !important;
    }

    .notifications {
        top: 7px !important;
        display: flex;
        justify-content: space-around;
        right: 0 !important;
    }

    .toast .column i {
        font-size: 3.2rem;
    }

    .toast .column span {
        font-size: 1.1rem;
    }
}