/* #upload */
 
* {
  box-sizing: border-box;
}

.emoji-seta {
  font-size: 14px;        /* tamanho pequeno */
  padding: 2px 6px;       /* botão menor */
  background: #00000020;  /* leve transparência */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  height: 28px;           /* altura pequena */
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-button {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

#toggleChat {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 1000;  /* Fica acima de outros elementos */
    background: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#smallChat {
    display: none;  /* Inicialmente oculto */
    position: fixed;
    bottom: 60px;  /* Coloca o chat um pouco acima do botão */
    right: 10px;
    width: 300px;  /* Largura do chat */
    max-height: 400px;  /* Limita a altura do chat */
    background: rgba(0, 0, 0, 0.7);  /* Fundo semitransparente (preto com opacidade) */
    padding: 15px;
    border-radius: 8px;  /* Bordas arredondadas */
    border: 1px solid #ddd;  /* Cor de borda suave */
    z-index: 999;  /* Fica acima de outros elementos */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);  /* Sombra suave */
    overflow-y: auto;  /* Permite rolagem se o conteúdo ultrapassar a altura */
    font-family: 'Arial', sans-serif;  /* Fonte mais legível */
    color: #fff;  /* Texto branco para maior contraste */
}

#smallChat p {
    background: rgba(255, 255, 255, 0.2);  /* Fundo suave para cada mensagem (semitransparente) */
    margin: 5px 0;
    padding: 8px;
    border-radius: 5px;  /* Bordas arredondadas nas mensagens */
    font-size: 14px;  /* Fonte ajustada */
    color: #fff;  /* Cor do texto das mensagens */
}

#smallChat p:nth-child(odd) {
    background: rgba(255, 255, 255, 0.3);  /* Cor alternada para mensagens ímpares */
}

#smallChat p:last-child {
    margin-bottom: 0;  /* Remove a margem inferior da última mensagem */
}


body {
  margin: 0;
  padding-top: 220px; /* espaço para o vídeo fixo no topo */
  background: #000;
  color: #fff;
  font-family: Arial, sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

button {
    padding: 12px 24px;
    background-color: #2A2A2A; /* Azul bebê escuro */
    color: #fff; /* Cor do texto nos botões */
    border: none;
    border-radius: 8px; /* Borda mais suave */
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 16px;
    font-weight: bold; /* Texto em negrito */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    outline: none; /* Remove o contorno ao focar */
    border: 10px solid transparent; /* Borda transparente */
    
}

@keyframes moveMessage {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) translateX(0); /* Começa no centro */
    }
    100% {
        opacity: 0;
        transform: translate(100%, -50%); /* Move para a direita até sumir da tela */
    }
}

#controlMenu button {
    background-color: #444;
    color: #fff;
    border: none;
    padding: 8px 14px;
    margin: 4px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  #controlMenu button:hover {
    background-color: #666;
  }

#message-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px; /* Aumenta o tamanho da fonte */
    color: white;
    padding: 10px;
    border-radius: 5px;
    z-index: 1;
    animation: moveMessage 8s linear forwards;
    display: none;
}

#emojiContainer {
    position: absolute;
    top: 60px; /* Ajuste a posição conforme necessário */
    left: 20px; /* Ajuste a posição conforme necessário */
    background: none;
    padding: 10px;
    z-index: 1000; /* Garante que o menu esteja acima de outros elementos */
}

.emoji-button {
    background: none; /* Remover fundo */
    border: none; /* Remover borda */
    font-size: 24px; /* Tamanho do emoji */
    cursor: pointer; /* Cursor de ponteiro */
    padding: 5px; /* Espa�amento interno do bot�o de emoji */
    margin: 2px; /* Espa�amento externo do bot�o de emoji */
    outline: none; /* Remover contorno */
}

#fullscreen-button {
    padding: 12px 20px;
    background-color: #2A2A2A;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

#adjustVideoSizeButton {
    position: absolute;
    top: calc(50% + 150px); /* Ajuste a posição vertical conforme necessário */
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 24px;
    background-color: #2A2A2A; /* Azul bebê escuro */
    color: #fff; /* Cor do texto nos botões */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
    font-weight: bold; /* Texto em negrito */
    z-index: 2; /* Garante que o botão fique na frente */
    display: none; /* Inicia oculto */
}

#video-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: none;
    transform-origin: center center;
    transition: transform 0.1s ease;
    z-index: 1000;
}

#videoPlayer {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantém a proporção do vídeo, cobrindo o contêiner */
    display: block;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    background-color: #000;
    
}

#exit-fullscreen-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 20px;
    background-color: #2A2A2A;
    color: white;
    border: none;
    z-index: 2;
    border-radius: 5px;
    cursor: pointer;
}



.chat-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow-y: auto; /* Permite rolar apenas a área do chat */
}

.chat-box {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
}

.message {
  margin-bottom: 10px;
}

.message span {
  font-weight: bold;
  color: #f7d038; /* cor do nome */
}

.slow-mode {
  text-align: center;
  color: #888;
  font-size: 12px;
  padding: 5px 0;
}

.input-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px;
  background: #111;
  border-top: 1px solid #222;
  z-index: 999;
}

.input-bar input {
  flex: 1;
  padding: 8px;
  border: none;
  background: #222;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
}

.input-bar button {
  background: #e60073;
  border: none;
  color: #fff;
  padding: 0 12px;
  margin-left: 6px;
  font-size: 16px;
  border-radius: 4px;
}

@media (min-height: 700px) {
  .chat-box {
    font-size: 15px;
  }
}

.hidden {
  display: none;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

#usuarios-online {
  position: fixed;
  bottom: 130px; /* ajuste conforme quiser */
  left: 10px;
  color: #fff;
  max-height: 250px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
  width: auto;
  font-size: 14px;
  z-index: 998;
  display: none;
}

#usuarios-online li {
  padding: 5px 8px;
  border-bottom: none;
  position: relative;
  padding-left: 20px; /* espaço para a bolinha */
}

#usuarios-online li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: #4CAF50; /* verde */
  border-radius: 50%; /* deixa redondo */
  box-shadow: 0 0 5px #4CAF50; /* brilho suave */
}
/* Botão flutuante para mostrar/ocultar a lista */
#toggle-users-btn {
  position: fixed;
  bottom: 10px;
  left: 10px;
  background-color: #222;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  z-index: 999;
  cursor: pointer;
  transition: background-color 0.2s;
  
  /* Centraliza o ícone */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}
#toggle-users-btn:hover {
  background-color: #444;
}