body{
  background:#f8fafa;
  font-family: 'Roboto', sans-serif;
}

#join-btn{
  position: fixed;
  top:50%;
  left:50%;
  margin-top:-50px;
  margin-left:-100px;
  font-size:18px;
  padding:20px 40px;
}

#video-streams {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  height: 90vh;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
}

.video-container {
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.video-container-user {
  position: absolute;
  background: #f8fafa;
  top: 0;
  right: 0;
  width: 20%;
  height: 20%;
  border: 2px solid grey;
  z-index: 2;
}

.video-player{
  height: 100%;
  width: 100%;
}

button{
  border:none;
  border-radius: 25px;
  background-color: #0694e6;
  color:#fff;
  padding:10px 20px;
  font-size:16px;
  margin:2px;
  cursor: pointer;
}

#leave-btn{
  background-color: red;
}

#stream-controls{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  justify-content: center;
  margin-top:0.5em;
  align-items: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

button img {
  pointer-events: none;
}

#remote-message-card {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-size: 22px;
  font-style: italic;
  color: #000000;
  border-radius: 10px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
  padding: 20px;
  background-color: transparent;
  width: 80%;
  max-width: 500px;
}

#remote-camera-off-icon{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  color: black;
}

#user-camera-off-icon{
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #f8fafa;
}

.tooltip-container {
  position: relative;
}

.tooltip-container .tooltip-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);  /* Ajusta la posición vertical según tus necesidades */
  left: 50%;
  transform: translateX(-50%);
  background-color: #000;
  color: #fff;
  padding: 5px 10px;
  font-size: 16px; /* Ajusta el tamaño de fuente según tus necesidades */
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out;
}

.tooltip-container .tooltip-btn:hover::after {
  opacity: 1;
  visibility: visible;
}

.alert {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  position: fixed;
  top: 10%;
  left: 40%;
  border-radius: 5px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.alert-message {
  display: inline-block;
  text-align: center;
  font-size: 14px;  
  width: 200px;
  word-wrap: break-word;
}

.alert-close {
  margin-top: 20px;
  cursor: pointer;
}

#toggle-chat-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 3;
  border: none;
  border-radius: 25px;
  background-color: #0694e6;
  color: #fff;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

#chat-container {
  display: none;
  flex-direction: column;
  position: fixed;
  bottom: 25px;
  right: 20px;
  width: 350px;
  height: 400px;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  z-index: 2;
  margin-bottom: 60px;
}

#chat-messages-container {
  height: 80%;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #fcf7f7;
}

#chat-messages {
  font-family: 'Roboto', sans-serif;
  width: 95%;
  height: 100%;
  padding: 10px;
}

#chat-input-container {
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
  position: relative;
}

#inputs-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px; /* Nuevo estilo para agregar espacio entre los inputs y el botón "Enviar" */
}

#chat-input {
  flex: 1;
  margin-right: 10px;
  width: 80%;
  padding: 5px;
  border-radius: 8px;
  margin-bottom: 5px;
}

#file-input-container {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

#file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

#file-input-label {
  display: inline-block;
  padding: 5px 10px;
  background-color: #0694e6;
  color: #fff;
  cursor: pointer;
  margin-right: 10px;
  border-radius: 10px;
}

#file-input-label:hover {
  cursor: pointer;
  background-color: #0574b8;
}

#send-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

#send-button {
  position: absolute;
  bottom: 20px;
  right: 30px;
  padding: 5px 10px;
}

/* Estilos para mensajes enviados */
.message.sent {
  font-family: 'Roboto', sans-serif;
  background-color: #c6e4f8; /* Color de fondo para mensajes enviados */
  text-align: right; /* Alineación a la derecha para mensajes enviados */
}

/* Estilos para mensajes recibidos */
.message.received {
  font-family: 'Roboto', sans-serif;
  background-color: #F5F5F5; /* Color de fondo para mensajes recibidos */
  text-align: left; /* Alineación a la izquierda para mensajes recibidos */
}

/* Estilos para el contenido del mensaje */
.message .message-content {
  font-family: 'Roboto', sans-serif;
  padding: 10px; /* Espaciado interno del contenido del mensaje */
}

@media screen and (max-width: 1400px) {
  #video-streams {
    justify-content: center;
    align-items: center;
  }

  .tooltip-btn::after {
    font-size: 12px; 
    padding: 3px 6px; 
  }
  
  #btn-join {
    position: fixed;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    padding: 15px 30px;
  }
  
  .alert {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .alert-message {
    width: 100%;
  }

  #toggle-chat-btn {
    position: fixed;
    bottom: 20px;
    right: 10px;
    padding: 10px 20px;
    font-size: 14px;
  }

  #chat-container{
    right: 10px;
  }
}
