/* chat styles */

select {
  display: block;
  margin: 0 auto;
}

.center-wrapper{
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-container {
  max-width: 100%;
	background: #222222;
  border-style:solid;
  border-width: 1px;
  border-color:#222222;
}

.chat-header {
	color: #525252;
	padding: 5px;
	justify-content: space-between;
}

.room-info-container{
  margin-right: 10px;
}

#chat-room-name{
  margin-left: 5px;
  text-transform: uppercase;
}

#chat-room-description{
  margin-left: 5px;
  font-size: small;
  font-style: italic;
}

#chat-main {
  height: 350px;
  overflow: auto;
  background-color: #050404;
	display: grid;
  grid-template-columns: 1fr 5fr;
  border: 1px solid #555;
  margin-left: 10px;
  margin-right: 10px;
}

.chat-main-bottom{
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#toggle-chat-users-container{
  margin-left: 20px;
}

.chat-sidebar {
  overflow: auto;
}

.chat-sidebar h2 {
	font-size: 20px;
	background: rgba(0, 0, 0, 0.1);
	padding: 10px;
	margin-bottom: 20px;
}

.chat-sidebar h3 {
	margin-bottom: 15px;
}

.chat-sidebar ul li {
  padding: 1px 0;
  font-size: small;
}

.chat-sidebar::-webkit-scrollbar {
  width: 10px;
}

.chat-sidebar::-webkit-scrollbar-track {
  background: #181818; 
}
 
.chat-sidebar::-webkit-scrollbar-thumb {
  background: #888; 
}

.chat-sidebar::-webkit-scrollbar-thumb:hover {
  background: #555; 
}

.chat-messages {
  border-style: solid;
  border-color: #181818;
  border-width: 1px;
	padding: 5px;
	overflow-y: scroll;
}

#chat-paused{
  margin-top: 5px;
  font-style: italic;
  font-size: small;
  text-align: center;
}

.chat-notification{
  font-style: italic;
}

.chat-messages .message {
	padding: 1px;
	margin-bottom: 1px;
	overflow-wrap: break-word;
}

.chat-messages .message .meta {
  color:#28C12C;
	margin-bottom: 10px;
}

.chat-messages .message .meta .timestamp {
	color: #777;
}

.timestamp-on{
  color: #777;
  display: inline-block;
}

.timestamp-off{
  display: none;
}

.chat-messages .message .meta .username {
	color: #28C12C;
  font-weight: bold;
}

.chat-messages .message .meta .chat-text {
	color: #FFF;
}

.chat-messages::-webkit-scrollbar {
  width: 10px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #181818; 
}
 
.chat-messages::-webkit-scrollbar-thumb {
  background: #888; 
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #555; 
}

.chat-input-container {
  background-color: #222222;
}

.chat-input-container form {
	display: flex;
}

.chat-input-container input[type='text'] {
	padding: 10px;
  flex: 1;
  margin-right: 5px;
}

#chat-form {
  padding: 0px;
}

#characters-remaining{
  color: #28C12C;
  font-size: small;
  text-align: right;
  padding-right: 2%;
}

/* user list */
.user-list{
  color:#d3d3d3;
  position: relative;
  cursor: pointer;
  padding-top: 2px;
  padding-bottom: 2px;
}

.user-list:hover{
  background-color: #555555;
}

.user-list-dropdown{
  display: none;
  position: absolute;
  background-color: #7c7c7c;
  min-width: 200px;
  box-shadow: 0px 2px 2px 1px #000000;
  z-index: 1;
  text-align: center;
}

.user-list-dropdown a {
  color: #000000;
  padding: 12px 12px;
  text-decoration: none;
  display: block;
}

.user-list-dropdown a:hover {background-color: #00ff00}

.user-options .hide {
  display: none;
}

.avatar{
  margin-top: 5px;
  border-radius: 1px;
  border-color: #000000;
  border-style: solid;
}

.volume-control {
  -webkit-appearance: none;  /* Override default CSS styles */
  appearance: none;
  width: 100%;
  height: 20px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
  -webkit-transition: .2s; /* 0.2 seconds transition on hover */
  transition: opacity .2s;

}

.volume-control:hover {
  opacity: 1;
}

/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
.volume-control::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #00ff00;
  cursor: pointer;
}

.volume-control::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #00ff00;
  cursor: pointer;
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {display:block;}

/* Options Bar */
#chat-controls-container {
  float: left;
}

#chat-devices-container {
  float: left;
  margin-left: 5%;
}

#start-audio-container {
  margin-top: 10px;
  margin-left: 20px;
}

