@font-face {
    font-family: RobotoSlab;
    src: url('rs.ttf');
}

@font-face {
    font-family: RobotoSlabBold;
    src: url('rsb.ttf');
}

@font-face {
    font-family: RobotoSlabLight;
    src: url('rsl.ttf');
}

@font-face {
    font-family: RobotoSlabThin;
    src: url('rst.ttf');
}

@font-face {
    font-family: 'groboldregular';
    src: url('grobold-webfont.woff2') format('woff2'),
         url('grobold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html,body {
    margin: 0px;
    padding: 0px;
    height: 100%;
    width: 100%;
    font-family: 'RobotoSlab', serif;
}

a:link {
    color: #1565c0;
}

a:visited {
    color: #9C27B0;
}

a:active {
    color: #F44336;
}

a:hover,#requiresURL:hover {
	text-decoration: underline;
}

#wrapper {
    position: fixed;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
}

#socialDiv {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    display: none;
}

#menuBar {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 40px;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: rgba(125,125,125,.5);
    background-color: rgba(125,125,125,.1);
}

#menuToggle {
    cursor: pointer;
	-moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#menuIcon {
    position: absolute;
	top: 13px;
	left: 13px;
	font-size: 18px;
}

#menuName {
	font-size: 16px;
	position: absolute;
	top: 11px;
	left: 43px;
	font-weight: bold;
}

#usersDiv {
	display: none;
	position: absolute;
    top: 41px;
    right: 0px;
    width: 200px;
    height: calc(100% - 82px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#usersDiv .userCard {
	padding: 12px;
	cursor: pointer;
	-moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#usersDiv .userCard:hover {
	background-color: rgba(125,125,125,.1);
}

#usersDiv .userCard i {
	margin-right: 12px;
	color: #9E9E9E;
}

#usersDiv .userCard span {
	font-size: 14px;
	font-family: RobotoSlabBold;
	margin-left: 12px;
}

#contentDiv {
    position: absolute;
    top: 41px;
    left: 0px;
    width: 100%;
    height: calc(100% - 82px);
    -webkit-overflow-scrolling: touch;
	overflow: auto;
}

div.post {
	clear: both;
	position: relative;
	padding: 12px;
	border-bottom-style: solid;
	border-bottom-width: 1px;
	border-bottom-color: rgba(125,125,125,.2);
}

div.post:hover {
	background-color: rgba(125,125,125,.1);
}

div.dunce {
	opacity: .2;
}

span.link {
	color: #0066ff;
	font-weight: 200;
	cursor: pointer;
}

div.postToken {
	height: 48px;
	width: 24px;
	background-size: cover;
	background-position: center;
	display: block;
	position: absolute;
	top: 14px;
	left: 12px;
	-moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
	cursor: default;
}

img.postAvatar {
	height: 24px;
	width: 24px;
	border-radius: 25px;
	display: block;
	position: absolute;
	top: 22px;
	left: 12px;
	-moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
	cursor: default;
}

div.postContent {
	margin-left: 32px;
	font-weight: 100;
	padding: 6px;
}

p.postNametag {
	margin: 0px;
	padding: 0px;
	font-size: 14px;
	font-family: RobotoSlabBold;
	-moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
	cursor: default;
}

p.postUsername {
	margin: 0px;
	padding: 0px;
	font-size: 14px;
	font-family: RobotoSlabBold;
	color: #4CAF50;
	-moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
	cursor: default;
	display: inline-block;
}

.usernameWithNametag {
	font-size: 12px !important;
	font-family: RobotoSlab !important;
}

p.clickable {
	cursor: pointer !important;
}

p.clickable:hover {
	text-decoration: underline;
}

div.moderator p.postUsername {
	color: #2196F3;
}

div.developer p.postUsername {
	color: #FFC107;
}

div.dunce p.postUsername {
	color: #795548;
}

p.postTimestamp {
	font-size: 10px;
	margin: 0px 0px 0px 8px;
	padding: 4px 0px 0px 0px;
	color: rgba(125,125,125,.8);
	-moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
	cursor: default;
	display: inline-block;
}

p.postContent {
	margin: 6px 0px 0px 0px;
	padding: 0px;
	font-size: 16px;
	font-weight: 100;
	word-wrap: break-word;
}

p.postContent a {
	text-decoration: none;
}

p.postContent a:hover {
	text-decoration: underline;
}

p.postContent img {
	display: block;
	max-width: 95%;
	margin: 6px auto;
	text-align: center;
}

blockquote {
	background-color: rgba(125,125,125,.4);
	margin: 6px 6px 6px 12px;
	padding: 4px;
	font-size: 14px;
}

#bottomDiv {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 40px;
    border-top-style: solid;
    border-top-width: 1px;
    border-top-color: rgba(125,125,125,.5);
    background-color: rgba(125,125,125,.1);
}

.embed #bottomDiv {
	background-color: transparent;
}

