
ARTICLE SELECT {width: 150px;}
INPUT, TEXTAREA {box-sizing: border-box;}
TD>INPUT[type="button"] {width: 100%;}
TD>INPUT[type="submit"] {width: 100%;}
TD>INPUT[type="text"] {width: 100%;}
TD>INPUT[type="password"] {width: 100%;}
TD>SELECT {width: 100%;}
TD>TEXTAREA {width: 100%;}

TABLE.form {width: 300px;}
TABLE.form TD, TABLE.form TH {vertical-align: middle;}
TABLE.form TBODY TD {text-align: left;}
TABLE.form TBODY TH {text-align: right; padding-right: 4px; width: 1%;}
TABLE.form TD + TH {padding-left: 8px;}

*[onclick],
H3[class~="shm-toggler"],
.sortable TH {
	cursor: pointer;
}
IMG {border: none;}
FORM {margin: 0px;}
IMG.lazy {display: none;}

#flash {
	background: #FF7;
	display: block;
	padding: 8px;
	margin: 8px;
	border: 1px solid #882;
}


CODE {
	background: #DEDEDE;
	font-size: 0.8em;
}
BLOCKQUOTE {
	border: 1px solid black;
	padding: 8px;
	background: #DDD;
}
.anchor A.alink {
	visibility: hidden;
}
.anchor:hover A.alink {
	visibility: visible;
}

/* Only need to change the file/url inputs */
#large_upload_form INPUT.wid {
	width: 100%;
}
#radio_button {
	width: auto;
}
#wrapper {
    opacity: 0.4;
    filter: alpha(opacity=40); /* msie */
}

/* This is needed since the theme style.css forcibly sets vertical align to "top". */
TABLE.vert TD, TABLE.vert TH {vertical-align: middle;}
.mini_upload INPUT {
	width: 100%;
}

#dropzone {
	-webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none; /* Safari */
	-khtml-user-select: none; /* Konqueror HTML */
	-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* Internet Explorer/Edge */
	user-select: none;
}
.file-hint {
	font-weight: bold;
	font-size: 1.5em;
	background-color: #ffffff;
	outline: dashed 2px #999999;
	box-shadow: 0 0 0 2px #ffffff;
	color: #454545;
	text-align: center;
	padding: .7em;
	margin-bottom: .4em;
}
.dragover {
	background-color: #fffabb;
	outline: dashed 3px #ff6600;
	box-shadow: 0 0 0 3px #fffabb;
	animation: 1s dragEvent ease infinite;
}
.dragover span {
	display: inline-block;
	animation: pulsate .8s ease-in-out infinite alternate;
}

@keyframes dragEvent {
	to 	{outline-color: #fffabb; box-shadow: 0 0 0 3px #ff6600}
}

@keyframes pulsate {
	0%	{transform: scale(1.0)}
	100%	{transform: scale(0.7)}
}

.file-tmb {
	border: 1px solid #999999;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: contain;
	display: inline-block;
	text-align: center;
	height: 50px;
	width: 50px;
	position: absolute;
	top: 0px;
	left: 0px;
	white-space: pre-wrap;
	word-wrap: break-word;
	word-break: break-all;
}
.tmb-container {
	position: relative;
	text-align: left;
	min-height: 60px;
	cursor: pointer;
}
.tmb-filename {
	display: inline-block;
	width: 110px;
	position: relative;
	left: 60px;
	white-space: pre-wrap;
	word-wrap: break-word;
	word-break: break-all;
}
.filetoobig .tmb-filesize {
	color: #ff0000;
}
.filetoobig .file-tmb {
	border-color: #cc0000;
}
.limit_exceeded {
	background-color: #e9bcbc;
	outline: 2px solid #cc0000;
	color: #cc0000;
}

.spinner {
	margin: 0 auto 2em auto;
	height: 6em;
	text-align: center;
	font-size: 10px;
}

.spinner > div {
	background-color: #333;
	height: 100%;
	width: 1em;
	margin: 0 .2em;
	display: inline-block;
	animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
	animation-delay: -1.1s;
}

.spinner .rect3 {
	animation-delay: -1.0s;
}

.spinner .rect4 {
	animation-delay: -0.9s;
}

.spinner .rect5 {
	animation-delay: -0.8s;
}

@keyframes sk-stretchdelay {
	0%, 40%, 100% { 
		transform: scaleY(0.4);
	}  20% { 
		transform: scaleY(1.0);
	}
}

.tmb-container:hover .file-tmb:after {
	content: "✖";
	color: #ff0000;
	font-weight: normal;
	font-size: 34px;
	display: inline-block;
	position: absolute;
	top: 0px;
	left: 12px;
}
#progress_wrapper {
	display: block;
	text-align: left;
	position: relative;
	height: 5px;
	background-color: #e0e0e0;
}
#upload_progress {
	display: inline-block;
	height: 5px;
	background-color: #00bfff;
	float: left;
}

 /* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #eee;
    margin: 15% auto; /* 15% from the top and centered */
    padding: .25em;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.modal-close {
    color: #FF0000;
    font-size: 3em;
    font-weight: bold;
    float: right;
}

