@import url('https://fonts.googleapis.com/css2?family=Hachi+Maru+Pop&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto Mono", monospace;
}

/*Outra possivel IMG 'https://wallpapers.com/images/hd/sleeping-bulbasaur-and-pokemon-5ssa5u6t886yt72o.jpg'*/
body{
    background-image: url('https://c.wallhere.com/photos/b1/ef/Pok_mon_forest-2096373.jpg!d');
    background-repeat: no-repeat;
    background-size: auto;
}

.chatbotToggler{
    position: fixed;
    right: 40px;
    bottom: 35px;
    height: 50px;
    width: 50px;
    color: #fff;
    background: #369846;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.showChatbot .chatbotToggler {
    transform: rotate(90deg);
}

.chatbotToggler svg{
    position: absolute;
}

.showChatbot .chatbotToggler svg:first-child, 
.chatbotToggler svg:last-child{
    opacity: 0;
}

.showChatbot .chatbotToggler svg:last-child{
    opacity: 1;
}

.chatBot{
    position: fixed;
    right: 40px;
    bottom: 100px;
    width: 420px;
    transform: scale(0.5);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    background: #fff;
    border-radius: 15px;
    transform-origin: bottom right;
    box-shadow: 0 0 128px 0 rgba(0,0,0,0.1),
                0 32px 64px -48px rgba(0,0,0,0.5);
    transition: all 0.1s ease;
}

.showChatbot .chatBot{
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chatBot header {
    background: rgb(3, 134, 58);
    padding: 16px 0;
    text-align: center;
    position: relative;
}

.chatBot header svg{
    position: absolute;
    right: 20px;
    top: 50%;
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    display: none;
}

.chatBot header h2 {
    color: #fff;
    font-size: 1.4rem;
    font-family: "Hachi Maru Pop";
}

.chatBot .chatBox {
    height: 510px;
    overflow-y: auto;
    padding: 30px 20px 100px;
}

.chatBox .chat{
    display: flex;
}

.chatBox .incoming svg{
    height: 30px;
    width: 30px;
    background: #b1f8bc;
    text-align: center;
    align-self: flex-end;
    line-height: 32px;
    border-radius: 4px;
    margin: 0 10px 7px 0;
}

.chatBox .outGoing{
    margin: 20px 0;
    justify-content: flex-end;
}

.chatBox .chat p {
    color: white;
    max-width: 75%;
    font-size: 1rem;
    white-space: pre-wrap;
    padding: 12px 16px;
    border-radius: 10px 10px 0 10px;
    background-color: #369846;
}
.chatBox .incoming p {
    color: black;
    background: #b1f8bc;
    border-radius: 10px 10px 10px 0;
}

.chatBox .incoming img {
    padding: 12px 16px;
    border-radius: 10px 10px 10px 0;
    background: #b1f8bc;
    margin: 0px 140px 5px;
}

.chatBot .chatInput{
    position: absolute;
    bottom: 0;
    width: 100%;
    background: white;
    padding: 5px 20px;
    border-top: 1px solid #ccc;
    display: flex;
    gap: 5px;

}

.chatInput textarea{
    height: 55px;
    width: 100%;
    border: none;
    outline: none;
    max-height: 180px;
    font-size: 1rem;
    resize: none;
    padding: 16px 15px 16px 0;
}

.chatInput button{
    appearance: none;
    background-color: transparent; 
    border: none;
    outline: none; 
}

.chatInput button svg{
    align-self: flex-end;
    height: 55px;
    line-height: 55px;
    color: #369846;
    font-size: 2rem;
    cursor: pointer;
    visibility: hidden;
}

.chatInput textarea:valid ~ button svg{
    visibility: visible;
}


@media (max-width: 490px) {
    .chatBot{
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .chatBot .chatBox{
        height: 90%;
    }

    .chatBot header svg{
        display: block;
    }
}