#assistant {
    display: none; /* Alapértelmezett állapotban rejtve van */
}

/* Az ikon megjelenítése */
#assistant-icon {
    font-size: 30px;
    color: #ffffff; /* Fehér színű ikon */
}

/* Az asszisztens tartalom */
#assistant-content {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    position: fixed;
    bottom: 80px;
    right: 20px;
    transition: all 0.3s ease-in-out;
}

/* Asszisztens fejléc */
#assistant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2e3e4f; /* Az 1.css-ben megadott szín */
    color: #ffffff;
    padding: 10px;
}

/* Bezáró és teljes képernyős gombok */
#assistant-close,
#assistant-fullscreen {
    background-color: #f03d3d; /* bezár gomb piros szine */
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    margin-left: 5px;
}

#assistant-close:hover,
#assistant-fullscreen:hover {
    background-color: #2c3e50;
}

/* Asszisztens body */
#assistant-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Chat box */
#chat-box {
    flex: 1;
    padding: 10px;
    overflow-y: auto; /* Engedélyezi a függőleges görgetést */
    display: flex;
    flex-direction: column;
    border-bottom: 0px solid #ddd;
    max-height: 320px; /* Maximum magasság beállítása - körülbelül 4 üzenet magassága */
}

/* Üzenet stílusok */
.message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 20px;
    max-width: 75%;
}

/* Felhasználói üzenet */
.user-message {
    background-color: #6389b1;
    color: #f1f1f2;
    align-self: flex-end;
}

/* Bot üzenet */
.bot-message {
    display: flex;
    align-items: flex-start; /* Az avatar és a szöveg kezdő pozícióba igazítása */
    padding: 10px;
    border-radius: 20px;
    background-color: #f0f0f0;
    color: #2c3e50;
    margin-bottom: 10px; /* Távolság az üzenetek között */
}

//* Chat box */
#chat-box {
    max-height: 400px; /* Példa magasság */
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
}

/* Bot üzenet */
.bot-message {
    display: flex;
}

/* Input mező */
#user-input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 14px;
    border-radius: 20px;
    outline: none;
    margin-bottom: 10px; /* Hely a küldés gomb fölött */
}

/* Küldés gomb */
#send-button {
    border: none;
    padding: 10px 20px;
    background-color: #2c3e50;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    border-radius: 20px;
    margin-top: 10px; /* Lejjebb helyezés */
    transition: background-color 0.3s ease;
}

#send-button:hover {
    background-color: #587795;
}

/* Asszisztens kép animáció */
#assistant-image {
    width: 100px;
    height: auto;
    margin-top: 10px;
    position: relative;
    animation: moveRightBack 12s infinite;
    animation-delay: 3s;
}

/* Animációs kulcsok */
@keyframes moveRightBack {
    0% {
        left: 1px;
        transform: rotate(0deg);
    }
    40% {
        left: 300px;
        transform: rotate(0deg);
    }
    70% {
        left: 300px;
        transform: rotate(0deg);
    }
    90% {
        left: 1px;
        transform: rotate(360deg);
        content: url('https://berkesestarsa.hu/img/web-robo-anim01.gif');
    }
    100% {
        left: 1px;
        transform: rotate(360deg);
        content: url('https://berkesestarsa.hu/img/web-robo-anim02.gif');
    }
}

/* Reszponzív beállítások */
@media (max-width: 600px) {
    #assistant {
        bottom: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
    }

    #assistant-content {
        bottom: 60px;
        right: 10px;
        max-width: 90%;
    }

    #user-input, #send-button {
        width: 100%;
    }
}