@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&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');

.toast-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 400px;
    gap: 10px;
    position: fixed;
    top: 20px;
    transition-duration: 0.3s;
}

.toast-stack.top-right {
    right: 10px;
}

.toast-stack.top-left {
    left: 10px;
}

.toast-stack.top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    border-radius: 8px;
}

.toast-stack.bottom-right {
    right: 10px;
    top: auto !important;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: end;
}


.toast-stack.bottom-left {
    left: 10px;
    top: auto !important;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.toast-stack.bottom-center {
    top: auto !important;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    display: flex;
    min-width: 400px;
    flex-direction: column;
    justify-content: end;
}




toast {
    height: fit-content;
    min-width: 280px;
    padding: 10px 15px 10px 10px;
    border-radius: 5px;
    background-color: white;
    box-shadow: rgba(50, 50, 105, 0.15) 0px 2px 5px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1px 0px;
    gap: 5px;
    transform: translateY(0);
    transition-duration: 0.3s;
    cursor: pointer;
    border: 1px solid rgb(208, 208, 208);
}

toast h2,
p {
    font-family: Inter;
}

toast .content {
    display: flex;
}

toast .info {
    display: grid;
    gap: 5px;
}

toast .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    height: fit-content;
}

toast .dismiss-btn {
    cursor: pointer;
    outline: none;
    border: none;
    color: gray;
    margin-left: 10px;
    background-color: transparent;
}

toast .dismiss-btn:hover {
    color: black;
}

toast .dismiss-btn:active {
    transform: translateY(1px);
    transition-duration: 0.3s;
}

toast h2 {
    font-size: 0.875rem;
    font-weight: 600;
}

toast p {
    font-size: 0.8rem;
    color: gray;
    max-width: 300px;
    text-wrap: wrap;
}

toast .mood {
    font-size: 1.8rem;
}

@keyframes fadeindown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(0%);
    }
}

@keyframes fadeup {
    0% {
        transform: translateY(5%);
        opacity: 0.9;
    }

    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}


@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.toast-removing {
    animation: fadeOut 0.3s ease-in-out;
}

@media (prefers-color-scheme: dark) {
    toast {
        background-color: #08090a;
        border: 1px solid #222226;
        color: white;
    }

    toast .dismiss-btn:hover {
        color: rgb(193, 193, 193);
    }

    toast .duration-progress .progress {
        background: linear-gradient(to right, white, gray);
    }
}

html[data-theme='dark'] toast,
html[theme='dark'] toast {
    background-color: #08090a;
    border: 1px solid #222226;
    color: white;
}

html[data-theme='dark'] toast .dismiss-btn:hover,
[theme='dark'] toast .dismiss-btn:hover {
    color: rgb(193, 193, 193);
}

html[data-theme='dark'] toast .duration-progress .progress,
html[theme='dark'] toast .duration-progress .progress {
    background: linear-gradient(to right, white, gray);
}

@media screen and (max-width:700px) {
    .toast-stack {
        width: auto;
        top: 5px;
    }

    toast .mood {
        font-size: 1.6rem;
    }

    .toast-stack.top-right {
        right: 5px;
        left: 5px;
    }

    .toast-stack.bottom-left {
        right: 5px;
        left: 0px;
    }

    .toast-stack.bottom-right {
        right: 5px;
        left: 5px;
    }
}

.custom {
    display: grid;
}

.custom h1 {
    font-weight: bold;
}

.centered {
    align-items: center;
}

toast .duration-progress {
    height: 4px;
    width: 100%;
    border: 1px solid #222226;
    margin-top: 5px;
    border-radius: 1.2px;
}

toast .duration-progress .progress {
    height: 100%;
    width: 100%;
    background-color: #222226;
}