body{
	color: #2b2b2b;
}

#main .item, #tree .item, .tree .item, .cards .item{
	display: inline-block;
	margin: 0.25em;
	box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
	background-position: -1px -1px;
	position: relative;
}

.button {
    display: inline-block;
    position: relative;
	cursor: pointer;

	border: none;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    padding: 0.2em 0.4em;
	margin: 0 0.2em;
	background: #fff;
	text-align: center;
}
.button:focus{
	outline: 0 !important;
}
.button::-moz-focus-inner {
	border: 0;
}
.button:hover {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}
.button:active {
	background: #f3f3f3;
}
.active {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 0 1px 1px rgba(0, 0, 0, 0.2);
	background: #eee;
}

.ctlgroup{
	padding: 0.4em 0.4em 0.4em 0 ;
	display: inline-block;
	margin: 0.12em;
	position: relative;
}

.item div.additions, .item div.tags, span.additions{
	font-family: Helvetica, "Nimbus Sans L", "Liberation Sans", Arial, sans-serif;
	position: absolute;
	padding: 6px;
	color: white;
	font-weight: bold;
	margin: 0;
	left: 0;
	right: 0;
	background: rgba(0,0,0,0.4);
	text-shadow: 0 0 1px black, 0 0 2px black, 0 0 2px black;
}

.item .additions{
	display: none;
}

.item:hover .additions{
	display: block;
}

.item .links{
	display: none;
	background: rgba(0,0,0,0.4);
	padding: 6px 6px 6px 6px;
	position: absolute;
	right: 0;
	top: 50px;
	
}
.item:hover .links{
	display: block;
}
.item .link{
	display: block;
	width: 24px;
	height: 24px;
	
	background-image: url( 'assets/link.png' );
}


.tags{
	bottom: 0;
}

input[type=file] {
	width: 14em;
}

.profile, .family, .parent, .permalink, .upvote, .downvote{
	display: inline-block;
	width: 24px;
	height: 24px;
	margin: 0px 2px;
}

.profile{ background: url(' assets/profile.png '); }
.family { background: url(' assets/family.png '); }
.parent { background: url(' assets/parent.png '); }
.permalink{ background: url(' assets/permalink.png '); }
.upvote{ background: url(' assets/upvote.png '); margin-right: 12px; }
.downvote{ background: url(' assets/downvote.png '); }

.additions{
	left: auto !important;
}


.tree * {
	margin: 0;
	padding: 0;
    white-space: nowrap;
}
.tree ul {
	padding-top: 20px; position: relative;
	
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}

.tree li {
	float: left; text-align: center;
	list-style-type: none;
	position: relative;
	padding: 20px 5px 0 5px;
	
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}
.tree li::before, .tree li::after{
	content: '';
	position: absolute; top: 0; right: 50%;
	border-top: 1px solid #ccc;
	width: 50%; height: 20px;
}
.tree li::after{
	right: auto; left: 50%;
	border-left: 1px solid #ccc;
}
.tree li:only-child::after, .tree li:only-child::before {
	display: none;
}
.tree li:only-child{ padding-top: 0;}
.tree li:first-child::before, .tree li:last-child::after{
	border: 0 none;
}
.tree li:last-child::before{
	border-right: 1px solid #ccc;
	border-radius: 0 5px 0 0;
	-webkit-border-radius: 0 5px 0 0;
	-moz-border-radius: 0 5px 0 0;
}
.tree li:first-child::after{
	border-radius: 5px 0 0 0;
	-webkit-border-radius: 5px 0 0 0;
	-moz-border-radius: 5px 0 0 0;
}
.tree ul ul::before{
	content: '';
	position: absolute; top: 0; left: 50%;
	border-left: 1px solid #ccc;
	width: 0; height: 20px;
}
.tree li a{
	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}
.tree li a:hover, .tree li a:hover+ul li a {
/*	background: #c8e4f8; color: #000; border: 1px solid #94a0b4;*/
}
.tree li a:hover+ul li::after, 
.tree li a:hover+ul li::before, 
.tree li a:hover+ul::before, 
.tree li a:hover+ul ul::before{
	border-color:  #94a0b4;
}

.overlaybg{
	position: fixed;
	text-align:center;
	padding: 2.5em;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(255, 255, 255, 0.875) none repeat scroll 0 0;
	overflow: auto;
	
	z-index: 100;
}

