@charset "UTF-8";

@font-face {
    font-family: 'Kryptonian7';
    src: url(/assets/fonts/kryptonian7.4-regular-webfont.eot);
    src: local('@'),
    	 url(/assets/fonts/kryptonian7.4-regular-webfont.eot?#iefix) format('embedded-opentype'),
         url(/assets/fonts/kryptonian7.4-regular-webfont.woff) format('woff'),
         url(/assets/fonts/kryptonian7.4-regular-webfont.ttf) format('truetype'),
         url(/assets/fonts/kryptonian7.4-regular-webfont.svg#kryptonian_7regular) format('svg');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'DoulosSIL';
    src: url(/assets/fonts/doulossilr-webfont.eot);
    src: local('@'),
    	 url(/assets/fonts/doulossilr-webfont.eot?#iefix) format('embedded-opentype'),
         url(/assets/fonts/doulossilr-webfont.woff) format('woff'),
         url(/assets/fonts/DoulosSILR.ttf) format('truetype'),
         url(/assets/fonts/doulossilr-webfont.svg#DoulosSIL) format('svg');
    font-weight: normal;
    font-style: normal;
}


.inline-block {
	display: inline-block;
	zoom: 1;
	*display: inline;
}

.clearFloat {
	&:after {
		content: ' ';
		display: block;
		width: 0;
		height: 0;
		clear: both;
	}
}

.noselect {
	-webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@spacer: 5px;
@redAlt: #7d2828;
@red: #F27E7E;
@blue: #8B98C7;
@blueAlt: #4F5775;
@yellow: #ede398;

@wordBorder: #ccc;
@wordBorderAlt: #A9ACC9;
@dataCell: #333;
@dataCellAlt: #292B36;



/* kryptonian colors */
@iahr : #ff3c00;
@riz : #aaff00;
@ehshov : #00ff7f;
@ehkov : #0070ff;
@folehn : #e200ff;

@gadiahr : #df0000;
@gadriz : #ffe000;
@gadehshov : #00ff16;
@gadehkov : #00ecff;
@gadfolehn : #6100ff;

@kuriahr : #ff8700;
@kurriz : #3eff00;
@kurehshov : #00ffdb;
@kurehkov : #000dff;
@kurfolehn : #d400d2;


/*******/

span.color {
	.inline-block;
	width: 12px;
	height: 12px;
	padding: 0;
	margin: 0 5px;
	&.iahr { background: @iahr !important; }
	&.riz { background: @riz !important; }
	&.ehshov { background: @ehshov !important; }
	&.ehkov { background: @ehkov !important; }
	&.folehn { background: @folehn !important; }
	&.gadiahr { background: @gadiahr !important; }
	&.gadriz { background: @gadriz !important; }
	&.gadehshov { background: @gadehshov !important; }
	&.gadehkov { background: @gadehkov !important; }
	&.gadfolehn { background: @gadfolehn !important; }
	&.kuriahr { background: @kuriahr !important; }
	&.kurriz { background: @kurriz !important; }
	&.kurehshov { background: @kurehshov !important; }
	&.kurehkov { background: @kurehkov !important; }
	&.kurfolehn { background: @kurfolehn !important; }
}

// FIX PAGE FOR EDITING //
#header, #footer, #page_title { display: none; }
#content_box {
	width: 400px;
	margin: 0 auto;
	.header-ads,
	#sidebar {
		display: none;
	}
}

.k { font-family: "Kryptonian7" !important; }
.ipa, .ipain { font-family: "DoulosSIL" !important; }

body {
	background: #777;

	#main_content {
		float: none;
		width: auto;
		h1:first-child { display: none; }
		div.content_section {
			padding: 0;
			background: none;
		}
	}
}


// *** //

.content_section {

	.hide { display: none !important; }

	#dictm-englishList,
	#dictm-kryptonianList {
		padding: 5px 0;
	    /* border: solid 1px #333; */
	    /* border-width: 1px 0; */
	    margin: 0;
	    background: linear-gradient(to bottom,transparent 3%, #444 50%, transparent 97%);
	    display: flex;
	    flex-flow: row wrap;
	    justify-content: center;
	    align-items: center;
		.clearFloat;

		&.closed {
			padding: 0;
			background: none;
		}

		.ewordListing {
			.noselect;
			font-size: 10px;
			padding: 2px 4px;
			display: block;
			float: left;
			margin: 2px;
			background: @blueAlt;
			color: #fff;
			cursor: pointer;
			border-radius: 4px;
		    box-shadow: 0 1px 1px rgba(0,0,0,.4);
			&:hover { background: @redAlt; }
			.eng {}
			.type {
				color: #ccc;
				margin: 0 3px;
				font-style: italic;
			}
			.ks {
				color: @yellow;
			}

		}


	}

	#dictm-soundreport {
		.noselect;
		margin-bottom: 5px;
		text-align: left !important;

		.dictm-sound {
			width: 87px;
			font-size: .8em;
			display: inline-block;
			border: solid 1px #222;
			padding: 2px 5px;
			margin: 0 1px 1px 0;
			background: #000;
			color: @blue;
			.k { color: #fff; }
			.vowel { color: @yellow; }
			.svowel { color: @red; }

			&:hover, &.selected {
				cursor: pointer;
				border-color: #fff;
				box-shadow: 0 0 5px #fff;
			}

		}
		.sound-refresh {
			display: block !important;
			padding: 2px !important;
			font-size: 10px !important;
			text-align: center;
		}

		.word-count {
			background: @blue;
			color: #fff;
			width: auto;
			display: block;
			height: 25px;
			margin: 0 0 1px 0;
			text-align: center;
			font-size: 16px;
		}
	}

	.kdmentryToggle {
		display: block;
		line-height: 20px;
		cursor: pointer;
		font-size: 12px;
		padding: 3px;
		border-top: solid 1px #fff;
		border-bottom: solid 1px #000;

		background: rgba(0,0,0,.4);
		background: black;
		border-radius: 10px 10px 0 0;
		color: #fff;
		font-weight: normal;

		transition: all .2s linear;

		.k {
			font-size: 16px;
			color: #000;
			margin-right: 5px;
			background: @blue;
			display: inline-block;
			min-width: 70px;
			padding: 1px 5px;
			border-radius: 7px;
		}

		.eword-entry {
			color: @red;
			margin: 0 3px;
			font-size: 12px;
		}

		.thistype {
			color: @blue;
			margin: 0 5px;
		}

		&.closed {
			background: rgba(255,255,255,.25);
			color: #000;
			border-radius: 0;
			.k {
				background: @blueAlt;
				color: #fff;
			}
			.eword-entry { color: @redAlt; }
			.thistype { color: @blueAlt; }

		}



	}

	.kdmentry {
		.noselect;
		font-size: 12px;
		line-height: 18px;
		margin: 0 0 10px;
		display: block;
		border-radius: 10px;
		box-shadow: 0 3px 5px rgba(0,0,0,.4);

		&.closed { display: none; }

		&:nth-child(1n) .kdm-spanwrapper {
			& > span > span {
				// background: @dataCell;
				border: solid 1px @wordBorder;
			}
			& .label { background: @wordBorder; }
		}

		+ .kdmentryToggle:not(.closed) {
			margin-top: 10px;
		}

		.kdm-spanwrapper {
			.clearFloat;
			border-radius: 10px;
			background: linear-gradient(to bottom, #000 0, #333 100%);

			.kword { width: 400px; }
			.kdisplay { width: 300px; }
			.ideograph { width: 100px; }
			.ks { width: 200px; }
			.ksdisplay { width: 200px; }
			.ipa { width: 280px; }
			.type { width: 120px; }
			.ewords,
			.variants,
			.related { width: 400px; }
			.definition { width: 400px; border-radius: 0 0 10px 10px; overflow: hidden; }
			.definition .value { border-radius: 0 0 10px 10px; }



			.k {
				font-size: 18px;
				line-height: 18px;
				//padding-bottom: 5px;
			}

			.ipa {
				letter-spacing: .1em;
			}


			> span {
				display: block;
				//min-height: 60px !important;
				margin: 0;
				vertical-align: top;
				text-align: left;
				float: left;
				padding: 0;

				&.ewords, &.variants, &.related {
					.value {
						//border-color: #222;
						.eword-entry, .variant-entry, .related-entry {
							display: inline-block;
							padding: 1px 5px;
							background: #fff;
							color: #000;
							margin: 0 2px 2px 0;
						}

						.variant-entry, .related-entry {
							background: @red;
							color: #000;
						}

						.eplus, .vplus, .rplus {
							padding: 0 6px;
							font-size: 19px;
							text-align: center;
						}
					}
				}

				&.ideograph, &.ipa {
					.value {
						color: @yellow;
					}
				}

				&.kdisplay, &.ksdisplay {
					.value {
						color: @yellow;
					}
				}

				&.definition {
					line-height: 1;
					font-size: 11px;
					text-align: left;

					.value span {
						padding: 0;
						margin: 0;
						border: none;
						background: none;
						font-size: 12px;
					}
				}

				> span {
					//.inline-block;
					margin: 0;
					padding: 5px 10px;
					vertical-align: top;
					min-height: 30px;
					min-width: 25px;
					display: block;
					&.k {
						min-height: 30px;
						line-height: 30px;
						font-size: 20px;
						font-family: "Kryptonian7";
					}
					&.label {
						min-height: 0;
					}

					span {
						min-height: 0;
						&.eplus, &.vplus, &.rplus {
							margin-top: 0;
							display: block;
							padding: 0;
							border-radius: 50px;
							background: #777;
							color: #000;
							font-weight: bold;
							float: right;
							height: 20px;
							width: 12px;
						}
					}

					a {
						text-decoration: none;
					}
				}
			}

			.typeid, .field { display: none; }

			.label {
				padding: 0;
				border: none;
				background: none;
				line-height: 1;
				font-size: 10px;
				color: #000;
				background: @wordBorder;
				display: block;
				padding: 0 5px 2px;
			}
		}
	}

	.kdmentry span.over {
		background: @red !important;
		color: #fff !important;
	}

	#dictm-controls {
		.dictmESearch,
		.dictmKsSearch {
			display: block;
			margin: 5px 0 0;
			input { width: 200px; }
		}
	}

	#dictm-controls, .dict-letter-links, .dictm-letter-links, #dictm-soundreport {
		margin-bottom: 5px;
		margin-left: 0;
		text-align: center;

		a {
			font-size: 12px;
			text-decoration: none;
			.inline-block;
			padding: @spacer;
			margin: @spacer 0 0 @spacer;
			border: solid 1px @blue;
			background: #000;
			color: @blue;

			&:first-child {
				margin-left: 0;
			}

			&:hover {
				background: #000;
				box-shadow: 0 0 10px #fff;
				color: #fff;
				border-color: #fff;
				text-shadow: 0 0 7px #fff, 0 0 14px #fff;
			}

			&.selected {
				background: @yellow;
				color: #000;

				&:hover {
					background: @yellow;
					color: #000;
				}
			}
		}

		.k {
			font-size: 16px;
		}
	}


	.dict-searchform {
		.inline-block;
		padding: 0 10px;
		width: 25%;

		input {
			font-size: 18px;
			width: 100%;
			height: 48px;
			border-radius: 10px;
			padding: 0 5px;
			&.k {
				font-size: 16px;
			}
		}

		span {
			font-size: 11px;
			color: #999;
			margin-left: 25px;
		}
	}


	.dict-entry-wrapper {
		margin-left: 0;

		.kdentry {
			position: relative;
			display: block;
			margin-left: 30px;

			.english {
				border-radius: 5px;
				border-bottom-right-radius: 0;
				border-top: solid 1px #fff;
				border-bottom: solid 1px #555;
				margin-left: 0;
				display: block;
				padding: @spacer;
				background: #a4a4a4 url(../k2010/images/note_bg.png) left top repeat-x;
				font-size: 12px;
				color: #777;
				vertical-align: middle;
				box-shadow: 0 2px 5px #000;

				&.continued { display: none; }

				.eword {
					.inline-block;
					text-shadow: 0 0 3px #333;
					padding-right: @spacer;
					font-size: 14px;
					font-weight: bold;
					color: #000;
					&.hover {
						text-shadow: 0 0 3px #a00;
					}
				}
			}

			.popup {
				position: absolute;
				top: 100%;
				left: 0;
				padding: @spacer;
				background: #000;
				color: #fff;
				font-size: 12px;
				display: none;
				box-shadow: 0 0 5px #fff;
				z-index: 1000;
			}

			.details {
				display: table;
				margin-bottom: 10px;
				width: 100%;
				border-bottom-left-radius: 5px;
				border-bottom-right-radius: 5px;
				background: url(../k2010/images/bg_whitener.png) 0 0 repeat;
				font-size: 12px;
				color: #889;
				position: relative;

				&.nobreak {
					border-radius: 0;
					margin-bottom: 0;
					border-bottom: solid 1px #000;
					.celld {
						border-radius: 0;
					}
				}

				.cellk, .celli {
					display: table-cell;
					padding: @spacer @spacer*2;
					border-right: solid 1px #555;
					vertical-align: top;
					width: 10px;
				}

				.celli {
					background: #000;
					text-align: center;
					padding-top: 1px;
					.k {
						color: #fff;
						margin-top: -4px;
					}
					.label {
						color: #777;
						font-size: 8px;
						line-height: 8px;
						text-align: center;
						display: block;
						margin: 0 -@spacer;
						text-transform: uppercase;
					}
				}

				.celld {
					display: table-cell;
					padding: @spacer @spacer*2;
					vertical-align: middle;
					border-bottom-right-radius: 5px;
					background: @blue url(../k2010/images/blue_grad.png) left bottom repeat-x;
				}

				span {
					.inline-block;
					line-height: 1.5;
				}

				.k {
					font-size: 22px;
					text-shadow: 0 0 5px #222;
					color: #000;
					line-height: 1;
					padding-bottom: @spacer*2;
					&.hover {
						text-shadow: 0 0 3px #a00;
					}
				}

				.ks, .ipa {
					.inline-block;
					color: #bbf;
					font-weight: bold;
					margin-right: @spacer;
					font-size: 12px;
					letter-spacing: .1em;
				}

				.ipa {
					font-weight: normal;
					color: #fff;
				}

				strong {
					text-shadow: none;
				}

				.type {
					font-style: italic;
					color: #000;
					margin-right: @spacer;
				}

				.definition {
					display: inline;
				}

				.variants, .other {
					margin-left: @spacer;
					.k {
						font-size: 14px;
						margin: 0 0 0 5px;
						line-height: 14px;
						padding: 0;
						text-shadow: 0 0 2px #555;
					}
				}
			}
		}
	}
}

@media all and (max-width: 801px) {
	.content_section {
		.dict-searchform {
			padding: 0;
			width: 90%;
		}
	}
}

/*** Kryptonian Keyboard ***/

.kkeys {
	border: none;

	td {
		border: none;

		a {
			text-align: center;
			display: block;
			padding: 5px 4px;
			margin: 1px 0 0 1px;
			border-radius: 4px;
			background: #000;
			color: #fff!important;
			text-decoration: none;

			&:hover {
				background: #fff!important;
				color: #000!important;
				box-shadow: 0 0 30px #fff;
				z-index: 1000;
			}
		}
	}

	.voiceless { background: #000;}
	.vowel { background: #700;}
	.xvowel { background: #400;}
	.voiced { background: #000;}
	.other { background: #004;}
	.rvowel { background: #404;}
	.punctuation { background: #000;}

}

/*** form input ***/
#dictm-textarea textarea {
	width: 175px;
	height: 100px;
}

#dictm-addword,
#dictm-input,
#dictm-inputK,
#dictm-inputIPA,
#dictm-textarea,
#dictm-type,
#dictm-inputE,
#dictm-inputRV,
#dictm-removeE,
#dictm-removeRV {
	background: #223;
	h2 {
		margin: 0;
	}
	.field {
		display: inline;
	}
	.number {
		.inline-block;
		color: #fff;
		font-size: 12px;
		min-width: 30px;
		text-align: right;
	}
}

#fancybox-content {
	border-color: #223;
}

/* autocomplete box */
.ui-autocomplete {
	padding: 10px;
	background: #fff;
	font-weight: bold;
	font-size: 12px;
	width: auto !important;
	float: left;
	list-style-type: none;
	.ui-menu-item {
		margin-top: .5em;
	}
}