.modal-close:hover,
.modal-close:focus {
    color: #CC0000;
    text-decoration: none;
    cursor: pointer;
} 

.js .image_info .edit {
	display: none;
}
.js .image_info .view {
	display: block;
}

.no-js .image_info .edit {
	display: block;
}
.no-js .image_info .view {
	display: none;
}


.setupblocks {
	column-width: 400px;
	-moz-column-width: 400px;
	-webkit-column-width: 400px;
	max-width: 1200px;
	margin: auto;
}
.setupblocks > .setupblock:first-of-type { margin-top: 0; }

.setupblock {
	break-inside: avoid;
	-moz-break-inside: avoid;
	-webkit-break-inside: avoid;
	column-break-inside: avoid;
	-moz-column-break-inside: avoid;
	-webkit-column-break-inside: avoid;
	text-align: center;
	width: 90%;
}
.setupblock TEXTAREA {
	width: 100%;
	font-size: 0.75em;
	resize: vertical;
}

.helpable {
	border-bottom: 1px dashed gray;
}

.ok {
	background: #AFA;
}
.bad {
	background: #FAA;
}

#Setupmain .blockbody {
	background: none;
	border: none;
	box-shadow: none;
	margin: 0px;
	padding: 0px;
}


.comment {
	text-align: left;
	position: relative;
	word-wrap: break-word;
}
.comment IMG {
	max-width: 100%;
}
.comment .info {
	visibility: hidden;
	text-align: center;
	padding: 8px;
	background: #DDD;
	border: 1px solid #CCC;
	position: absolute;
	top: 0px;
	left: -195px;
	width: 180px;
	z-index: 1;
	box-shadow: 0px 0px 4px #000;
	border-radius: 4px;
}
.comment:hover .info {
	visibility: visible;
}

.comment_add TEXTAREA {
	width: 100%;
}
.comment_add INPUT {
	width: 100%;
}

#comment-list-list .blockbody,
#comment-list-recent .blockbody,
#comment-list-image .blockbody,
#comment-list-user .blockbody {
	background: none;
	border: none;
	box-shadow: none;
	margin: 0px;
	padding: 0px;
}


#image-list .blockbody {
	background: none;
	border: none;
	box-shadow: none;
	margin: 0px;
	padding: 0px;
	text-align: justify;
}

.admin {
	padding: 4px;
	border-radius: 4px;
	background: green;
	margin: 6px;
	width: 200px;
	display: inline-block;
}
.admin.protected {
	background: red;
}
.admin INPUT[type="submit"] {
	width: 100%;
}
.admin.protected INPUT[type="submit"] {
	width: 90%;
}


#JS-alertbox {
	cursor: default;
	font: 16px sans-serif;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 9999;
}
.alertbox {
	background-color: #FFF;
	border: 1px solid #333;
	border-radius: 5px;
}
#blotter1 {font-size: 80%; position: relative;}
#blotter2 {font-size: 80%;}

