/*
# CSS definitions
#
#	This file part of: VisiOmatic
#
#	Copyright: (C) 2014 Emmanuel Bertin - IAP/CNRS/UPMC,
#                     Chiara Marmo - IDES/Paris-Sud,
#                     Ruven Pillay - C2RMF/CNRS
#
#	Last modified: 26/03/2014

# Extra-Map section adapted from L.Control.MiniMap by Norkart
# (see Control.ExtraMap.js).
*/

/* Left control bar */
.leaflet-bar a {
	width: 32px!important;
	height: 32px!important;
}

.leaflet-bar a:hover {
	width: 32px;
	height: 32px;
}

.leaflet-control-zoom-in {
	background-image: url(images/icon-magnifyplus.svg);
	color: rgba(255,255,255,0) !important;
	}

.leaflet-control-zoom-out {
	background-image: url(images/icon-magnifyminus.svg);
	color: rgba(255,255,255,0) !important;
	}

#leaflet-iipimage-toggle {
	background-image: url(images/icon-settings.svg);
}

#leaflet-iipoverlay-toggle {
	background-image: url(images/icon-plot.svg);
}

/* IIP dialog */
.leaflet-control-iip .leaflet-control-iip-dialog,
.leaflet-control-iip-expanded .leaflet-control-iip-toggle {
	display: none;
}

.leaflet-control-iip-expanded .leaflet-control-iip-dialog	{
	display: table;
	position: relative;
}

.leaflet-control-iip-expanded {
	padding: 6px 6px 6px 6px;
	color: #333;
	background: #fff;
	z-index:10;
}

/* IIP Image dialog elements */
.leaflet-control-iip-element {
	display: table-row;
	padding: 8px;
}

.leaflet-control-iip-label {
	padding-right: 4px;
	display: table-cell;
	vertical-align: middle;
}

.ui-buttonset .ui-button {
	margin-right: -0.1em;
}

.ui-icon,.ui-button {
	width: 32px!important;
	height: 32px!important;
}

.leaflet-control-iip-cmaps {
	left: 0px;
	right: 0px;
}

.leaflet-cmap-inv {
	background-image: url(images/icon-contrast.svg);
	background-repeat: no-repeat;
}

.leaflet-cmap-grey {
	background-image: url(images/icon-grey.svg);
}
.leaflet-cmap-jet {
	background-image: url(images/icon-jet.svg);
}
.leaflet-cmap-hot {
	background-image: url(images/icon-hot.svg);
}
.leaflet-cmap-cold {
	background-image: url(images/icon-cold.svg);
}

/* jQuery-UI spinner */
.ui-spinner {
/*
	float: right;
	width: 100%;
*/
	height: 30px;
	font-size: 1.2em;
}

.ui-spinner-input {
	width: 12em;
}

.ui-spinner-down {
	width: 31px!important;
	right: 34px;
	top: 0px;
	cursor: pointer;
	border-radius: 4px 0px 0px 4px!important;
}

.ui-spinner-up {
	width: 33px!important;
	right: 0px;
	cursor: pointer;
	border-radius: 0px 4px 4px 0px!important;
}

.ui-spinner-down .icon-minus {
	background-image: url(images/icon-minus.svg);
	margin: 2px;
	top: 0px;
	left: 0px;
	width: 32px;
	height: 32px;
}
.ui-spinner-up .icon-plus {
	background-image: url(images/icon-plus.svg);
	margin: 2px;
	top: 0px;
	left: 0px;
	width: 32px;
	height: 32px;
}

/* Overlay dialog */
/*
.leaflet-top {
	z-index: 2000;
}
*/
/*
.leaflet-control-layers-overlays {
	line-height:26px;
}
*/

#logo-cds {
	background: url(images/cds.png) no-repeat;
	background-size: 2.4em;
	background-position: center;
	display: inline-block;
}

.leaflet-control-iip-catalogs {
	height: 34px;
	vertical-align: top;
}

.leaflet-control-iip-profile {
	height: 34px;
	vertical-align: top;
}

/* Color picker */
.sp-replacer {
	padding: 0;
	vertical-align: middle;
}

.sp-preview {
	width: 30px;
	height: 30px;
	margin: 0px;
}

.sp-dd {
	vertical-align: top;
	float: right;
	top: 0px;
	margin-left: 0px;
	padding: 0px;
}

.sp-container {
z-index: 3000000000;
}

/* Layer list */
.leaflet-control-layers-base {
	display: table;
	width: 100%;
}

.leaflet-control-layers-overlays {
	display: table;
	width: 100%;
}

.leaflet-control-layers-item {
	display: table-row;
}

.leaflet-control-layers-select {
	display: table-cell;
	vertical-align: middle;
	width: 1em;
}

.leaflet-control-layers-name {
	display: table-cell;
	vertical-align: middle;
	padding-left: 4px;
	padding-right: 8px;
}

/* Activity spinner */
.leaflet-control-activity {
	background-image: url(images/activity.svg);
	background-size: 18px;
	width: 18px;
	height: 18px;
	margin: 2px;
}

/* Trash button */
.leaflet-control-layers-trash {
	display: table-cell;
	background-image: url(images/icon-trash.svg),linear-gradient(to bottom, rgba(255, 255, 255, 0),  rgba(200, 200, 200, 1));
	background-repeat: no-repeat;
	background-position: center center;
	width: 24px;
	height: 24px;
	float: right;
	-webkit-border-radius: 4px;
	        border-radius: 4px;
}

/* WCS coordinates */
.leaflet-control-wcs {
	background-color: rgba(128, 128, 128, 0.5);
	color: white;
	padding: 1px;
	-webkit-border-radius: 4px;
	        border-radius: 4px;
	box-shadow: 1px 1px 2px #000 inset;
	font-size: 1.2em;
	width: 13em;
}

