/*
-------------------
PRE-DEFINED TAGS
-------------------
*/

noscript {
	text-align: center;
	font-size: 25px;
	color: #bb7a20;
}

body {
	height: 100%;
	background: #DDD;
	margin: 0;
	padding: 0;
	font-family: 'Helvetica Neue', Helvetica, Arial, Verdana;
	line-height: 2em;
}

a {
	color: #999;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

img {
	image-rendering: optimizeSpeed;
	image-rendering: -moz-crisp-edges;
	image-rendering: -o-crisp-edges;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: optimize-contrast;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
	-moz-user-select: none;
}

webview {
	border-radius: 8px 0 8px 8px;
	width: 450px;
	height: 350px;
	overflow: hidden;
	margin: 10px auto 0 auto;
	display: block;
}

[type=text], [type=password], [type=button], [type=submit], textarea {
	display: block;
	background: #444;
	font-size: 1em;
	padding: 3px;
	color: #FFF;
	border: none;
	border: 1px solid #222;
	width: 205px;
	outline: none;
}

[type=button], [type=submit] {
	color: #FFF;
	background: #C0C0C0;
	border: none;
	cursor: pointer;
	border-radius: 4px 0 4px 4px;
}

::-webkit-input-placeholder {
	color: rgba(255, 255, 255, 0.85);
	color: #434343;
}

::-moz-placeholder {
	color: rgba(255, 255, 255, 0.85);
	color: #434343;
}

/*
-------------------
DARK MODE
-------------------
*/

body.darkMode {
	background: #111;
}

body.darkMode div#bubble {
	background: #222;
}

body.darkMode div#bubble div#info {
	border: 1px solid #999;
	background-color: #323232;
}

body.darkMode div#bubble div#info h1 {
	color: #fff;
}

body.darkMode .line {
	color: #fff;
}

body.darkMode .missingRecipients {
	background: #444;
	color: #DDD;
}

body.darkMode .userLeave {
	background: #444;
	color: #DDD;
}

/*
-------------------
MAIN WINDOW (BUBBLE)
-------------------
*/

div#bubbleWrapper {
	margin: 0 auto;
	width: 732px;
	position: relative;
}

div#bubble {
	position: relative;
	z-index: 1;
	width: 716px;
	height: 540px;
	background: #FFF;
	border: 6px solid #444;
	padding: 0 0 51px 0;
	display: none;
	float: left;
	transition: ease-in 100ms;
}

div#av {
	background: #444;
	width: 0;
	height: 0;
	padding: 36px 0;
	/* display: inline-block; */
	display: none;
	float: left;
	position: relative;
	z-index: 2;
	border-radius: 0 0 15px 0;
	margin-left: -12px;
}

div#bubble div#header {
	width: 100%;
	height: 28px;
	padding: 8px 0 0 0;
	direction: ltr;
}

div#bubble img.logo {
	display: inline;
	padding: 1px 0 0 0;
	float: left;
	height: 34px;
	border-radius: 5px 0 5px 5px;
	margin: -5px 5px 0 5px;
	direction: ltr;
}

div#bubble #logoText {
	display: inline-block;
	position: relative;
	z-index: 100;
	color: #bb7a20;
	-webkit-font-smoothing: none;
	font-size: 30px;
	font-weight: bold;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
	-moz-user-select: none;
	cursor: default;
}

div#bubble #optionButtons {
	display: none;
	float: right;
	position: absolute;
	top: -1px;
	right: 2px;
}

div#bubble .button {
	margin: 7px 0 0 3px;
	width: 14px;
	height: 14px;
}

div#bubble #login {
	margin: 70px auto 0 auto;
}

div#bubble #loginTabs {
	margin: 0 0 0 132px;
	font-weight: bold;
	width: 300px;
	z-index: 0;
	position: relative;
}

div#bubble #loginTabs span {
	background: #BBB;
	color: #FFF;
	padding: 5px 10px;
	font-size: 1.2em;
	border-radius: 5px 0 0 0;
	cursor: default;
}

div#bubble #loginTabs [data-selected=false]:hover {
	background: #C0C0C0;
}