#downtime #message, #downtime #login {
	text-align: center;
}
#downtime H3 {
	margin-top: 32px;
}
#downtime #login_table {
	margin: auto;
}


div#front-page h1 {font-size: 4em; margin-top: 2em; margin-bottom: 0px; text-align: center; border: none; background: none; box-shadow: none; -webkit-box-shadow: none; -moz-box-shadow: none;}
div#front-page {text-align:center;}
.space {margin-bottom: 1em;}
div#front-page div#links a {margin: 0 0.5em;}
div#front-page li {list-style-type: none; margin: 0;}
@media (max-width: 800px) {
	div#front-page h1 {font-size: 3em; margin-top: 0.5em; margin-bottom: 0.5em;}
	#counter {display: none;}
}

div#front-page > #search > form { margin: 0 auto; }
div#front-page > #search > form > ul { width: 225px; vertical-align: middle; display: inline-block; }
div#front-page > #search > form > input[type=submit]{ padding: 4px 6px; }

#image-additional {
	font-size: 1.2em;
	padding: .5em 1em;
}
#image-additional a {
	font-weight: bold;
	text-decoration: none;
	padding: .2em .5em;
	border-radius: 5px;
	border: 1px solid #333333;
	color: #ffffff;
	background: #757575;
	text-shadow: 2px 2px 2px #333333;
	margin-left: .25em;
}
#image-additional a:hover {color: #ffa500;}
#additional_info span {margin: 0 .15em;}
#additional_vote_up, #additional_vote_down, #additional_fave {cursor: pointer;}
#additional_fave_score, #additional_vote_down {margin-right: .5em !important;}
#additional_vote_up {color: #67af2b;}
#additional_vote_down {color: #cf0001;}
.fave_unset {color: #ffa500;}

.mass-tagger-selected {
	border: 3px solid blue;
}
#search_help {
	display: inline-block;
	padding: .5em .2em 0 .2em;
	color: #757575;
	font-size: .9em;
}

#search_help a, #content_frame a {cursor: pointer}
#content_frame a {text-decoration: none; color: #000000}

#search_help_content {
	max-height: calc(100% - 100px);
	min-width: 30em;
	position: fixed;
	top: 50%;
 	left: 50%;
	transform: translate(-50%, -50%);
	background: #FFFFFF;
	border-radius: 5px;
	border: 1px solid #48B0FD;
	padding: .75em;
	overflow-y: auto;
	overflow-x: hidden;
	box-shadow:
	        inset 0 0 0 1px rgba(255,255,255,0.5),
	        0 1px 3px rgba(0,0,0,0.2),
	        0 0 0 1px rgba(0,0,0,0.1),
	        0 3px 8px rgba(0,0,0,0.1);
	z-index: 500;
}

#search_help_controls {
	padding: 1em;
	text-align: right;
}

.search_example {
	white-space:nowrap;
	display: inline-block;
	border: 1px solid #999999;
	background: #DDDDDD;
	padding: .3em .5em;
	margin: .1em 0;
}
#search-helper {
	font-size: 1.20em;
	color: #ff6600;
	cursor: pointer;
  -webkit-touch-callout: none;
    -webkit-user-select: none;
     -khtml-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}
#helperGUI {
	position: absolute;
	background: #FFFFFF;
	border-radius: 5px;
	border: 1px solid #48B0FD;
	padding: 1em;
	box-shadow:
	        inset 0 0 0 1px rgba(255,255,255,0.5),
	        0 1px 3px rgba(0,0,0,0.2),
	        0 0 0 1px rgba(0,0,0,0.1),
	        0 3px 8px rgba(0,0,0,0.1);
	z-index: 500;
	text-align: center;
}
.sh_group {
	font-weight: bold;
	color: #666666;
}
#helperGUI label {
	font-size: 0.8em;
	display: inline-block;
	padding: .5em;
	min-width: 4em;
}
#sh_imagenum {
	width: 5em;
}
#helperGUI:before {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 25px 20px 25px 0;
	border-color: transparent #48b0fd transparent transparent;
	position: absolute;
	top: 15px;
	left: -20px;
}
tags {
  display: block;
  padding-right: 0.3em 0.5em;
  cursor: text;
  overflow: hidden;
}

