body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.header {
  text-align: center;
  padding: 10px;
  background: #f7f7f7;
  box-shadow: 0 0 10px rgba(0,0,0,.1);
}

.app-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1em;
  gap: 1em;
}

.pdf-viewer, .chat-container {
  box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  height: 60vh; /* The same height for both containers */
}

.pdf-viewer embed {
  height: 100%; /* Use the full height of the container */
}

.chat-container {
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 1em;
}

.chat-box {
  height: calc(100% - 60px); /* Adjust for input area and gap */
  overflow: auto;
  border: 1px solid #ddd;
  padding: 1em;
  border-radius: 10px;
}

.input-area {
  display: flex;
  gap: 1em;
}

#user-input {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

#send-button {
  border: none;
  padding: 10px;
  color: white;
  background-color: #3f51b5;
  cursor: pointer;
  border-radius: 5px;
}

@media screen and (min-width: 600px) {
  .app-container {
    flex-direction: row;
  }
  .pdf-viewer, .chat-container {
    width: calc(50% - 1em);
  }
}
