*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
/* Chatbox container */
#chat-wrapper {
    display: flex;
    flex-direction: column;
    /* height: 90vh; */
    max-width: 30rem;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

/* Container for Emily and user messages */
#chat-container {
    flex-grow: 1;
    padding: 10px;
    border-radius: 10px;
}

/* Chat box for Emily */
.chat-box.emily {
    display: flex;
    align-items: flex-start;
    margin: 10px 0;
    gap: 15px;
}

/* Chat box for User */
.chat-box.user {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin: 20px 0;
}

/* Icon for both user and Emily */
.chat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Content inside chat box */
.chat-content {
    background-color: var(--color-green-3628, #02b40747);
    color: #000000;
    padding: 10px;
    border-radius: 10px;
    max-width: 90%;
    display: inline-block;
    position: relative;
}

.chat-content p{
    margin-bottom: 0 !important;
}

/* Content for user messages */
.chat-box.user .chat-content {
    background-color: #ffffff;
    text-align: center;
    border: 1px solid #ccc;
    margin-right: 10px;
    min-width: 55px;
}

/* Chat buttons inside the message box */
.chat-buttons {
    /* margin-top: 10px; */
    display: flex;
    gap: 10px;
}

/* Button styles */
.response-btn, .btn
 {
    background: var(--color-spring-green-46, #34b575);
    color: #000000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: block;
}

.response-btn:hover {
    background-color: #45a049;
}

/* Typing dots animation */
.typing {
    justify-content: flex-start;

}

.typing-dots {
    display: flex;
    gap: 5px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background-color: #000000;
    border-radius: 50%;
    animation: bounce 0.8s infinite alternate;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    from {
        opacity: 0.3;
        transform: translateY(0);
    }
    to {
        opacity: 1;
        transform: translateY(-5px);
    }
}

/* dot  */
.dot {
    width: 10px;
    height: 10px;
    background-color: green;
    border-radius: 50%;
    position: relative;
    top: 6px;
    margin-right: 15px;
    animation: pulse 2s infinite;
  }
  
  .dot::before {
    content: '';
    position: absolute;
    top: 55%;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 128, 0, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: wave 2s infinite;
  }
  
  @keyframes wave {
    0% {
      width: 20px;
      height: 20px;
      opacity: 0.8;
    }
    100% {
      width: 40px;
      height: 40px;
      opacity: 0.2;
    }
  }
/* heading div */
.head-div{
    width: 60%;
    margin: auto;
    padding: 10px;
    text-align: center;
    margin-top: 3%;
    margin-bottom: 5%;
}

.head-div p{
    font-size: 20px;
}

.head-div h2{
    margin: 30px 0;
}

.footer{
    background: var(--color-grey-96, rgba(243, 244, 246, 1));
    padding: 4rem;
    margin-top: 10%;
    color: var(--color-grey-4635, rgba(108, 117, 125, 0.35));
}

.right-reserved{
    margin-top: 5%;
    justify-content: space-between;
}

/* This is all the styling you need for the button */
.m-backtotop {
    transition: all 0.3s ease-in-out;
    position: fixed;
    bottom: -50px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #2222223d;
    border-radius: 25px;
    text-align: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    overflow: hidden;
    color: #fff;
}

.m-backtotop.active {
    bottom: 15px;
    opacity: 1;
}

.m-backtotop > div {
    transition: all 0.3s ease-in-out;
}

.m-backtotop > div.arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    opacity: 1;
}
@media screen and (max-width: 768px) {
    .head-div {
        width: 90%;
    }
    #chat-wrapper{
        max-width: 24rem;
    }
    .footer {
        padding: 1.8rem;
    }
    .footer p{
        margin-bottom: 0;
    }
    .right-reserved {
        margin-top: 10%;
        flex-direction: column;
        align-items: center;
    }
    
}