tags tag {
  display: inline-block;
  /* margin: 5px 0 5px 5px; */
  vertical-align: top;
  position: relative;
  cursor: default;
  -webkit-transition: .13s ease-out;
  -o-transition: .13s ease-out;
  transition: .13s ease-out;
  -webkit-animation: .3s tags--bump 1 ease-out;
          animation: .3s tags--bump 1 ease-out;
}

tags tag > div {
  vertical-align: top;
  position: relative;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  max-width: 100%;
  padding: 0.15em 0.2em;
  color: black;
  -webkit-transition: .13s ease-out;
  -o-transition: .13s ease-out;
  transition: .13s ease-out;
  padding-right: 1em;
}

tags tag > div > span {
  white-space: nowrap;
  overflow: hidden;
  -o-text-overflow: ellipsis;
     text-overflow: ellipsis;
  display: inline-block;
  vertical-align: top;
  width: 100%;
  -webkit-transition: .1s;
  -o-transition: .1s;
  transition: .1s;
  padding: .2em .5em .2em .2em;
  font-weight: bold;
  font-size: 12px;
}

tags tag > div::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: #E5E5E5;
  border-radius: 3px;
  z-index: -1;
  pointer-events: none;
  -webkit-transition: 80ms ease;
  -o-transition: 80ms ease;
  transition: 80ms ease;
}

tags tag:hover div::before {
  top: -2px;
  right: -2px;
  bottom: -2px;
  left: -2px;
  background: #D3E2E2;
  -webkit-box-shadow: 0 0 0 0 #D39494 inset;
          box-shadow: 0 0 0 0 #D39494 inset;
}

tags tag.tagify--noAnim {
  -webkit-animation: none;
          animation: none;
}

tags tag.tagify--hide {
  width: 0 !important;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
  opacity: 0;
  -webkit-transform: scale(0);
      -ms-transform: scale(0);
          transform: scale(0);
  -webkit-transition: .3s;
  -o-transition: .3s;
  transition: .3s;
  pointer-events: none;
}

tags tag.tagify--mark div::before {
  -webkit-animation: .3s tagify--pulse 2 ease-out;
          animation: .3s tagify--pulse 2 ease-out;
}

tags tag.tagify--notAllowed div > span {
  opacity: .5;
}

tags tag.tagify--notAllowed div::before {
  background: rgba(211, 148, 148, 0.44);
  -webkit-transition: .2s;
  -o-transition: .2s;
  transition: .2s;
}

tags tag x {
  font: 14px/14px Serif;
  width: 14px;
  height: 14px;
  text-align: center;
  border-radius: 50px;
  position: absolute;
  z-index: 1;
  /* right: calc(0.5em - 2px); */
  right: .35em;
  top: 50%;
  cursor: pointer;
  -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
  -webkit-transition: .2s ease-out;
  -o-transition: .2s ease-out;
  transition: .2s ease-out;
}

tags tag x::after {
  content: "\00D7";
}

tags tag x:hover {
  color: white;
  background: #c77777;
}

tags tag x:hover + div > span {
  opacity: .5;
}

tags tag x:hover + div::before {
  background: rgba(211, 148, 148, 0.44);
  -webkit-transition: .2s;
  -o-transition: .2s;
  transition: .2s;
}

tags input,tags textarea {
  border: 0;
  display: none;
}

tags input::-webkit-calendar-picker-indicator {
  display: none;
}

tags > div {
  display: inline-block;
  min-width: 10px;
  /* margin: 5px; */
  padding: 0.3em 0.5em;
  position: relative;
  vertical-align: top;
}

tags > div > input {
  display: block;
  min-width: 130px;
}

tags > div > input:focus {
  outline: none;
}

