@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.chat-circle {
    position: fixed;
    bottom: 20px;
    left: 30px;
    background-color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 70%;
    text-align: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 0 20px #2dce89;
}

.chat-circle:hover {
    transform: scale(0.8);
    transition: transform 0.5s;
}

.chat-circle img {
    width: 200%;
    padding: 14%;
}

.chatbox {
    width: 400px;
    position: fixed;
    bottom: 50px;
    right: 20px;
    background-color: #fff;
    border: 1px solid orange;
    border-radius: 20px;
    z-index: 99;
    overflow: hidden;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    display: none;
    opacity: 0; /* Initially set to be invisible */
    transition: opacity 0.7s;
}

@media (max-width: 767px) {
    #chatbox {
        width: 90%; /* Make the chatbox cover the entire width */
        right: 10px;
    }
}

.chatbox-header {
    color: #fff;
    padding: 10px;
}

.close-chatbox {
    float: right;
    cursor: pointer;
}

.chatbox-messages {
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
}

.message {
    padding: 5px;
    margin: 5px;
    border-radius: 5px;
}

.received {
    background-color: #f0f0f0;
    max-width: 50%;
    float: left;
    clear: both;
}

.sent {
    background-image: linear-gradient(310deg, #2dce89 0%, #2dcecc 100%);
    color: #fff;
    max-width: 60%;
    float: right;
    clear: both;
}

.chatbox-input {
    padding: 10px;
    display: flex;
}

#chatbox-input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
}

#send-button {
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
}