.overlay{
	background: white;
	border: 1.1px solid #d3d3d3;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	
	display: inline-block;
}
.overlay>span{
	float: left;
	
	padding: 0 0.4em;
	font-family: 'Trebuchet MS', Helvetica, sans-serif;
	color: #444;
}
.overlay>a{
	float: left;
	
	display: inline-block;
	width: 16px;
	height: 1em;
	margin: 2px 4px 0 0;
	
	background: url( 'assets/link.png' );
}
.overlay>div{
	margin-left:auto;
	margin-right: auto;
}

#main.js{
	display: block;
	margin-left: 310px;
}

#sidebar-container{
	position: absolute;
	width: 300px;
}

#sidebar{
	margin: 0;
	
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}
#sidebar div.filteritem{
	padding: 8px 12px;
	border-bottom: 1px solid #efefef;
	position: relative;
}
#sidebar div.group-header{
	margin-left: 12px;
	padding: 8px 17px;
	border-bottom: 1px solid #efefef;
}
#sidebar div.filteritem:hover{
	background-color: #f7f7f7;
}
#sidebar .group-header{
	font-weight: bold;
}
#sidebar .header{
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI2IiB2aWV3Qm94PSIwIDAgOCA2IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNiMmIyYjIiPjxwYXRoIGQ9Ik03LjE5Ny42MDRsLTMuMTk4IDMuMTk2LTMuMTk3LTMuMTk2LS43OTkuNzk5IDMuOTk2IDMuOTk0IDMuOTk2LTMuOTk0LS43OTgtLjc5OXoiLz48L3N2Zz4K");
    background-position: 0% 50%;
    background-repeat: no-repeat;
	padding-left: 17px;

    cursor: pointer;
}
#sidebar .header.expanded{
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI2IiB2aWV3Qm94PSIwIDAgOCA2IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiNiMmIyYjIiPjxwYXRoIGQ9Ik0uODAxIDUuMzk2bDMuMTk4LTMuMTk2IDMuMTk3IDMuMTk2Ljc5OS0uNzk5LTMuOTk2LTMuOTk0LTMuOTk2IDMuOTk0Ljc5OC43OTl6Ii8+PC9zdmc+Cg==");
}
#sidebar .item-header:hover{
	color: #822;
}
#sidebar .body{
	margin-top: 8px;
}

#sidebar div.filteritem.enabled .header::before{
    background: #ffc600 none repeat scroll 0 0;
    content: "";
    left: 0;
    position: absolute;
    top: 8px;
    bottom: 8px;
    width: 5px;
}

.slider .from, .slider .to{
	display: inline-block;
	margin: 0 12px 12px 12px;
	padding: 4px 12px;
	
	box-shadow: 0 0 0 1px #cbcbcb inset;
}
.slider label{
	margin-right: 8px;
	color: #888;
}
.slider span{
	display: inline-block;
	width: 60px;
}
.slider-container{
	padding: 0 16px;
}

.text input{
	width: 180px;
	margin: 0 0 0 16px;

	box-shadow: 0 0 0 1px #cbcbcb inset;
	padding: 4px 8px;
	
	border: none;
}

label.checkbox, label.text{
	display: block;
}
.checkboxes label.checkbox{
	margin: 6px 0;
}

.sp-container {
    background-color: transparent;
    border: none;
}

.sp-input {
    border: none;
    border-radius: 0px;
    background-color: #fff;
    font-size: 12px !important;
    margin: 0;
    padding: 4px 5px;
    width: 100%;
	box-shadow: 0 0 0 1px #cbcbcb inset;
}
.sp-input:focus {
	border: none;
}

.ui-widget-header{
	background: #ffeeb2;
}

.ui-slider-handle{
	background: white !important;
	border: 1px solid #cccccc !important;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) !important;
	height: 0.9em !important;
	width: 0.9em !important;
	top: -0.105em !important;
}

.ui-slider-handle.ui-state-focus{
	background: white !important;
	border: 1px solid #cccccc !important;
}

input[type="checkbox"] {
    display: none;
}
input[type="checkbox"] + span {
    background: rgba(0, 0, 0, 0) url("assets/checkbox.png") no-repeat scroll left top;
    cursor: pointer;
    display: inline-block;
    height: 24px;
    margin: -1px 4px 0 0;
    vertical-align: middle;
    width: 24px;
	margin: 0 2px 0 -10px;
}
checkbox:hover input[type="checkbox"] + span {
    background: rgba(0, 0, 0, 0) url("assets/checkbox.png") no-repeat scroll -24px top;
}
label:hover input[type="checkbox"]:active + span {
    background: rgba(0, 0, 0, 0) url("assets/checkbox.png") no-repeat scroll -48px top;
}
input[type="checkbox"]:checked + span, label:hover input[type="checkbox"]:checked + span{
    background: rgba(0, 0, 0, 0) url("assets/checkbox.png") no-repeat scroll -72px top;
}