div#bubble #loginTabs [data-selected=true] {
	background: #999;
}

div#bubble .loginForm {
	width: 500px;
	height: 172px;
	margin: auto;
	z-index: 1;
}

div#bubble .loginForm [type=text] {
	padding: 5px;
	text-align: center;
}

div#bubble .loginForm #conversationName {
	font-size: 2em;
	border-radius: 4px 0 0 0;
	width: 450px;
	margin: 0 auto 5px auto;
	display: inline-block;
	border: 0;
	outline: 0;
	background: transparent;
	border-bottom: 2px solid #0087AF;
}

div#bubble .loginForm #conversationNameStrength {
	visibility: hidden;
	width: 18px;
	height: 18px;
	background-size: 12px;
	background-repeat: no-repeat;
	border-radius: 100%;
}

div#bubble .loginForm #randomRoomName {
	display: inline-block;
	cursor: pointer;
	width: 20px;
	height: 20px;
	background-image: url('../img/icons/icons8-dice-90.png');
	background-size: 16px;
	background-repeat: no-repeat;
}

div#bubble .loginForm #nickname {
	width: 300px;
	font-size: 1.8em;
	margin: 0;
	display: inline;
	border: 0;
	outline: 0;
	background: transparent;
	border-bottom: 2px solid #0087AF; 
}

div#bubble #loginSubmit {
	width: 136px;
	display: inline;
	height: 41px;
	margin-left: 10px;
	position: relative;
	bottom: 2px;
	font-size: 1.6em;
	background: #0087AF;
}

div#bubble #loginSubmit:hover {
	background: #c99536;
}

div#loginInfo {
	text-align: center;
	font-size: 1.3em;
	background: transparent;
	padding: 3px;
	color: #FFF;
	border-radius: 0 0 4px 4px;
	width: 458px;
	margin: 9px 0;
}

div#bubble div#info {
	border: 1px solid #C0C0C0;
	padding: 4px 25px;
	border-radius: 4px 0 4px 4px;
	margin: auto;
	width: 80%;
	height: auto;
	font-size: 1.1em;
	line-height: 1.5em;
	font-family: Verdana, Arial, Helvetica;
}

div#bubble div li {
	margin: 5px 0;
}

div#bubble #info #introParagraph {
	/*color: #333;*/
	color: #e5e5e5;
}

div#bubble h1 {
	font-family: Helvetica, Arial;
	font-size: 1.5em;
}

div#bubble #footer {
	background: #444;
	width: 100%;
	height: 14px;
	padding: 1px 0 2px 0px;
	position: absolute;
	right: 0;
	bottom: 0;
	color: #FFF;
	font-weight: bold;
	font-size: 1.1em;
	z-index: 20;
}

div#footer a {
	color: #FFF;
}

div#footer #version {
	font-size: 10px;
	font-family: monospace;
	float: left;
	margin-left: 4px;
}

div#footer #website {
	font-size: 10px;
	padding-left: 16px;
	background-image: url("../img/icons/icons8-link-64.png");
	background-position: center left;
	background-repeat: no-repeat;
	background-size: 12px;
	float: left;
	margin-left: 16px;
}

div#footer #github {
	font-size: 10px;
	padding-left: 16px;
	background-image: url("../img/icons/github-mark-white.svg");
	background-position: center left;
	background-repeat: no-repeat;
	background-size: 12px;
	float: left;
	margin-left: 16px;
}

a#customServer {
	margin: 0 10px;
	float: right;
}

div#customServerDialog {
	display: none;
	margin: 30px auto;
}

div#customServerList {
	float: left;
	width: 50%;
	text-align: right;
}

div#customServerFields {
	float: left;
	text-align: left;
}

div#customServerDialog input, select#customServerSelector {
	margin: 8px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 4px 0 4px 4px;
	padding: 4px;
}

div#customServerDialog input#customName {
	background: #999;
}

div#customServerDialog input.disabled {
	cursor: auto;
	background: rgba(255, 255, 255, 0.2);
}

div#customServerDialog input.confirm {
	color: #C0C0C0;
}

