/*
 * @package AJAX_Chat
 * @author Sebastian Tschan
 * @author Philip Nicolcev
 * @copyright (c) Sebastian Tschan
 * @license Modified MIT License
 * @link https://blueimp.net/ajax/
 */

/* Positioning */
body.ajax-chat {
	padding:0;
	margin:0;
	overflow:hidden;
}

textarea:focus, input:focus{
    outline: none;
}
#loginContent {
	margin: 0 auto 0;
	padding-top: 20px;
	width:250px;
}
#loginContent #loginHeadline {
	margin:0;
	line-height:35px;
}
#loginContent #loginForm div {
	margin:5px 0;
}
#loginContent #loginRegisteredUsers {
    padding-top:5px;
}
#loginContent #copyright {
	margin:20px 0 0 0;
	text-align:right;
}
#content {
	position:absolute;
	right:0px;
	width:100%;
	height:100%;
	opacity:1;
}
#content #copyright {
	position:absolute;
	right:20px;
	top:20px;
}
#content #headline {
	position:absolute;
	left:0px;
	right:0px;
	top:0px;
	padding:0 0 0 20px;
	line-height:45px;
	margin:0;
}
#content #logoutChannelContainer {
	position:absolute;
	z-index:2;
	left:20px;
	top:50px;
	right:50px;
}
#content #logoutChannelContainer select{
	width:105px;
	height:22px;
}
#content #statusIconContainer {
	position:absolute;
	right:20px;
	top:50px;
	width:22px;
	height:22px;
}
#content #chatList {
	position:absolute;
	top:90px;
	width:100%;
	bottom:50px;
	overflow:auto;
}
#content #chatListWrap, #content #customEmojiWrap{
	position:absolute;
	top:90px;
	width:100%;
	bottom:50px;
	overflow:auto;
	background-color:#000;
	z-index:1;
}
#content #mainPanelContainer { 
	position:absolute;
	left:20px;
	right:20px;
	top:85px;
	bottom:150px;
}
#content #onlineListContainer, #content #helpContainer, #content #settingsContainer {
	float:right;
	height:100%;
	overflow:auto;
	margin-left:10px;
	position:relative;
}
#content #onlineListContainer h3, #content #helpContainer h3, #content #settingsContainer h3 {
	line-height:25px;
	padding: 0 10px;
	margin:0;
	text-align:center;
}
#content #onlineListContainer {
	width:200px;
}
#content #helpContainer, #content #settingsContainer {
	width:360px;
}
#content #onlineListContainer #onlineList, #content #helpContainer #helpList, #content #settingsContainer #settingsList {
	position:absolute;
	left:0px;
	right:0px;
	top:25px;
	bottom:0px;
	overflow:auto;
}
#content #helpContainer #helpList dl, #content #settingsContainer #settingsList dl {
	overflow:hidden;
	padding:5px;
	margin:0;
}
#content #helpContainer #helpList dt, #content #settingsContainer #settingsList dt {
	float:left;
	width:55%;
	padding:0 2% 0 0;
	margin:0;
	clear:left;
}
#content #helpContainer #helpList dd, #content #settingsContainer #settingsList dd {
	width:43%;
	float:left;
	margin:0;
	padding:0;
}
#content #inputFieldContainer {
	position:absolute;
	left:20px;
	right:20px;
	bottom:145px;
	padding-right:2px;
}
#content #inputFieldContainer #inputField {
	width:100%;
	height:140px;
	padding:0;
	}
#content #inputFieldContainer #inputField {
	width:100%;
	height:40px;
	padding:0;
}
#content #submitButtonContainer {
	position:absolute;
	right:20px;
	bottom:75px;
}
#content #bbCodeContainer {
	position:absolute;
	left:20px;
	bottom:20px;
	padding:3px;
}
#content #bbCodeContainer input {
	display:block;
	float:left; 
	margin-right:2px;
}
#content #bbCodeContainer #bbCodeEmoticon { 
	display:none;
}
#content #colorCodesContainer{
	position:absolute;
	left:20px;
	bottom:80px;
	padding:3px;
	z-index:1;
}

#content #emoticonsContainer {
	position:absolute;
	left:20px;
	bottom:85px;
	padding:3px;
	z-index:1;
}

