/* Reset CSS */ 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background-image: url('mathbg.jpg');
    background-position: fill;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100svh;
  }
  
  .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100svh;
  }
  
  .ClearButton{
    font-size: 16px;
    padding: 5px 10px;
    border: 2px solid red;
    background-color: white;
    color: red;
    border-radius:8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
  }
  .ClearButton:hover{
    background-color: rgb(255, 224, 224);
  }
  /* Chat Box */
  .chat {
    background: linear-gradient(to bottom, #b990f6, #42bbf3);
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 15px 5px black;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); */
    width: 400px;
    height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent scrollbars from appearing outside chat box */
  }
  
  .chat-header {
    padding: 20px;
    background-color: #007bff;
    color: #fff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;justify-content: space-between;align-items: center;
  }
  
  .chat-header h2 {
    margin: 0;
    
  }
  
  .chat-body {
    flex: 1;
    overflow-y: auto; /* Use auto to automatically show scrollbars when needed */
    padding: 10px;
  }
  
  .chat-body .message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    background-color: #f0f0f0;
  }
  
  .chat-body .user-message {
    background-color: #d3eaf5;
    text-align: right;
  }
  
  .user-input {
    padding: 10px;
    display: flex;
    align-items: center;
  }
  
  .user-input input {
    flex: 1;
    font-size: 16px;
    padding: 12px;
    border-top: 1px solid red;
    border-left: 1px solid red;
    border-bottom: 1px solid red;
    border-right: 0px solid red;
    border-radius: 10px 0 0 10px;
    outline: none;
  }
  
  .user-input button {
    font-size: 16px;
    padding: 12px 20px;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-top: 1px solid red;
    border-left: 0px solid red;
    border-bottom: 1px solid red;
    border-right: 1px solid red;
  }
  
  .user-input button:hover {
    background-color: #0056b3;
  }
  
  /* Message animations */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }





















  /* Width of the scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

/* Track (the background of the scrollbar) */
::-webkit-scrollbar-track {
  background: none;
  border-radius: 10px;
}

/* Handle (the draggable part of the scrollbar) */
::-webkit-scrollbar-thumb {
  background: #006b00;
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #00940f;
}
