@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;400&display=swap');


:root {
    --transform: translateX(-50%);
    --transform-chat-window: translateX(-50%);
}

body {
    width: 100vw;
    max-width: 100%;
    padding: 0;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.chat-container {
    position: fixed;
    bottom: 2vh;
    overflow: hidden;
    padding: 0;
    margin: 0;
    z-index:100000 !important;
}

.container-right {
    right: 2vw;
    --transform: ;
    --transform-chat-window: ;
}

.container-center {
    left: 50vw;
    /* transform: translateX(-50%); */
    transform-origin: left;
}

.container-left {
    left: 2vw;
    --transform: ;
    --transform-chat-window: ;
}

.chat-button {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    transform: scale(0.5);
    opacity: 0;

    box-shadow: 0 0 3px rgb(0 0 0 / 10%), 0 0 10px rgb(0 0 0 / 30%);

    animation: chat-button-show .2s forwards;
    animation-delay: .2s;

}

@media only screen and (max-width: 40rem),
only screen and (max-height: 40rem) {
    .chat-button {
        width: 3rem;
        height: 3rem;
    }
}

@keyframes chat-button-show {
    0% {
        transform: scale(0.5) var(--transform);
        transition: .2s linear;
        
    }
    100% {
        transform: scale(1) var(--transform);
        opacity: 1;
    }
}

.chat-window {
    height: min(704px, 100% - 40px);
    min-height: 80px;
    width: 400px;
    max-height: 704px;
    border-radius: 10px;
    box-shadow: 0 0 3px rgb(0 0 0 / 10%), 0 5px 50px rgb(0 0 0 / 20%);
    animation: chat-window-launch .2s forwards;
}

@keyframes chat-window-launch {
    0% {
        transform: translateY(5vh) var(--transform-chat-window);
        transition: .2s linear;
    }
    100% {
        transform: translateY(0) var(--transform-chat-window);
    }
}

iframe {
    width: 100%;
    height: 100%;
}

.chat-icon {
    display: none;
}

.chat-button .chat-icon {
    display: block;
    opacity: 0;
    width: 60%;
    height: 60%;
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    animation: show-icon 1s forwards;
    animation-delay: .4s;
    transform: translate(-50%, -50%);

    animation: show-icon 1s forwards;
    animation-delay: .4s;
}

@keyframes show-icon {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


@media only screen and (max-width: 25rem){
    .chat-window {
        width: 100% !important;
        height: 100% !important;
        border-radius: 0;
        inset: 0;
        top: 0 !important;
        --transform-chat-window: ;
    }
}

@media only screen and (max-height: 50rem){
    .chat-window {
        height: 96vh;
        top: 2vh;
    }
}


.events-none {
    pointer-events: none;
}

.hide-hard {
    display: none;
}




/* --------------------- notification ------------------- */

.container-notification {
    position: fixed;
    bottom: 2vh;
    /* background-color: orange; */
    pointer-events: none;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.notification {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #e91e63;
    color: white;
    border-radius: 50px;
    text-align: center;
    min-width: 1.5em;
    padding: 0 0.2em;
    box-sizing: border-box;
}

@media only screen and (max-width: 40rem),
only screen and (max-height: 40rem) {
    .notification {
        font-size: 12px;
        right: -0.2em;
        top: -0.2em;
    }
}