#sidebar div.filteritem:hover .button-copy, #sidebar div.filteritem:hover .button-piechart{
	display: block;
}
.button-copy, .button-piechart{
	position: absolute;
	display: none;
	width: 18px;
	height: 18px;
	top: 11px;
	cursor: pointer;
}
.button-copy{
	background-image: url('assets/copy.png');
	right: 8px;
}
.button-piechart{
	background-image: url(' assets/piechart.png ');
	right: 38px;
}

.clusterization{
	text-align: left;
}

.clusterization>div{
	border-bottom: 1px solid #ccc;
	padding: 3em;
}

.dialog-clusterize select{
	width: 18em;
	height: 24em;
}

@-webkit-keyframes flashing {
    from {box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5), 0px 0px 24px #ffeeb2 inset, 0px 0px 24px #ffeeb2 inset, 0px 0px 24px #ffeeb2 inset;}
    to {background: #ffeeb2; box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);}
}
@keyframes flashing {
    from {box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5), 0px 0px 24px #ffeeb2 inset, 0px 0px 24px #ffeeb2 inset, 0px 0px 24px #ffeeb2 inset;}
    to {background: #ffeeb2; box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);}
}

#select-card{
	position: fixed;
	left: 25%;
	top: 2em;
	
	background: white;
	box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    -webkit-animation: flashing 1s linear alternate infinite;
    animation: flashing 1s linear alternate infinite;
	
	padding: 1em;
}

#select-card span{
	padding-right: 2.5em;
}

#navigation .button{
	margin-bottom: 8px;
}
#navigation span{
	margin: 0 8px;
}
#navigation{
	margin-top: 1em;
}

#card-counter{
	float: right;
}

.item span.score {
    background: rgba(0, 0, 0, 0.75) none repeat scroll 0 0;
    border-radius: 7px;
    color: white;
    font-family: "Trebuchet MS",Helvetica,sans-serif;
    font-size: 60pt;
    font-weight: bold;
    left: 50%;
    margin-bottom: auto;
    margin-top: auto;
    padding: 8px 24px;
    position: absolute;
    top: calc(50% - 0.6em);
    transform: translate(-50%, 0px);
}

.slider .date{
	font-size: 0.85em;
}

.ui-tooltip{
	background: white;
	border: 0;
	border-radius: 0;
	box-shadow: 0 0 3px rgba(0,0,0,0.2), 0 0 2px rgba(0,0,0,0.2);
	word-wrap: break-word;
	max-width: 500px;
}

.ctlgroup a.button{ color: black; font-family: sans-serif; font-size: 10pt; }
.ctlgroup a.button:visited{ color: black; }

.google-button:hover{
	box-shadow: 0px 1px 3px rgba(0,0,0,0.35);
}
.google-button:focus{
	box-shadow: 0 0 0 1px white inset;
}
.google-button{
	cursor: pointer;
	
	background-image: url('assets/google.png');
	background-position: 8px 1px;
	background-repeat: no-repeat;
	background-color: #d94a1f;
	padding: 0.2em 0.4em 0.2em 1.9em;
	margin: 0;
	border-radius: 2px;
	border: 1px solid #b92a0f;
	box-sizing: border-box;
	
	color: white;
	text-decoration: none;
	text-align: left;
	font-size: 12px;
	
	display: inline-block;
	width: 8em;
}
.google-button.loading{
	background-color: #555;
	border-color: #222;
}

.login-window{
	text-align: center;
	max-width: 20em;
	padding: 1em;
	margin: 1em;
}
.login-window p{
	margin: 0 0 0.5em 0;
}
.login-window .info{
	text-align: center;
	font-size: 75%;
	color: #333;
}
.google-buttons{
	margin: 1.5em 0;
	text-align: center;
}

.nonjs .item{
	width: 198px;
	height: 298px;
	background-size: 200px 300px;
}

/*******************************
 * Custom additions start here *
 *******************************/

.eyelist{
	text-align: left;
}

#eyes .item, .eyelist .item{
	width: 128px;
	height: 128px;
	display: inline-block;
	margin: 0.25em;
	box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
	position: relative;
}


.texeye, .texhigh, .profile{
	display: inline-block;
	width: 24px;
	height: 24px;
}

.texeye { background: url(' assets/texeye.png '); }
.texhigh{ background: url(' assets/texhigh.png '); }
.profile{ background: url(' assets/profile.png '); }

