* {

    font-family: Arial, Helvetica, sans-serif;
  }
  
  body {
    background-color: #f5f5f5;
    margin: 0;
    padding: 15px;
  }
  
  #app {
    max-width: 900px;
    margin: 0 auto;
  }
  
  h1 {
    color: #4f46e5;
    text-align: center;
    margin-bottom: 20px;
  }
  
  h2 {
    color: #333;
    margin-bottom: 15px;
  }
  
  h3 {
    color: #555;
  }
  
  button {
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    margin: 3px;
  }
  
  button:hover {
    background-color: #3730a3;
  }
  
  button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
  }
  
  button.active {
    background-color: #3730a3;
  }
  
  input[type="text"] {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 14px;
    width: 300px;
  }
  
  input[type="text"]:focus {
    outline: none;
    border-color: #4f46e5;
  }
  
  .main-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    background-color: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  section {
    background-color: white;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  ul {
    list-style-type: none;
    padding: 0;
  }
  
  li {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  li:hover {
    background-color: #f0f0f0;
  }
  
  
  .chat-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
  }
  
  .chat-header button {
    margin-right: 10px;
  }
  
  .message-container {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 10px;
    height: 350px;
    overflow-y: auto;
    margin-bottom: 15px;
    border: 1px solid #eee;
  }
  
 
  
  .my-message {
    background-color: #e0e7ff;
    border: 1px solid #c7d2fe;
    margin-left: 20%;
    
  }

  .other-message{

    margin-right: 20%;

  }
  
  .message-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
  }
  
  .message-content {
    word-break: break-word;
  }
  
  .message-time {
    color: #777;
    font-size: 12px;
  }
  
  .message-actions {
    margin-top: 5px;
  }
  
  .message-form {
    display: flex;
  }
  
  .message-form fieldset {
    width: 100%;
    display: flex;
    border: none;
    padding: 0;
    margin: 0;
  }
  
  .message-form input {
    flex-grow: 1;
    margin-right: 15px;
  }
  
  .book-list {
    list-style-type: none;
    padding: 0;
  }
  
  .book-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
  }
  
  .book-info {
    display: flex;
    align-items: center;
  }
  
  .book-thumbnail {
    width: 50px;
    height: 70px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  .book-details {
    display: flex;
    flex-direction: column;
  }
  
  .book-title {
    font-weight: bold;
    margin-bottom: 4px;
  }
  
  .book-rating {
    color: #555;
    font-size: 14px;
  }
  
  .book-detail {
    padding: 10px;
  }
  
  .book-header {
    display: flex;
    margin-bottom: 20px;
  }
  
  .book-cover {
    width: 120px;
    height: 180px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }
  
  .book-header-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .book-plot {
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .exitGroup {
    background-color: rgb(139, 19, 19);
  }
  .exitGroup:hover {
    background-color: rgb(98, 14, 14);
  }

  .navButton {
    background-color: #5e5aac;
  }

  .navButton:active {
    background-color: #131238;
  }

  @media (max-width: 600px) {
    .book-header {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    
    .book-cover {
      margin-right: 0;
      margin-bottom: 15px;
    }
    
    .book-thumbnail {
      width: 40px;
      height: 60px;
    }

    .main-nav {
        flex-wrap: wrap;
      }
      
      input[type="text"] {
        width: 100%;
      }
  }