body,html{
    padding:0;
    margin:0;
    background:rgb(238, 242, 255);
    font-family: arial,helvetica,sans-serif;
    /* font-family: "Comic Sans MS", "Comic Sans", cursive; */
    font-size: 14px;
}

#header{
        position:fixed;
        z-index: 1;
        background: rgba(255,255,255,0.78);
        color: black;
        left:0;
        right:0;
        text-align: right;
        font-size: 14px;
        padding:3px;
}

ul {
	list-style-type:none;
	padding:0;
	margin:0;
}

#settings{
	position:fixed;
	z-index: 2;
	top:27px;
	right:0px;
	padding:10px;
	background: rgb(238, 242, 255);
	border-bottom: 1px solid rgb(214, 218, 240);
	border-left: 1px solid rgb(214, 218, 240);
}

#sidebar{
        margin:0;
        position: absolute;
        right:0px;
        width:250px;
        top:26px;
        bottom:169px;
        overflow: auto;
        word-wrap: break-word;
		display: none;
}

#sidebar-banner{
	background:#AAA;
    margin:0;
	position: absolute;
    right:0px;
    width:255px;
    bottom:0px;
    height:169px;
    text-align: center;
}

.unselected-channel {
	background:none !important;
}

.sidebar-channel {
        display:inherit;
        padding:3px;
        padding-left:8px;
        background:rgb(214, 218, 240);
        margin-bottom: 3px;
}

.sidebar-channel:hover {
        cursor:pointer;
}

.channel-summary{
	font-size:12px;
	max-width:100%;
	overflow: hidden;
	max-height: 70px;
}

.board-link{
	color:white !important;
}

.board-link:hover{
	color:#016c71 !important;
}

@media (max-width: 900px) {
        #sidebar {
            display: none !important;
        }
        .sidebar-channel {
        	display: none;
		}
		#sidebar-banner {
			display: none;
		}
		#inputarea{
			right:0 !important;
		}
        #chat-container{
			width:100%;
		}

        #messageinput{
                padding:5px;
                margin:0;
                width:100%;
        }
        
        #nameinput{
                padding:0;
                margin:0;
                width:68%;
                float:left;
        }
        
        #channelinput{
                padding:0;
                margin:0;
                width:28%;
                float:right;
        }
        .alert{
            	right:0px !important;
        }
}

.float-left{
        float:left;
}

.float-right{
        float:right;
}

#inputarea{
    position:fixed;
    bottom:0;
    padding:0;
    margin:0;
    width:auto;
    left:0px;
	right:255px;
    background:rgb(153, 136, 238);
    font-size:16px;
    min-width:300px;
    height:155px;
    font-size:14px;
    text-align:center;
    overflow:hidden;
    padding:7px;
    display:none;
}

#messageinput{
    padding:0 .5%;
    padding-top: 3px;
    margin:0;
    width:99%;
    max-width:100%;
}

#nameinput{
    padding:0 .5%;
    margin:0;
    width:69%;
    float:left;
}

#channelinput{
    padding:0 .5%;
    margin:0;
    margin-right:-2px;
    margin-left:-2px;
    width:29%;
    float:right;
}

.greentext {
    color: #789922;
}

.redtext {
    color:rgb(221, 0, 0);
}

#chat-container{
	position:absolute;
    top:26px;
	bottom:168px;
	right:250px;
	left:0px
}

#chat-container.home-view{
	bottom:0px;
	right:0px;
}

#chatbox{
    position:absolute;
    overflow:auto;
    top:0px;
    left:0px;
    bottom:0px;
    right:0px;
    display:none;
}

.message{
    background:rgb(214, 218, 240);
    margin:5px;
    word-wrap:break-word;
	padding: 6px 8px 8px 8px;
	clear: both;
	max-height: 150px;
	overflow: hidden;
	position:relative;
	box-shadow: 0px 1px 4px rgba(0,0,0,.2);
}

.message:after {
	color:red;
}

.expanded-message, .has-embeds {
	max-height: none !important;
}

.dim-message{
    background:inherit;
}

.highlight{
	border-left: 4px solid rgb(221, 0, 0);
}

.hidden-message{
    display:none;
}