div#customServerDialog [type=button] {
	display: inline;
	width: 96px;
}

div#customServerDialog #customServerSubmit {
	width: 215px;
}

select#customServerSelector {
	width: 210px;
	color: white;
	height: 124px;
	margin: 8px 8px 8px auto;
	display: block;
}

#customServerSelector::-webkit-scrollbar {
	width: 15px;
}

#customServerSelector::-webkit-scrollbar-track {
	border-radius: 10px;
}

#customServerSelector::-webkit-scrollbar-thumb {
	border-radius: 10px;
}

div#footer #languageSelect {
	margin: 0 10px;
	float: right;
}

div#footer #languages {
	-webkit-column-count: 9;
	-moz-column-count: 9;
	column-count: 9;
	display: none;
	position: relative;
	margin: 30px 0 0 0;
	width: 640px;
}

div#footer #languages li {
	cursor: pointer;
	color: #FFF;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 3px;
	margin: 4px auto;
	padding: 3px;
	width: 80px;
	list-style-type: none;
}

/*
-------------------
BUDDY LIST
-------------------
*/

#buddyWrapper {
	overflow: hidden;
	width: 117px;
	height: 480px;
	display: none;
	position: absolute;
	right: 0;
	z-index: 1000;
	top: 38px;
}

#buddyList {
	height: 479px;
	width: 150px;
	overflow-y: scroll;
	overflow-x: hidden;
	line-height: 13px;
	z-index: 1000;
}

.buddy {
	width: 110px;
	height: 15px;
	background: #444;
	border-radius: 2px 0 0 2px;
	margin-top: 2px;
	background-position: 80% 4px;
	background-repeat: no-repeat;
	background-size: 14px 14px;
	color: #FFF;
	padding: 5px 4px 3px 6px;
	font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
	font-size: 1em;
	display: none;
	position: relative;
	cursor: default;
	z-index: 15;
	/*transition: background-color 0.25s;*/
	transition: ease-in 250ms;
}

.buddy span.loginTypeIcon {
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	background-size: 16px 16px;
	position: absolute;
	left: 4px;
	padding: 0;
	margin: 0;
	border-radius: 3px 0 3px 3px;
	bottom: 4px;
	background-position: top left;
	background-image: url("../img/icons/user.svg");
}

.buddy.warning span.loginTypeIcon {
	background-image: url("../img/icons/user-minus.svg");
}

.buddy span.shortNickname {
	margin-left: 18px;
}

.buddy[status=away] span {
	color: #aab;
}

.buddy[status=offline] span {
	color: #BBB;
	border-bottom: none;
}

.buddy.currentConversation {
	background-color: #bb7a20;;
	color: #FFF !important;
}

.buddy.currentConversation span {
	color: #FFF !important;
}

.buddy.ignored span {
	text-decoration: line-through;
}

.buddyMenu {
	position: relative;
	z-index: 2;
	float: right;
	margin: 0;
	background-image: url("../img/icons/circle-down.svg");
	background-size: 10px 10px;
	background-position: 2px 2px;
	background-repeat: no-repeat;
	width: 14px;
	height: 14px;
	cursor: pointer;
	border-radius: 3px 0 3px 3px;
	direction: rtl;
}

.buddyMenu:hover {
	background-color: #C0C0C0;
}

.buddyMenu:active {
	background-color: #444;
}

.buddyMenuContents {
	display: none;
	margin: 5px 0 0 -2px;
	font-size: 0.9em;
	width: 100px;
}

.buddyMenuContents li {
	list-style-type: none;
	background: rgba(255, 255, 255, 0.3);
	padding: 3px;
	font-size: 0.9em;
	cursor: pointer;
	margin: 5px 0;
	border-radius: 3px 0 3px 4px;
}

.buddyMenuContents li:hover {
	background: rgba(255, 255, 255, 0.2);
}

#buddy-groupChat {
	display: block;
	background-image: url("../img/icons/users.svg");
	background-position: 96% 4px;
}

