/***************** BASICS *****************/

html, body {	width: 100%;	height: 100%;	overflow: hidden;
	margin: 0;
	padding: 0;
}

.popup, .window {    background: white;    padding: 4px 6px;    /*white-space: nowrap;*/    border: #333 solid 1px;    -moz-opacity: 75%;    opacity: 0.75;
	font-family: 'Lucida Grande',Verdana,Arial,Sans-Serif;
/*	text-align: center;*/
	font-size: 8.5px;
}

a, a:visited, a:active {
	color: #445878;
}

.windowcontent {
    overflow: auto;
/*	height: 90%;*/
}

.popup ul, .window ul {
	margin-top: 0;}

.popup {
	display: block;
	position: absolute;
	z-index: 99995;
	font-size: 12px;
/*    -moz-border-radius: 2%;*/
    opacity: 0.95;
    -moz-opacity: 95%;    filter: alpha(opacity=95);
}

.closeButton {
	width: 12px;
	height: 12px;
	top: 2px;
	right: 2px;
	position: absolute;
	cursor: pointer;
	background: url(../img/close.png) no-repeat;
}

h1 {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 15px;
	border-bottom: 1px solid #979797;
	color: #003149;
}

#messageBox {
	z-index: 99997;
	max-width: 550px;
/*	width: 550px;*/
/*	height: 150px;*/
}

#messageBox #messageBoxText {
	vertical-align: center;
	margin: 5px;
}

#messageBox input {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

#messageBanner {
	z-index: 99992;
	bottom: 2px;
	left: 2px;
	float: left;
}

#messageBanner h1 {
	margin-bottom: 0;
	font-size: 12px;
}

.inputField  {	border: 1px solid #D2D3DA;	font-size: 12px;	padding:2px 4px;	vertical-align:middle;}

.inputButton  {	background-color: #EEEFF7;	border-color: rgb(242, 242, 251) rgb(201, 202, 209) rgb(210, 211, 218) rgb(242, 242, 251);	border-style: solid;	border-width:1px;	font-size: 12px;	height: 21px;	padding: 0px 10px;	text-align: center;	vertical-align: middle;
	margin: 10px 0;}

.clickable {
	cursor: pointer;
}

/***************** MAP VIEW: BASICS *****************/
 
#map_canvas {
	width: 100%;
	height: 100%;
	z-index: 0;
}

.markerTooltip {
    background: white;    padding: 4px 6px;    border: #333 solid 1px;    -moz-opacity: 75%;    opacity: 0.75;
	font-family: 'Lucida Grande',Verdana,Arial,Sans-Serif;
	font-size: 8.5px;
	cursor: pointer;
	max-width: 60px;
}

#wait {
	background: url(../img/spinner.gif) top left no-repeat #FFFFFF;
	width: 32px;
	height: 32px;
	top: 50%;
	left: 50%;
	margin-left: -17px;
	margin-top: -17px;
	display: block;
	position: absolute;
	z-index: 99996;
	border: 1px solid #A0A0A0;
    -moz-border-radius: 10%;
}

#debug {
	width: 550px;
	top: 2px;
	left: 2px;
	display: block;
	position: absolute;
	z-index: 99991;
	font-weight: bold;
	font-size: 12px;
    -moz-border-radius: 2%;}

#framePopup {
	width: 90%;
	height: 80%;
}

#frameCanvas, .browserFrame {
	width: 100%;
	height: 100%;
	z-index: 99995;
}

#mainPopup {
/*	width: 800px;
	height: 500px;*/
}

#settings, #filters {
	text-align: left;
/*	height: 100%;*/
}

.desktop #filters {
	width: 800px;
	height: 500px;
}

.mobile #filters {
	width: 300px;
	height: 200px;
	overflow: auto;
}

.mobile #filterList {
	width: 295px;
}

#create {
	width: 232px;
	height: 151px;
}

.intermediateLayer {
	position: absolute;	top: 0px;	left: 0px;	height:100%;	width:100%;
	
	/* modal effect in IE */
	background-color: #FFFFFF; 
	filter: alpha(opacity=1);
	display: inline;

	/* because background is set, opacity must be reduced for other browsers */
	-moz-opacity:0.01;
	opacity: 0.01;
}

/* above map, behind popups */
#popupIntermediate {
	z-index: 99994;
}