.message-image{
    padding:2px;
    padding-right:5px;
    vertical-align:text-top;
    max-width:250px;
    max-height:100px;
    border: 0;
}

.message-thumbnail {
	display:inline-block;
	float:left;
}

.message-image:hover {
    cursor:pointer;
}

.message-name{
    color:green;
    font-weight:bold;
    padding-right:4px;
}

.tripcode{
    font-weight:normal;
}

.message-number{
    padding-left:5px;
}

.message-number:hover {
    color:rgb(221, 0, 0);
    cursor:pointer;
}

.message-channel{
    padding-right:3px;
    color:black;
    border-radius:3px;
    padding: 0 3px;
    margin: 0 5px;
}
.message-replies{
	font-size:12px;
}

.message-channel:hover {
    cursor:pointer;
}

.moderation-tools{
    display:none;
    font-size: 12px;
    padding-left:5px;
}

.delete-action:hover {
    color:rgb(221, 0, 0);
    cursor:pointer;
}
.wipe-action:hover {
    color:rgb(221, 0, 0);
    cursor:pointer;
}
.warn-action:hover {
    color:rgb(221, 0, 0);
    cursor:pointer;
}

.ban-action:hover {
    color:rgb(221, 0, 0);
    cursor:pointer;
}
.silent-action:hover {
    color:rgb(221, 0, 0);
    cursor:pointer;
}
.country-action:hover {
    color:rgb(221, 0, 0);
    cursor:pointer;
}

a{
    color:rgb(221, 0, 0);
}

a:hover {
    cursor:pointer;
}

.center{
    width:100%;
    text-align:center;
}

.container{
    padding:20px;
}

.link{
    color:black;
    padding:5px;
    display:inline-block;
    text-decoration:none;
}

.link:hover {
    color:rgb(221, 0, 0);
    cursor:pointer;
}

textarea{
    resize: none;
    font-family: arial,helvetica,sans-serif;
    font-size:14px;
    border:1px solid rgb(153, 136, 238);

}

#messageinput{
    height:100px;
}

#fileinput,#recording{
    max-width:50%;
}

input{
    font-family: arial,helvetica,sans-serif;
    font-size:14px;
    border:1px solid rgb(153, 136, 238);

}

.input-button {
    vertical-align: middle;
}

select{
    font-size: 10px;
	padding:none;
	max-height: 20px;
}

button{
    font-size: 10px;
	padding:none;
	max-height: 20px;
}

.range-input{
    width:110px;
    height:16px;
    border:0px;
    padding:0px;
    margin:0px;
    vertical-align:middle;
    background:transparent;
}

/* code tag */
pre {
        white-space: pre-wrap;       /* css-3 */
        white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
        white-space: -pre-wrap;      /* Opera 4-6 */
        white-space: -o-pre-wrap;    /* Opera 7 */
        word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

.code {
	display:inline;
}

.admin{
    color:rgba(181,0,181,1);
}

.alert{
    background:white;
    color:black;
    border: none;
    text-align:center;
    padding:5px;
    right:270px;
    display:none;
}

#alert-captcha{
	background-color: rgb(238, 242, 255);
	border:1px rgb(214, 218, 240) solid;
}

.alert-message{
    display:block;
    color:black;
}

.alert-close{
    display:block;
    float:right;
}

.spoiler{
        background:black;
        color:black;
}

.spoiled{
	background:none;
}

.spoiler:hover{
        background:none;
}

#chatbox.shown, #inputarea.shown, #sidebar.shown, .shown{
    display:block;
}

.hidden{
    display:none;
}
	
.tooltip{
	display: inline;
	position: relative;
}

.tooltip:hover:after{
	background: #fff;
	background: rgba(255,255,255,.8);
	bottom: 10px;
	color: black;
	content: attr(data-country);
	left:0;
	font-size:12px;
	text-align: center;
	white-space:nowrap;
	position: absolute;
	z-index: 1000;
	width: auto;
	width: fit-content;
	border-radius:3px;
}

.flag img{
	height:22px;
	padding-left:5px;
    margin:0;
    margin-bottom:-5px;
}

.highlight{
	border-left: 4px solid rgb(221, 0, 0);
        background-color: rgb(179, 185, 218);
}