/* New message notification stuff */
@-webkit-keyframes pulse {
	0% {background-color: #000000;}
	50% {background-color: #CCC;}
	100% {background-color: #000000;}
}

@-moz-keyframes pulse {
	0% {background-color: #000000;}
	50% {background-color: #CCC;}
	100% {background-color: #000000;}
}

@-o-keyframes pulse {
	0% {background-color: #000000;}
	50% {background-color: #CCC;}
	100% {background-color: #000000;}
}

@keyframes pulse {
	0% {background-color: #000000;}
	50% {background-color: #CCC;}
	100% {background-color: #000000;}
}

.newMessage {
	-webkit-animation: pulse 2s infinite;
	-moz-animation: pulse 2s infinite;
	-o-animation: pulse 2s infinite;
	animation: pulse 2s infinite;
	background-image: url("../img/icons/bubbles2.svg");
}

.composing {
	background-image: url("../img/icons/pencil2.svg");
	background-position: 80% 5px;
	background-size: 12px 12px;
}

/*
-------------------
DIALOG BOX
-------------------
*/

#dialogBox {
	position: absolute;
	width: 470px;
	height: 240px;
	border-width: 1px;
	border-style: solid;
	border-color: #C0C0C0;
	border-radius: 8px 0 8px 8px;
	margin: 50px auto 0 -240px;
	z-index: 4;
	left: 50%;
	font-size: 1.1em;
	background: #FCFCFC;
	display: none;
	color: #151520;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.dialogBoxError {
	border-color: #F00 !important;
}

.dialogBoxError #openAuth {
	padding: 10px;
	margin: 20px auto 0 auto;
}

#dialogBox [type=text], #dialogBox [type=password], #dialogBox [type=submit] {
	color: #FFF;
	float: left;
	margin: 0 5px 10px 5px;
	font-size: 1em;
}

#dialogBoxClose {
	height: 18px;
	width: 0;
	font-size: 0;
	text-align: center;
	color: #FFF;
	background: #C0C0C0;
	float: right;
	margin-top: 4px;
	padding-bottom: 4px;
	cursor: pointer;
	font-family: Helvetica, Arial, Verdana;
	font-weight: bold;
}

.dialogBoxError #dialogBoxClose {
	background: #F00 !important;
}

#dialogBoxContent {
	padding: 25px 0 0 0;
}

#dialogBoxContent p {
	padding: 10px;
	padding: 10px;
	max-width: 340px;
	margin: 0 auto;
}

#displayInfo {
	font-size: 1.1em;
	padding: 10px 20px;
	height: 80px;
}

#displayInfo h2 {
	color: #000;
	margin: 0;
	font-size: 13px;
	margin-right: 10px;
}

#authenticated {
	font-size: 0.9em;
	cursor: pointer;
	padding: 1px 30px;
	height: 20px;
	border: 1px solid #999;
	background-color: transparent;
	color: #999;
	text-align: center;
	border-radius: 5px 0 5px 5px;
	display: inline-block;
	margin: 3px 25px 0 0;
	opacity: 0.4;
}

#authenticated:hover {
	opacity: 0.8;
}

#authenticated[data-active=true] {
	color: #FFF;
	background-color: #999;
	opacity: 1;
}

#notAuthenticated {
	font-size: 0.9em;
	cursor: pointer;
	padding: 1px 30px;
	height: 20px;
	border: 1px solid #EF6C74;
	background-color: transparent;
	color: #EF6C74;
	text-align: center;
	border-radius: 5px 0 5px 5px;
	display: inline-block;
	opacity: 0.4;
}

#notAuthenticated:hover {
	opacity: 0.8;
}

#notAuthenticated[data-active=true] {
	color: #FFF;
	background-color: #EF6C74;
	opacity: 1;
}

#authLearnMore {
	width: 230px;
	font-size: 0.9em;
	border: 1px dashed #999;
	padding: 0 4px;
	margin: 13px 0 5px 0;
	display: inline-block;
	border-radius: 3px 0 3px 3px;
}

#authLearnMore:hover {
	cursor: pointer;
	background: #ECECEC;
}

#authLearnMore:active {
	background: #DDD;
}

#authTutorial {
	margin-top: 10px;
	display: none;
}