#content #emoticonsContainer a {
	margin-left:1px;
	margin-right:1px;
	z-index:1;
}
#content #emoticonsContainer img {
	vertical-align:middle;
	margin-bottom:2px;
}
#content #colorCodesContainer a {
	display:block;
	float:left;
	width:20px;
	height:20px;
}
#content #optionsContainer {
	position:absolute;
	right:20px;
	bottom:20px;
	padding:3px 0 3px 3px;
}
#content #optionsContainer input {
    vertical-align:middle;
}
#content #bbCodeContainer input, #content #logoutButton, #content #submitButton, #loginContent #loginButton, .fpButton {
	padding: 4px 10px;
}
#content #logoutButton {
	display:block;
	float:left;
	margin: 0 5px 5px 0;
}
#content #chatList div {
	padding: 2px 10px;
}
#content #chatList img {
	vertical-align:middle;
	margin-bottom:2px;
}
#content #chatList cite {
	margin-right:5px;
}
#content #chatList .bbCodeImage {
	vertical-align:top;
	overflow:auto;
	margin:5px;
}
#content #chatList .delete {
	display:block;
	float:right;
	width:10px;
	height:10px;
	margin-top:2px;
	padding-left:5px;
	background:url('../img/delete.png') no-repeat right;
}
#content #onlineListContainer #onlineList div {
	padding: 2px 10px;
}
#content #onlineListContainer #onlineList a {
	display:block;
}
#content #onlineListContainer #onlineList ul {
	margin: 5px 0;
	padding-left:20px;
}
#content #settingsContainer #settingsList select.left {
	text-align:right;
}

/* Buttons */
#content #optionsContainer input, #content #settingsContainer #settingsList input.button, #content #showChannelsButton {
	background: url('../img/buttons-sprite.png') no-repeat;
	vertical-align:middle;
	width:22px;
	height:22px;
	padding:0;
}
#content #optionsContainer #helpButton {
	background-position: -69px -22px;
}
#content #optionsContainer #settingsButton {
	background-position: -92px 0px;
}
#content #optionsContainer #onlineListButton {
	background-position: -69px 0px;
}
#content #optionsContainer #audioButton {
	background-position: 0px 0px;
}
#content #optionsContainer #audioButton.off {
	background-position: 0px -22px;
}
#content #optionsContainer #autoScrollButton {
	background-position: -23px 0px;
}
#content #optionsContainer #autoScrollButton.off {
	background-position: -23px -22px;
}
#content #settingsContainer #settingsList input.playback {
	background-position: -92px -22px;
	margin-bottom:3px;
}
#content #logoutChannelContainer #showChannelsButton {
	background-position: -46px 0px;
	display:none;
}
#content #logoutChannelContainer #showChannelsButton.off {
	background-position: -46px -22px;
}

/* Borders */
#content img {
	border:none;
}
#content #chatList, #content #onlineListContainer, #content #helpContainer, #content #settingsContainer, #content #colorCodesContainer a, #content textarea {
	border-width:1px;
	border-style:solid;
}
#content #chatList .deleteSelected {
	border-width:1px;
	border-style:dotted;
}

/* Misc */
#content #bbCodeContainer input, #content #optionsContainer input.button, #content #settingsContainer #settingsList input.button, #content #logoutButton, #content #submitButton, #loginContent #loginButton {
	cursor:pointer;
}

@media (max-width: 700px) {
	#content #mainPanelContainer { top:65px; left:5px; right:5px; bottom:105px; }
	#content #headline { margin:0; padding:0 0 0 5px; line-height:25px; }
	#content #statusIconContainer { top:2px; right:2px; }
	#content #copyright { top:0px; right:30px; line-height: 25px;}
	#content #logoutChannelContainer { top:30px; left:5px; right:0px; }
	#content #logoutChannelContainer label { display:none; }
	#content #emoticonsContainer, #content #submitButtonContainer { display:none; }
	#content #bbCodeContainer { bottom:45px; left:5px; padding:0; }
	#content #bbCodeContainer #bbCodeEmoticon { display:block; }
	#content #bbCodeContainer #bbCodeQuote, #content #bbCodeContainer #bbCodeCode { display:none; }
	#content #optionsContainer { bottom:10px; right:5px; }
	#content #chatList { left:5px; right:150px; bottom:115px; font-size:12px; }
	#content #inputFieldContainer #inputField { height:20px; }
	#content #inputFieldContainer { left:5px; right:5px; bottom:75px; }
	#content #colorCodesContainer, #content #emoticonsContainer { bottom:85px; left:5px; }
	#content #onlineListContainer, #content #helpContainer, #content #settingsContainer { margin-left:0; border-left-width:0; }
}

@media (max-width: 480px) {
	#content #mainPanelContainer { top:65px; left:0px; right:0px; bottom:105px; }
	#content #onlineListContainer, #content #helpContainer, #content #settingsContainer { border-right-width:0; position:absolute; width:auto; top:0px; right:0px; bottom:0px; left:0px; }
	#content #chatList { border-left-width: 0; border-right-width: 0; }
	#content #bbCodeContainer #bbCodeIMG, #content #bbCodeContainer #bbCodeURL { display:none; }
	#content #bbCodeContainer { padding:0; }
	#content #emoticonsContainer { bottom:80px; left:5px; }
	#content #logoutChannelInner { display:none; clear:left; padding:5px; text-align:right; }
	#content #logoutChannelContainer #showChannelsButton { display:block; position:absolute; right:5px; top:5px; }
}

