html {
    scroll-behavior: smooth;

}

body {
    background: none !important;
    position: relative;
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
}

#chatbox {
    position: fixed;
    bottom: 0px;
    right: 0px;
    width: 100%;
    height: 100vh;
    background-color: hsl(38, 92%, 95%);
    background-image: url(./images/chat-bg.png);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 100px 1fr 75px;
    outline: 1px solid rgba(0, 0, 0, 0.1);
}

#chatbox header {
    background-color: hsl(222, 49%, 39%);
    padding: 1rem;
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    align-items: center;
}

#chatbox header .refresh {
    width: 40px;
    height: 40px;
    background-color: white;
    mask-image: url(https://api.iconify.design/ic:twotone-sync.svg?color=%23888888g);
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    margin-left: auto;
    cursor: pointer;
}

#chatbox header .content {
    color: white;
    font-size: 24px;
    display: flex;
    flex-direction: column;
    font-weight: 600;
}

#chatbox header .content span {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
}

#chatbox header img {
    width: 50px;
    aspect-ratio: 1;
    background-color: white;
    border-radius: 100vw;
    padding: 5px;
}

#chatbox .chat-body {
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    gap: 1rem;
}

#chatbox .chat-body span {
    position: relative;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.05));
    animation: msgPop 0.5s ease-in-out forwards;
    opacity: 0;
    max-width: 85%;
}

#chatbox .chat-body button.disable {
    pointer-events: none;
}

#chatbox .chat-body button {
    outline: 2px solid var(--bs-primary);
    border: none;
}

#chatbox .chat-body button:is(:hover, :active) {
    background-color: var(--bs-primary) !important;
    color: white !important;
}

#chatbox .chat-body span.options {
    position: relative;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.05));
    animation: msgPop 0.5s ease-in-out forwards;
    opacity: 0;
    max-width: 100%;
    outline: 2px solid var(--bs-primary);

}

#chatbox .chat-body span.options::before {
    content: none !important;
}




@keyframes msgPop {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0px);
        opacity: 1;
    }
}

#chatbox .chat-body span::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    right: calc(100% - 8px);
    top: 0;
    background-color: inherit;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%);
}

#chatbox .chat-body span.user::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: calc(100% - 8px);
    top: 0;
    background-color: inherit;
    clip-path: polygon(0% 0%, 100% 0%, 0% 100%);
}

#chatbox .chat-body::-webkit-scrollbar {
    width: 5px;
}

#chatbox footer {
    background-color: white;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 1rem;
}

#chatbox footer input {
    background: none;
    border: none !important;
    outline: none !important;
    box-shadow: 0 0 1px black;
    font-size: 16px;
    padding: 10px;
    border-radius: 100vw;
    width: 100%;
}

#chatbox footer #send {
    width: 40px;
    height: 40px;
    background-color: var(--bs-primary);
    flex-shrink: 0;
    border-radius: 100vw;
    background-image: url(https://api.iconify.design/ri:telegram-2-fill.svg?color=white);
    background-size: 65%;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 2;
}

#noti {
    display: none;
    visibility: hidden;

}

.pulse {
    cursor: pointer;
}

#send:not(.pulse) {
    pointer-events: none;
}

.pulse::before {
    --animation-range: 3;
    --pulse-color: var(--bs-primary);
    --pulse-width: var(--width, 100%);
    --pulse-height: var(--height, 100%);
    --pulse-start-range: -20px;
    --pulse-end-range: calc(var(--animation-range, 2) * 10px);
    content: "";
    width: var(--pulse-width);
    height: var(--pulse-height);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    padding: 25px;
    outline-style: solid;
    outline-width: 4px;
    outline-color: var(--bs-primary);
    opacity: 0.75;
    animation-name: pulse-border;
    animation-duration: var(--animation-speed, 1.5s);
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
    z-index: 1;
}

@keyframes pulse-border {
    0% {
        padding: var(--pulse-start-range);
        opacity: 0.75;
    }

    75% {
        padding: var(--pulse-end-range);
        opacity: 0;
    }

    100% {
        opacity: 0;
        padding: var(--pulse-end-range);
    }
}

.download-pdf {
    text-decoration: none;
    text-align: center;
    max-width: 100%;
}

