

/* CHAT */



* {
  box-sizing: border-box;
}

html {
  font-weight: 300;
  -webkit-font-smoothing: antialiased;

  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none;
}

html, input {
  font-family:
    "HelveticaNeue-Light",
    "Helvetica Neue Light",
    "Helvetica Neue",
    Helvetica,
    Arial,
    "Lucida Grande",
    sans-serif;
}

html, body {
  height: auto;
  margin: 0;
  padding: 0;
  font-size: 16px;
	overflow:hidden;
}

body {
  touch-action: none;
}

profileButton {
	border: 0px solid red;
	height:30px;
	width:30px;
	margin:0px;
	background-image: url('../images/profile_print_w.svg');
	background-repeat:no-repeat;
	background-position:center center;
	background-size: 30px 30px;
	background-size:contain;
	cursor:pointer;
	pointer-events: auto;
	display:inline-block;
	
	/*transition-timing-function: ease-in-out;
	-webkit-transition: rotateX 2s, rotateY 4s; 
  transition: rotateX 2s, rotateY 4s; */
}

profileButton.active {
	transform:rotateX(180deg);
	transform:rotateY(180deg);
}

lockButton {
	border: 0px solid red;
	height:30px;
	width:30px;
	margin:0px;
	background-image: url('../images/lock_open.svg');
	background-repeat:no-repeat;
	background-position:center center;
	background-size: 30px 30px;
	background-size:contain;
	cursor:pointer;
	pointer-events: auto;
	display:inline-block;
}

lockButton.active {
	background-image: url('../images/lock_closed.svg');
}


pencilButton {
	border: 0px solid red;
	height:30px;
	width:30px;
	margin:0px;
	background-image: url('../images/pencil_write.svg');
	background-repeat:no-repeat;
	background-position:center center;
	background-size: 30px 30px;
	background-size:contain;
	cursor:pointer;
	pointer-events: auto;
	display:inline-block;
}

pencilButton.active {
	background-image: url('../images/pencil_no_write.svg');
}


rightClickEnableButton {
	border: 0px solid red;
	height:30px;
	width:30px;
	margin:0px;
	background-image: url('../images/right_click_on.svg');
	background-repeat:no-repeat;
	background-position:center center;
	background-size: 30px 30px;
	background-size:contain;
	cursor:pointer;
	pointer-events: auto;
	display:inline-block;
}

rightClickEnableButton.active {
	background-image: url('../images/right_click_off.svg');
}



clearWhiteboardButton {
	border: 0px solid red;
	height:30px;
	width:30px;
	margin:0px;
	background-image: url('../images/whiteboard_eraser.svg');
	background-repeat:no-repeat;
	background-position:center center;
	background-size: 30px 30px;
	background-size:contain;
	cursor:pointer;
	pointer-events: auto;
	display:inline-block;
}

clearWhiteboardButton.active {
	/*background-image: url('../images/whiteboard_eraser.svg');*/
}





#hud {
	position:fixed;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width:180px;
	text-align: center; 
	margin: 0 auto;
	z-index: 30;
	font-size: 0;
	padding-top: 4px;
}

ul {
  list-style: none;
  word-wrap: break-word;
}

/* Pages */

.pages {
  margin: 0;
  padding: 0;
  width: 100%;
  z-index: 20;
  height: 50%;
  position: fixed;
  width: 100%;
  bottom:0;
  left:0;
  pointer-events: none;
  display: none;
}

.page {
  height: 100%;
  width: 100%;
  bottom:0;
  left:0;
  margin: 0 auto;
  display: block;
  position: absolute;
  border-top: 0px solid #ddd;
}

.page_mobile {
  left:50%;
  width:40%;
  -moz-transform: translate(-50%, 0%);
  -webkit-transform: translate(-50%, 0%);
  -o-transform: translate(-50%, 0%);
  -ms-transform: translate(-50%, 0%);
  transform: translate(-50%, 0%);
}

/* Login Page */

.login {
  z-index:30;
}
.login.page {
  background-color: rgb(100,100,100,.8);
}

.login.page .form {
  height: 100px;
  margin-top: -100px;
  position: absolute;

  text-align: center;
  top: 50%;
  width: 100%;
}

