form img,
form input[type="image"] {
	display: block;
}

img[name=useravatars] {
	height: 55px;
}

#av_container {
    position: relative;
    top: 0;
    left: 0;
}
#av_controls {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 460px; /* width and height in px needed for IE, sigh */
    height: 288px;
    margin: 0 auto;
}
#av_picker {
    position: absolute;
    top: 0;
    height: 288px;
    z-index: 2;
    background-color: black;
    border: 1px solid gray;
    padding: 5px;
    padding-top: 3.5em;
    left: -100px;
    width: 460px;
}
#av_outp {
    position: relative;
    width: 400px;
    left: 30px;
    z-index: 2;
}

/* Targets all browsers but IE8- */
:root *> #av_picker {
    background-color: rgba(0,0,0,0.85);
}

#av_picker .button {
    //display: none;
    color: white;
    font-size: 26px;
    padding: 10px;
    cursor: pointer;
}

#av_text {
    margin-left: 1em;
}
#av_controls .avatar-count, 
#av_controls .avatar-sex-options {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: x-small;
    font-family: sans-serif;
    line-height: 0.7em;
}
#av_controls .avatar-sex-options {
    top: 20px;
    font-size: small;
}
.pick-random {
    margin-left: 2em;
    color: white;
    background: black;
    border-width: 0 !important;
    text-decoration: underline;
}

.avatar-sex-options label {
    margin-right: 0.5em;
}
#avatar-categories {
    width: 40%;
}
#av_text { width: 45% }
div.figure {
    float: left;
    width: 51px;
    height: 90px;
    overflow: hidden;
    padding: 3px;
    text-align: center;
}
div.figure:hover { background: #555 }
td>div.figure {
    float: none;
    height: auto;
    overflow: visible;
}
div.figure p {
    margin: 2px;
    text-align: center;
    font-size: xx-small;
    font-family: sans-serif;
}
.next-avatars {
    position: absolute;
    //left: 430px;
    right: 0px;
    top: 40%;
    z-index: 10;
    width: 10px;
}
.prev-avatars {
    position: absolute;
    left: 0;
    top: 40%;
}
.preview-avatar { margin-left: 11px }
.orig-input { display: none }


/* HALLOWEEN STYLES */

/* Should only add this if pointer-events:none is supported */
/*

@keyframes path-animation {
  0% { 
    motion-offset: 0;
  }
  10% { 
    motion-offset: 0;
  }
  90% {
  	motion-offset: 100%;
  }
  100% { 
    motion-offset: 100%;
  }
}

html.pointer-events:after {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 700px;
	opacity: 0.6;
	background-color: transparent;
	background-repeat: no-repeat;
	background-image: url('/css/spiderweb-alpha.png'), url('/css/spiderweb-alpha.png');
	background-position: top left, right 250px;
	background-size: 400px 400px, 300px 300px;
	pointer-events: none;
}

html.pointer-events {
	overflow-x: hidden;
}

html.pointer-events:before {
	content: '';
	position: relative;
	left: -100px;
	top: 100px;
	z-index: 10;
	display: block;
	width: 50px;
	height: 50px;
	background-color: transparent;
	background-repeat: no-repeat;
	background-image: url('/css/bat.gif');
	motion-path: path('M35.9,50.5c124.5,59.7,445.3,81.9,607.5,53C763.7,32.1,795.8,15.2,893.9,5.8c191.5-18.2,419.5,12.9,429,53.5c10.8,46.2-258.9,114.8-496.5,142.2c-449.6,51.9-804.2-41.3-825-10c-15.1,22.8,158.8,92.7,354,129.7c431.8,81.8,844.4-21.2,1004.9-67.8');
	motion-rotation: 0;
	animation: path-animation 15s linear;
	animation-direction: alternate;
	animation-iteration-count: infinite;
	pointer-events: none;
	motion-offset: 100%;
}

.login--tf body,
.login--bds body {
	-webkit-filter: sepia(1) brightness(0.8) contrast(1.5) hue-rotate(-20deg) saturate(3.5) saturate(0.8);
	filter: sepia(1) brightness(0.8) contrast(1.5) hue-rotate(-20deg) saturate(3.5) saturate(0.8);
}

.login--ccc body,
.login--kgl body {
	-webkit-filter: sepia(1) brightness(0.8) contrast(1.5) hue-rotate(-20deg) saturate(3.5) saturate(1);
	filter: sepia(1) brightness(0.8) contrast(1.5) hue-rotate(-20deg) saturate(3.5) saturate(1);
}

*/