.embed p.postContent {
	margin: 0px;
}

.embed p.postTimestamp {
	font-size: 12px;
	position: absolute;
	top: 12px;
	right: 12px;
	display: block;
	margin: 0px;
}

#slidingMenu {
    background-color: #ffffff;
    color: #333333;
    box-shadow: 6px 0px 6px rgba(0,0,0,.2);
	width: 240px;
    height: calc(100% - 41px);
    position: absolute;
    top: 41px;
    left: -240px;
    display: none;
}

div.settingsItem {
	padding: 10px 12px 10px 48px;
	font-size: 16px;
	cursor: pointer;
	position: relative;
}

div.settingsItem img, div.settingsItem svg {
	position: absolute;
	width: 24px;
	height: 24px;
}

div.settingsItem img {
	top: 10px;
	left: 8px;
}

div.settingsItem svg {
	top: 9px;
	left: 12px;
}

div.settingsItem:hover {
	background-color: rgba(125,125,125,.1);
}

#menuColor input {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	opacity: 0;
	cursor: pointer;
}

input {
	font-family: RobotoSlabBold;
}

input.textbox {
	border-style: none;
	border-width: 0px;
	padding: 6px;
	margin-left: -6px;
	margin-top: 6px;
}

input.textbox:focus {
    outline-width: 0;
}

button.btn {
	border-width: 0px;
	border-style: none;
	margin: 0px;
	height: 28px;
	padding: 6px;
	font-weight: bold;
	background-color: #ffffff;
	font-size: 12px;
	cursor: pointer;
	text-transform: uppercase;
	font-family: RobotoSlabLight;
}

input.loginbox,#loginSubmit {
	border-style: solid;
	border-color: #cccccc;
	border-width: 1px;
	border-radius: 4px;
	box-shadow: 0px 2px 2px rgba(0,0,0,.1);
}

#postInput {
	position: absolute;
	left: 12px;
	width: calc(100% - 80px);
    background: transparent;
}

#submitButton {
	position: absolute;
	bottom: 10px;
	right: 18px;
	font-size: 18px;
	cursor: pointer;
}

#loginDiv {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    width: 90%;
    max-width: 420px;
    text-align: center;
}

#loginDiv h1 {
    font-size: 24px;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
	font-family: groboldregular;
	color: #1976D2;
    -webkit-text-stroke: 1px #0D47A1;
	text-shadow: 0px 4px 4px rgba(0,0,0,.2);
	text-transform: lowercase;
	cursor: default;
	margin: 0px;
	padding: 0px;
}

#loginDiv h2 {
    font-size: 42px;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
	color: #1976D2;
    -webkit-text-stroke: 1px #0D47A1;
	text-shadow: 0px 4px 4px rgba(0,0,0,.2);
	cursor: default;
	padding: 0px;
	margin: 0px 0px 24px 0px;
}

#requiresURL {
	color: #1565c0;
}

#loginDiv .apeLogo {
    font-family: 'groboldregular';
    color: #8d7269;
    -webkit-text-stroke: 1px #715d56;
    text-shadow: 0px 6px 6px rgba(0,0,0,.1);
    text-transform: lowercase;
    font-size: 2.2em;
    text-decoration: none;
}

#loginDiv input {
	margin-bottom: 6px;
	display: block;
	width: 100%;
}

#loginDiv button {
	float: right;
	margin-right: -5px;
}

#accountNotice {
	clear: both;
	margin-top: 80px;
	font-size: 12px;
	-moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
	cursor: default;
	font-family: RobotoSlabBold;
}

#requiresURL {
	cursor: pointer;
}

#copyrightNotice {
	width: 100%;
	font-size: 12px;
	cursor: pointer;
	-moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
	font-family: RobotoSlabThin;
}

#channelsDiv {
	display: none;
	position: absolute;
    top: 41px;
    left: 0px;
    width: 199px;
    height: calc(100% - 82px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* Let's get this party started */
::-webkit-scrollbar {
    width: 6px;
}
 
/* Track */
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(125,125,125,.3);
}
 
/* Handle */
::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    
    -webkit-box-shadow: inset 0 0 6px rgba(125,125,125,.5);
}
::-webkit-scrollbar-thumb:window-inactive {
	background: rgba(125,125,125,.5);
}

@media only screen and (min-width: 500px) {
	#usersDiv:not(.embed) {
		display: block;
	}

	#contentDiv:not(.embed) {
		width: calc(100% - 201px);
		border-right-style: solid;
		border-right-width: 1px;
		border-right-color: rgba(125,125,125,.5);
	}
}

@media only screen and (min-width: 700px) {
	#channelsDiv:not(.embed) {
		display: block;
	}

	#contentDiv:not(.embed) {
		width: calc(100% - 402px);
		left: 200px;
		border-left-style: solid;
		border-left-width: 1px;
		border-left-color: rgba(125,125,125,.5);
	}
}
