/* by @darthvid@niu.moe, (c) 2017 */

/* grid area */

/* "clear fix", is this really needed? */
.grid:after {
	content: '';
	display: block;
	clear: both;
}

.grid-NSFW {
	border: dashed #009999;
	color: #009999;
	text-align: center;
	vertical-align: middle;
}

img {
	max-width: 100%;
	max-height: 100%;
}


img:hover {
	box-shadow: 0 0 5px 5px #b6b5b4;
}


/* header area */

.button-group {
	float: left;
}

.editbox {
	margin-bottom: 5px;
}

.inputInstance {
	float: left;
	color: gray;
}

.navLinks {
	float: right;
}

#headerleft {
	float: left;
	margin-right: 5px;
}

#ebinstancebar {
	float: left;
}

#headerright {
	float: right;
	margin-left: 5px;
}

#version {
	float: right;
	color: white;
}

#headerbar:after {
	content: '';
	display: block;
	clear: both;
}

#btnIsPolling {
	width: 40px;
}

#btnNSFW {
	width: 100px;
}

#btnLocal {
	width: 130px;
}


/* image zoom modal */

.modal {
	display: none;
	margin: auto;

	z-index: 1;
	background-color: rgb(0,0,0);
	background-color: rgba(0,0,0,0.61);
	position: fixed;

	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	padding-top: 60px;
/*
	overflow: auto;
*/
}

.modal-content {
	margin: auto;
	display: block;
	z-index: 2;
}

#imgZoom {
	box-shadow: 0 0 3px 3px #b6b5b4;
}

#imgZoom:hover {
	box-shadow: none;
}

#txtModal {
	text-align: center;
	padding-top: 5px;
	height: 150px;
}

.modal-content, 
#txtModal { 
	-webkit-animation-name: zoom;
	-webkit-animation-duration: 0.6s;
	animation-name: zoom;
	animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
	from {-webkit-transform:scale(0)} 
	to {-webkit-transform:scale(1)}
}

@keyframes zoom {
	from {transform:scale(0)} 
	to {transform:scale(1)}
}

.closeX {
	position: absolute;
	top: 15px;
	right: 35px;
	color: #f1f1f1;
	font-size: 40px;
	font-weight: bold;
	transition: 0.3s;
}

.closeX:hover,
.closeX:focus {
	color: #bbb;
	text-decoration: none;
	cursor: pointer;
}


/* generic body */

body {
	background-color: black;
}

a:link {
	text-decoration: none;
	color: white;
}

a:visited {
	text-decoration: none;
	color: white;
}

a:hover {
	text-decoration: underline;
	color: gray;
}

a:active {
	text-decoration: underline;
	color: gray;
}
