.wp-gpchatbot {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
}


.home-chatbot .wp-gpchatbot {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
        min-height: 300px;
}




.bot-overlay {
    width: 100%;
    position: absolute;
    top:0px;
    bottom:0px;
    left: 0px;
    right: 0px;
    z-index: 10;

}




#canvas-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 1;
}


#canvas-container canvas {
    width: 100% !important;
    height: auto!important;
    position: relative;
}


.button {
    position: absolute;
    margin-bottom: 150px;
    background: white;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    transform: translate(0px, 0px) scale(1);
    transition: transform 0.3s ease-out;
    color: #000;
    font-family: 'Space Grotesk', sans-serif;
    padding: 20px 30px;
}

.button:hover {
    transform: translate(0px, 0px) scale(1.02)!important;
}


.button:after {
    content:'';
    left: 30%;
    transform: translate(-30%,-15px) rotate(-30deg);
    position: absolute;
    text-align: center;
    width: 0;
    height: 0;
    line-height: 0px;
    border-top: 10px solid #fff;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    bottom: -40px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.button a {
    padding: 20px 35px;
    color: #000000;
    text-decoration:none;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.typing-text {
    white-space: nowrap;
    overflow: hidden;
    font-size: 18px;
}

.cursor {
    font-size: 18px;
    font-weight: normal;
    margin-left: 5px;
    display: inline-block;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}


#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    /* Sfondo semitrasparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#preloader img {
    width: 100px;
    /* Regola la dimensione della GIF */
    height: 100px;
}

















#chatbot .wpb_wrapper {
    position: relative!important;

 overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}


.button {
    position: absolute;
    margin-bottom: 150px;
    background: white;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    transform: translate(0px, 0px) scale(1);
    transition: transform 0.3s ease-out;
}

.button {
    position: absolute;
    margin-bottom: 150px;
    background: white;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    transform: translate(0px, 0px) scale(1);
    transition: transform 0.3s ease-out;
}

.button:hover {
    transform: translate(0px, 0px) scale(1.02)!important;
}



@keyframes blink {
    50% { opacity: 0; }
}