#start-webcam-container {
  margin-top: 10px;
  margin-left: 20px;
}

#start-screen-container {
  margin-top: 10px;
  margin-left: 20px;
}

#audio-source{
  margin-bottom: 5px;
}

#webcam-source{
  margin-bottom: 5px;
}

#screen-source{
  margin-bottom: 5px;
}

.chat-options {
  font-size: small;
  float:left;
  margin-left: 3px;
  margin-right: 3px;
}

#PTT-container{
  margin-left: 20px;
}

#PTT {
  width: 200px;
  height: 50px;
  border: 1px solid #28C12C;
  touch-action: none; /* Prevents scrolling/zooming when pressing button */
  user-select: none; /* Prevents text selection */
  -webkit-user-select: none;
  -webkit-touch-callout: none; /* Prevents callout on long press */
}

.ptt-active-pointer {
  margin-top: 0px;
  color: #000000;
  background: #00ff00;
  border: 0;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8em;
  display: flex;
  padding: 10px 16px;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 50px;
  /* Add visual feedback for active state */
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: scale(0.98);
}

.PTT:hover:active{
  margin-top: 0px;
  color: #000000;
  background: #00ff00;
  border: 0;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8em;
  display: flex;
  padding: 10px 16px;
  justify-content: center;
  align-items: center;   
}

.audio-details{
  display:flex;
}

.listeners-container{
  display: flex;
  width: 25px;
  height: 15px;
  border: 1px solid #111111;
  align-items: center;
  justify-content: center;
}

.listeners-container-green{
  display: flex;
  width: 25px;
  height: 15px;
  border: 1px solid #28C12C;
  align-items: center;
  justify-content: center;
}

.listeners-container-yellow{
  display: flex;
  width: 25px;
  height: 15px;
  border: 1px solid #f4e600;
  align-items: center;
  justify-content: center;
}

.listeners-container-red{
  display: flex;
  width: 25px;
  height: 15px;
  border: 1px solid red;
  align-items: center;
  justify-content: center;
}

.mic-levels-container{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-left: 5px;
}
.mic-levels{
  background: #222222;
  border: 1px solid #111111;
  width: 165px;
  height: 15px;
}

#audio-grid {
  display: none;
}

#video-grid{
display: flex;
overflow: auto;
}

.remote-video-container{
  position: relative;
}

.local-video-container{
  position: relative;
}

video { 
  width: 320px;
  height: 180px;
  border-color: #000000;
  border-width: 2px;
  border-style: solid;
  margin-left: 1px;
  margin-right: 1px;
}

.video-label {
  color: white;
  text-shadow: 2px 2px 5px #000000;
  font-weight: bold;
  position: absolute;
  left: 2%;
  bottom: 2%;
  padding: 2%;
}

#join-chat-container{
  margin-left: 90%;
  padding-top: 5px;
  padding-bottom: 5px;
}

#chat-options-container{
  display:flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

#chat-format-container{
  display: flex;
  margin-bottom: 20px;
}

.chat-format-options {
  margin-left: 20px;
}

.chat-options-form .PTT {
  margin-top: 0px;
  border-color: #00ff40;
  background: #000000;
  border:0;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8em;
  display: flex;
  padding: 10px 16px;
  justify-content: center;
  align-items: center;  
}

.chat-options-form .PTT:hover {
  background-color: #00ff40;
  color: #000000;
}

.chat-voice-container{
  display: none;
}

.voice-form{
  display: flex;
  padding: 0px;
  margin: 0px;
  margin-left: 20px;
}

#hands-free-container{
  justify-content: center;
  align-items: center;
}

.hands-free {
  color: white;
  font-size: small;
}

#hands-free-label {
  display: contents;
}

#current-voice-chatter-container{
  margin-top:5px;
  display: flex;
  text-align: center;
  justify-content: center;
  height: 30px;
}

.current-voice-chatter {
  display:flex;
  margin-left: 20px;
}

.user-talking {
  color: #f4e600;
  font-weight: bold;
  margin-right: 15px;
}

.user-talking-muted{
  color: #7c7c7c;
  text-decoration: line-through;
  font-weight: bold;
  margin-right: 15px;
}

.chat-format-label{
  color:#28C12C;
}

#display-timestamps-container {
  margin-left: 20px;
}

#timestamp-checkbox {
  display: block;
  margin: auto;
}

#hide-cams-container {
  margin-left: 20px;
  display: none;
}

#refresh-cams-container {
  display: none;
}

#audio-mute-container {
  margin-left: 20px;
  display: none;
}