

body {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #1d2533;
  color: white;
}

input {
  padding: 10px;
  border: none;
  border-radius: 8px;
  background-color: #535353;
  color: white;
}

#container {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 90%;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

#container button {
  padding: 10px;
  background: rgb(0, 81, 233);
  border: none;
  color: white;
  border-radius: 8px;
}

#videoDiv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  width: 100%;
  height: 100%;
}

#videoDiv video {
  width: 100%;
  height: 90%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #535353;
  aspect-ratio: 16 / 9;
}

#connectDiv {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  text-align: center;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.151);
  border-radius: 8px;
}

#chatDiv header {
  border-radius: 10px 10px 0px 0px;
  background-color: rgb(255, 203, 31);
  padding: 20px;
}

#chatDiv {
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  width: 90%;
  height: 100%;
}

#messagesDiv {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding: 20px;
  max-height: 500px;
  overflow-y: auto;
}

.remoteMessage {
  display: flex;
  align-self: flex-start;
  word-break: break-all;
  background: #09285a;
  padding: 10px;
  border-radius: 10px 10px 10px 2px;
}

.sentMessage {
  display: flex;
  align-self: flex-end;
  word-break: break-all;
  background: #004cc5;
  padding: 10px;
  border-radius: 10px 10px 2px 10px;
}

#messageOptions {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: #282929;
}