.authInfo {
	background: #ECECEC;
	height: 130px;
	padding: 5px 8px;
	margin: 5px auto 0 auto;
	border-radius: 8px 0 8px 8px;
}

.authInfo h2 {
	font-size: 16px;
	padding: 3px;
	margin: 0 0 5px 0;
}

.authInfo #authQuestion, .authInfo #authAnswer {
	background: #999;
	padding: 4px;
	width: 260px;
	border: none;
	font-size: 1.05em;
	border-radius: 5px 0 5px 5px;
}

.authInfo #authSubmit {
	float: right;
	width: 100px;
	height: 57px;
	margin: -35px 20px 0 0;
	border-radius: 5px 0 5px 5px;
	font-size: 1.2em;
	background: #bb7a20;
	border: none;
	word-wrap: break-word;
}

#authVerified {
	text-align: center;
	font-size: 1.1em;
	color: #FFF;
	text-shadow: #FFF;
	display: none;
}

#authReplyForm {
	margin: -20px 0 5px 55px;
}

#authReply {
	background: #C0C0C0;
	border: none;
	border-radius: 5px 0 5px 5px;
	padding: 4px;
	width: 220px;
}

#authReplyQuestion {
	display: block;
	overflow: hidden;
}

#authReplySubmit {
	width: 100px;
	border-radius: 5px 0 5px 5px;
}

#dialogBox #fileInfoField {
	padding: 20px;
}

#progressForm {
	font-size: 0.9em;
}

#progressInfo span {
	font-size: 1.2em;
	font-weight: bold;
}

#progressForm img {
	float: left;
	margin: 8px 20px 0 0;
}

#progressInfo {
	font-size: 1em;
	position: relative;
	bottom: 70px;
}

#progressInfo #interestingFact {
	font-size: 1em;
	height: 55px;
	line-height: 1.6em;
	margin-top: 10px;
	color: #444;
}

#progressBar {
	margin-top: 10px;
	height: 18px;
	width: 290px;
	border: 1px solid #C0C0C0;
	padding: 1px;
}

#progressBar #fill {
	height: 100%;
	width: 0;
	background: #C0C0C0;
	opacity: 0.3;
}

.fileProgressBar {
	height: 14px;
	width: 72%;
	display: inline-block;
	vertical-align: -5px;
	margin-left: 10px;
	border: 1px solid #C0C0C0;
	padding: 1px;
}

.fileProgressBarFill {
	height: 100%;
	width: 0;
	background: #C0C0C0;
}

#dialogBox .title {
	padding: 5px 20px 5px 10px;
	border-left: none;
	background: #C0C0C0;
	max-width: 220px;
	margin-bottom: 2px;
	color: #FFF;
	font-size: 1.5em;
}

#dialogBox .errorTitle {
	background: #F00 !important;
}

#dialogBox #fileSelectButton {
	margin: 30px auto 10px auto;
	padding: 10px;
	border-radius: 4px 0 4px 4px;
	font-size: 1.2em;
}

#dialogBox #fileInfoField {
	color: #444;
}

#dialogBox #resetKeysOK {
	background: #AAA;
	border: 1px solid #C0C0C0;
	color: #C0C0C0;
	margin: 0 auto;
	width: 100px;
	font-size: 1.2em;
	cursor: pointer;
}

#dialogBox [type=checkbox] {
	width: 10px;
	height: 10px;
}

#otrFingerprint, #multiPartyFingerprint {
	font-weight: 600;
	font-size: 14px;
	font-family: monospace;
}

#fileSelector {
	display: none;
}

#fileErrorField {
	color: #F00;
	margin: 20px 0;
	font-weight: bold;
}

/*
-------------------
CONVERSATION WINDOW
-------------------
*/

#conversationInfo {
	color: #FFF;
	font-size: 1em;
	margin: 0 0 0 20px;
	position: relative;
	bottom: 4px;
	display: none;
}

#conversationInfo .conversationName {
	color: #FFF;
	background: #999;
	padding: 2px 7px;
	border-radius: 3px 0 3px 3px;
	font-size: 1.1em;
	margin-left: -5px;
}

