.draggable {
    position: absolute;
    cursor: move;
    width: 350px; /* Increased width to better fit a video */
    height: auto; /* Changed height to auto to fit content */
    background-color: #2196F3;
    color: white;
    border: 1px solid #d3d3d3;
    z-index: 1;
    box-sizing: border-box;
    overflow: hidden; /* Ensures video stays within bounds */
}

.draggable .header {
    padding: 10px;
    background-color: #2196F3;
    cursor: move;
    font-weight: bold;
    text-align: center;
}

#div1 {
    top: 0px;
    left: 50px;
    height: 1300px; /* Explicit height for div 1 */
}

#div2 {
    top: 50px;
    left: 800px;
    background-color: #2196F3;
}

#div2 .header {
    background-color: #1a7bb9;
}

/* Style the video element within the div */
#div2 video {
    display: block;
    width: 100%;
    height: auto;
}

/* Speak to Text */

.container2 {
    background: white;
    padding: 2px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    max-width: 500px;
}
button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
}
button:hover {
    background-color: #0056b3;
}
button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#status {
    margin-top: 10px;
    font-size: 14px;
    color: #FFFFFF;
}

/* Chat Screen */

.button {
  border: none;
  padding: 0.625em;
  border-radius: 0.5em;
  cursor: pointer;
}

.button:hover {
  filter: brightness(0.9);
}

.button:active {
  transform: translateY(2px);
}

.person-selector {
  /*display: flex;*/
  justify-content: center;
  gap: 1em;
  /*margin: 3em auto 1em;*/
  max-width: 40em;
}

.person-selector-button {
  width: 100%;
  background-color: #15202b;
  color: #fff;
  font-size: 1.1em;
}

.active-person {
  background: #08529d;
  box-shadow: 0 0 0.5em 0.1em #c3c3c333;
}

.chat-container {
  background: #15202b;
  font-family: 'Roboto', sans-serif;
  border-radius: 0.5em;
  padding: 0.5em 1.25em;
  margin: auto;
  max-width: 37.5em;
  height: 37.5em;
  box-shadow: 0 0 1.25em 0.5em #c3c3c333;
}

.chat-header {
  margin-bottom: 1em;
  font-size: 1.3em;
  color: #fff;
}

.chat-header h2 {
  font-size: 1.25em;
  font-weight: bold;
}

.chat-messages {
  height: 28em;
  overflow-y: scroll;
}

.chat-messages::-webkit-scrollbar {
  display: none;
}

.message {
  padding: 0.625em;
  border-radius: 1em;
  margin-bottom: 0.625em;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.message-sender {
  font-weight: bold;
  margin-bottom: 0.31em;
}

.message-text {
  font-size: 1em;
  margin-bottom: 0.31em;
  word-wrap: break-word;
}

.message-timestamp {
  font-size: 0.75em;
  text-align: right;
}

.blue-bg {
  background-color: #1c9bef;
}

.gray-bg {
  background-color: #3d5365;
}

.chat-input-form {
  /*display: flex;*/
  align-items: center;
  margin-top: 3em;
  gap: 0.625em;
}

.chat-input {
    padding: 0.625em;
    border: none;
    background-color: #f5f5f5;
    color: #333;
    flex-grow: 1;

    width: 90%;
    height: 150px;
    padding: 10px;
    margin-top: 60px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: none;

}

.send-button {
  background-color: #1c9bef;
  color: #fff;
  font-size: 1em;
  font-weight: bold;
}


/* text to speech */

.controls {
    /*display: flex; */
    gap: 10px;
    /*margin-top: 10px;*/
}
select, input[type="range"] {
    padding: 8px;
}