tags > div > input.placeholder ~ span {
  opacity: .5;
  -webkit-transform: none;
      -ms-transform: none;
          transform: none;
}

tags > div > span {
  opacity: 0;
  line-height: 1.8;
  position: absolute;
  top: 0;
  z-index: 1;
  white-space: nowrap;
  pointer-events: none;
  -webkit-transform: translatex(6px);
      -ms-transform: translatex(6px);
          transform: translatex(6px);
  -webkit-transition: .15s ease-out;
  -o-transition: .15s ease-out;
  transition: .15s ease-out;
}

@-webkit-keyframes tags--bump {
  30% {
    -webkit-box-shadow: 0 0 0 4px #E5E5E5;
            box-shadow: 0 0 0 4px #E5E5E5;
  }
}

@keyframes tags--bump {
  30% {
    -webkit-box-shadow: 0 0 0 4px #E5E5E5;
            box-shadow: 0 0 0 4px #E5E5E5;
  }
}

@-webkit-keyframes tagify--pulse {
  25% {
    background: rgba(211, 148, 148, 0.6);
  }
}

@keyframes tagify--pulse {
  25% {
    background: rgba(211, 148, 148, 0.6);
  }
}

.disabled {
	display: none !important;
	visibility: collapse;
	min-height: 0;
	height: 0;
	min-width: 0;
	width: 0;
	position: absolute;
	left: -9999px;
}

.editor_mode span {
	cursor: pointer;
	color: #ff6600;
	text-decoration: underline;
	padding: 1px;
}
.editor_mode span.active {
	color: #000;
	outline: 1px solid #999;
	text-decoration: none;
}
#tag_editor {
	width: 100%;
}
.tagcategoryblock {
	margin:0.6rem 1rem 0.6rem 0;
	padding:0.5rem 0.6rem 0.7rem;
	width:18rem;
	border:1px solid #AAAAAA;
	border-radius:0.25rem;
	display:inline-block;
}
.tagcategoryblock table {
	width:100%;
	border-spacing:0;
}
.tagcategoryblock input, .tagcategoryblock span {
	width:100%;
	height:100%;
}
.tagcategoryblock td:first-child {
	padding:0.3rem 0.7rem 0.4rem 0;
	text-align:right;
	width:40%;
}
.tagcategoryblock td:last-child {
	width:60%;
}
.tagcategoryblock td:last-child span {
	padding:0.24rem 0.7rem 0.5rem 0;
	display:block;
}
.tagcategoryblock button {
	width:100%;
	margin-top:0.4rem;
	padding:0.2rem 0.6rem;
}

.newtag {
	border: 1px solid #c90000 !important;
	position: relative;
	margin-right: 2.7em !important;
}
.newtag:after {
	border: 1px solid #c90000;
	background-color: #ff3535; 
	content: "new";
	display: inline-block;
	position: absolute;
	right: -2.6em;
	top: -1px;
	bottom: -1px;
	padding: .2em;
	color: #ffffff;
	font-weight: bold;
}
.tagcount {
	padding-left: .25em;
	color: rgba(0,0,0,.6);
}

.tag_wrapper {
	position: relative;
}
.tag_menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: .2em;
	z-index: 999;
	background: #FFFFFF;
	border: 1px solid #48B0FD;
	padding: .2em .5em;
	cursor: pointer;
}
.tag_menu:hover {
	background: #FAFAFF;
}
.tag_wrapper a:hover + .tag_menu, .tag_menu:hover {
	display: inline-block;
}
.spoilered-tag {
	opacity: .8;
	border: 1px solid #CC0000 !important;
}
#tagfilter {
	width: 30em;
	height: 20em;
	position: absolute;
	top:0;
 	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
	background: #FFFFFF;
	border-radius: 5px;
	border: 1px solid #48B0FD;
	padding: 1em;
	box-shadow:
	        inset 0 0 0 1px rgba(255,255,255,0.5),
	        0 1px 3px rgba(0,0,0,0.2),
	        0 0 0 1px rgba(0,0,0,0.1),
	        0 3px 8px rgba(0,0,0,0.1);
	z-index: 500;
}
#tagfilter.warnmessage {
	height: 28em;
	border: 2px solid #F91212;
}