/* Reticle */

.leaflet-reticle {
	background-image: url(images/reticle.svg);
	width: 26px;
	height: 26px;
	margin: -13px -13px -13px -13px;
	z-index: 3000000000;
}

.leaflet-dragging .leaflet-reticle {
	opacity: 1;
	-webkit-transition: opacity 0.5s linear;
	   -moz-transition: opacity 0.5s linear;
	     -o-transition: opacity 0.5s linear;
	        transition: opacity 0.5s linear;
}

.leaflet-reticle {
	opacity: 0;
	-webkit-transition: opacity 0.5s linear;
	   -moz-transition: opacity 0.5s linear;
	     -o-transition: opacity 0.5s linear;
	        transition: opacity 0.5s linear;
}

/* Profile plot */
#leaflet-profile-plot {
	width: 400px;
	height: 300px;
}

.leaflet-plot-area {
	fill: #cfc;
	stroke: #080;
}

/* Extra Map adapted from Control.MiniMap by Norkart
   (see copyright notice in Control.ExtraMap.js */
.leaflet-control-extramap {
	border:solid rgba(255, 255, 255, 0.7) 2px;
/*
	box-shadow: 0 1px 7px #999;
*/
	background: #0f0f0f;
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;
	border-radius: 8px;
	z-index: 0;
}

.leaflet-control-extramap a {
	background-color: rgba(255, 255, 255, 0.75);
	background-position: 1px 2px;
	background-repeat: no-repeat;
	display: block;
	outline: none;
/*
	z-index: 99999;
*/
}

.leaflet-control-extramap a.minimized {
	background-position: 1px -18px;
}

.leaflet-control-extramap-toggle-display {
	background-image: url("images/toggle.png");
	border-radius: 4px 4px 4px 4px;
	height: 19px;
	width: 19px;
	position: absolute;
	bottom: 0;
	right: 0;
	z-index: 2000;
}

/* Full Screen adapted from Control.FullScreen by Bruno Bergot
   (see copyright notice in Control.FullScreen.js */
a.leaflet-control-zoom-fullscreen {
	background-image: url(images/icon-fullscreen.svg);
}

:fullscreen .leaflet-control-zoom-fullscreen {
	background-image: url(images/icon-windowed.svg)!important;
}

:-moz-full-screen .leaflet-control-zoom-fullscreen {
	background-image: url(images/icon-windowed.svg)!important;
}

:-webkit-full-screen .leaflet-control-zoom-fullscreen {
	background-image: url(images/icon-windowed.svg)!important;
}

:-ms-fullscreen .leaflet-control-zoom-fullscreen {
	background-image: url(images/icon-windowed.svg)!important;
}

/*
.leaflet-container:-webkit-full-screen {
	width: 100% !important;
	height: 100% !important;
	z-index: 99999;
}
*/

.leaflet-pseudo-fullscreen {
	position: fixed !important;
	width: 100% !important;
	height: 100% !important;
	top: 0px !important;
	left: 0px !important;
	z-index: 99999;
}

/* File Menu */

/* File Tree */
UL.filetree {
	font-family: Verdana, sans-serif;
	font-size: 11px;
	line-height: 18px;
	padding: 0px;
	margin: 0px 4px 0px 0px;
}

UL.filetree LI {
	list-style: none;
	padding: 0px;
	padding-left: 20px;
	margin: 0px;
/*	white-space: nowrap;*/
}

UL.filetree A {
	color: #333;
	text-decoration: none;
	padding: 0px 2px;
}

UL.filetree A:hover {
	background: #BDF;
}

.filetree LI.directory {
	background: url(images/directory.png) left top no-repeat;
}
.filetree LI.expanded {
	background: url(images/folder_open.png) left top no-repeat;
}
.filetree LI.file {
	clear: both;
	background: url(images/file.png) left top no-repeat;
}
.filetree LI.wait {
	background: url(images/activity.svg) left top no-repeat;
	background-size: 16px;
}
.filetree LI.fits_ptif {
	background: url(images/picture.png) left top no-repeat;
	font-weight: bold;
}
.filetree LI.fits_noptif {
	background: url(images/picture.png) left top no-repeat;
	font-weight: normal;
}
.filetree .filename {
	float: left;
	background: inherit;
}
.filetree .filesize {
	font-weight: normal;
	float: right;
	color: #999;
	background: inherit;
}

/* Attribution */

.leaflet-control-attribution {
	background: rgba(100,100,100,0.5) !important;
	color: white;
	-webkit-border-radius: 4px;
	        border-radius: 4px;
	box-shadow: 1px 1px 2px #000 inset;
	margin-bottom: 5px !important;
	margin-right: 10px !important;
	line-height: 200%;
}

.leaflet-control-attribution a {
	color: white;
}

.leaflet-control-attribution-logo:hover {
	opacity: 1.0;
	filter:alpha(opacity=100);
	text-decoration: none !important;
}

.leaflet-control-attribution-logo {
	opacity: 0.7;
	filter:alpha(opacity=70);
	width: 2em;
	height: 2em;
	float: left;
	vertical-align: middle;
	margin-left: 0.5em;
}

#logo-visiomatic {
	background: url(images/visiomatic.png) no-repeat;
	background-size: 2.1em;
	background-position: center;
}

#logo-iipimage {
	background: url(images/iip.png) no-repeat;
	background-size: 2.4em;
	background-position: center;
}

#logo-leaflet {
	background: url(images/leaflet.svg) no-repeat;
}

/* jQuery windows */
.ui-dialog-titlebar-close {
	width: 24px!important;
	height: 24px!important;
	overflow:hidden;
	top: 40%!important;
}
