.btnOpenChat{
    position: fixed;
    bottom: 30px;
    right: 0;
    padding: 15px;
    width: 200px;
    border: 1px solid var(--bg-black-50);
    background: var(--text-black-100);
    z-index: 101;
    border-radius: 5px;
    transition: all 0.3s ease;
    transform: translateX(100%);
}

.btnOpenChat .c-icon{
    position: absolute;
    height: 40px;
    width: 40px;
    text-align: center;
    font-size: 20px;
    background: var(--bg-black-100);
    color: var(--text-black-900);
    right: 100%;
    border: 1px solid var(--bg-black-50);
    margin-right: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    
}

.btnOpenChat .btnOpenChatIcon:hover{
    cursor: pointer;
    background-color: var(--skin-color); 
}

.btnOpenChat .btnOpenChatIcon
{
    top: 0;
}

.btnOpenChat .btnOpenChatIcon i
{
    line-height: 37px;
}


.ChatPopup{
    
    display: none;
    position: fixed;
    bottom: 10px;
    right: 10px;
    border: 1px solid #ddd;

    max-width: 450px;
    max-height: 550px;
    width: 100%;
    height: 90%;

    margin-right: 15px;

    background-color: white;
    border-radius: 2%;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    z-index: 1000;
}

.CWHeader{
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(to right, #f4f8f8, #666e75);  
}

.CWImg{
    width: 30px; 
    height: 30px;
}

.CWCBName{
    position: absolute; 
    top:1.6%; 
    left:9%;
}

.CWText{
    
    color: #000000;
    font-weight: bold;
    text-decoration: solid;
    font-size: 20px;
    font-family: 'Times New Roman', Times, serif;
}

.btnHelpChat{
    /* margin-left: 80px; */
    position: absolute;
    right: 70px;
    color: rgb(2, 1, 1);
    font-size: 15px;
    padding: 5px 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.btnMiniChat{
    position: absolute;
    right: 40px;
    color: rgb(2, 1, 1);
    font-size: 15px;
    padding: 5px 5px;
  
    background: none;
    border: none;
    cursor: pointer;
}

.btnCloseChat{
    position: absolute;
    right: 10px;
    color: rgb(2, 1, 1);
    font-size: 15px;
    padding: 5px 5px;
    border: none;
    background: none;
    cursor: pointer;
    align-items: center;
}

.btnMiniChat:hover, .btnHelpChat:hover{
    background: rgb(16, 184, 235);
    color: rgb(0, 0, 0);
    font-size: 15px;
    border: 2px solid #020303;
    border-radius: 10px;
   
}
.btnCloseChat:hover{
    background: red;
    color: rgb(0, 0, 0);
    font-size: 15px;
    border: 2px solid #000000;
    border-radius: 10px;
   
}

.txtArea{

    padding: 15px;
    max-height: 90%;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: scroll;

    background: linear-gradient(to right, #38adbd, #00050a);
    border-bottom: 2px solid #ddd;
}


.txtMessages {
 
    margin: 5px 0;
    margin-top: 1px;
    display: inline-block;
    max-width: 90%;
    padding: 8px 8px;
    border-radius: 15px;
    margin-bottom: 10px;
    word-wrap: break-word;

    white-space: pre-wrap;
    opacity: 0;                
    transform: translateY(20px); 
    animation: fadeSlideIn 1s forwards;
}


.userChat {
    background-color: #007bff;
    color: white;
    align-self: flex-end;
   
}




.botChat {
    background-color: #f1f1f1;
    color: black;
    align-self: flex-start;
   
}



.CWFooter{
    padding: 6px 6px;
    display: flex;
    border-radius: 50%;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    
}

.CWInput{
    border: none;
    outline: none;
    width: 370px;
    padding: 5px 5px;
    font-size: 15px;
    font-family: 'Times New Roman', Times, serif;
}

.btnSendMessage{
    background: #38adbd;
    color: white;
    padding: 5px 5px;
    padding-right: 7px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
    
    border-radius: 8px;
    border: 1px solid #38adbd;
    
    cursor: pointer;
}

.btnSendMessage:hover{
    background-color: rgb(5, 245, 5);
    opacity: 90%;
}


@media (max-width: 600px) {
    .ChatPopup {

        bottom: 5px;
        right: 10px;
       
        width: 95%;
         
        flex-direction: column;
        z-index: 1000;

    }

    .txtArea {
        
        padding: 15px;
        max-height: 90%;
        overflow-y: auto;
        flex-grow: 1;
        display: flex;
        flex-direction: column 
    }



    .txtMessages {
        /* width: calc(100% - 10px);  */
        /* word-wrap: break-word; */
        display: inline-block;
        max-width: 75%;
        padding: 10px;
        border-radius: 15px;
        margin-bottom: 10px;
        word-wrap: break-word;

        
    }
    .CWInput{
        border: none;
        outline: none;
    
        width: 300px;
    
        font-size: 15px;
        font-family: 'Times New Roman', Times, serif;
    }

    .btnSendMessage{
        padding: 8px; 
    }
  
}


@keyframes fadeSlideIn {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  
  .txtMessages:nth-child(2) {
    animation-delay: 1s; 
  }

  .txtArea::-webkit-scrollbar {
    width: 0;  /* Hide the scrollbar */
    height: 0; /* Hide the horizontal scrollbar */
  }
  
  .txtArea::-webkit-scrollbar-thumb {
    background: transparent;  /* Optional: hide the thumb */
  }

  .cardbody {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column; /* Stack title and cards */
    text-align: center;
  }

  .cardsubheading {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
  }

  /* Container for the cards */
  .card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    width: 100%;
  }

  /* Individual card styles */
  .card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
  }

  .card:hover {
    transform: translateY(-10px);
  }

  .card i {
    font-size: 40px;
    margin-bottom: 10px;
    color: #4CAF50;
  }

  .card p {
    font-size: 18px;
    margin: 0;
    color: #333;
  }

  /* For small screens */
  @media (max-width: 768px) {
    .card-container {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
  }