@media (max-height: 300px) {
	#content #inputFieldContainer #inputField { height:20px; }
	#content #bbCodeContainer, #content #optionsContainer, #content #emoticonsContainer, #content #submitButtonContainer, 
	#content #statusIconContainer, #content #logoutChannelContainer { display:none; }
	#content #inputFieldContainer { bottom: 5px; }
	#content #mainPanelContainer { bottom:40px; top:35px; }
}

/*Modified Chat Stuff*/

#onlineListContainer{
	display:none;
}

.avatar{
	width:40px;
	height:40px;
	border-radius:5px;
}

/*FrontPagePortal Start*/
#indexWrapper{
	position:absolute;
	top:0px;
	left:0px;
    right:0px;
	height:100%;
	overflow:auto;
}

.numericInput{
	width:50px;
}

.fourmCat, .catDesc{
	width:300px;
}

.catDesc{
	height:80px;
}

/*Blocks*/
#leftBlocks{
	position:absolute;
	top:70px;
	left:0px;
	width:350px;
	height:auto;
}

#navigationBlock, #chatViewer, #administrationBlock{
	position:relative;
	left:10px;
	width:340px;
}
	
#blockTitle{
	position:relative;
	text-align:center;
	top:-13px;
}

#blockList, #onlineUserList{
	position:relative;
	top:-15px;
}

span#onlineUserList{
	left:25px;
}

.proPic{
	position:relative;
	top:10px;
	left:10px;
	width:40px;
	height:40px;
	border-radius:5px;
}

.onlineUsername{
	position:relative;
	top:-7.25px;
	left:14px;
	line-height:50px;
}

.userOnlineBar{
	position:relative;
	top:7.25px;
}


#middleBlocks{
	position:absolute;
	top:70px;
	left:400px;
	right:400px;
	height:auto;
}

#newsBlock{
	position:relative;
	width:100%;
}

#closedBlock{
	position:absolute;
	top:70px;
	left:30px;
	right:30px;
}

#regInfo{
	font-size:11px;
}

#loginError{
	position:relative;
	left:20px;
	font-size:15px;
}

#loginSucessWrap{
	position:relative;
	top:40px;
	left:350px;
	right:200px;
}

#welcomeBackImg{
	width:100px;
	border-radius:15px;
	width:150px;
	height:150px;
}

#welcomeMsg{
	position:relative;
	top:-150px;
	left:170px;
}

#regForm{
	width:70%;
}

.reg{
	position:relative;
	height:35px;
	font-size:15px;
}

.formInput{
	position:relative;
	width:250px;
}

#results{
	position:relative;
	top:10px;
	width:800px;
}

#uploadPreview{
	width:130px;
	border-radius:10px;
}

#showUserPic{
	position:relative;
	top:-22.25px;
	left:70px;
	width:130px;
	height:130px;
	border-radius:10px;
}

#resultsInfo{
	height:250px;
}

.uploadPreview .onMobile{
	position:relative;
	width:50px;
	height:50px;
	border-radius:10px;
	left:40px;
}

#rightBlocks{
	position:absolute;
	top:70px;
	right:0px;
	height:auto;
}

#loginBox, #yourStats{
	position:relative;
	right:10px;
	width:340px;
}

#loginTable{
	position:relative;
	top:-10px;
}

table.yourStats{
	position:relative;
	left:78px;
	top:-73.25px;
}

input.loginInput{
	width:150px;
}

#yourStatsPic{
	position: relative;
	top:-10px;
	left:10px;
	width:60px;
	height:60px;
	border-radius:10px;
}

#usersOnline{
	position:relative;
	right:10px;
	width:340px;
}

/*FrontPagePortal End*/

/*admin start*/
#AdminPanel{
	position:relative;
	top:-20px;
	padding:5px;
	height:auto;
	line-height:25px;
}

.tablePic{
	position:relative;
	top:5.25px;
	left:-.25px;
}

.pagingPos{
	position:relative;
	top:15px;
}

.userSearchForm{
	position:absolute;
	top:70px;
	right:3.25px;
}

@media screen and (orientation:portrait){
	 .isMobile{
		display:none;
	}
}

table.userTablePos,  table.chanTablePos{
	position:relative;
	top:5px;
}

.chanGenerator{
	position:relative;
	top:15px;
}