.login.page .form .usernameInput {
  background-color: transparent;
  border: none;
  border-bottom: 2px solid #fff;
  outline: none;
  padding-bottom: 15px;
  text-align: center;
  width: 80%;
}

.login .enterChatButton {
  color:#fff;
  background:#000;
  padding:10px;
  display: block;
  border: 0px solid red;
  z-index: 40;
  width:30%;
  margin: 0 auto;
  margin-top:20px;
  pointer-events:auto;
  cursor: pointer;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}

.login .enterChatButton:active {
  background:#666;
}

.login.page .title {
  font-size: 1.1em;
  color:#888 !important;
  margin: 10px;
  margin-top: 30px;

}

.login.page .usernameInput {
  font-size: 1.5em;
  pointer-events:auto;
  cursor: pointer;
}

.login.page .title, .login.page .usernameInput {
  color: #fff;
  font-weight: 100;
}

/* Chat page */

.chat {
  z-index: 24;
}

.chat.page {
  display: none;
  background: rgba(245,245,245,.3);
}

.controls {
  position: absolute;
  top:-18px;
  left:0;
  width:100%;
  z-index:40;
  text-align:center;
}


.controls .toggleDisplayButton {
  position: relative;
  background:#999;
  border:0px solid red;
  padding:4px;
  padding-top:5px;
  cursor:pointer;
  font-size: .9rem;
  line-height: .7em;
  color: #333;
  width: 40%;
  margin: 0;
  left: 50%;
  transform: translateX(-50%);
	pointer-events:auto;
}

.controls .toggleDisplayButton:hover {
  background:#ccc;
}

.controls .toggleDisplayButton:active {
  background:#eee;
}

.controls .toggleDisplayButton:focus {outline:0;}


.controls .toggleDisplayButton span {
	color: #555;
	font-size: .7rem;
	vertical-align:top;
	margin-left:8px;
}

/* Font */


.message {
  padding:2px;
	position: relative;
	 background:rgba(255,255,255,.05);
}

.message::-webkit-scrollbar              { background: rgba(255,255,255,.3) }
.message::-webkit-scrollbar-button       { /* 2 */ }
.message::-webkit-scrollbar-track        { background: red; }
.message::-webkit-scrollbar-track-piece  { /* 4 */ }
.message::-webkit-scrollbar-thumb        { /* 5 */ }
.message::-webkit-scrollbar-corner       { /* 6 */ }
.message::-webkit-resizer {} 

.message:nth-child(odd) {
  background:rgba(255,255,255,.1);
}

.message:first-child {
  margin-top:6px;
}

.message span.username {
  display: inline-block;
  vertical-align: top;
  padding: 2px 8px;
}

.message span.messageBody {
  display: inline-block;
  vertical-align: top;
	font-size: 1rem;
  line-height: 1.2em;
	padding: 2px 8px;
}

.messages {
  font-size: 1.1em;
	pointer-events:auto;
}

.log {
  color: white;
  font-size: .7em;
  margin: 5px 5px 5px 5px;
  text-align: center;
  background:rgba(255,255,255,.1);
}

/* Messages */

.chatArea {
  height: 100%;
  padding-bottom: 46px;
}

.messages {
  height: 100%;
  margin: 0;
  overflow-y: scroll;
  padding: 0;
}

.message.typing .messageBody {
  color: gray;
}


.messageBody .tab {
  content:'.';
	background:transparent;
	width:100px;
	padding:0;
	margin:0;
	display: inline-block;
  vertical-align: top;
}

.username {
  font-weight: 700;
  overflow: hidden;
  padding: 1px;
  padding-right: 15px;
  text-align: right;
  background: #333;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
	position:absolute;
	top:3px;
	left:4px;
	font-size: 1rem;
  line-height: 1.1em;
}

/* Input */

.inputMessage {
  border: 10px solid #888;
  bottom: 0;
  height: auto;
  left: 0;
  outline: none;
  padding: 4px;
  padding-left: 8px;
  position: absolute;
  width: 100%;
	font-size: .9em;
  pointer-events:auto;
}



.participantQueue {
  position: fixed;
  z-index: 30;
  margin:4px;
  bottom:10px;
  right:10px;
}

.participant {
  display: block;
	padding: 6px;
	background: red;
  content:"asdasd";
	color: #000;
	font-size: .9rem;
	margin-top: 2px;
	-webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
	text-align:center;
}