/* above popups but behind message box popup */
#messageBoxIntermediate {
	z-index: 99996;
}

/***************** MAP VIEW: POPUP CONTENTS *****************/



/***************** MAP VIEW: CONTROLS *****************/

#controlContainer {
  border: 1px solid #979797;
  padding: 1px;
  background-color: #FFFFFF;
  -moz-user-select: none;
  position: absolute;
  right: 2px;
  top: 2px;
  z-index: 99993;
  width: 171px;
}

.controlButton {
  float: left;
  padding: 1px;
  margin-right: 2px;
  text-align: center;
  cursor: pointer;
  height: 20px;
  width: 20px;
  background-color: #FFFFFF;
  background-repeat: no-repeat;
  background-position: center;
}

#zoomInButton {
	background-image: url(../img/magnifier_zoom_in.png);
}

#zoomOutButton {
	background-image: url(../img/magnifier_zoom_out.png);
}

#filterButton {
	background-image: url(../img/world_edit.png);
}

#settingsButton {
	background-image: url(../img/cog.png);
}

#discoverButton {
	background-image: url(../img/map_add.png);
	display: none;
}

#discoverButton.disabled {
	background-image: url(../img/map_add_bw.png);
	cursor: auto;
}

#createButton {
	background-image: url(../img/create.png);
}

#loginButton {
	background-image: url(../img/user.png);
}

#logoutButton {
	background-image: url(../img/user_red.png);
}

#logoButton a img {
	border: none;
}

#logoButton {
	border-left: 1px solid #979797;
	padding: 1px 2px;
}

/***************** MAP VIEW: FILTER BUILDER *****************/

ul.tabs {	list-style:none;	margin:0;	padding:0;	clear:both;	border-bottom:1px solid #ccc;	height:20px;	clear:both;}ul.tabs li {	float:left;	margin-right:7px;	text-align:center;	font-weight: bold;
}ul.tabs li a {	display:block;	height:20px;	padding:0 6px 0 6px;	background-color:#fff;	color:#444;	width:80px;
	text-decoration:none;
	outline:0;}ul.tabs li a:hover {	color:#666;}ul.tabs li a.active {	background-color:#b4d6ff;}

/* adapted from http://codepress.org/ */
.lineNumberWrapper {
	clear: both;
	border-bottom: 1px solid #D2D3DA;	height: 250px;	overflow: scroll;
	overflow-x: hidden;}

.mobile .lineNumberWrapper, .mobile #sparqlNotes, .mobile #filterButtons {
	display: none;
}

.lineNumberWrapper textarea {
	background: white url(../img/line-numbers.png) repeat-y scroll 0pt 3px;
	padding-left: 32px;	padding-top: 5px;
	border: 0;
	width: 99%;
	height: 1500px;
	overflow: hidden;	font-family: monospace;	font-size: 13px;	line-height: 16px;	white-space: pre;
}

.condition {
	margin: 2px 0;
}

/***************** EXTERNAL PAGES *****************/

form label.left {
	padding-right:5px;
	padding-top:2px;
	margin-right: 10px;
	width:100px;
	cursor:pointer;
	display:block;
	float:left;
	text-align: left;	
}

form input {
	float: left;
}

form .formLine {
	float: left;
	clear: both;
	margin: 3px 50px;
}

form .inputButton {
	margin-left: 114px;
}

html.externalFramed {
	overflow: auto;
}

.externalFramed .popup {
	border: none;
}

.externalFramed #topnavigation {
	display: none;
}

.externalNonFramed .popup {
	margin: 10px;
	max-width: 500px;
}

.externalNonFramed #topnavigation {	float:right;
	height: 35px;
}

#logo h2 {
	color: #003149;
	font-size: 19px;
	font-weight: bold;
	margin-left: 10px;
}

#logo {
	text-decoration: none;}

#logo * {	display:inline;
	border: none;
	text-decoration: none;	vertical-align:middle;
}

.externalNonFramed h1 {
	margin-top: 30px;
}

#message {
	margin-bottom: 5px;
	font-weight: bold;
}

.createOption {
	width: 100px;
	height: 50px;
	padding: 2px;
    border: #979797 solid 1px;
    -moz-border-radius: 10%;
    text-align: center;
    float:left;
    margin-right: 10px;
    cursor: pointer;
}
