@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

:root {
    --tr: all 0.5s ease 0s;
    --ch1: #05478a;
    --ch2: #0070e0;
    --cs1: #005e38;
    --cs2: #03a65a;
    --cw1: #c24914;
    --cw2: #fc8621;
    --ce1: #851d41;
    --ce2: #db3056;
}

/* Define the color properties for each toast type */
.toast-item.help {
    --bg: var(--ch1);
    --clr: var(--ch2);
}

.toast-item.success {
    --bg: var(--cs1);
    --clr: var(--cs2);
}

.toast-item.warning {
    --bg: var(--cw1);
    --clr: var(--cw2);
}

.toast-item.error {
    --bg: var(--ce1);
    --clr: var(--ce2);
}

/* Toast Panel */
.toast-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--tr);
    position: fixed;
    padding: 0 1rem;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

/* Toast Item */
.toast-item {
    max-height: 25rem;
    transition: var(--tr);
    position: relative;
    animation: show-toast 0.5s ease forwards;
}

@keyframes show-toast {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.toast {
    width: 24rem;
    /* height: 7rem; */
    background: #fff;
    color: #595959;
    padding: 1.6rem;
    border-radius: 1rem;
    position: relative;
    font-weight: 300;
    margin: 1rem 0;
    text-align: left;
    max-width: 24rem;
    transition: var(--tr);
    border: 0.15rem solid #fff2;
    box-shadow: 0 0 1.5rem 0 #1a1f4360;
    opacity: 1;
    border-left: 0.5rem solid var(--clr);
}

.toast h3 {
    font-size: 1.3rem;
    margin: 0;
    line-height: 1.35rem;
    font-weight: 600;
    color: var(--clr);
    text-transform: capitalize;
}

.toast p {
    font-size: 1.2rem;
    margin: 0.25rem 0 0;
    line-height: 1.3rem;
}

.close {
    position: absolute;
    width: 1.35rem;
    height: 1.35rem;
    right: 1rem;
    top: 1rem;
    cursor: pointer;
    border-radius: 100%;
}

.close:after {
    font-family: 'Varela Round', sans-serif;
    width: 100%;
    height: 100%;
    left: 0;
    font-size: 1.8rem;
    content: "+";
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #595959;
}

.close:hover:after {
    background: var(--clr);
    color: #fff;
}

.toast a {
    color: var(--clr);
}

.toast a:hover {
    color: var(--bg);
}