/* Style definition for knowledge building. */

div.kbtype-label {
    font-size: 150%;
}

/* These color definitions are needed by exported KB typesets from Fle3. */
.tt_yellow { background-color: #FFD700 }
.tt_yellowlt { background-color: #FFFFAD }
.tt_orange { background-color: #FF8C00 }
.tt_orangelt { background-color: #FFE1AA }
.tt_red { background-color: #F95050 }
.tt_pink { background-color: #ebb5bc }
.tt_purple { background-color: #DCCAFF }
.tt_blue { background-color: #778ECF }
.tt_bluelt { background-color: #b4c7ff }
.tt_aqua { background-color: #C5E2D5 }
.tt_green { background-color: #67CA67 }
.tt_greenlt { background-color: #DCFC98 }
.tt_gray { background-color: #A9A9A9 }
.tt_white { background-color: #FFFFFF }

.ktype_heading {
    font-size: 150%;
    padding: 0.3em;
}

#comment_sorter {
	margin-bottom: 10px;
	
	ul {
	  display: inline-block;
	  margin: 0;
	  padding: 0.5em;
	  
	  
		 li { 
		  display: inline;
		  margin: 0.1em;
		  padding: 0.5em;
		  color: black;
		  background-color: #ccc;
		  cursor: pointer;
		  
		  &:hover { background-color: #bbb; }
		  &:active { background-color: #aaa; }
		}
	}
}
.comment {
	margin: 20px;
	padding: 5px;
}

.thread-sorted {
	.depth-1 { margin-left: 25px; }
	.depth-2 { margin-left: 50px; }
	.depth-3 { margin-left: 75px; }
	.depth-4 { margin-left: 100px; }
	.depth-5 { margin-left: 125px; }
}

.knbu-map-view { 
	margin: 0; 
	padding: 0; 
	background-image: url(images/black_lozenge.png); 
	font-family: 'Junge'; 

	#fps { 
		position: absolute; 
		top: 10px; 
		left: 10px; 
		font-size: 1em; 
		color: white; 
	}

	#screen { 
		position: absolute; 
		top: 10px;
		right: 10px; 
		width: 400px; 
		background-color: rgba(230, 230, 230, 0); 
		min-height: 500px; 
		padding: 20px; 
	}

	#message { 
		position: absolute;
		background-color: rgba(255, 255, 255, 0.93);
		width: 500px;
		top: 20px;
		left: 50px;
		/* border: 3px solid #222; */
		box-shadow: 8px 8px 2px rgba(0,0,0,0.3);
		display: none;
		margin: 10px;
		
		h3 {
			margin: 0; 
			padding: 0; 
			margin-bottom: 8px;
		}
		h4 {
			clear: none !important;
			background-color: rgba(0, 0, 0, 0.2);
			margin: 5px;
		}
		
		.message-header {
			background-color: #000;
			height: 40px;
			line-height: 40px;
			padding: 0 10px;
			text-align: center;
			overflow: hidden;
			h4 { 
				color: rgba(255, 255, 255, 1);
				font-size: 1.5em;
				white-space: nowrap;
				display: inline;
				border-radius: 3px;
				padding: 4px;
			}
		}
		
		.message-content-wrapper {
			padding: 10px; 
		}
		
		.message-meta {
			float: left;
			margin: 0 5px 5px 0;
		}
		
		.message-avatar { 
			margin-right: 10px;
			width: 92px;
			height: 92px;
		}
		
		.message-date {
			color: #888;
			float: right;
		}
		
		.message-content { 
			display: inline;
			white-space: pre-wrap;
		}

		.message-type { 
			margin: 0; 
			color: #999; 
		}
		
		p { margin: 10px; }
			
		textarea { 
			font-family: inherit; 
		}
	}
	
	#map { 
		position: fixed; 
		top: 0; 
		left: 0; 
		width: 100%;
		height: 100%;
	}

	#raven { 
		overflow: hidden; 
		position: absolute; 
		top: 0; 
		left: 0; 
		width: 100%;
		height: 100%;
	}

	circle { 
		cursor: pointer; 
	}

	#close { 
		float: right; 
		cursor: pointer; 
	}

	#reply { 
		clear:both; 
	}

	#reply-wrapper { 
		display: none; 
		clear: both;
		padding: 7px;
	}

	.knbu-form-link { 
		margin-top: 10px; 
		display: block; 
		float: left;
		cursor: pointer; 
		color: white; 
		padding: 5px; 
		background-color: rgba(40, 60, 100, 0.3);
		text-decoration: none;
	}

	#message .logged-in-as { 
		float: right; 
	}

	#message #commentform .comment-form-comment label { 
		clear: both; 
		display: block; 
		width: 100%;
	}

	#navigation { 
		position: absolute; 
		bottom: 40px; 
		right: 40px; 
		
		#zoom { 
			float: right;
			background-color: rgba(255, 255, 255, 0.3);
			box-shadow: 0 0 1px 1px rgba(255, 255, 255, 0.8);
			height: 120px;
			position: relative;
			width: 20px;
			
			.ui-slider-handle {
				width: 100%;
				height: 15px;
				margin-bottom: -0.5em;
				border-radius: 2px;
				background-color: rgb(220, 220, 220);
				display: block;
				position: absolute;
			}
		}

		#pan {
			width: 80px;
			height: 80px;
			margin: 20px;
			margin-right: 40px;
			float: right; 
			position: relative;
			
			div {
				$size: 20px;
				position: absolute;
				width: $size;
				height: $size;
				margin: -$size/2;
				background-size: 100% 100%;
				cursor: pointer;
				
				opacity: 0.7;
				&:hover { opacity: 0.9; }
				&:active { opacity: 1.0; }
			}
			.left { left: 0; top: 50%; background-image: url(images/left.png); }
			.right { right: 0; top: 50%; background-image: url(images/right.png); }
			.up { top: 0; left: 50%; background-image: url(images/up.png); }
			.down { bottom: 0; left: 50%; background-image: url(images/down.png); }
			.center { left: 50%; right: 50%; top: 50%; bottom: 50%; background-color: white; border-radius: 4px; }
		}
	}


	#legend {
		position: absolute;
		left: 40px;
		bottom: 40px;
		
		ul {
			margin: 0;
			padding: 0;
			list-style-type: none;
			li {
				color: white;
				line-height: 23px;
				.color {
					width: 20px; 
					height: 20px;
					margin-right: 10px;
					background-color: white;
					display: block;
					float: left;
					box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.6);
				}
			}
		}
	}
}