#conversationWrapper {
	width: 597px;
	overflow: hidden;
	height: 80%;
	margin-top: -5px;
	display: none;
	padding: 10px 8px 0 8px;
	direction: ltr;
	position: absolute;
	left: 0;
}

#conversationWindow {
	z-index: 3;
	height: 100%;
	width: 622px;
	font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
	color: transparent;
	position: relative;
	font-size: 1.15em;
	overflow-x: hidden;
	overflow-y: scroll;
}

#conversationWindow .authStatus {
	width: 16px;
	height: 16px;
	display: inline-block;
	margin: 0 7px -4px -2px;
	border-radius: 4px;
	background-color: #EF6C74;
	background-image: url("../img/icons/warning.svg");
	background-size: 12px 12px;
	background-position: 2px 2px;
	background-repeat: no-repeat;
	cursor: pointer;
}

#conversationWindow .authStatus[data-auth=true] {
	background-color: #bb7a20;
	background-image: none;
}

#conversationWindow .timeStamp {
	color: #151520;
	text-shadow: 1px 1px #C0C0C0;
	font-size: 0.8em;
	font-family: monospace;
	vertical-align: 1px;
	display: none;
}

#conversationWindow .sender {
	padding: 5px;
	font-size: 0.95em;
	margin: 0 10px 0 -4px;
	min-width: 90px;
	cursor: default;
	border-radius: 0 0 3px 0;
	display: inline-block;
	padding: 2px 4px;
	text-align: left;
}

#conversationWindow .nickHighlight {
	color: #999;
}

.missingRecipients {
	background: #DDD;
	border-radius: 4px 0 0 0;
	margin-bottom: 1px;
	color: #444;
	font-size: 0.8em;
	padding: 0 10px;
	opacity: 0;
	display: inline-block;
	max-width: 90%;
}

.line {
	border: 2px solid #999;
	border-radius: 3px 0 3px 3px;
	padding: 0 4px 0 4px;
	color: #080812;
	word-wrap: break-word;
	text-align: left;
	position: relative;
	top: 20px;
	opacity: 0;
	margin-bottom: 8px;
	font-size: 1em;
	max-width: 92%;
	white-space: pre-wrap;
}

.line .sender {
	background: #999;
	color: #fff;
}

.visibleLine {
	opacity: 1;
	top: 0;
}

#userInput {
	display: none;
}

#userInputText {
	background: #333;
	border-radius: 7px 0 0 7px;
	padding: 8px 10px;
	height: 32px;
	width: 566px;
	margin: 10px 0 7px 0;
	display: inline;
	font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
	font-size: 1.25em;
	text-align: left;
	resize: none;
	overflow: hidden;
}

#userInputSend {
	width: 105px;
	height: 48px;
	float: right;
	margin: 10px 3px 0 0;
	border-radius: 0 0 7px 0;
	font-size: 1.8em;
	background: #bb7a20;
}

#userInputSend:hover {
	background: #00AEDE;
}

#userInputSend:active {
	background: #70B7DE;
}

.fileView {
	background: #C0C0C0;
	color: #FFF;
	padding: 0 5px 0 21px;
	font-size: 0.9em;
	border-radius: 3px 0 3px 3px;
	background-image: url("../img/icons/text-file2.svg");
	background-size: 16px auto;
	background-position: center left;
	background-repeat: no-repeat;
	display: inline-block;
}

.userJoin, .userLeave {
	background: #777;
	max-width: 165px;
	display: block;
	margin: 0 0 8px 0;
	padding: 0 5px;
	color: #FFF;
	border-radius: 3px 0 3px 3px;
	font-size: 0.9em;
}

.userLeave {
	background: #DDD;
	color: #444;
}

.userJoin .timestamp, .userLeave .timestamp {
	background: rgba(0, 0, 0, 0.2);
	padding: 3px 4px 2px 4px;
}

.userJoin strong, .userLeave strong {
	margin: 0 5px 0 7px;
	font-size: 1.4em;
	vertical-align: -1px;
}

.fileView:hover {
	text-decoration: none;
}

.monospace {
    font-size: 1.3em;
	position: relative;
	top: 1px;
}