.noselect {
	cursor: pointer;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}

#ts_togglebutton {
	position: absolute;
	right: 1em;
	bottom: 1em;
}

#ts_apply {
	position: absolute;
	right: 6em;
	bottom: 1em;
}
#tagfilter label {
	position: absolute;
	left: 1em;
	bottom: 1em;
}

#ts_info {
	text-align: center;
	margin: 0 0 1em 0;
	font-weight: bold;
	color: #666666;
	font-size: 1.1em;
}

#ts_tags {
	width: 100%;
	height: 70%;
	resize: none;
	border: 1px solid #48B0FD;
	overflow-y: auto;
	overflow-x: hidden;
	background-color: #d9efff;
}
.spoilered {
	position: relative;
	outline: 1px solid #757575;
	margin: .25em .25em 0 .25em !important;
	padding: 0 !important;
	overflow: hidden;
}
.spoilered img {
	opacity: 0;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}
.ts_spoiler, .ts_spoiler_desc {
	position: absolute;
}
.ts_spoiler_desc {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	padding: .75em .5em;
	text-align: center;
	color: #FFFFFF;
	text-shadow: 2px 2px 4px #000000;
	font-weight: bold;
	text-decoration: none;
	background: rgba(0,0,0,.5)
}
.ts_spoiler {
	top: 40%;
	left: 0;
	right: 0;
	font-weight: bold;
	font-size: 3em;
	color: rgba(0,0,0,.5);
	text-decoration: none;
}
.spoilered:hover {
	outline: none;
}
.spoilered:hover img {
	opacity: 1;
}
.spoilered:hover {
	outline: none;
}
.spoilered:hover .ts_spoiler {
	opacity: 0;
}
#ts_warning {
	color: #990000;
	font-weight: bold;
}
.blurred:hover {
	filter: none !important;
}
body > svg {widht: 0; height: 0}
.wiki-page {
	text-align: left;
}
.wiki-footer {
	text-align: center;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*                  things common to all pages                    *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

BODY {
	background: #ffffff;
	font-family: sans-serif;
	font-size: 14px;
	margin: 10px;
}
H1 {
	background: #edc136;
	text-align: center;
	border: 1px solid #ba7f34;
}
H1 A {
	color: black;
}
H3 {
	color: #000000;
	text-align: center;
	margin: 0px;
}
SECTION>H3 {
	background: #5edcb2;
	border: 1px solid #4caf89;
}
SECTION>.blockbody, .comment, .setupblock {
	background: #d6fff3;
	border: 1px solid #1fb080;
}
SECTION>.blockbody, H1, SECTION>H3, FOOTER, .comment, .setupblock {
	margin: 8px;
	padding: 8px;
	border-radius: 15px; /* standard, webkit, opera */
	-moz-border-radius: 5px; /* mozilla haven't committed yet */
	box-shadow: 2px 2px 4px rgba(0,0,0,0.45); /* standard, opera */
	-webkit-box-shadow: 2px 2px 4px rgba(0,0,0,0.45); /* webkit haven't committed yet */
	-moz-box-shadow: 2px 2px 4px rgba(0,0,0,0.45); /* mozilla haven't committed yet */
}
THEAD {
	font-weight: bold;
}
TD {
	vertical-align: top;
	text-align: center;
}

TABLE.zebra {border-spacing: 0px; border: 2px solid #CCC;}
TABLE.zebra TD, TABLE.zebra TH {vertical-align: middle; padding: 4px;}
TABLE.zebra THEAD TD, TABLE.zebra THEAD TH {border-bottom: 2px solid #CCC;}
TABLE.zebra TFOOT TD, TABLE.zebra TFOOT TH {border-top: 2px solid #CCC;}
TABLE.zebra TR TD {border-bottom: 1px solid #DDD;}
TABLE.zebra TR:nth-child(odd) {background: #EFEFEF;}
TABLE.zebra TR:nth-child(even) {background: #E0E0E0;}

FOOTER {
	clear: both;
	font-size: 0.7em;
	text-align: center;
	background: #5edcb2;
	border: 1px solid #1fb080;
}

a {
	color: #fb9440;
	text-decoration: underline;
}
a:hover {
	color: #ff5a24;
	text-decoration: none;
}
mark {
	padding-bottom: 1px;
	white-space: pre-wrap;
	position: relative;
	background-color: #ffff00;
}
h1 a, h2 a, .tag_info_link, .zebra a {
	text-decoration: none;
}

UL {
	text-align: left;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*             the navigation bar, and all its blocks             *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

NAV {
	width: 200px;
	float: left;
	text-align: center;
	margin-left: 16px;
}
NAV .blockbody {
	font-size: 0.85em;
	text-align: center;
	overflow: hidden;
}
NAV TABLE {
	width: 100%;
}
NAV INPUT {
	width: 100%;
	padding: 1px;
}
NAV SELECT {
	width: 100%;
	padding: 0px;
}

TABLE.tag_list {
	border-collapse: collapse;
}
TABLE.tag_list>THEAD {
	display: none;
}
TABLE.tag_list>TBODY>TR>TD {
	display: inline;
	padding: 0;
}
TABLE.tag_list>TBODY>TR>TD:after {
	content: " ";
}

.more:after {
	content: " >>>";
}

.tag_count:before {
	content: "(";
}
.tag_count:after {
	content: ")";
}

#paginator .blockbody {
	background: none;
	border: none;
	box-shadow: none;
}

/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*                 the main part of each page                     *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

ARTICLE {
	margin-left: 226px;
	margin-right: 16px;
	margin-top: 16px;
	text-align: center;
	height: 1%;
}
ARTICLE TABLE {
	width: 90%;
	margin: auto;
}


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*                     specific page types                        *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#pagelist {
	margin-top: 32px;
}

.thumb {
	display: inline-block;
	/* width: 250px; /*
	zoom: 1; /* ie6 */
	*display: inline; /* ie6 */
	text-align: center;
	padding: 1em;
	margin-bottom: 8px;
}
.thumb IMG {
	background: #FFFFFF;
	padding: 2px;
	border-radius: 2px; /* standard, webkit, opera */
	-moz-border-radius: 2px; /* mozilla haven't committed yet */
	box-shadow: 2px 2px 6px rgba(0,0,0,0.6); /* standard, opera */
	-webkit-box-shadow: 2px 2px 6px rgba(0,0,0,0.6); /* webkit haven't committed yet */
	-moz-box-shadow: 2px 2px 6px rgba(0,0,0,0.6); /* mozilla haven't committed yet */
}
.thumb_wrapper {
	display: inline-block;
}

.nav_links {margin: .5em 0}

/* Video icons on thumbnails */
.thumb[data-tags~="video"]:after, .thumb[data-tags~="animated"]:after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  position: absolute;
  margin-left: -32px;
  margin-top: 6px;
}
.thumb[data-tags~="video"]:after {
    background-image: url("../../themes/lyra/res/video.png");
}
.thumb[data-tags~="animated"]:after {
    background-image: url("../../themes/lyra/res/animated.png");
}

/* Spoilers */
span.spoiler, span.spoiler a {
    background-color: #bbbbbb !important;
    color: #bbbbbb !important;
}
span.spoiler:hover {
    color: #333333 !important;
}
span.spoiler:hover a {
    color: #ff6600 !important;
}

/* Tags */
.tag_info_link_cell,
.tag_name_cell,
.tag_count_cell {
  vertical-align: middle;
}
.view a[href*="post/list/"],
.tag_name_cell a,
.tag_info_link_cell a,
.tag_count_cell .tag_count { /* Default tag */
  text-decoration: none;
  display: inline-block;
  font-size: 12px;
  margin-bottom: .5em;
  margin-right: .25em;
  padding: .2em;
}
.tag_name_cell a,
.tag_info_link_cell a,
.tag_count_cell .tag_count {
  margin-bottom: .25em;
}
.view a[href*="post/list/"],
.tag_name_cell a,
tag > div > span {
  font-weight: bold;
  background-color: #d0e29c;
  color: #6f8f0e;
  border: 1px solid #b3cf5d;
}

.view a[href*="post/list/character%3A"],
.tag_name_cell a[href*="post/list/character%3A"],
tag > div > span[title^="character:"] { /* Character */
  background-color: #efc4ee;
  color: #aa00aa;
  border-color: #d0a6cf;
}
.view a[href*="post/list/creator%3A"],
.tag_name_cell a[href*="post/list/creator%3A"],
tag > div > span[title^="creator:"] { /* Creator */
  background-color: #b9bce1;
  color: #393f85;
  border-color: #959ad1;
}
.view a[href*="post/list/fetish%3A"],
.tag_name_cell a[href*="post/list/fetish%3A"],
tag > div > span[title^="Fetish:"] { /* Fetish */
  background-color: #ff9999;
  color: #ff0000;
  border-color: #ff6666;
}
.view a[href*="post/list/artist%3A"],
.tag_name_cell a[href*="post/list/artist%3A"],
tag > div > span[title^="artist:"] { /* Artist */
  background-color: #b5dfd8;
  color: #2d8677;
  border-color: #5bc8b6;
}
.view a[href*="post/list/toy%3A"],
.tag_name_cell a[href*="post/list/toy%3A"],
tag > div > span[title^="toy:"] { /* Toy */
  background-color: #bce056;
  color: #789922;
  border-color: #9bc31f;
}
.view a[href*="post/list/video/"],
.view a[href*="post/list/animated/"],
.view a[href*="post/list/art/"],
.tag_name_cell a[href*="post/list/video/"],
.tag_name_cell a[href*="post/list/animated/"],
.tag_name_cell a[href*="post/list/art/"],
tag > div > span[title="video"],
tag > div > span[title="animated"],
tag > div > span[title="art"]{ /* File type */
  background-color: #c1d7e4;
  color: #267ead;
  border-color: #9dc1d4;
}
.view a[href*="post/list/quality%3A"],
.view a[href*="post/list/aspect_ratio%3A"],
.view a[href*="post/list/has_audio/"],
.view a[href*="post/list/no_audio/"],
.view a[href*="post/list/music/"],
.view a[href*="post/list/vertical_video/"],
.tag_name_cell a[href*="post/list/quality%3A"],
.tag_name_cell a[href*="post/list/aspect_ratio%3A"],
.tag_name_cell a[href*="post/list/has_audio/"],
.tag_name_cell a[href*="post/list/no_audio/"],
.tag_name_cell a[href*="post/list/music/"],
.tag_name_cell a[href*="post/list/vertical_video/"],
tag > div > span[title^="quality:"],
tag > div > span[title^="aspect_ratio:"],
tag > div > span[title="has_audio"],
tag > div > span[title="no_audio"],
tag > div > span[title="music"],
tag > div > span[title="vertical_video"] { /* Video */
  background-color: #ebe78f;
  color: #8e7610;
  border-color: #d9c56c;
}

#tag_editor {min-height: 8em}
#postcount img {margin-right: 2em}

#userlist {
  -webkit-column-count: 3;
  -moz-column-count: 3;
  column-count: 3;
  -webkit-column-rule: 2px solid #AAAAAA;
  -moz-column-rule: 2px solid #AAAAAA;
  column-rule: 2px solid #AAAAAA;
  -webkit-column-fill: auto;
  -moz-column-fill: auto;
  column-fill: auto;
  max-height: 13em;
}
#userlist span {padding: 1px}
#userlist span:not([data-user-role="user"]) {background-color: rgba(0,0,0,.5)}
#userlist span[data-user-role="anonymous"] {color: #a0ff00}
#userlist span[data-user-role="moderator"] {color: #00deff}
#userlist span[data-user-role="admin"] {color: #ffef00}
